Menu

#2653 FVT: java.lang.ExceptionInInitializerError during static init

Test
closed-fixed
jsr48-client
7
2013-09-19
2013-07-26
No

The fix for bug 2651 revealed an issue with initialization of the Java CIM Client:

Exception in thread "Thread-3" java.lang.ExceptionInInitializerError
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:218)
 at org.sblim.cimclient.internal.util.WBEMConfiguration.loadGlobalConfiguration(WBEMConfiguration.java:127)
 at org.sblim.cimclient.internal.util.WBEMConfiguration.<clinit>(WBEMConfiguration.java:94)
 at java.lang.J9VMInternals.initializeImpl(Native Method)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
 at org.sblim.cimclient.WBEMListenerSBLIM.<init>(WBEMListenerSBLIM.java:197)
 at javax.wbem.listener.WBEMListenerFactory.getListener(WBEMListenerFactory.java:72)
 at com.ibm.cim.test.CIM_Client.run(CIM_Client.java:112)
Caused by: java.lang.NullPointerException
 at org.sblim.cimclient.internal.logging.LogAndTraceBroker.initXmlTraceFile(LogAndTraceBroker.java:767)
 at org.sblim.cimclient.internal.logging.LogAndTraceBroker.<init>(LogAndTraceBroker.java:154)
 at org.sblim.cimclient.internal.logging.LogAndTraceBroker.<clinit>(LogAndTraceBroker.java:77)
 at java.lang.J9VMInternals.initializeImpl(Native Method)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
 ... 7 more

This is a chicken or egg issue (which comes first) as LogAndTraceBroker is dependent on WBEMConfiguration to be initialized, and WBEMConfiguration is dependent on LogAndTraceBroker to be initialized...

1 Attachments

Discussion

  • Dave Blaschke

    Dave Blaschke - 2013-07-26
    • summary: FVT: java.lang.ExceptionInInitializerError --> FVT: java.lang.ExceptionInInitializerError during static init
     
  • Dave Blaschke

    Dave Blaschke - 2013-07-26

    The exception occurs during static WBEMConfiguration initialization if there is a property in sblim-cim-client2.properties that does not start with sblim.wbem, javax.net.ssl, net.slp or slp, in which case it calls LogAndTraceBroker.isLoggingStarted() to see if it should log a trace message. This forces the LogAndTraceBroker static initializer to be run, which calls WBEMConfiguration.getGlobalConfiguration to determine if logging is enabled. Unfortunately, the global configuration has not been completely initialized - null pointer exception!

     
  • Dave Blaschke

    Dave Blaschke - 2013-07-26

    Patch sent for community review. During a 2 week period any exploiter may comment on the patch, request changes or turn it down completely (with good reason). For the time being the patch is part of the "Experimental" branch in CVS.

     
  • Dave Blaschke

    Dave Blaschke - 2013-07-26
    • status: open --> open-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2013-08-20
    • status: open-fixed --> pending-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2013-08-20

    The community review is completed and we received no substantial criticism. Therefore the patch has been approved and merged into the "HEAD" branch. The next release will pick it up.

     
  • Akbar Ali

    Akbar Ali - 2013-08-20

    I will be out of the office starting 08/20/2013 and will not return until
    08/26/2013.

    Please contact below in my absence.
    CIMP - Dinesh R Putchala
    Any MCP defects for SFCB - Vipin Nair
    Any CPS defects for CIMP - Dinesh R Putchala / Basabjit Sengupta
    For any other urgent issues, contact my manager Ravindra S Rao

     
  • Dave Blaschke

    Dave Blaschke - 2013-09-13
    • status: pending-fixed --> closed-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2013-09-13

    The patch was picked up by release 2.2.4 and will be closed.

     
  • Dave Blaschke

    Dave Blaschke - 2013-09-19
    • labels: --> Java Client (JSR48)
     

Log in to post a comment.