Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel
Accepted Solution

JVM Error 104 Uncaught: ClassCastException

Hi all,

 

    When i execute an application on simulator, In between Startup simulator displays an error like below......

 

    JVM Error 104

   Uncaught : ClassCastException

 

Why it is so?

 

Thanks and Regards.

 

 

Please use plain text.
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

Re: JVM Error 104 Uncaught: ClassCastException

A bit more explanation of the abaove mentioned problem, i found on debugging. Some lines of  stack trace i am posting below.... Please let me know what caused this error to occur...

 

.
.
.
.
Thread [net_rim_bb_timeddialogapp(50)id=77000704] (Running)	
Thread [net_rim_bb_recentcontacts_lib(74)id=104701952] (Running)	
Thread [net_rim_bb_addressbook_app(66)id=100938752] (Running)	
Thread [net_rim_bb_browser_daemon(89)id=111150080] (Running)	
Thread [net_rim_bb_messagesearch_lib(73)id=104677376] (Running)	
Thread [net_rim_bb_ribbon_app(71)id=103203840] (Running)	
Thread [net_rim_services_impl(11)id=156593152] (Suspended (exception ClassCastException))	
	ReliableTransmissionHelper.<init>(ReliableTransmissionListener, String, TransmissionService) line: 105	
	OTAMessageSync.run() line: 182	
	Thread.run() line: 379	
Thread [net_rim_tid_fullPredictive(76)id=108021760] (Running)	
Thread [net_rim_services_impl(27)id=21481472] (Running)	
Thread [net_rim_bb_timeddialogapp(50)id=77712384] (Running)	
Thread [net_rim_services_impl(11)id=1145856] (Running)	
Thread [net_rim_services_impl(27)id=952320] (Running)	
Thread [net_rim_services_impl(11)id=69607424] (Running)	
Thread [net_rim_services_impl(11)id=35197952] (Running)
.
.
.
.
.

 

 

 

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: JVM Error 104 Uncaught: ClassCastException

Does this happen if you clean the Simulator and run it with none of your applications included?

Please use plain text.
Developer
maniBB
Posts: 95
Registered: ‎07-24-2013
My Device: 9380
My Carrier: Airtel

Re: JVM Error 104 Uncaught: ClassCastException

Hi Peter,

 

      Sorry for replying late. I have just seen your post and tried to execute my application after cleaning the simulator. It worked fine for now.  Actually on seeing the stack trace (specially this line  ReliableTransmissionHelper.<init>(ReliableTransmissionListener, String, TransmissionService) line: 105 ), I could not think that cleaning the simulator could be the solution.....  :smileywink:

 

Thank you very much.

Please use plain text.