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 15870

Summary: database explorer -- postgresql jdbc driver causes exception on startup
Product: db Reporter: Matthew Kennedy <matthewbk>
Component: CodeAssignee: Radko Najman <rnajman>
Status: CLOSED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: ide.log detailing the unexpected exception

Description Matthew Kennedy 2001-09-24 19:17:48 UTC
I remove nbuser32/ and my netbeans install
install netbeans 3.2.1 fomr scratch
start netbeans, setup using defaults
goto update center
update all packages (include db -- database explorer)
netbeans restarts as usual
goto runtime panel, database explorer,
click on drivers node, i get a list of driver templates etc.

^^^ all of the above is normal.

Then I proceed to install the postgresql jdbc jar
I quit netbeans
cd ~/lib/netbeans/lib/ext
ln -s /usr/share/pgsql/jdbc7.1-1.2.jar jdbc7.1-1.2.jar
then restart netbeans...

then I get the exception (attached)


I am using:

$ rpm -q redhat-release jdk postgresql postgresql-jdbc
redhat-release-7.1-1
jdk-1.3.1-fcs
postgresql-7.1.2-5PGDG
postgresql-jdbc-7.1.2-5PGDG
Comment 1 Matthew Kennedy 2001-09-24 19:19:09 UTC
Created attachment 2678 [details]
ide.log detailing the unexpected exception
Comment 2 Radko Najman 2001-09-25 10:31:33 UTC
I think the problem is that your are using a link to the JDBC driver 
jar insteand of the real driver jar and the security manager doesn't 
allow you to load the classes from the linked jar. Copy the driver to 
the lib/ext directory and it should work.
Comment 3 Radko Najman 2001-10-02 11:34:51 UTC
Closing as WORKSFORME. (for more info see the previous comment)
Comment 4 Martin Schovanek 2003-03-12 13:53:59 UTC
VERIFIED
Comment 5 Quality Engineering 2003-06-30 17:17:42 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.