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 69612 - SIOOBE is thrown for Derby URL without port specified
Summary: SIOOBE is thrown for Derby URL without port specified
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 13:05 UTC by Petr Blaha
Modified: 2006-02-17 12:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (928 bytes, text/plain)
2005-11-30 13:06 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-11-30 13:05:20 UTC
[build 20051129]
Steps:
1) create new JDBC connection to derby database without specifying port, e.g.
jdbc:derby://localhost/your_db and test this connection in db explorer
2) have EJB module
3) add session bean
4) in session bean invoke Enterprise resources -> Use database
5) select this connection and click OK
ERROR: get exception and sun resources are not created.
Since connection without port is valid and Derby is primary database for NB 5.0
the issue should be fixed in NB 5.0 FCS.
Comment 1 Petr Blaha 2005-11-30 13:06:19 UTC
Created attachment 27433 [details]
stack trace
Comment 2 Nitya Doraisamy 2005-11-30 17:14:51 UTC
The plugin should provide a better error popup. But I don't think this will be a
valid appserver connection pool resource. The port number will be required for
this resource to be used by an app when deployed to the server. 
Comment 3 _ ludo 2005-12-06 04:27:48 UTC
In this case, default this value ot the default port number of derby in the server.
To get this value, you can check the default connection pool already registered
in 8.2 and get the port number from there when the server is running.
Or you put some default value.
Comment 4 Nitya Doraisamy 2005-12-09 01:39:25 UTC
Fixed url parse to handle variuos types of url. Also using default values for
derby when port and username/password are not available
Comment 5 Petr Blaha 2006-02-17 12:02:43 UTC
build 200602072300