NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
cawaltrip
Joined: 02 Dec 2011 Posts: 2
|
Posted: Fri Dec 02, 2011 9:45 pm Post subject: Getting a mysql error when trying to use Derby (On Mac) |
|
|
Hi there everyone
I'm having trouble trying to connect to the Java DB server (both the preinstalled one from the glassfish installation when installing and using a standalone copy).
When I right click on Java DB and click start server this is the eror I get:
| Code: |
2011-12-02 21:25:52.671 GMT : Security manager installed using the Basic server security policy.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:582)
at com.mysql.jdbc.NonRegisteringDriver.acceptsURL(NonRegisteringDriver.java:236)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(Unknown Source)
at org.apache.derby.drda.NetworkServerControl.main(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java:667)
at com.mysql.jdbc.StringUtils.<clinit>(StringUtils.java:70)
... 7 more
|
It's strange that I'm getting an issue with mysql and for the life of me can't figure out where to look to solve this. Any help would be greatly appreciated I'm using Netbeans 7.1 on Mac OSX 10.6.8 if that makes any difference. Thanks! |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 612 Location: Simpsonville, SC
|
Posted: Tue Dec 06, 2011 2:55 am Post subject: Re: Getting a mysql error when trying to use Derby (On Mac) |
|
|
It looks like you have a mixed set of drivers for MySQL and Apache Derby (JavaDB). Which service are you trying to use MySQL, or Derby? Your remarks mention both as well.
John
On Fri, Dec 2, 2011 at 4:46 PM, cawaltrip <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi there everyone
I'm having trouble trying to connect to the Java DB server (both the preinstalled one from the glassfish installation when installing and using a standalone copy).
When I right click on Java DB and click start server this is the eror I get:
Code:
2011-12-02 21:25:52.671 GMT : Security manager installed using the Basic server security policy.
Exception in thread "main" java.lang.ExceptionInInitializerError
|
|
| Back to top |
|
 |
cawaltrip
Joined: 02 Dec 2011 Posts: 2
|
Posted: Tue Dec 06, 2011 3:21 am Post subject: |
|
|
| I'm trying to use Derby, sorry. |
|
| Back to top |
|
 |
borceg
Joined: 12 Dec 2011 Posts: 1
|
Posted: Mon Dec 12, 2011 7:58 pm Post subject: |
|
|
| just delete mysql connector from jdk installation folder. netbeans installation already provides mysql connector |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|