db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayaram Subramanian <rsjay1...@gmail.com>
Subject Re: Derby 4616-Error when working SysinfoTest.policy files
Date Fri, 28 May 2010 11:13:09 GMT
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
<rsjay1976@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
> <rsjay1976@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
>> <kmarsdenderby@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.
>>>
>>>
>>>
>>
>

Mime
View raw message