Giter Site home page Giter Site logo

Comments (5)

ludost avatar ludost commented on July 28, 2024

I'll see if I can add a check around it for the existence of that method.

from eve.

ludost avatar ludost commented on July 28, 2024

Can you check the latest commit to the release branch? It should protect against this issue...

from eve.

Jordi-m avatar Jordi-m commented on July 28, 2024

Thank you for the quick fix. The updated version of EVE does (still) work on the Nexus 5 and now also the Samsung SII, but for Android 2.2 it's still broken. This may be due to our use of Proguard, I'll take a look at that right now. If that doesn't work, I'll let you know.

FYI the current error on a HTC Wildfire running Android 2.2.1.

04-02 13:55:46.219    1013-1021/com.askcs.standby E/AndroidRuntime﹕ FATAL EXCEPTION: com.askcs.standby.common.MainService_fg
    java.lang.NoSuchMethodError: java.io.IOException.<init>
            at com.almende.eve.transport.xmpp.AgentConnection.connect(AgentConnection.java:161)
            at com.almende.eve.transport.xmpp.XmppService.connect(XmppService.java:307)
            at com.almende.eve.transport.xmpp.XmppService.reconnect(XmppService.java:564)
            at com.almende.eve.agent.Agent.signalAgent(Agent.java:254)
            at com.almende.eve.agent.AgentHostDefImpl.signalAgents(AgentHostDefImpl.java:111)
            at com.almende.eve.agent.AgentHostDefImpl.addTransportService(AgentHostDefImpl.java:757)
            at com.askcs.standby.common.MainService$2.run(MainService.java:409)
            at android.os.Handler.handleCallback(Handler.java:587)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:143)
            at android.os.HandlerThread.run(HandlerThread.java:60)

Update:

I guess it's unrelated to our use of Proguard, because that should have caused the same issues on Android 4.4 devices, which it doesn't.

Instant update:

Seems like it was a Proguard problem for some reason.

I've added these two Proguard exceptions in our configuration. Not sure if they are both necessary (in our configuration the second one is probably already kept):

-keep class java.util.concurrent.ConcurrentNavigableMap.** { *; }

-keep class com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.** { *; }

from eve.

Jordi-m avatar Jordi-m commented on July 28, 2024

@ludost I updated my previous comment. For now it seems like the fix solved our problem. Thank you!

Although the error is still displayed in logcat, the app does not crash:

04-02 14:19:29.649    1328-1338/com.askcs.standby E/dalvikvm﹕ Could not find class 'java.util.concurrent.ConcurrentNavigableMap', referenced from method com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.<clinit>

from eve.

ludost avatar ludost commented on July 28, 2024

Thanks!

from eve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.