Anyway the fix works, now deserialization breaks :(
Somehow the CGLIBLazyInitializer can not be initialized. I think it misses the empty constructor.
As this issue is blocking a delivery of a software of us i have to shift my attention now to export cglib removed code.
I will write a code now that will just strip all cglib code (passing the real objects)
maybe later I have time to fix the deserialization.
greets John
12:16:18,906 ERROR [STDERR] Caused by: org.jboss.serial.exception.SerializationException
12:16:18,906 ERROR [STDERR] at org.jboss.serial.persister.PrivateWritePersister.readData(PrivateWritePersister.java:119)
12:16:18,906 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:141)
12:16:18,906 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:40)
12:16:18,906 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:644)
12:16:18,921 ERROR [STDERR] at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:70)
12:16:18,921 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
12:16:18,921 ERROR [STDERR] at org.jboss.serial.io.MarshalledObject.get(MarshalledObject.java:68)
12:16:18,921 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:61)
12:16:18,921 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
12:16:18,921 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
12:16:18,937 ERROR [STDERR] ... 42 more
12:16:18,937 ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException
12:16:18,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:16:18,937 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:16:18,937 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:16:18,937 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
12:16:18,937 ERROR [STDERR] at org.jboss.serial.persister.PrivateWritePersister.readData(PrivateWritePersister.java:109)
12:16:18,953 ERROR [STDERR] ... 51 more
12:16:18,953 ERROR [STDERR] Caused by: org.jboss.serial.exception.SerializationException: Could not create instance of org.hibernate.proxy.CGLIBLazyInitializer - org.hibernate.proxy.CGLIBLazyInitializer
12:16:18,953 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:223)
12:16:18,953 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:134)
12:16:18,953 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:141)
12:16:18,968 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:40)
12:16:18,968 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:644)
12:16:18,968 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:189)
12:16:18,968 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:136)
12:16:18,968 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:141)
12:16:18,968 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:40)
12:16:18,984 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:644)
12:16:18,984 ERROR [STDERR] at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:174)
12:16:18,984 ERROR [STDERR] at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:150)
12:16:18,984 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:141)
12:16:18,984 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:40)
12:16:19,015 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:644)
12:16:19,031 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:189)
12:16:19,031 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:136)
12:16:19,031 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:141)
12:16:19,031 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:40)
12:16:19,046 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:644)
12:16:19,046 ERROR [STDERR] at org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride(ObjectInputStreamProxy.java:50)
12:16:19,046 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
12:16:19,046 ERROR [STDERR] at java.util.Hashtable.readObject(Hashtable.java:848)
12:16:19,078 ERROR [STDERR] ... 56 more
12:16:19,078 ERROR [STDERR] Caused by: java.lang.InstantiationException: org.hibernate.proxy.CGLIBLazyInitializer
12:16:19,078 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:335)
12:16:19,093 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:303)
12:16:19,093 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:215)
12:16:19,093 ERROR [STDERR] ... 78 more
12:16:20,937 INFO [STDOUT] java.lang.reflect.UndeclaredThrowableException