java.security.AccessControlException: access denied (java.net.SocketPermission miniserver resolve)] at org.apache.derby.impl.jdbc.authentication. JNDIAuthenticationSchemeBase.getLoginSQLException(Unknown Source) at org.apache.derby.impl.jdbc.authentication.LDAPAuthentication SchemeImpl.authenticateUser(Unknown Source) This means that a) you are running with the Java security manager enabled, and b) you need to add a missing SocketPermission to the derby.jar codebare in a policy file, cf. http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservrun.html http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservcustom.html You can temporarily run the Derby server without the security manager enabled (to test the LDAP), by starting the server with the -noSecurityManager option, cf. http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservopen.html Thanks, Dag at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase. authenticate(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials (Unknown Source)

db-derby-user | Dag H. Wanvik | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Trying to migrate to LDAP (but getting Error 08004)

    db-derby-user | 6 years ago | Dag H. Wanvik
    java.security.AccessControlException: access denied (java.net.SocketPermission miniserver resolve)] at org.apache.derby.impl.jdbc.authentication. JNDIAuthenticationSchemeBase.getLoginSQLException(Unknown Source) at org.apache.derby.impl.jdbc.authentication.LDAPAuthentication SchemeImpl.authenticateUser(Unknown Source) This means that a) you are running with the Java security manager enabled, and b) you need to add a missing SocketPermission to the derby.jar codebare in a policy file, cf. http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservrun.html http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservcustom.html You can temporarily run the Derby server without the security manager enabled (to test the LDAP), by starting the server with the -noSecurityManager option, cf. http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservopen.html Thanks, Dag at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase. authenticate(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials (Unknown Source)
  2. 0

    Re: Trying to migrate to LDAP (but getting Error 08004)

    db-derby-user | 6 years ago | Thomas
    java.security.AccessControlException: access denied (java.net.SocketPermission miniserver resolve)] at org.apache.derby.impl.jdbc.authentication. JNDIAuthenticationSchemeBase.getLoginSQLException(Unknown Source) at org.apache.derby.impl.jdbc.authentication.LDAPAuthentication SchemeImpl.authenticateUser(Unknown Source) at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase. authenticate(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials (Unknown Source)

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied (java.net.SocketPermission miniserver resolve)] at org.apache.derby.impl.jdbc.authentication. JNDIAuthenticationSchemeBase.getLoginSQLException(Unknown Source) at org.apache.derby.impl.jdbc.authentication.LDAPAuthentication SchemeImpl.authenticateUser(Unknown Source) This means that a) you are running with the Java security manager enabled, and b) you need to add a missing SocketPermission to the derby.jar codebare in a policy file, cf. http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservrun.html http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservcustom.html You can temporarily run the Derby server without the security manager enabled (to test the LDAP), by starting the server with the -noSecurityManager option, cf. http://db.apache.org/derby/docs/10.7/adminguide/tadminnetservopen.html Thanks, Dag at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase. authenticate(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials (Unknown Source)

      at org.apache.derby.impl.jdbc.EmbedConnection.<init>()
    2. Derby
      AutoloadedDriver.connect
      1. org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
      2. org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
      3. org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
      4. org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
      5. org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
      6. org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
      6 frames
    3. Apache Derby Network Server
      Database.makeConnection
      1. org.apache.derby.impl.drda.Database.makeConnection(Unknown Source)
      1 frame