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 33150 - java.lang.NullPointerException when executing program
Summary: java.lang.NullPointerException when executing program
Status: CLOSED DUPLICATE of bug 33078
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-23 08:13 UTC by johnzoet
Modified: 2008-12-22 19:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
idelog (57.39 KB, text/plain)
2003-04-23 08:14 UTC, johnzoet
Details
Q.java (366 bytes, text/plain)
2003-04-23 08:15 UTC, johnzoet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnzoet 2003-04-23 08:13:44 UTC
I have a class with several package level classes.
Execute class Test => java.lang.NullPointerException

I will attach:
- ide.log
- source file Q.java
Comment 1 johnzoet 2003-04-23 08:14:37 UTC
Created attachment 10095 [details]
idelog
Comment 2 johnzoet 2003-04-23 08:15:21 UTC
Created attachment 10096 [details]
Q.java
Comment 3 Miloslav Metelka 2003-04-23 13:30:04 UTC
I've downloaded and compiled the Q.java and executed the resulting
Test class but I've got no NPE.
Could you please attach the NPE stacktrace to the issue? Thanks.
Comment 4 johnzoet 2003-04-23 22:29:03 UTC
Stack trace below:

java.lang.NullPointerException
	at org.openide.loaders.ExecutionSupport.choose(ExecutionSupport.java:355)
	at
org.openide.loaders.ExecutionSupport.startFailed(ExecutionSupport.java:108)
[catch] at
org.openide.loaders.ExecutionSupport$1.run(ExecutionSupport.java:92)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Comment 5 johnzoet 2003-04-23 22:30:41 UTC
This problem happens whenever the source file name is not the same as
the name of the executable.
For example a source file with several package level classes, one of
them has the public main method.
Comment 6 Miloslav Metelka 2003-04-28 09:20:55 UTC
Thank you for the NPE.
Reassigning to core.
Comment 7 pzajac 2003-04-28 09:36:52 UTC

*** This issue has been marked as a duplicate of 33078 ***
Comment 8 Marian Mirilovic 2003-07-23 15:51:08 UTC
verified, closed - it's duplicate.