Uploaded image for project: 'Javassist'
  1. Javassist
  2. JASSIST-38

ClassFormatError 0000 6305 on OS400/jdk15


    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:


    • Affects:
      Interactive Demo/Tutorial, Compatibility/Configuration


      I have been using JBoss Seam framework and when using it on OS/400 (i-series/IBM)
      with jdk15, javassist generates an exception:
      Caused by: javassist.CannotCompileException: by
      java.lang.ClassFormatError: <mypkg>/SubCategoryRevision_$$_javassist_0
      0000 6305
      at java.lang.Throwable.<init>(Throwable.java:196)
      at java.lang.Exception.<init>(Exception.java:41)
      at javassist.CannotCompileException.<init>(CannotCompileException.java:73)
      at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:125)
      at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:169)
      ... 48 more
      Caused by: java.lang.ClassFormatError:
      <mypkg>/SubCategoryRevision_$$_javassist_0 0000 6305
      at java.lang.Throwable.<init>(Throwable.java:196)
      at java.lang.Error.<init>(Error.java:49)
      at java.lang.LinkageError.<init>(LinkageError.java:36)
      at java.lang.ClassFormatError.<init>(ClassFormatError.java:35)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:651)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:496)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:117)

      Also, when I use cglib everything works so I assume this is a javassist issue.

      When I use Hibernate alone(no Seam), it also gives me the exact same exception
      but when I change the configuration to force Hibernate to use cglib, everything works fine again.

      Also any Seam-2.0.0.GA example will generate the same exception!

      I would like to use JBoss Seam but at some point the Seam framework uses javassist.

      This problem only occurs when I use the OS400 jdk15. When I use the Sun jdk on my
      PC it all works very well.

      Any idea of how to solve this issue?

        Gliffy Diagrams




              • Assignee:
                chiba Shigeru Chiba
                mbakkali Mounir Bakkali
              • Votes:
                0 Vote for this issue
                0 Start watching this issue


                • Created: