db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5889) tests.compatibility._Suite has AccessControlException errors on Windows
Date Tue, 14 Aug 2012 20:41:38 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434490#comment-13434490
] 

Knut Anders Hatlen commented on DERBY-5889:
-------------------------------------------

Thanks. I noticed that the test code sometimes converted File to URL by using file.toURL().toExternalForm()
and other times using file.toURI().toURL().toExternalForm(). The latter does some extra escaping
of the network drive paths, so I thought maybe that could be related somehow.

But I'm wondering if this might be a product issue and not a test issue. For example, when
I try to start the network server on Windows using a derbynet.jar located on a network drive,
it refuses to start unless I specify -noSecurityManager:

C:\cygwin\home\lroot\test> java -jar \\yme\cluwin\usr\local\share\java\derby\lib\10.9.1.0\derbynet.jar
start
Tue Aug 14 22:23:33 CEST 2012 : Security manager installed using the Basic server security
policy.
Startup failed due to missing functionality for org.apache.derby.iapi.services.stream.InfoStreams.
Please ensure your classpath includes the correct Derby software.
ERROR XBM02: Startup failed due to missing functionality for org.apache.derby.iapi.services.stream.InfoStreams.
Please ensure your classpath includes the correct Derby software.
	at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(Unknown Source)
	at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown Source)
	at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
	at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
	at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
	at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
	at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	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)

I think this is supposed to work.
                
> tests.compatibility._Suite has AccessControlException errors on Windows
> -----------------------------------------------------------------------
>
>                 Key: DERBY-5889
>                 URL: https://issues.apache.org/jira/browse/DERBY-5889
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>         Environment: Windows Vista (possibly more variants)
>            Reporter: Kristian Waagan
>         Attachments: derby-5889-1a-disable_test.diff, derby-5889-2a-windows_networkdrive_paths.diff,
derby-5889-2b-windows_networkdrive_paths.diff
>
>
> The modernized compatibility test fails for certain combinations on Windows Vista.
> It is not clear to me why the failing combinations work on other platforms.
> Errors from http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/Limited/testSummary-1367634.html
:
> 1) combination(client 10.9.1.0 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.9.1.0 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 2) combination(client 10.8.2.2 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.8.2.2 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 3) combination(client 10.7.1.1 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.7.1.1 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 4) combination(client 10.6.2.1 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.6.2.1 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 5) combination(client 10.5.3.0 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.5.3.0 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 6) combination(client 10.4.2.1 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.4.2.1 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 7) combination(client 10.3.3.0 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.3.3.0 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 8) combination(client 10.2.2.1 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.2.2.1 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")
> 9) combination(client 10.1.3.1 <> server 10.10.0.0)(org.apache.derbyTesting.functionTests.tests.compatibility.ClientCompatibilityRunControl)junit.framework.AssertionFailedError:
client VM failed: :Spawned combination(client 10.1.3.1 <> server 10.10.0.0) exitCode=1
> 1) JDBCDriverTest suitejava.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1527" "connect,resolve")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message