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 83608 - Creating New JDBC Resource File fails
Summary: Creating New JDBC Resource File fails
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 17:31 UTC by myatt83
Modified: 2007-06-22 12:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
MESSAGES.LOG file for issue 83608 (33.42 KB, text/plain)
2006-08-28 17:31 UTC, myatt83
Details
UPDATED messages.log file for the NB 5.5 DEV Daily build from Sep-08-2006. (21.05 KB, application/octet-stream)
2006-09-11 14:54 UTC, myatt83
Details

Note You need to log in before you can comment on or make changes to this bug.
Description myatt83 2006-08-28 17:31:06 UTC
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.
Comment 1 myatt83 2006-08-28 17:31:41 UTC
Created attachment 33324 [details]
MESSAGES.LOG file for issue 83608
Comment 2 myatt83 2006-08-28 17:43:28 UTC
Minor correction... AFTER selecting a JDBC Resource file type I clicked NEXT 
and then the error occurred.
Comment 3 Petr Jiricka 2006-09-08 08:54:12 UTC
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.
Comment 4 myatt83 2006-09-11 14:50:21 UTC
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.
Comment 5 myatt83 2006-09-11 14:54:40 UTC
Created attachment 33765 [details]
UPDATED messages.log file for the NB 5.5 DEV Daily build from Sep-08-2006.
Comment 6 Nitya Doraisamy 2006-09-11 21:32:43 UTC
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.
Comment 7 _ ludo 2006-09-14 00:55:57 UTC
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?
Comment 8 Nitya Doraisamy 2006-09-14 02:46:53 UTC
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
Comment 9 myatt83 2006-10-16 15:17:13 UTC
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.
Comment 10 Nitya Doraisamy 2007-06-22 12:17:41 UTC
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