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 39290 - Security exception is thrown when connecting to a database
Summary: Security exception is thrown when connecting to a database
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-28 07:10 UTC by Jiri Skrivanek
Modified: 2004-02-02 13:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace for DB2 (2.52 KB, text/plain)
2004-01-28 07:10 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2004-01-28 07:10:01 UTC
A security exceptions are thrown when you try to
connect to a database. It is probably because of
the system of registration of JDBC drivers. I can
see it for DB2 and MSSQL with Weblogic driver.

Tested in build 20040127-0723, JDK1.4.2_03, WindowsXP.
Comment 1 Jiri Skrivanek 2004-01-28 07:10:35 UTC
Created attachment 13108 [details]
stack trace for DB2
Comment 2 Jiri Skrivanek 2004-01-28 10:38:55 UTC
I am lowering priority because Connection to DB2 works. It was my
fault that it didn't work for me. I used a local connection profile
which doesn't work over net.
So, this issue is still valid for weblogic driver which is not supported.
Comment 3 Radko Najman 2004-01-29 08:15:41 UTC
Till it is fixed you can do the following: edit
netbeans/bin/ide.policy file and add this code

grant codeBase "file:/<directory containing your driver>/-" {
  permission java.security.AllPermission;
};


Comment 4 Jiri Skrivanek 2004-01-29 08:43:46 UTC
Yes, it works for weblogic driver.
Comment 5 Radko Najman 2004-01-30 09:18:25 UTC
Fixed.
Drivers are loaded by module own class loader.
Comment 6 Jiri Skrivanek 2004-02-02 13:10:27 UTC
Verified in build 200402011900.