0 Replies Latest reply on Sep 20, 2011 2:25 AM by Mukesh Gulia

    Exception in thread "main" java.lang.NoSuchFieldError: TRACE

    Mukesh Gulia Newbie

      I am trying to connect to a JBoss server from a client application and getting a exception I am unable to resolve.. I have tried everything. Tried many versions of log4j, but didnt work. Please help...

       

      I have following jars in my classpath:

      /export/home/magu1/jar/dbMarginCollineFeed.jar
      /export/home/magu1/jar/magellanTemp/magellan-common.jar
      /export/home/magu1/jar/endorsed-jars/jaxb-api.jar
      /export/home/magu1/jar/endorsed-jars/jaxws-api.jar
      /export/home/magu1/jar/external-jars/activation.jar
      /export/home/magu1/jar/external-jars/antlr-2.7.6.jar
      /export/home/magu1/jar/external-jars/asm-attrs.jar
      /export/home/magu1/jar/external-jars/asm.jar
      /export/home/magu1/jar/external-jars/bw30.jar
      /export/home/magu1/jar/external-jars/c3p0-0.9.0.2.jar
      /export/home/magu1/jar/external-jars/cglib-2.1.3.jar
      /export/home/magu1/jar/external-jars/com.ibm.mq.jar
      /export/home/magu1/jar/external-jars/com.ibm.mq.jmqi.jar
      /export/home/magu1/jar/external-jars/com.ibm.mq.jmqi.local.jar
      /export/home/magu1/jar/external-jars/com.ibm.mq.jmqi.remote.jar
      /export/home/magu1/jar/external-jars/com.ibm.mq.jmqi.system.jar
      /export/home/magu1/jar/external-jars/com.ibm.mqjms.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.commonservices.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.jms.internal.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.jms.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.provider.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.wmq.common.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.wmq.factories.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.wmq.jar
      /export/home/magu1/jar/external-jars/com.ibm.msg.client.wmq.v6.jar
      /export/home/magu1/jar/external-jars/commons-beanutils.jar
      /export/home/magu1/jar/external-jars/commons-collections-2.1.1.jar
      /export/home/magu1/jar/external-jars/commons-digester-1.8.jar
      /export/home/magu1/jar/external-jars/commons-lang-2.1.jar
      /export/home/magu1/jar/external-jars/commons-logging-1.0.4.jar
      /export/home/magu1/jar/external-jars/dbCommon_3_0.jar
      /export/home/magu1/jar/external-jars/dbCore_3_0.jar
      /export/home/magu1/jar/external-jars/dbError_3_0.jar
      /export/home/magu1/jar/external-jars/dbError_4_0.jar
      /export/home/magu1/jar/external-jars/dbNaming_3_0.jar
      /export/home/magu1/jar/external-jars/dbus_3_0.jar
      /export/home/magu1/jar/external-jars/dbus_4_0.jar
      /export/home/magu1/jar/external-jars/dbusJms_3_0.jar
      /export/home/magu1/jar/external-jars/dbUtils_3_0.jar
      /export/home/magu1/jar/external-jars/dbUtils_4_0.jar
      /export/home/magu1/jar/external-jars/dbVitria_3_1_3_0.jar
      /export/home/magu1/jar/external-jars/dbVitria_3_1_4_0.jar
      /export/home/magu1/jar/external-jars/dhbcore.jar
      /export/home/magu1/jar/external-jars/dom4j-1.6.1.jar
      /export/home/magu1/jar/external-jars/ehcache-1.3.0.jar
      /export/home/magu1/jar/external-jars/F1J7Swing.jar
      /export/home/magu1/jar/external-jars/FameJDBCClient3.0.2.jar
      /export/home/magu1/jar/external-jars/freemarker.jar
      /export/home/magu1/jar/external-jars/hibernate-tools.jar
      /export/home/magu1/jar/external-jars/hibernate3.jar
      /export/home/magu1/jar/external-jars/javax.ejb_3.0.jar
      /export/home/magu1/jar/external-jars/jaxb-api.jar
      /export/home/magu1/jar/external-jars/jaxb-impl.jar
      /export/home/magu1/jar/external-jars/jaxb-xjc.jar
      /export/home/magu1/jar/external-jars/jaxen-1.1-beta-7.jar
      /export/home/magu1/jar/external-jars/jaxen-jdom.jar
      /export/home/magu1/jar/external-jars/jaxrpc-api.jar
      /export/home/magu1/jar/external-jars/jaxrpc-impl.jar
      /export/home/magu1/jar/external-jars/jaxrpc-spi.jar
      /export/home/magu1/jar/external-jars/jaxws-api.jar
      /export/home/magu1/jar/external-jars/jaxws-rt.jar
      /export/home/magu1/jar/external-jars/jaxws-tools.jar
      /export/home/magu1/jar/external-jars/jbax.jar
      /export/home/magu1/jar/external-jars/jbossall-client.jar
      /export/home/magu1/jar/external-jars/jcert.jar
      /export/home/magu1/jar/external-jars/jconfig-2.9.jar
      /export/home/magu1/jar/external-jars/jconfig.jar
      /export/home/magu1/jar/external-jars/jDacsPrincipal.jar
      /export/home/magu1/jar/external-jars/jdom.jar
      /export/home/magu1/jar/external-jars/jms.jar
      /export/home/magu1/jar/external-jars/jndi.jar
      /export/home/magu1/jar/external-jars/jnet.jar
      /export/home/magu1/jar/external-jars/jsfc_p2ps.jar
      /export/home/magu1/jar/external-jars/jsr173_1.0_api.jar
      /export/home/magu1/jar/external-jars/jsr181-api.jar
      /export/home/magu1/jar/external-jars/jsse.jar
      /export/home/magu1/jar/external-jars/jta-spec1_0_1.jar
      /export/home/magu1/jar/external-jars/jta.jar
      /export/home/magu1/jar/external-jars/jtidy-r8-20060801.jar
      /export/home/magu1/jar/external-jars/mail.jar
      /export/home/magu1/jar/external-jars/mq
      /export/home/magu1/jar/external-jars/ojdbc14.jar
      /export/home/magu1/jar/external-jars/oncrpc.jar
      /export/home/magu1/jar/external-jars/postMarkerAPI.jar
      /export/home/magu1/jar/external-jars/postMarkerGateway.jar
      /export/home/magu1/jar/external-jars/rfa.jar
      /export/home/magu1/jar/external-jars/saaj-api.jar
      /export/home/magu1/jar/external-jars/saaj-impl.jar
      /export/home/magu1/jar/external-jars/sjsxp.jar
      /export/home/magu1/jar/external-jars/sslj.jar
      /export/home/magu1/jar/external-jars/stax-ex.jar
      /export/home/magu1/jar/external-jars/streambuffer.jar
      /export/home/magu1/jar/external-jars/StreamClearAPI.jar
      /export/home/magu1/jar/external-jars/tibcrypt.jar
      /export/home/magu1/jar/external-jars/tibjms.jar
      /export/home/magu1/jar/external-jars/tibjmsadmin.jar
      /export/home/magu1/jar/external-jars/tibjmsapps.jar
      /export/home/magu1/jar/external-jars/tibmsg.jar
      /export/home/magu1/jar/external-jars/tibrvjms.jar
      /export/home/magu1/jar/external-jars/tibrvnativesd.jar
      /export/home/magu1/jar/external-jars/timeiq1.2.jar
      /export/home/magu1/jar/external-jars/TimeIQLicense1.2.jar
      /export/home/magu1/jar/external-jars/vsj-license-1.1.jar
      /export/home/magu1/jar/external-jars/vsj-standard-3.2.jar
      /export/home/magu1/jar/external-jars/wife.jar
      /export/home/magu1/jar/external-jars/xerces.jar
      /export/home/magu1/jar/external-jars/xml-apis.jar
      /export/home/magu1/jar/external-jars/xml.jar
      /export/home/magu1/jar/external-jars/xstream-1.2.2.jar
      /export/home/magu1/jar/dbMargin-jars/apache-log4j-1.2.16.zip
      /export/home/magu1/jar/dbMargin-jars/datecalc-common-1.2.0.jar
      /export/home/magu1/jar/dbMargin-jars/datecalc-jdk-1.2.0.jar
      /export/home/magu1/jar/dbMargin-jars/datecalc-joda-1.2.0.jar
      /export/home/magu1/jar/dbMargin-jars/javassist.jar
      /export/home/magu1/jar/dbMargin-jars/jboss-aop-jdk50-client.jar
      /export/home/magu1/jar/dbMargin-jars/jboss-aop-jdk50.jar
      /export/home/magu1/jar/dbMargin-jars/jboss-aspect-jdk50-client.jar
      /export/home/magu1/jar/dbMargin-jars/jboss-client.jar.zip
      /export/home/magu1/jar/dbMargin-jars/jboss-system.jar.zip
      /export/home/magu1/jar/dbMargin-jars/jboss.jar.zip
      /export/home/magu1/jar/dbMargin-jars/jbossall-client.jar
      /export/home/magu1/jar/dbMargin-jars/joda-time.jar
      /export/home/magu1/jar/dbMargin-jars/log4j-boot.jar.zip
      /export/home/magu1/jar/dbMargin-jars/trove.jar

       

      here is the stack trace

      [2011-09-20 02:07:26,690] INFO [dBusJMSClient]: Looking up connection factory ConnectionFactory

      Exception in thread "main" java.lang.NoSuchFieldError: TRACE

              at org.jboss.logging.Log4jLoggerPlugin.trace(Log4jLoggerPlugin.java:97)

              at org.jboss.logging.Logger.trace(Logger.java:131)

              at org.jboss.remoting.serialization.SerializationStreamFactory.<clinit>(SerializationStreamFactory.java:81)

              at org.jboss.invocation.unified.interfaces.JavaSerializationManager.register(JavaSerializationManager.java:80)

              at org.jboss.invocation.unified.interfaces.JavaSerializationManager.register(JavaSerializationManager.java:61)

              at org.jboss.invocation.unified.interfaces.JavaSerializationManager.<clinit>(JavaSerializationManager.java:55)

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

              at java.lang.Class.forName(Class.java:169)

              at org.jboss.invocation.MarshalledInvocation.<clinit>(MarshalledInvocation.java:68)

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

              at java.lang.Class.forName(Class.java:169)

              at org.jboss.ha.framework.server.HARMIServerImpl_Stub.class$(Unknown Source)

              at org.jboss.ha.framework.server.HARMIServerImpl_Stub.<clinit>(Unknown Source)

              at sun.misc.Unsafe.ensureClassInitialized(Native Method)

              at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)

              at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)

              at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)

              at java.lang.reflect.Field.getFieldAccessor(Field.java:899)

              at java.lang.reflect.Field.getLong(Field.java:528)

              at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1614)

              at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)

              at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)

              at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)

              at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)

              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)

              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

              at java.util.ArrayList.readObject(ArrayList.java:593)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

              at org.jboss.ha.framework.interfaces.HARMIClient.readObject(HARMIClient.java:342)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

              at java.rmi.MarshalledObject.get(MarshalledObject.java:142)

              at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:257)

              at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)

              at javax.naming.InitialContext.lookup(InitialContext.java:392)

              at com.db.mmrepo.app.messaging.dbusjms.dBusJMSClient.init(dBusJMSClient.java:85)

              at com.db.mmrepo.app.messaging.dbusjms.dBusJMSSubscriber.init(dBusJMSSubscriber.java:43)

              at com.db.mmrepo.app.MagellanDBusJMSSubscriberBase.processBase(MagellanDBusJMSSubscriberBase.java:53)

              at com.db.mmrepo.common.batch.MagellanProgramBase.process(MagellanProgramBase.java:67)

              at com.db.mmrepo.common.batch.MagellanStart.main(MagellanStart.java:51)