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 49771 - launch netbeans, choose "open project" menu item -> NPE
Summary: launch netbeans, choose "open project" menu item -> NPE
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2004-10-01 06:07 UTC by tuc
Modified: 2004-10-05 03:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (27.27 KB, text/plain)
2004-10-01 06:11 UTC, tuc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tuc 2004-10-01 06:07:40 UTC
I'm running MacOS X 10.3.3 with Java 1.4.2 Update.

If I launch Netbeans 4.0b2, wait for it to stop
bubbling, then choose "Open Project" from the File
menu I get a NullPointerException somewhere in
Apple's aqua classes.

The dialog that pops up shows me the stack trace,
asks me to report it here, and refuses to go away.
Actually, it goes away only to immediately
reappear, requiring a force-quit to be rid of it.

I'll upload messages.log as an attachment.
Comment 1 tuc 2004-10-01 06:11:55 UTC
Created attachment 17961 [details]
messages.log
Comment 2 Dusan Balek 2004-10-01 08:21:19 UTC
Reassigning to projects.
Comment 3 Jesse Glick 2004-10-03 20:24:37 UTC
Tim, any idea what this is?

Reporter, are you using the most recent released version of the JDK
for Mac OS X?
Comment 4 _ tboudreau 2004-10-03 21:53:44 UTC
Some problem in Aqua L&F.  Does not happen on JDK 1.4.2_05-141.3, which I'm using, so 
not really anything we can do on the NetBeans end.  

I'd recommend upgrading - 1.4.2_03 is not the latest version for mac, and there are *lots* 
of fixes to bugs we reported to Apple that affect NetBeans in 1.4.2_05.
Comment 5 tuc 2004-10-04 04:59:08 UTC
I'm using 1.4.2_03-117.1, which I thought was the most recent Apple
has released. How does one get anything newer? I'm not a complete
idiot but I have no idea.

If this bug effects everyone with 1.4.2_03 and not just me, it might
be wise to mention it in the release notes and explain how to upgrade
the JDK.
Comment 6 _ tboudreau 2004-10-04 05:22:28 UTC
Sign up for the Apple Developer Connection - developer.apple.com - but Software Update 
should get you at least some version of 1.4.2_05 - it's been available for some time now.

I haven't heard of this issue before, nor did I ever see it when I was running 1.4.2_03, 
FWIW.  Looking at the stack trace, I don't see any way we could even hack around it - the 
file chooser would end up displaying no files view at best.

Possible workaround (though less pretty):  run with
-ui javax.swing.plaf.metal.MetalLookAndFeel

(you can edit this into the default settings in $NB_HOME/etc/netbeans.conf)

Sorry I can't be of more help on this, but there's really nothing I can do about this.
Comment 7 Jesse Glick 2004-10-04 17:08:46 UTC
Should warn Mac users about using obsolete JDK versions.
Comment 8 tuc 2004-10-04 17:31:20 UTC
First, there's no need to apologize. I have no personal interest in
this bug. I just reported it because in an attempt to help the
relatively small mac netbeans community. I probably won't even be
touching netbeans again until 4.0 beta 3 because of key mapping issues
(see bug#46811).

I ran the 1.4.2 updater in the first day or two it was available from
Software Update and it reports 1.4.2_03-117. It is possible that Apple
later updated the 1.4.2 updater to install a _05 build, but Software
Update does show it in its list of available update--perhaps it does
not permit installing the "same" update twice. I poked around
http://apple.com/java but couldn't find any way to update to a more
recent version. I would guess many other mac netbeans folk would be in
the same boat.

I am a member of the ADC (but only the free kind of member) but didn't
think of looking there. Poking around on the developer pages I found
Table 2 of http://developer.apple.com/technotes/tn2002/tn2110.html to
be interesting. There also seems to be a "1.4.2 Update 2" which isn't
listed in the table. I don't have access to my mac right now, so I'll
have to investigate this later.

I am a member of the ADC (but only the free kind of member) but didn't
think of looking there. Poking around on the developer pages I found
Table 2 of http://developer.apple.com/technotes/tn2002/tn2110.html to
be interesting. There also seems to be a "1.4.2 Update 2" which isn't
listed in the table. I don't have access to my mac right now, so I'll
have to investigate this later.

I am an competent Swing developer, btw, but haven't done much with the
mac LnFs.
Comment 9 _ tboudreau 2004-10-05 03:19:57 UTC
On ADC, click the "Download Software" link.  I'm the free kind of member as well, and have 
been able to get the latest 1.4.2 there.  "update 2" is probably what you want.