You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Jayaram Subramanian <rs...@gmail.com> on 2010/05/26 02:34:24 UTC
Derby 4616-Error when working SysinfoTest.policy files
Hi
While working on Derby 4616 (SysinfoTest prints permission errors
when printing sysinfo ) I added the following to the SyInfoTest
policy file
permission java.util.PropertyPermission "user.dir", "read";
permission java.util.PropertyPermission "user.home", "read";
permission java.util.PropertyPermission "user.name", "read";
But still the sysinfo started printing error on "java.home" read ..
So i added permission java.util.PropertyPermission "java.home",read;
in the policy file.
After that when running the java command on SysinfoTest i started
getting the following error
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)
EEEE
Time: 0.384
There were 4 errors:
1) SysinfoTest:clientjava.lang.Exception:
DRDA_LoadException.S:Unexpected exception while loading Derby JDBC
Driver:
No suitable driver
at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessageWork(NetworkServerControlImpl.java:3224)
at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessage(NetworkServerControlImpl.java:1893)
at org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(NetworkServerControlImpl.java:1005)
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.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.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.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.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.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.extensions.TestSetup.run(TestSetup.java:25)
2) SysinfoTest:clientjava.sql.SQLException: No suitable driver found
for jdbc:derby:singleUse/oneuse0
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:1449)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54)
at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
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.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.extensions.TestSetup.run(TestSetup.java:25)
3) SysinfoTest:clientjava.lang.Exception:
DRDA_LoadException.S:Unexpected exception while loading Derby JDBC
Driver:
No suitable driver
at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessageWork(NetworkServerControlImpl.java:3224)
at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessage(NetworkServerControlImpl.java:1893)
at org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(NetworkServerControlImpl.java:1005)
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.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.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.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.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.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.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.extensions.TestSetup.run(TestSetup.java:25)
4) SysinfoTest:clientjava.sql.SQLException: No suitable driver found
for jdbc:derby:singleUse/oneuse1
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:47)
at org.apache.derbyTesting.junit.TestConfiguration.openConnection(TestConfiguration.java:1449)
at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:54)
at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
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.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.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.extensions.TestSetup.run(TestSetup.java:25)
FAILURES!!!
Tests run: 0, Failures: 0, Errors: 4
With Regards
Jayaram
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Jayaram Subramanian <rs...@gmail.com>.
Hi,
After adding the following to SysinfoTest.policy file
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"
and doing following sysout in testSysinfo
System.out.println("test sysinfo"+s);
s = sed(s);
In the log found that the only exception which continues to exist is
[Java Security Exception: access denied (java.io.FilePermission . read)] <null>
With Regards
Jayaram
On Tue, Jun 1, 2010 at 7:31 PM, Kathey Marsden
<km...@sbcglobal.net> wrote:
> On 6/1/2010 5:17 PM, Jayaram Subramanian wrote:
>>
>> Hi
>> As discussed over IRC, I deleted all the jar files from the jars
>> folder, did buildjars again and was then able to run junit on sysinfo
>> without issues
>>
>
> That's great news. I think you still need to look at the test run with
> the classpath pointing to classes instead of the jars though, as I got a
> failure on the number of lines of output when run that way.
>
> Kathey
>
>
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Kathey Marsden <km...@sbcglobal.net>.
On 6/1/2010 5:17 PM, Jayaram Subramanian wrote:
> Hi
> As discussed over IRC, I deleted all the jar files from the jars
> folder, did buildjars again and was then able to run junit on sysinfo
> without issues
>
That's great news. I think you still need to look at the test run
with the classpath pointing to classes instead of the jars though, as I
got a failure on the number of lines of output when run that way.
Kathey
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Jayaram Subramanian <rs...@gmail.com>.
Hi
As discussed over IRC, I deleted all the jar files from the jars
folder, did buildjars again and was then able to run junit on sysinfo
without issues
With Regards
Jayaram
On Fri, May 28, 2010 at 6:13 AM, Jayaram Subramanian
<rs...@gmail.com> wrote:
> Hi,
> To address the issue of java.security.AccessControlException: access
> denied(java.util.PropertyPermission java.home read), i was trying to
> add java.home.read to the sysinfotest.policy file. But when trying to
> run the sysinfotest i got the following error. Also attaching the
> outfile for reference.
>
> 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)
>
> With Regards
> Jayaram
>
>
> On Thu, May 27, 2010 at 5:15 AM, Jayaram Subramanian
> <rs...@gmail.com> wrote:
>> Hi,
>> After adding the following to SysinfoTest.policy file
>> permission java.util.PropertyPermission "user.dir", "read";
>> permission java.util.PropertyPermission "user.home", "read";
>> permission java.util.PropertyPermission "user.name", "read";
>>
>> finally the following 2 errors are getting reported in running the SysInfoTest
>>
>> 1) Java home: Security Exception:
>> java.security.AccessControlException: access denied
>> (java.util.PropertyPermission java.home read)
>>
>> 2) [Java Security Exception: access denied (java.io.FilePermission .
>> read)] <null>
>>
>> Also attaching the out file of SyInfoTest for reference
>>
>> With Regards
>> Jayaram
>>
>>
>> On Tue, May 25, 2010 at 7:59 PM, Jayaram Subramanian
>> <rs...@gmail.com> wrote:
>>> Hi,
>>> Actually it was typo in the email. In the policy file i had the "" ,
>>> but the java on sysinfotest was giving the error and even when takng
>>> java.home out from policy file error continues to occur.
>>>
>>> With Regards
>>> Jayaram
>>>
>>> On Tue, May 25, 2010 at 8:43 PM, Kathey Marsden
>>> <km...@sbcglobal.net> wrote:
>>>> On 5/25/2010 5:34 PM, Jayaram Subramanian wrote:
>>>>>
>>>>> Hi
>>>>> While working on Derby 4616 (SysinfoTest prints permission errors
>>>>> when printing sysinfo ) I added the following to the SyInfoTest
>>>>> policy file
>>>>>
>>>>> permission java.util.PropertyPermission "user.dir", "read";
>>>>> permission java.util.PropertyPermission "user.home", "read";
>>>>> permission java.util.PropertyPermission "user.name", "read";
>>>>>
>>>>> But still the sysinfo started printing error on "java.home" read ..
>>>>> So i added permission java.util.PropertyPermission "java.home",read;
>>>>> in the policy file.
>>>>>
>>>>>
>>>>
>>>> I think the problem might be that there are missing double quotes around
>>>> 'read' in your new line.
>>>> The policy file won't parse so you have the terrible errors.
>>>>
>>>>
>>>>
>>>
>>
>
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Jayaram Subramanian <rs...@gmail.com>.
Hi,
To address the issue of java.security.AccessControlException: access
denied(java.util.PropertyPermission java.home read), i was trying to
add java.home.read to the sysinfotest.policy file. But when trying to
run the sysinfotest i got the following error. Also attaching the
outfile for reference.
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)
With Regards
Jayaram
On Thu, May 27, 2010 at 5:15 AM, Jayaram Subramanian
<rs...@gmail.com> wrote:
> Hi,
> After adding the following to SysinfoTest.policy file
> permission java.util.PropertyPermission "user.dir", "read";
> permission java.util.PropertyPermission "user.home", "read";
> permission java.util.PropertyPermission "user.name", "read";
>
> finally the following 2 errors are getting reported in running the SysInfoTest
>
> 1) Java home: Security Exception:
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission java.home read)
>
> 2) [Java Security Exception: access denied (java.io.FilePermission .
> read)] <null>
>
> Also attaching the out file of SyInfoTest for reference
>
> With Regards
> Jayaram
>
>
> On Tue, May 25, 2010 at 7:59 PM, Jayaram Subramanian
> <rs...@gmail.com> wrote:
>> Hi,
>> Actually it was typo in the email. In the policy file i had the "" ,
>> but the java on sysinfotest was giving the error and even when takng
>> java.home out from policy file error continues to occur.
>>
>> With Regards
>> Jayaram
>>
>> On Tue, May 25, 2010 at 8:43 PM, Kathey Marsden
>> <km...@sbcglobal.net> wrote:
>>> On 5/25/2010 5:34 PM, Jayaram Subramanian wrote:
>>>>
>>>> Hi
>>>> While working on Derby 4616 (SysinfoTest prints permission errors
>>>> when printing sysinfo ) I added the following to the SyInfoTest
>>>> policy file
>>>>
>>>> permission java.util.PropertyPermission "user.dir", "read";
>>>> permission java.util.PropertyPermission "user.home", "read";
>>>> permission java.util.PropertyPermission "user.name", "read";
>>>>
>>>> But still the sysinfo started printing error on "java.home" read ..
>>>> So i added permission java.util.PropertyPermission "java.home",read;
>>>> in the policy file.
>>>>
>>>>
>>>
>>> I think the problem might be that there are missing double quotes around
>>> 'read' in your new line.
>>> The policy file won't parse so you have the terrible errors.
>>>
>>>
>>>
>>
>
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Jayaram Subramanian <rs...@gmail.com>.
Hi,
After adding the following to SysinfoTest.policy file
permission java.util.PropertyPermission "user.dir", "read";
permission java.util.PropertyPermission "user.home", "read";
permission java.util.PropertyPermission "user.name", "read";
finally the following 2 errors are getting reported in running the SysInfoTest
1) Java home: Security Exception:
java.security.AccessControlException: access denied
(java.util.PropertyPermission java.home read)
2) [Java Security Exception: access denied (java.io.FilePermission .
read)] <null>
Also attaching the out file of SyInfoTest for reference
With Regards
Jayaram
On Tue, May 25, 2010 at 7:59 PM, Jayaram Subramanian
<rs...@gmail.com> wrote:
> Hi,
> Actually it was typo in the email. In the policy file i had the "" ,
> but the java on sysinfotest was giving the error and even when takng
> java.home out from policy file error continues to occur.
>
> With Regards
> Jayaram
>
> On Tue, May 25, 2010 at 8:43 PM, Kathey Marsden
> <km...@sbcglobal.net> wrote:
>> On 5/25/2010 5:34 PM, Jayaram Subramanian wrote:
>>>
>>> Hi
>>> While working on Derby 4616 (SysinfoTest prints permission errors
>>> when printing sysinfo ) I added the following to the SyInfoTest
>>> policy file
>>>
>>> permission java.util.PropertyPermission "user.dir", "read";
>>> permission java.util.PropertyPermission "user.home", "read";
>>> permission java.util.PropertyPermission "user.name", "read";
>>>
>>> But still the sysinfo started printing error on "java.home" read ..
>>> So i added permission java.util.PropertyPermission "java.home",read;
>>> in the policy file.
>>>
>>>
>>
>> I think the problem might be that there are missing double quotes around
>> 'read' in your new line.
>> The policy file won't parse so you have the terrible errors.
>>
>>
>>
>
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Jayaram Subramanian <rs...@gmail.com>.
Hi,
Actually it was typo in the email. In the policy file i had the "" ,
but the java on sysinfotest was giving the error and even when takng
java.home out from policy file error continues to occur.
With Regards
Jayaram
On Tue, May 25, 2010 at 8:43 PM, Kathey Marsden
<km...@sbcglobal.net> wrote:
> On 5/25/2010 5:34 PM, Jayaram Subramanian wrote:
>>
>> Hi
>> While working on Derby 4616 (SysinfoTest prints permission errors
>> when printing sysinfo ) I added the following to the SyInfoTest
>> policy file
>>
>> permission java.util.PropertyPermission "user.dir", "read";
>> permission java.util.PropertyPermission "user.home", "read";
>> permission java.util.PropertyPermission "user.name", "read";
>>
>> But still the sysinfo started printing error on "java.home" read ..
>> So i added permission java.util.PropertyPermission "java.home",read;
>> in the policy file.
>>
>>
>
> I think the problem might be that there are missing double quotes around
> 'read' in your new line.
> The policy file won't parse so you have the terrible errors.
>
>
>
Re: Derby 4616-Error when working SysinfoTest.policy files
Posted by Kathey Marsden <km...@sbcglobal.net>.
On 5/25/2010 5:34 PM, Jayaram Subramanian wrote:
> Hi
> While working on Derby 4616 (SysinfoTest prints permission errors
> when printing sysinfo ) I added the following to the SyInfoTest
> policy file
>
> permission java.util.PropertyPermission "user.dir", "read";
> permission java.util.PropertyPermission "user.home", "read";
> permission java.util.PropertyPermission "user.name", "read";
>
> But still the sysinfo started printing error on "java.home" read ..
> So i added permission java.util.PropertyPermission "java.home",read;
> in the policy file.
>
>
I think the problem might be that there are missing double quotes
around 'read' in your new line.
The policy file won't parse so you have the terrible errors.