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 109409 - NPE from Lookup$MetaInf.lookup
Summary: NPE from Lookup$MetaInf.lookup
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM, TEST
Depends on:
Blocks:
 
Reported: 2007-07-11 19:04 UTC by Jesse Glick
Modified: 2010-04-29 09:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-07-11 19:04:23 UTC
Broke commit validation. Appears random (no obviously related changes).

java.lang.NullPointerException
	at org.netbeans.api.debugger.Lookup$MetaInf.lookup(Lookup.java:134)
	at org.netbeans.api.debugger.Lookup$Compound.lookup(Lookup.java:100)
	at org.netbeans.api.debugger.Lookup$Compound.lookup(Lookup.java:99)
	at org.netbeans.api.debugger.Lookup.lookupFirst(Lookup.java:53)
	at org.netbeans.api.debugger.DebuggerEngine.lookupFirst(DebuggerEngine.java:168)
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.getCurrentDebugger(CurrentThreadAnnotationListener.java:96)
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.updateCurrentDebugger(CurrentThreadAnnotationListener.java:78)
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:63)
	at org.netbeans.api.debugger.DebuggerManager.firePropertyChange(DebuggerManager.java:580)
	at org.netbeans.api.debugger.DebuggerManager.setCurrentSession(DebuggerManager.java:424)
	at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:361)
	at org.netbeans.api.debugger.jpda.JPDADebugger.startListening(JPDADebugger.java:187)
	at org.netbeans.modules.debugger.jpda.ant.JPDAStart$1.run(JPDAStart.java:299)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Martin Entlicher 2007-07-12 08:48:23 UTC
I do not see an apparent problem in the code, besides missing synchronization. The synchronization is likely the problem
due to the randomness of the issue.
Comment 2 Martin Entlicher 2007-07-12 08:51:12 UTC
I've added synchronization, so let's see whether it will help:

/shared/data/ccvs/repository/debuggercore/api/src/org/netbeans/api/debugger/Lookup.java,v  <--  Lookup.java
new revision: 1.15; previous revision: 1.14
Comment 3 Quality Engineering 2010-04-29 09:34:03 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.