anjlab / eclipse-tapestry5-plugin

Eclipse Plugin for Tapestry5
Apache License 2.0
21 stars 9 forks source link

NPE after upgrading to 2.1.1 #10

Closed balapal closed 10 years ago

balapal commented 10 years ago

How to reproduce: Click anywhere in the package explorer

Message: An internal error occurred during: "Eclipse Integration for Tapestry5".

Stack trace: java.lang.NullPointerException at com.anjlab.eclipse.tapestry5.TapestryModule.findComponents(TapestryModule.java:274) at com.anjlab.eclipse.tapestry5.TapestryModule.initialize(TapestryModule.java:88) at com.anjlab.eclipse.tapestry5.TapestryProject.addModule(TapestryProject.java:241) at com.anjlab.eclipse.tapestry5.TapestryProject.addModule(TapestryProject.java:229) at com.anjlab.eclipse.tapestry5.TapestryProject.findModules(TapestryProject.java:186) at com.anjlab.eclipse.tapestry5.TapestryProject.findModules(TapestryProject.java:148) at com.anjlab.eclipse.tapestry5.TapestryProject.initialize(TapestryProject.java:52) at com.anjlab.eclipse.tapestry5.watchdog.TapestryProjectWatchdog$1$1.run(TapestryProjectWatchdog.java:69) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Session Data: eclipse.buildId=3.4.0.201310051818-RELEASE-e38 java.version=1.7.0_45 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB Framework arguments: -product org.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide

dmitrygusev commented 10 years ago

I couldn't reproduce this issue.

Please try version 2.1.2 and tell me what will be printed to the error log (Window -> Show View -> Error Log). Should be something like "Unable to evaluate LibraryMapping".

balapal commented 10 years ago

tapestryplugin_only_2 1 1_isvisible

Check for update does not detect the new version nor the New Software Install

dmitrygusev commented 10 years ago

Hmm.. maybe restart eclipse?

eclipse

dmitrygusev commented 10 years ago

You can try to delete this update site and add it again (maybe with different name), looks like this is eclipse cache.

balapal commented 10 years ago

After restart it did detect the plugin update. Thanks. The issue seems to be gone. I cannot see any entries in the Error Log view. Will let you know if I experience it again.

Thanks a lot for the quick fix.