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
Posts: 109
Registered: ‎08-21-2012
My Device: Blackberry curve
My Carrier: company

java.lang.error

when running two application in emulator, the second one throws "java.lang.error"   .if i clean the emulator then no problem. now i want to now why when two application are there,the second one throws uncaught exception.The same problemt i encountered when i install the two applications in device too.

Developer
Posts: 16,838
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: java.lang.error

any details on the error? or the uncaught exception?
maybe in the device log (alt+lglg)?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 108
Registered: ‎01-23-2012
My Device: torch,bold,curve,strom
My Carrier: Blackberry

Re: java.lang.error

I think it is due to the same packge name in both the application.

Thanks & Regards,
Kumar Shivam
Highlighted
Developer
Posts: 19,633
Registered: ‎07-14-2008
My Device: Not Specified

Re: java.lang.error

"I think it is due to the same package name in both the application."

 

Applications can share package names so there is a more fundamental problem here.

 

As Simon suggests, we need a little more information.  I would have thought that debugging would have found this.

 

One thing that occasionally trips me up is the same ID being used for RuntimeStore or PersistentStore, so that the two applications are trying to use the same ID.  I suspect something like this were something is shared that should not be is the cause.  But debug to find out what.