db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bradm6406 <bradm6...@hotmail.com>
Subject Re: Signed jar file loaded in DB
Date Thu, 28 Feb 2008 00:23:48 GMT



Daniel John Debrunner-2 wrote:
> 
> 
> Can you share the stack trace?
> 
> The only thing I can think of is you are not getting the system property 
> in a privileged block, but then that should also fail if the jar is on 
> the classpath. (assuming this is being called in both cases from a SQL 
> procedure or function implemented in Java).
> 
> Dan.
> 
> 

Okay, I think I have the full stack trace now.  The jar file I'm using is
called BcalDerbyHelpers and the function that is doing the
System.getProperty call is ftpFileDownload().  Inside the ftpFileDownload
function I have a privileged block and that is where the getProperty call is
actually being made.

Here the stack trace:

INFO   | jvm 1    | 2008/02/27 17:05:59 |
java.security.AccessControlException: access denied
(java.util.PropertyPermission derby.system.home read)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.security.AccessControlContext.checkPermission(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.security.AccessController.checkPermission(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.lang.SecurityManager.checkPermission(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.lang.System.getProperty(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
bcal.db.helper.BcalDerbyHelpers$3.run(BcalDerbyHelpers.java:2444)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
bcal.db.helper.BcalDerbyHelpers.ftpFileDownload(BcalDerbyHelpers.java:2441)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.exe.ac601a400fx0118x5ce6x7c68xffffd7e2641e24.g0(Unknown
Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.sql.execute.CallStatementResultSet.open(Unknown
Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown
Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.jdbc.EmbedCallableStatement.executeStatement(Unknown
Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.drda.DRDAStatement.execute(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | 	at
org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
INFO   | jvm 1    | 2008/02/27 17:05:59 | PrivilegedExceptionAction.
INFO   | jvm 1    | 2008/02/27 17:05:59 |
java.security.AccessControlException: access denied
(java.util.PropertyPermission derby.system.home read)


-- 
View this message in context: http://www.nabble.com/Signed-jar-file-loaded-in-DB-tp15725696p15726834.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message