Note that there are some explanatory texts on larger screens.

plurals
  1. PONoClassDefFoundError thrown even after object can be created
    text
    copied!<p>I'm getting a <code>NoClassDefFoundError</code> exception on <code>org.apache.commons.logging.LogFactory</code> after I have already created an instance. I can create a <code>LogFactory</code> object just fine and get an instance of <code>org.apache.commons.logging.Log</code> from it but when creating an object of type <code>org.apache.axis.description.TypeDesc</code>, a <code>NoClassDefFoundError</code> is thrown when this class tries to get an instance of <code>org.apache.commons.logging.Log</code> from <code>LogFactory</code>. Seems like an exception should be thrown at line 284.(?)</p> <p>Here's my code (DtUiLoggingRequest lines 282 to 294);</p> <pre><code>log.debug("vvvvvvvvvvvvvvvv"); org.apache.commons.logging.LogFactory logFactory = (org.apache.commons.logging.LogFactory)LogFactory.getFactory(); Log myLog = LogFactory.getLog(DtUiLoggingRequest.class.getName()); log.debug(logFactory.getClass().getName()); log.debug(myLog.getClass().getName()); myLog.debug("This is coming from 'myLog'"); log.debug("^^^^^^^^^^^^^^^^"); typeDesc = new org.apache.axis.description.TypeDesc(DtUiLoggingRequest.class); </code></pre> <p>Here's what the log says;</p> <pre><code>DEBUG 2012-02-23 09:32:08,739 vvvvvvvvvvvvvvvv DEBUG 2012-02-23 09:32:08,739 org.apache.commons.logging.impl.LogFactoryImpl DEBUG 2012-02-23 09:32:08,739 org.apache.commons.logging.impl.Log4JLogger DEBUG 2012-02-23 09:32:08,739 ^^^^^^^^^^^^^^^^ ERROR 2012-02-23 09:32:08,739 Exception Details: java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.&lt;clinit&gt;(LogFactory.java:33) at org.apache.axis.description.TypeDesc.&lt;clinit&gt;(TypeDesc.java:61) at com.symantec.cas.ucf.sensors.DtUiLoggingRrequest.initTypeDesc(DtUiLoggingRequest.java:294) at com.symantec.cas.ucf.sensors.sap.DtUiLoggingRequest.&lt;init&gt;(DtUiLoggingRequest.java:58) at com.symantec.cas.ucf.sensors.sap.SapSensor.OpenDevice(Sensor.java:151) at com.symantec.cas.ucf.collector.SensorJob.openSensor(SensorJob.java:156) at com.symantec.cas.ucf.collector.SensorJob.run(SensorJob.java:290) at java.lang.Thread.run(Thread.java:662) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload