Menu

Incompatible magic value?

2009-05-27
2013-05-30
  • Julio Sánchez Fernández

    Well, I finally moved to MySQL, it seems that mysql was resolving localhost to an IPv6 address, using 127.0.0.1 explicitly helped a lot.

    Now I am getting something new:

    Upload result to change manager.
    Import2BasicModel/bin/transform-import-cmdb - [STDOUT] - Post URL: http://localhost:8080/onecmdb-desktop/onecmdb/change?token=1dc8ea3&history=MDR_HistoryEntry-3-1243443011262
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] - java.lang.ExceptionInInitializerError
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.onecmdb.utils.wsdl.CMDBChangeUpload.sendFiles(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.onecmdb.utils.wsdl.CMDBChangeUpload.process(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.onecmdb.utils.wsdl.AbstractCMDBCommand.start(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.onecmdb.utils.wsdl.CMDBChangeUpload.main(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at java.lang.reflect.Method.invoke(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.onecmdb.utils.classloader.RemoteClassLoader.main(Unknown Source)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] - Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassFormatError: Incompatible magic value 1231908975 in class file org/apache/log4j/spi/LoggingEvent (Caused by java.lang.ClassFormatError: Incompatible magic value 1231908975 in class file org/apache/log4j/spi/LoggingEvent)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     at org.apache.commons.httpclient.HttpMethodBase.<clinit>(HttpMethodBase.java:102)
    Import2BasicModel/bin/transform-import-cmdb - [STDERR] -     ... 9 more

    This one is pretty scary...

    Julio

     
    • Niklas Granryd

      Niklas Granryd - 2009-05-27

      Hi Julio,

      Yes, it's pretty scary... :)

      Well, I know Greg had the same problem. He restarted OneCMDB and then the problem resolved.
      See https://sourceforge.net/forum/message.php?msg_id=7381165 and the follow replies.

      This error can happen if the same class, (org/apache/log4j/spi/LoggingEvent), is found more than once in the classpath. Futhermore the different classes need to of different version...

      I will check the jar's files we distribute if this is the case.

      In the meantime just try to restart and see..

      Regards
      /Niklas

       
      • Julio Sánchez Fernández

        Oh, thanks, I'll try that.

        I should do a search next time, sometimes subject lines are not specific enough.

        Julio

         

Log in to post a comment.