Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.esotericsoftware.kryo.KryoException: java.util.ConcurrentModificationException #449

Closed
srvanukuri opened this issue Jul 31, 2016 · 5 comments

Comments

@srvanukuri
Copy link

I m trying to serialize a large object to a file. When using verision 4, after writing for 408 KB to the file error message is thrown with java.util.ConcurrentModificationException. I switched to version 3.0.3, it throws the same error only after writing to the file for 8 KB. Can you please let me know if there are any parameters that can get past this error.

I am using jboss 7, jdk 1.7

Error with version 4
-----------------------------

2016-07-30 23:41:00,107 ERROR stderr com.esotericsoftware.kryo.KryoException: java.util.ConcurrentModificationException
2016-07-30 23:41:00,107 ERROR stderr Serialization trace:
2016-07-30 23:41:00,107 ERROR stderr classes (org.jboss.modules.ModuleClassLoader)
2016-07-30 23:41:00,107 ERROR stderr _classloader (org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl)
2016-07-30 23:41:00,107 ERROR stderr _schemaTypeSystem (org.apache.xmlbeans.SchemaType$Ref)
2016-07-30 23:41:00,107 ERROR stderr _documentTypes (org.apache.xmlbeans.impl.schema.SchemaContainer)
2016-07-30 23:41:00,107 ERROR stderr _container (org.apache.xmlbeans.impl.schema.SchemaTypeImpl)
2016-07-30 23:41:00,107 ERROR stderr schemaType (com.resonant.cs.model.QuantifierDef)
2016-07-30 23:41:00,107 ERROR stderr innerQuantsList (com.resonant.cs.model.QuantifierDef)
2016-07-30 23:41:00,107 ERROR stderr quantifiers (com.resonant.cs.model.ModelDef)
2016-07-30 23:41:00,108 ERROR stderr model (com.resonant.cs.CStoreImpl)

2016-07-30 23:41:00,108 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:101)

2016-07-30 23:41:00,108 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,108 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,108 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,108 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:651)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:100)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40)

2016-07-30 23:41:00,109 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,110 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,111 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:651)

2016-07-30 23:41:00,111 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:100)

2016-07-30 23:41:00,111 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40)

2016-07-30 23:41:00,111 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,111 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,112 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,112 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:651)

2016-07-30 23:41:00,112 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:100)

2016-07-30 23:41:00,112 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40)

2016-07-30 23:41:00,112 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,112 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,113 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,113 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)

2016-07-30 23:41:00,113 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:41:00,113 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:505)

2016-07-30 23:41:00,113 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:557)

_Error with verison 3.0.3
----------------------------------------------------
_

2016-07-30 23:53:50,340 ERROR stderr com.esotericsoftware.kryo.KryoException: java.util.ConcurrentModificationException
2016-07-30 23:53:50,340 ERROR stderr Serialization trace:
2016-07-30 23:53:50,340 ERROR stderr classes (sun.misc.Launcher$AppClassLoader)
2016-07-30 23:53:50,340 ERROR stderr referent (java.util.ResourceBundle$LoaderReference)
2016-07-30 23:53:50,340 ERROR stderr loaderRef (java.util.ResourceBundle$CacheKey)
2016-07-30 23:53:50,341 ERROR stderr cacheKey (sun.util.logging.resources.logging)
2016-07-30 23:53:50,341 ERROR stderr catalog (java.util.logging.Logger)
2016-07-30 23:53:50,341 ERROR stderr referent (java.util.logging.LogManager$LoggerWeakRef)
2016-07-30 23:53:50,341 ERROR stderr kids (java.util.logging.LogManager$RootLogger)
2016-07-30 23:53:50,341 ERROR stderr rootLogger (org.jboss.logmanager.LogManager)
2016-07-30 23:53:50,341 ERROR stderr manager (org.jboss.logmanager.handlers.ConsoleHandler)
2016-07-30 23:53:50,341 ERROR stderr handlerRefs (org.jboss.logmanager.config.LogContextConfigurationImpl)
2016-07-30 23:53:50,341 ERROR stderr config (org.jboss.logmanager.PropertyConfigurator)
2016-07-30 23:53:50,342 ERROR stderr attachments (org.jboss.logmanager.LoggerNode)
2016-07-30 23:53:50,342 ERROR stderr rootLogger (org.jboss.logmanager.LogContext)
2016-07-30 23:53:50,342 ERROR stderr context (org.jboss.logmanager.LoggerNode)
2016-07-30 23:53:50,342 ERROR stderr loggerNode (org.jboss.logmanager.Logger)
2016-07-30 23:53:50,342 ERROR stderr jblmLogger (com.resonant.util.logging.Logger)
2016-07-30 23:53:50,342 ERROR stderr log (com.resonant.cs.propagation.objects.ConstrainedObject)
2016-07-30 23:53:50,342 ERROR stderr csObjectsMap (com.resonant.cs.CStoreImpl)

2016-07-30 23:53:50,342 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:101)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,343 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,344 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:93)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,345 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:113)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:39)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,346 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,347 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,347 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,347 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,347 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,347 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628)

2016-07-30 23:53:50,347 ERROR stderr at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:113)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:39)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,348 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606)

2016-07-30 23:53:50,349 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:100)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40)

2016-07-30 23:53:50,350 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628)

2016-07-30 23:53:50,351 ERROR stderr at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:113)

2016-07-30 23:53:50,351 ERROR stderr at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:39)

2016-07-30 23:53:50,351 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,351 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,351 ERROR stderr at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518)

2016-07-30 23:53:50,351 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:534)

2016-07-30 23:53:50,351 ERROR stderr at com.resonant.hub.ProcessImpl.serializeCStore(ProcessImpl.java:803)

2016-07-30 23:53:50,351 ERROR stderr at com.resonant.hub.ProcessImpl.getCStore(ProcessImpl.java:743)

2016-07-30 23:53:50,352 ERROR stderr at com.resonant.hub.ProcessImpl.assertChanges(ProcessImpl.java:262)

2016-07-30 23:53:50,352 ERROR stderr at com.resonant.hub.ProcessHubImpl._assert(ProcessHubImpl.java:382)

2016-07-30 23:53:50,352 ERROR stderr at com.resonant.hub.ProcessHubImpl.startProcess(ProcessHubImpl.java:168)

2016-07-30 23:53:50,352 ERROR stderr at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2016-07-30 23:53:50,352 ERROR stderr at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2016-07-30 23:53:50,352 ERROR stderr at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2016-07-30 23:53:50,352 ERROR stderr at java.lang.reflect.Method.invoke(Unknown Source)

2016-07-30 23:53:50,352 ERROR stderr at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

2016-07-30 23:53:50,353 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,353 ERROR stderr at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)

2016-07-30 23:53:50,353 ERROR stderr at com.resonant.hub.ProcessHubImpl.EMInterceptor(ProcessHubImpl.java:130)

2016-07-30 23:53:50,353 ERROR stderr at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)

2016-07-30 23:53:50,353 ERROR stderr at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2016-07-30 23:53:50,353 ERROR stderr at java.lang.reflect.Method.invoke(Unknown Source)

2016-07-30 23:53:50,353 ERROR stderr at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123)

2016-07-30 23:53:50,353 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,353 ERROR stderr at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

2016-07-30 23:53:50,354 ERROR stderr at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

2016-07-30 23:53:50,354 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,354 ERROR stderr at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

2016-07-30 23:53:50,354 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,354 ERROR stderr at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

2016-07-30 23:53:50,354 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

2016-07-30 23:53:50,355 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:200)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,356 ERROR stderr at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

2016-07-30 23:53:50,357 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:181)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

2016-07-30 23:53:50,358 ERROR stderr at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)

2016-07-30 23:53:50,358 ERROR stderr at com.resonant.api.ProcessHub$$$view3.startProcess(Unknown Source)

2016-07-30 23:53:50,359 ERROR stderr at com.resonant.hm.services.nbs.NewBusinessProcessor.processNewBusinessSubmission(NewBusinessProcessor.java:201)

2016-07-30 23:53:50,359 ERROR stderr at com.resonant.life.services.nbs.AcordNewBusinessProcessor.processMsg(AcordNewBusinessProcessor.java:119)

