[ http://issues.apache.org/jira/browse/DERBY-1687?page=all ]
Andrew McIntyre resolved DERBY-1687. ------------------------------------ Resolution: Fixed I accidentally applied the changes to build.xml as part of the final patch to DERBY-1032. However, I believe the approach is correct, there were no negative comments, and it has not caused any test failures. I have verified that the change was merged to the 10.2 branch. So, marking this resolved as fixed in 10.2.1.0. > sealing violation: can't seal package org.apache.derby.iapi.services.context: > already loaded with 10.2.1.0 beta > --------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1687 > URL: http://issues.apache.org/jira/browse/DERBY-1687 > Project: Derby > Issue Type: Bug > Affects Versions: 10.2.1.0 > Environment: Class path order for derby jars > "${derby}/derbyclient.jar:${derby}/derbynet.jar:${derbytest}/derbyTesting.jar:${derby}/derbytools.jar" > Reporter: Daniel John Debrunner > Assigned To: Andrew McIntyre > Fix For: 10.2.1.0 > > Attachments: derby-1687-v1.diff > > > Downloaded db-derby-10.2.1.0-bin.zip and hit this sealing error when running > test lang/insert.sql in DerbyNetClient framework. > Also see on the trunk with self-built jars. > Exception in thread "main" java.lang.ExceptionInInitializerError > at java.lang.Class.forName1(Native Method) > at java.lang.Class.forName(Class.java:180) > at org.apache.derby.impl.tools.ij.util.loadDriver(Unknown Source) > at org.apache.derby.impl.tools.ij.util.startJBMS(Unknown Source) > at org.apache.derby.impl.tools.ij.util.startJBMS(Unknown Source) > at org.apache.derby.impl.tools.ij.ConnectionEnv.init(Unknown Source) > at org.apache.derby.impl.tools.ij.utilMain.initConnections(Unknown > Sourc > e) > at org.apache.derby.impl.tools.ij.Main.<init>(Unknown Source) > at org.apache.derby.impl.tools.ij.Main14.<init>(Unknown Source) > at org.apache.derby.impl.tools.ij.Main14.getMain(Unknown Source) > at org.apache.derby.impl.tools.ij.Main.mainCore(Unknown Source) > at org.apache.derby.impl.tools.ij.Main14.main(Unknown Source) > at org.apache.derby.tools.ij.main(Unknown Source) > Caused by: java.lang.SecurityException: sealing violation: can't seal package > or > g.apache.derby.iapi.services.context: already loaded > at java.net.URLClassLoader.defineClass(URLClassLoader.java:412) > at java.net.URLClassLoader.access$500(URLClassLoader.java:109) > at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:848) > at java.security.AccessController.doPrivileged1(Native Method) > at > java.security.AccessController.doPrivileged(AccessController.java:389 > ) > at java.net.URLClassLoader.findClass(URLClassLoader.java:371) > at java.lang.ClassLoader.loadClass(ClassLoader.java:572) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442) > at java.lang.ClassLoader.loadClass(ClassLoader.java:504) > at > org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown S > ource) > 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) > ... 13 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira