db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayaram Subramanian (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4616) SysinfoTest prints permission errors when printing sysinfo
Date Fri, 28 May 2010 11:48:39 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jayaram Subramanian updated DERBY-4616:
---------------------------------------

    Attachment: sysinfotestpolicy_donotcommit.txt
                statsysinfotestpolicy.txt

Sysinfotestpolicy file has been updated with 4 new permission related lines. 
permission java.util.PropertyPermission "user.dir", "read";
  permission java.util.PropertyPermission "user.home", "read";
  permission java.util.PropertyPermission "user.name", "read";
  permission java.util.PropertyPermission "java.home", "read";
  
But adding java.home is resulting in 
Default implementation list not found
XBM02.D : [0] org.apache.derby.iapi.services.stream.InfoStreams
ERROR XBM02: XBM02.D : [0] org.apache.derby.iapi.services.stream.InfoStreams
	at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:286)
	at org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(Monitor.java:672)
	at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:325)
	at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:573)
	at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Monitor.java:366)
	at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(BaseMonitor.java:386)
	at org.apache.derby.impl.services.monitor.FileMonitor.<init>(FileMonitor.java:60)
	at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Monitor.java:289)
	at org.apache.derby.iapi.jdbc.JDBCBoot.boot(JDBCBoot.java:69)
	at org.apache.derby.jdbc.EmbeddedDriver.boot(EmbeddedDriver.java:199)
	at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(EmbeddedDriver.java:96)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(NetworkServerControlImpl.java:999)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.start(NetworkServerControlImpl.java:645)
	at org.apache.derby.drda.NetworkServerControl.start(NetworkServerControl.java:369)
	at org.apache.derbyTesting.junit.NetworkServerTestSetup.startWithAPI(NetworkServerTestSetup.java:229)
	at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerTestSetup.java:191)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.textui.TestRunner.doRun(TestRunner.java:121)
	at junit.textui.TestRunner.start(TestRunner.java:185)
	at junit.textui.TestRunner.main(TestRunner.java:143)


> SysinfoTest prints permission errors when printing sysinfo
> ----------------------------------------------------------
>
>                 Key: DERBY-4616
>                 URL: https://issues.apache.org/jira/browse/DERBY-4616
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0
>            Reporter: Jayaram Subramanian
>            Assignee: Jayaram Subramanian
>            Priority: Minor
>         Attachments: statsysinfotestpolicy.txt, sysinfotestpolicy_donotcommit.txt
>
>
> When running sysinfo test got the following permission error when printing information
from TestSysinfoLocale method
> Java Version:    1.6.0_14
> Java Vendor:     Sun Microsystems Inc.
> Java home:       Security Exception: java.security.AccessControlException: access denied
(java.util.PropertyPermission java.home read)
> Java classpath:  .;C:/java/Derby/source/trunk/jars/sane/derby/derbyLocale_cs.jar;C:/java/Derby/source/trunk/tools/java/junit.jar;C:/java/Derby/source/trunk/jars/sane/derbyclient.jar;C:/java/Derby/source/trunk/jars/sane/derbynet.jar;C:/java/Derby/source/trunk/jars/sane/derbyrun.jar;C:/java/Derby/source/trunk/jars/sane/derbytesting.jar;C:/java/Derby/source/trunk/jars/sane/derbytools.jar;C:/java/Derby/source/trunk/jars/sane/derby.jar;
> OS name:         Windows Vista
> OS architecture: x86
> OS version:      6.0
> Java user name:  Security Exception: java.security.AccessControlException: access denied
(java.util.PropertyPermission user.name read)
> Java user home:  Security Exception: java.security.AccessControlException: access denied
(java.util.PropertyPermission user.home read)
> Java user dir:   C:\java\derby\source\trunk
> java.specification.name: Java Platform API Specification

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message