NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans 8.2 introduces NPE at org.netbeans.modules.j2me.common.ant.CopyLibletsTask. execute(CopyLibletsTask.java:93)

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers
View previous topic :: View next topic  
Author Message
Alexander Farber
Posted via mailing list.





PostPosted: Fri Oct 07, 2016 8:36 am    Post subject: NetBeans 8.2 introduces NPE at org.netbeans.modules.j2me.common.ant.CopyLibletsTask. execute(CopyLibletsTask.java:93) Reply with quote

Good morning,


I have a bigger ME project (with 2430 Java files) which compiles well with NetBeans 8.0.2 and 8.1, but fails to run with NetBeans 8.2.


Here is the output with "--debug" added to Maven and Ant set to "Debug" level too:

Location: D:\mod\trunk\me-projects\Ocu2MindroidMeIntegration\nbproject\build-impl.xml:463:
-do-jar-copyliblets:
Setting project property: build.classes.dir.resolved -> D:\mod\trunk\me-projects\Ocu2MindroidMeIntegration\build\classes
Set property run.classpath.without.build.classes.dir = D:\mod\trunk\me-projects\MindroidMIDlet\dist\MindroidMIDlet.jar;
Setting project property: run.classpath.without.build.classes.dir -> D:\mod\trunk\me-projects\MindroidMIDlet\dist\MindroidMIDlet.jar;
Class java.util.ArrayList loaded from parent loader (parentFirst)
Class java.lang.Boolean loaded from parent loader (parentFirst)
D:\mod\trunk\me-projects\Ocu2MindroidMeIntegration\nbproject\build-impl.xml:478:
java.lang.NullPointerException
    at org.netbeans.modules.j2me.common.ant.CopyLibletsTask.execute(CopyLibletsTask.java:93)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 2 minutes 51 seconds)
Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRepository) for type mavenrepository
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (javax/media/jai/PlanarImage) for type image
Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRepository) for type mavenrepository
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (javax/media/jai/PlanarImage) for type image


I have tried to look deeper, but couldn't find anything yet.


I post the above error in the hope, that someone well versed with NetBeans source code will spot the error.

Is maybe Roman's change http://hg.netbeans.org/main-silver/rev/812b25952dee the culprit?



Greetings from Bochum

Alex
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo