db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Scott" <grsc...@archivex.net>
Subject Unexpected Sealing Violation
Date Thu, 09 Oct 2008 14:28:35 GMT
Derby gurus:

I sent this to derby-user, but got no solution.  Is this a bug, or is there
a way to use the API to accomplish my needs?

I am seeing an unexpected sealing violation on
org.apache.derby.iapi.services.monitor.  There is not more than one instance
of derby.jar in the classpath (as you can verify below).

I have an application (under construction) that starts several services from
within the application.  Among these are Jetty to support a web app, and
Derby using the network server (via NetworkServerControl) instead of using
the embedded model.  These services start without incident, and as expected,
I can access the application's database externally (via ij, for instance).
However, when there's a hit on the web-app which triggers a client-side
connection to the database (using the org.apache.derby.jdbc.ClientDriver),
it barfs with "java.lang.SecurityException: sealing violation: package
org.apache.derby.iapi.services.monitor is sealed".

Can this be fixed other than by starting Derby externally to the application
(which works just fine)?

Here's what getSysinfo() spits out when after the engine is started:

Appreciate whatever enlightenment you can provide!


15:56:33 - [LtrackStartup] INFO  (DBEngine.<init>:95) - Database engine
started successfully:
--------- Derby Network Server Information --------
Version: CSS10040/ - (648739)  Build: 648739  DRDA Product Id:
-- listing properties --
------------------ Java Information ------------------
Java Version:    1.5.0_14
Java Vendor:     Sun Microsystems Inc.
Java home:       /usr/local/jdk1.5.0_14/jre
Java classpath:
OS name:         Linux
OS architecture: i386
OS version:      2.6.9-42.ELsmp
Java user name:  grscott
Java user home:  /home/grscott
Java user dir:   /opt/ltrack/bin
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[/opt/ltrack/lib/derby.jar] - (648739)
[/opt/ltrack/lib/derbynet.jar] - (648739)
[/opt/ltrack/lib/derbyclient.jar] - (648739)

View raw message