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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
sowjanya1919
Posts: 69
Registered: ‎08-21-2012
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.

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
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
Please use plain text.
New Developer
shivam284
Posts: 100
Registered: ‎01-23-2012
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
Please use plain text.
Developer
peter_strange
Posts: 17,722
Registered: ‎07-14-2008

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. 

Please use plain text.