Home Help Center

ICE Java on Android 5.0 Lollipop

dakotadelnortedakotadelnorte Member Roberto Orden ErenaOrganization: ZennioProject: Home automation remote
Hi,

I have an app that uses ICE and works fine in versions of Android >=4.0, but the app doesn't works (the app works good, but when uses ICE ... crash) with Android 5.0 Lollipop. Do you know if there are any problem with this Android version?

While I wait a confirmation that ICE works fine into Android 5.0, I will investigate the problem in my application.

Thank you in advance.

Comments

  • joegeorgejoegeorge Jupiter, FloridaAdministrators, ZeroC Staff Joe GeorgeOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Could you provide a little more information about the crash your seeing. Do you have a stack trace?

    Cheers,
    Joe
  • dakotadelnortedakotadelnorte Member Roberto Orden ErenaOrganization: ZennioProject: Home automation remote
    Hi Joe,

    The crash occurs when I try:
    glacierRouter = RouterPrxHelper.checkedCast(communicator.getDefaultRouter());
    

    The JVM doesn't write any error log, and the app really doesn't crash, but it doing nothing indefinitely.

    Best regards,
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Hi Joe,

    The crash occurs when I try:
    glacierRouter = RouterPrxHelper.checkedCast(communicator.getDefaultRouter());
    

    The JVM doesn't write any error log, and the app really doesn't crash, but it doing nothing indefinitely.

    Best regards,

    That doesn't tell us very much. A stack trace would help. You could also enable network and protocol logging (Ice.Trace.Network=3, Ice.Trace.Protocol=1). Are you using SSL? Do you have a timeout set? What is the Glacier2 router proxy? Is the glacier2 port reachable? Does the android app have network permissions?
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    If your problem is caused by SSL then I just posted a patch which fixes SSL support under Lollipop with Ice 3.5.1.

    http://www.zeroc.com/forums/patches/6341-patch-8-ice-3-5-1-fix-icessl-under-android-21-java-thread-pool.html#post27366
  • dakotadelnortedakotadelnorte Member Roberto Orden ErenaOrganization: ZennioProject: Home automation remote
    Thank you very much for your help. It is solved when applied the patch.

    Best regards,
Sign In or Register to comment.