<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Great analysis... This probably explains why some people see this
problem where as others don't, depending on the order of JAR files in
your CLASSPATH.<br>
<br>
Satheesh<br>
<br>
Tomohito Nakayama (JIRA) wrote:<br>
<blockquote
cite="mid928275991.1123415076411.JavaMail.jira@ajax.apache.org"
type="cite">
<pre wrap=""> [ <a class="moz-txt-link-freetext" href="http://issues.apache.org/jira/browse/DERBY-496?page=comments#action_12317906">http://issues.apache.org/jira/browse/DERBY-496?page=comments#action_12317906</a>
]
Tomohito Nakayama commented on DERBY-496:
-----------------------------------------
I found that org.apache.derby.iapi.services.diag package exists in multiple jarfile.
naka@nysalor:~/ProgramDev/derby/trunk/jars/sane$ jar tf derby.jar > derby.jar.list
naka@nysalor:~/ProgramDev/derby/trunk/jars/sane$ jar tf derbyTesting.jar > derbyTesting.jar.list
naka@nysalor:~/ProgramDev/derby/trunk/jars/sane$ grep "org.apache.derby.iapi.services.diag"
derby.jar.list
org/apache/derby/iapi/services/diag/DiagnosticUtil.class
org/apache/derby/iapi/services/diag/Diagnosticable.class
naka@nysalor:~/ProgramDev/derby/trunk/jars/sane$ grep "org.apache.derby.iapi.services.diag"
derbyTesting.jar.list
org/apache/derby/iapi/services/diag/DiagnosticUtil.class
org/apache/derby/iapi/services/diag/Diagnosticable.class
org/apache/derby/iapi/services/diag/DiagnosticableGeneric.class
naka@nysalor:~/ProgramDev/derby/trunk/jars/sane$
This seems to be the reason why SecurityException happened.
Spec says ...
A package sealed within a JAR specifies
that all classes defined in that package must originate from the same JAR.
Otherwise, a SecurityException is thrown
(citation from <a class="moz-txt-link-freetext" href="http://java.sun.com/j2se/1.4.2/docs/guide/extensions/spec.html#sealing">http://java.sun.com/j2se/1.4.2/docs/guide/extensions/spec.html#sealing</a>)
</pre>
<blockquote type="cite">
<pre wrap="">unit test 'org.apache.derbyTesting.unitTests.services.T_Diagnosticable'
was failed
----------------------------------------------------------------------------------
Key: DERBY-496
URL: <a class="moz-txt-link-freetext" href="http://issues.apache.org/jira/browse/DERBY-496">http://issues.apache.org/jira/browse/DERBY-496</a>
Project: Derby
Type: Bug
Environment: naka@nysalor:~$ cat /proc/version
Linux version 2.4.27-2-386 (<a class="moz-txt-link-abbreviated" href="mailto:horms@tabatha.lab.ultramonkey.org">horms@tabatha.lab.ultramonkey.org</a>)
(gcc version 3.3. 5 (Debian 1:3.3.5-12)) #1 Mon May 16 16:47:51 JST 2005
naka@nysalor:~$ java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
Reporter: Tomohito Nakayama
Assignee: Tomohito Nakayama
Attachments: derby.log
As summary.
I found next exception in derby.log.
[main] FAIL - org.apache.derbyTesting.unitTests.harness.T_Fail: Test failed - DiagnosticUtil.toDiagString()
failed, got: (T_DiagTestClass1.toString(): object with diag interface), expected: (D_T_DiagTestClass1:
object with diag interface).
org.apache.derbyTesting.unitTests.harness.T_Fail: Test failed - DiagnosticUtil.toDiagString()
failed, got: (T_DiagTestClass1.toString(): object with diag interface), expected: (D_T_DiagTestClass1:
object with diag interface).
at org.apache.derbyTesting.unitTests.harness.T_Fail.testFailMsg(T_Fail.java:95)
at org.apache.derbyTesting.unitTests.services.T_Diagnosticable.t_001(T_Diagnosticable.java:105)
at org.apache.derbyTesting.unitTests.services.T_Diagnosticable.runTestSet(T_Diagnosticable.java:207)
at org.apache.derbyTesting.unitTests.harness.T_MultiIterations.runTests(T_MultiIterations.java:94)
at org.apache.derbyTesting.unitTests.harness.T_Generic.Execute(T_Generic.java:117)
at org.apache.derbyTesting.unitTests.harness.BasicUnitTestManager.runATest(BasicUnitTestManager.java:183)
at org.apache.derbyTesting.unitTests.harness.BasicUnitTestManager.runTests(BasicUnitTestManager.java:245)
at org.apache.derbyTesting.unitTests.harness.BasicUnitTestManager.boot(BasicUnitTestManager.java:92)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1996)
at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:290)
at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1834)
at org.apache.derby.impl.services.monitor.BaseMonitor.startServices(BaseMonitor.java:966)
at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(BaseMonitor.java:398)
at org.apache.derby.impl.services.monitor.FileMonitor.<init>(FileMonitor.java:57)
at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Monitor.java:288)
at org.apache.derbyTesting.unitTests.harness.UnitTestMain.main(UnitTestMain.java:50)
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>
|