DB2 and Java 
Author Message
 DB2 and Java

Can anybody tell me how to define to the java policy for a db2 instance? my
java app is throwing thw following message in the java console.

java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission ibm.db2.instance.path read)

 at java.security.AccessControlContext.checkPermission(Unknown Source)

 at java.security.AccessController.checkPermission(Unknown Source)

 at java.lang.SecurityManager.checkPermission(Unknown Source)

 at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)

 at java.lang.System.getProperty(Unknown Source)

 at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.java:170)

 at COM.ibm.db2.jdbc.app.DB2Driver.<clinit>(DB2Driver.java:129)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Unknown Source)

 at ObRun.ObDatabase.ObDatabaseMgr.connect(ObDatabaseMgr.java:132)

 at AISCMPACK.CM8x9F_ObFnc.ObRun(CM8x9F_ObFnc.java:124)

 at ObRun.ObFunction.ObLocalJavaCall.call(ObCall.java:185)

 at ObRun.ObFunction.ObCallMgr.obCallFunction(ObCallMgr.java:133)

 at ObRun.ObFunction.ObCallMgr.obCallFunction(ObCallMgr.java:111)

 at ObRun.ObFunction.ObApplication.obCallFunction(ObApplication.java:374)

 at AISCMMISC.CM9acF_ObFnc.ObSbr_CM9acF8(CM9acF_ObFnc.java:837)

 at AISCMMISC.CM9acF_ObFnc.ObSbr_CM9acF5(CM9acF_ObFnc.java:526)

 at AISCMMISC.CM9acF_ObFnc.ObSbr_CM9acF4(CM9acF_ObFnc.java:464)

 at AISCMMISC.CM9acF_ObFnc.ObRun(CM9acF_ObFnc.java:179)

 at ObRun.ObFunction.ObLocalJavaCall.call(ObCall.java:185)

 at ObRun.ObFunction.ObCallMgr.obCallFunction(ObCallMgr.java:133)

 at ObRun.ObFunction.ObCallMgr.obCallFunction(ObCallMgr.java:111)

 at ObRun.ObFunction.ObApplication.obCallFunction(ObApplication.java:374)

 at AISCMPNL.CM9asF_ObFnc.ObSbr_CM9asF29(CM9asF_ObFnc.java:5169)

 at AISCMPNL.CM9asF_ObFnc.ObSbr_CM9asF1(CM9asF_ObFnc.java:1296)

 at AISCMPNL.CM9asF_ObFnc.ObRun(CM9asF_ObFnc.java:168)

 at ObRun.ObFunction.ObLocalJavaCall.call(ObCall.java:185)

 at ObRun.ObFunction.ObCallMgr.obCallFunction(ObCallMgr.java:133)

 at ObRun.ObFunction.ObCallMgr.obCallFunction(ObCallMgr.java:111)

 at ObRun.ObFunction.ObApplication.obCallFunction(ObApplication.java:374)

 at ObRun.ObPanel.ObLaunch$ObApplet.run(ObLaunch.java:163)



Mon, 13 Sep 2004 19:59:46 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. An Overview of DB2 and Java DataBase Connectivity (JDBC)

2. DB2 and JAVA and single quotes

3. connection to db2 over java servlets

4. accessing DB2 from Java applet

5. DB2 OS390 Java SP JARs

6. Newbie Question about DB2 and Java

7. Looking for procedure on db2 using java application for scrolling to first record

8. IBM DB2: db2cc - java

9. Using DB2 with java greater than 1.1.8

10. Problems with DB2 and Java 1.3

11. Linux IBM DB2 and Java stored procedures

12. Question on: DB2/UDB JAVA API Manuals..Are there any?


 
Powered by phpBB® Forum Software