Page 1 of 1

NullPointerException with Eclipse 3.7 and Ext 4.x jar

Posted: Tue Oct 04, 2011 10:53 pm
by cafebabe
using the custom com.spket.js_1.6.18.jar for Ext 4.x support after installing spket in eclipse 3.7 causes a null pointer exception. Below is the stack trace

Message: An internal error occurred during: "Loading Context".

java.lang.NullPointerException
at com.spket.js.profile.ProfileLoader.getFiles3(Unknown Source)
at com.spket.js.profile.ProfileLoader.load(Unknown Source)
at com.spket.js.profile.ProfileLoader.load(Unknown Source)
at com.spket.js.profile.ProfileContext.loadClasses(Unknown Source)
at com.spket.js.model.Context$2.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

If I use the jar that comes as part of the install via the update url, it works fine.

Re: NullPointerException with Eclipse 3.7 and Ext 4.x jar

Posted: Wed Oct 05, 2011 4:31 am
by eric_suen
getFiles3 is loading jsb3, your Ext 4.x use jsb3? could you give more information?

or try run eclipse once use

Code: Select all

eclipse -clean

Re: NullPointerException with Eclipse 3.7 and Ext 4.x jar

Posted: Wed Oct 05, 2011 4:21 pm
by cafebabe
must be a matter of some error checking that is missing. It turns out that the null pointer was because I had added the jsb3 to the javascript profile but had not checked the All checkbox, nor any other checkbox. Once I checked the All checkbox the null pointer exception went away.