[
https://issues.apache.org/jira/browse/DERBY-5417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107854#comment-13107854
]
Dag H. Wanvik commented on DERBY-5417:
--------------------------------------
This looks like Netbeans is failing to start a Derby network server instance.
Since you say you are targeting embedded Derby, you probably don't want
Netbeans to start a network server instance (your application's VM should host
the Derby engine, not Netbean's VM).
That said, it looks like when trying to start the engine from the network
server, the driver manager doesn't have the required permission to read the
system property "file.encoding". I am not sure why this happens. The Derby
network server is normally started under the Java security manager, and it
looks like the current policy file lacks this permission. I am not sure what
policy file Netbeans uses when starting the network server.
> Unable to start Derby Server
> ----------------------------
>
> Key: DERBY-5417
> URL: https://issues.apache.org/jira/browse/DERBY-5417
> Project: Derby
> Issue Type: Bug
> Components: Build tools, JDBC, Network Server
> Affects Versions: 10.8.1.2
> Environment: Windows 7 (and fedora 15), JDK 6, NetBeans 6.8
> Reporter: amrit rathi
> Labels: newbie
>
> The following error message occurs when trying to start the Derby from
> NetBeans:
> Fri Sep 16 19:36:12 IST 2011 : 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:650)
> at com.mysql.jdbc.StringUtils.<clinit>(StringUtils.java:70)
> ... 7 more
> I posted it in the Bugs Section as I think its actually a bug after trying
> many versions of Derby right from 10.3 to 10.8, and in all versions i am
> getting this Error.
> Any Help would be appreciated as I am trying to develop an Embedded DB based
> Java Desktop Application
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira