Topic
  • 2 replies
  • Latest Post - ‏2012-02-02T00:54:36Z by B6KA_Gilles_Fecteau
B6KA_Gilles_Fecteau
B6KA_Gilles_Fecteau
12 Posts

Pinned topic Bugcheck exception

‏2012-01-07T21:18:48Z |
I installed Express 9.7.5 on a new system and can't get the Appt sample program to work. I compiled the old local APP sample and it works fine. I am using
teh JDK 1.6.0.25
Any suggestion?

com.ibm.db2.jcc.am.BugCheckException: Origination unknown: 102613304http://3.63.75 Bug check exception thrown due to an internal JCC error. Please contact support. Message text: {0} ERRORCODE=-4228, SQLSTATE=null
at com.ibm.db2.jcc.am.fd.a(fd.java:531)
at com.ibm.db2.jcc.am.hb.<clinit>(hb.java:626)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.ibm.db2.jcc.DB2BaseDataSource.class$(DB2BaseDataSource.java:275)
at com.ibm.db2.jcc.DB2BaseDataSource.<clinit>(DB2BaseDataSource.java:275)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.ibm.db2.jcc.DB2Driver.class$(DB2Driver.java:68)
at com.ibm.db2.jcc.DB2Driver.<clinit>(DB2Driver.java:71)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at Applt.init(Applt.java:186)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
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.checkMemberAccess(Unknown Source)
at java.lang.Class.checkMemberAccess(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at com.ibm.db2.jcc.am.bf.run(bf.java:26)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.db2.jcc.am.hb.h(hb.java:650)
at com.ibm.db2.jcc.am.hb.<clinit>(hb.java:623)
... 13 more
java.sql.SQLException: Found null DefaultContext... DefaultContext not initialized or jdbc/defaultDataSource not registered in JNDI
at sqlj.runtime.error.Errors.raiseError(Errors.java:125)
at sqlj.runtime.error.Errors.raiseError(Errors.java:73)
at sqlj.runtime.error.RuntimeRefErrors.raise_NULL_DEFAULT_CONN_CTX(RuntimeRefErrors.java:184)
at Applt.paint(Applt.java:230)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.sql.SQLException: Found null DefaultContext... DefaultContext not initialized or jdbc/defaultDataSource not registered in JNDI
at sqlj.runtime.error.Errors.raiseError(Errors.java:125)
at sqlj.runtime.error.Errors.raiseError(Errors.java:73)
at sqlj.runtime.error.RuntimeRefErrors.raise_NULL_DEFAULT_CONN_CTX(RuntimeRefErrors.java:184)
at Applt.paint(Applt.java:230)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Updated on 2012-02-02T00:54:36Z at 2012-02-02T00:54:36Z by B6KA_Gilles_Fecteau
  • B6KA_Gilles_Fecteau
    B6KA_Gilles_Fecteau
    12 Posts

    Re: Bugcheck exception

    ‏2012-01-18T11:02:05Z  
    Installing JCC Fix Pack 5 (V9.7fp5_jdbc_sqlj.tar) resolved the part of the problem. I still have a timeout problem and am pursuing it on a speparate post.
  • B6KA_Gilles_Fecteau
    B6KA_Gilles_Fecteau
    12 Posts

    Re: Bugcheck exception

    ‏2012-02-02T00:54:36Z  
    Installing JCC Fix Pack 5 (V9.7fp5_jdbc_sqlj.tar) resolved the part of the problem. I still have a timeout problem and am pursuing it on a speparate post.
    After solving the timeout problem (firewall problem), I resolved the other issues by adding a POLICY file to the client userid.
    JAVA requires some authority to run the JCC package.
    First I used the "grant all". The file look like this:

    /* AUTOMATICALLY GENERATED ON Tue Jan 31 14:42:19 EST 2012*/
    /* DO NOT EDIT */

    grant {
    permission java.security.AllPermission;
    };
    But that was an overkill. I could do all I wanted (so far) with:
    /* AUTOMATICALLY GENERATED ON Wed Feb 01 15:41:36 EST 2012*/
    /* DO NOT EDIT */

    grant {
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.lang.RuntimePermission "setContextClassLoader";
    permission java.io.FilePermission "<<ALL FILES>>", "read";
    };
    The file were created with the policytool command (should be in your jre/bin)
    The file as to be ".java.POLICY" on the directory of your userid.
    On XP it is: "C:/Document and Setting/userid/.java.POLICY"
    (note the . in front of java). userid is your user ID.
    On window 7 it it:"C:/Users/userid/.java.POLICY