powered by Jive Software

ArrayBlockingQueue Exception Encountered

  • I am using Smack 4.3.3 and i am getting the following ANR/crash

at java.lang.Object.wait (Object.java) waiting on <0x04b9b1eb> (a java.lang.Object) at java.lang.Thread.parkFor$ (Thread.java:2137) locked <0x04b9b1eb> (a java.lang.Object) at sun.misc.Unsafe.park (Unsafe.java:358) at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101) at java.util.concurrent.ArrayBlockingQueue.poll (ArrayBlockingQueue.java:402) at org.jivesoftware.smack.StanzaCollector.nextResult (StanzaCollector.java:195) at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow (StanzaCollector.java:259) at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow (StanzaCollector.java:219) at org.jivesoftware.smackx.vcardtemp.VCardManager.saveVCard (VCardManager.java:109) at com.blacklight.callbreak.views.myclass.MyFragment.setUserVCard (MyFragment.java:1522) at com.blacklight.callbreak.views.myclass.MyFragment$10$1.run (MyFragment.java:1103) at android.os.Handler.handleCallback (Handler.java:873) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loop (Looper.java:227) at android.app.ActivityThread.main (ActivityThread.java:7193) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:575) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:903)

Why is it happening ? Can Anyone help me out here please?

It appears that you are performing a blocking operation in your main thread.

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.