2016-07-30 23:53:50,359 ERROR stderr at com.resonant.life.services.nbs.AcordNewBusinessProcessor.process(AcordNewBusinessProcessor.java:80)

2016-07-30 23:53:50,359 ERROR stderr at com.resonant.life.services.nbs.AcordNewBusinessSubmissionServlet.doPost(AcordNewBusinessSubmissionServlet.java:71)

2016-07-30 23:53:50,359 ERROR stderr at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

2016-07-30 23:53:50,359 ERROR stderr at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

2016-07-30 23:53:50,359 ERROR stderr at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

2016-07-30 23:53:50,359 ERROR stderr at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

2016-07-30 23:53:50,359 ERROR stderr at org.apache.catalina.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1192)

2016-07-30 23:53:50,360 ERROR stderr at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

2016-07-30 23:53:50,360 ERROR stderr at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

2016-07-30 23:53:50,360 ERROR stderr at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

2016-07-30 23:53:50,360 ERROR stderr at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

2016-07-30 23:53:50,360 ERROR stderr at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)

2016-07-30 23:53:50,360 ERROR stderr at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

2016-07-30 23:53:50,360 ERROR stderr at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:397)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)

2016-07-30 23:53:50,361 ERROR stderr at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)

2016-07-30 23:53:50,362 ERROR stderr at java.lang.Thread.run(Unknown Source)

2016-07-30 23:53:50,362 ERROR stderr Caused by: java.util.ConcurrentModificationException

2016-07-30 23:53:50,362 ERROR stderr at java.util.Vector$Itr.checkForComodification(Unknown Source)

2016-07-30 23:53:50,362 ERROR stderr at java.util.Vector$Itr.next(Unknown Source)

2016-07-30 23:53:50,362 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:92)

2016-07-30 23:53:50,362 ERROR stderr at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40)

2016-07-30 23:53:50,363 ERROR stderr at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552)

2016-07-30 23:53:50,363 ERROR stderr at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80)

2016-07-30 23:53:50,363 ERROR stderr ... 149 more

@magro
Copy link
Collaborator

magro commented Jul 31, 2016

If you look at the stack traces you see that objects get serialized that (obviously?) shouldn't.

  1. For com.resonant.cs.model.QuantifierDef the field schemaType is serialized (org.apache.xmlbeans.impl.schema.SchemaTypeImpl), which finally results in the serialization of a classloader. You should investigate how to resolve this, an option would be to write and register a custom serializer for SchemaTypeImpl.
  2. com.resonant.cs.propagation.objects.ConstrainedObject seems to have a field of type com.resonant.util.logging.Logger which gets serialized and also results the serialization of a classloader. Here a fix might be too make the logger field static.

After all I have the impression that you just don't are aware of what's getting serialized, so I'd say it was luck that these errors popped up and require attention. You should review the whole data model / graph that's taking part in serialization and check each field of the related classes.
Kryo also provides a setting that allows only serialization of registered classes (Kryo.setRegistrationRequired), you could use this to learn what's getting serialized and to prevent future changes breaking serialization.

@magro
Copy link
Collaborator

magro commented Aug 27, 2016

Is this still relevant or can we close this issue?

@srvanukuri
Copy link
Author

Thanks much for the quick response and my apologies on not updating the status. Your advice and explanation made sense. I fixed these issues and with some other more and finally got the object serialized. However I think the object is too big and complex, I need to take a second look and do it in the right way.

@xiuhy
Copy link

xiuhy commented Sep 5, 2021

Thanks much for the quick response and my apologies on not updating the status. Your advice and explanation made sense. I fixed these issues and with some other more and finally got the object serialized. However I think the object is too big and complex, I need to take a second look and do it in the right way.

hi,i have the same question. how to fix it?

@srvanukuri
Copy link
Author

Thanks much for the quick response and my apologies on not updating the status. Your advice and explanation made sense. I fixed these issues and with some other more and finally got the object serialized. However I think the object is too big and complex, I need to take a second look and do it in the right way.

hi,i have the same question. how to fix it?

Make sure your loggers are defined as static and try to identify class members causing the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants