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.
Platform setup : Product Version = NetBeans 5.5 Beta 2 (Build 200607190830) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor; Home = 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05; Sun Microsystems Inc.; D:\java\1.5.0.06\jre With a Java Web App project open and selected in the Projects window, I went to the NEW menu and selected NEW FILE. In the SUN RESOURCES category section I selected JDBC RESOURCE file type. An error message appeared with the follong stack trace. I have also posted the messages.log file below the stack trace. After I clicked OK the error message popup went away and I was able to then proceed with adding a JDBC Resource. I had previously added a connection pool to the project. Messages.log file attached.
Created attachment 33324 [details] MESSAGES.LOG file for issue 83608
Minor correction... AFTER selecting a JDBC Resource file type I clicked NEXT and then the error occurred.
Assigning to Nitya. Reporter, could you please try with the latest daily builds of NetBeans 5.5? We've done many changes since beta2, so it could be fixed by now. Thanks.
I just tried to reproduce the issue with one of the latest daily builds from Sep 08, 2006. Product Version = NetBeans 5.5 Dev (Build 200609080000) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor; Home = 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05; Sun Microsystems Inc.; D:\java\1.5.0.06\jre System Locale; Encoding = en_US (nb); Cp1252 The issue still exists. This time I selected the open Java web app project, went to New > File > Sun Resources and selected JDBC Resource. I was able to add a new JDBC Resource, defining a new JDBC COnnection Pool since none existed, and finished defining everything with no error. However, the second time I tried to do the same thing I immediately received an error as originally described in this case after selecting JDBC Resource and clicking the NEXT button. Will attach the latest message.log file in case in provides additional details.
Created attachment 33765 [details] UPDATED messages.log file for the NB 5.5 DEV Daily build from Sep-08-2006.
From the stack trace, it appears that the List containing the resource names is an immutablelist. Unfortunately, I cannot reproduce this issue on my machine. Will investigate more.
Nitya: isn't it related to the fact the user is importing the setting from 5.0? See the log entry with Importing from C:\Documents and Settings\adam\.netbeans\5.0 to C:\Documents and Settings\adam\.netbeans\5.5dev Reporter: can you try again from a fresh user dir without importing the settings?
The second log shows that the user imported settings. The first log does not show that, though it has other errors before the plugin stacktrace. Either stacktrace, I don't see the cause for the kind of exception that is thrown. Like Ludo asked, could you try a fresh userdir. Thanks
Tried again with fresh userdir on same build. Issue did not occur. However is there a mitigation for this issue? A lot of users on NB 5 will most likely import settings once they upgrade to NB 5.5.
Could not reproduce this in either 5 or 5.5 Also, server resource creation has been changed to create a single sun-resource.xml and this issue no longer occurs. Closing