This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 211431 - NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init>
Summary: NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDesc...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-19 08:41 UTC by sunbiz
Modified: 2012-04-24 10:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187165


Attachments
stacktrace (10.98 KB, text/plain)
2012-04-19 08:42 UTC, sunbiz
Details
stacktrace (11.05 KB, text/plain)
2012-04-19 18:32 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-04-19 08:41:59 UTC
Build: NetBeans IDE Dev (Build 201204160400)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
sunbiz: Go to Spring bean and searching in the Type name threw this exception




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init>(BeanTypeDescriptor.java:58)
   at org.netbeans.modules.spring.beans.jumpto.SpringBeansTypeProvider$2.run(SpringBeansTypeProvider.java:206)
   at org.netbeans.modules.spring.beans.jumpto.SpringBeansTypeProvider$2.run(SpringBeansTypeProvider.java:199)
   at org.netbeans.modules.spring.beans.model.impl.SpringModelImplementation$1.call(SpringModelImplementation.java:70)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runCallable(AnnotationModelHelper.java:257)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.access$100(AnnotationModelHelper.java:85)
Comment 1 sunbiz 2012-04-19 08:42:04 UTC
Created attachment 118491 [details]
stacktrace
Comment 2 Martin Fousek 2012-04-19 18:32:25 UTC
Created attachment 118536 [details]
stacktrace
Comment 3 Martin Fousek 2012-04-20 08:21:29 UTC
Thanks a lot for reporting! As I was afraid your NPE was most probably related to Spring beans just on the classpath of your project. So there were two ways - omit such beans or find them inside JAR archives.

I chosen the more diligent one and let's see what about the performance of this solution, but I think that it should be ok, since it's loaded/initialized just once or by bean's changes.

Anyway fixed in web-main #02d15c86c3b4. If I could ask you please re-try it in builds where the fix will be available. Thanks a lot!
Comment 4 Quality Engineering 2012-04-21 09:59:01 UTC
Integrated into 'main-golden', will be available in build *201204210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/02d15c86c3b4
User: Martin Fousek <marfous@netbeans.org>
Log: #211431 - NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init>
Comment 5 Quality Engineering 2012-04-24 10:02:10 UTC
Integrated into 'main-golden', will be available in build *201204240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1393557f92d7
User: Martin Fousek <marfous@netbeans.org>
Log: #211431 - NullPointerException at org.netbeans.modules.spring.beans.jumpto.BeanTypeDescriptor.<init> - fixed test