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
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified
Accepted Solution

java.lang.NullPointerException Packaging projects

Hello,

 

I can not package any projects (even the basic project auto created as new blackberry project) on eclipse indigo with the new blackberry eclipse plugin.

 

I always get this error:

 

null
Error
Fri Nov 18 10:17:02 VET 2011
An internal error occurred during: "Packaging projects...".

java.lang.NullPointerException
 at net.rim.ejde.internal.H.M.getVMVersion(RIMEIDE:286)
 at net.rim.ejde.internal.util.V$_B.A(RIMEIDE:3008)
 at net.rim.ejde.internal.util.V$_B.compare(RIMEIDE:468)
 at java.util.Arrays.mergeSort(Arrays.java:1270)
 at java.util.Arrays.sort(Arrays.java:1210)
 at java.util.Collections.sort(Collections.java:159)
 at net.rim.ejde.internal.P.H.A(RIMEIDE:3054)
 at net.rim.ejde.internal.P.H.A(RIMEIDE:1072)
 at net.rim.ejde.internal.D.F.H(RIMEIDE:2736)
 at net.rim.ejde.internal.D.F.A(RIMEIDE:3548)
 at net.rim.ejde.internal.D.F.D(RIMEIDE:1478)
 at net.rim.ejde.internal.D.F.D(RIMEIDE:383)
 at net.rim.ejde.internal.D.A.run(RIMEIDE:1808)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
 at net.rim.ejde.internal.D.D.runInWorkspace(RIMEIDE:841)
 at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

I have tried opening app_descriptor file, restarting eclipse and have no succed,

 

Regards,

Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: java.lang.NullPointerException Packaging projects

[ Edited ]

How were the plug-ins installed?  Did you use the full installer or the update site?

 

Have you installed both the BlackBerry Java Plug-in for Eclipse and a BlackBerry Java SDK?

 

If so, can you try to create a new workspace?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
anicangu
Posts: 100
Registered: ‎01-13-2011
My Device: Not Specified

Re: java.lang.NullPointerException Packaging projects

I used update site to install the plugins.

I do create a new workspace as you recommended and could package and sign the application successfully.

 

Thanks a lot!!!

Please use plain text.
Contributor
Melad
Posts: 10
Registered: ‎07-18-2011
My Device: 8520
My Carrier: Mobinil

Re: java.lang.NullPointerException Packaging projects

Creating new workspace did the job :smileyhappy:

Thanks

Please use plain text.
Contributor
blazaphyrocqua
Posts: 39
Registered: ‎01-12-2012
My Device: Curve 9300
My Carrier: Telkomsel

Re: java.lang.NullPointerException Packaging projects

It resolves if I create a new workspace, but now I'm having RunTimeException (which didnt appear when I used the old workspace and just clicking through the NullPointerException warning) and I lost my installed JRE 6.00. 

Please use plain text.