java.io.NotSerializableException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Saw this error on Extranet node 1: 2006-10-19 21:36:26.658 Tangosol Coherence 3.2/357 (Pre-release) <Error> (thread=ReplicatedCache, member=2): An exception (java .io.NotSerializableException: alt.javax.mail.SessionImpl) occurred while serializing Lease: <[com.atlassian.confluence.setup.ba ndana.ConfluenceBandanaContext@0, spaceKey='null'], atlassian.confluence.smtp.mail.accounts> (Cache=com.atlassian.bandana.Banda naPersister, Size=682, Version=0/28, IssuerId=2, HolderId=0, Status=LEASE_AVAILABLE, Last locked at Thu Oct 19 21:16:55 CDT 200 6) for CacheHandler{Name=com.atlassian.bandana.BandanaPersister, Index=48, ServiceName=ReplicatedCache, ClassLoader=WebappClass Loader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: StandardClassLoader delegate: true repositories: file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/shared/classes/ ----------> Parent Classloader: StandardClassLoader delegate: true repositories: file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/classes/ file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/endorsed/xml-apis.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/endorsed/xercesImpl.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/jsp-api.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-resources.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/ant.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-common.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-factory.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-dbcp-1.2.1.jar file:/opt/java/jars/jdbc/postgresql-8.1-407.jdbc3.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-el.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-pool-1.2.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-collections-3.1.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/ant-launcher.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/jasper-compiler.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/jasper-runtime.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/servlet-api.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-java.jar ----------> Parent Classloader: sun.misc.Launcher$AppClassLoader@7b7072 } 2006-10-19 21:36:26.658 Tangosol Coherence 3.2/357 (Pre-release) <Error> (thread=ReplicatedCache, member=2): java.io.NotSerializableException: alt.javax.mail.SessionImpl at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:986) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2100) at com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:2287) at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:3) at com.tangosol.coherence.component.net.message.LeaseMessage.writeObject(LeaseMessage.CDB:11) at com.tangosol.coherence.component.util.CacheHandler.populateUpdateMessage(CacheHandler.CDB:80) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onCacheUpdateRequest(ReplicatedC ache.CDB:32) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$CacheUpdateRequest.onReceived(Re plicatedCache.CDB:5) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:99) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onNotify(ReplicatedCache.CDB:3) at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35) at java.lang.Thread.run(Thread.java:534)
    via by Matt Ryall,
  • Saw this error on Extranet node 1: 2006-10-19 21:36:26.658 Tangosol Coherence 3.2/357 (Pre-release) <Error> (thread=ReplicatedCache, member=2): An exception (java .io.NotSerializableException: alt.javax.mail.SessionImpl) occurred while serializing Lease: <[com.atlassian.confluence.setup.ba ndana.ConfluenceBandanaContext@0, spaceKey='null'], atlassian.confluence.smtp.mail.accounts> (Cache=com.atlassian.bandana.Banda naPersister, Size=682, Version=0/28, IssuerId=2, HolderId=0, Status=LEASE_AVAILABLE, Last locked at Thu Oct 19 21:16:55 CDT 200 6) for CacheHandler{Name=com.atlassian.bandana.BandanaPersister, Index=48, ServiceName=ReplicatedCache, ClassLoader=WebappClass Loader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: StandardClassLoader delegate: true repositories: file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/shared/classes/ ----------> Parent Classloader: StandardClassLoader delegate: true repositories: file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/classes/ file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/endorsed/xml-apis.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/endorsed/xercesImpl.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/jsp-api.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-resources.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/ant.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-common.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-factory.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-dbcp-1.2.1.jar file:/opt/java/jars/jdbc/postgresql-8.1-407.jdbc3.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-el.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-pool-1.2.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/commons-collections-3.1.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/ant-launcher.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/jasper-compiler.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/jasper-runtime.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/servlet-api.jar file:/opt/j2ee/domains/atlassian.com/extranet/jakarta-tomcat-5.0.28/common/lib/naming-java.jar ----------> Parent Classloader: sun.misc.Launcher$AppClassLoader@7b7072 } 2006-10-19 21:36:26.658 Tangosol Coherence 3.2/357 (Pre-release) <Error> (thread=ReplicatedCache, member=2): java.io.NotSerializableException: alt.javax.mail.SessionImpl at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:986) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2100) at com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:2287) at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:3) at com.tangosol.coherence.component.net.message.LeaseMessage.writeObject(LeaseMessage.CDB:11) at com.tangosol.coherence.component.util.CacheHandler.populateUpdateMessage(CacheHandler.CDB:80) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onCacheUpdateRequest(ReplicatedC ache.CDB:32) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$CacheUpdateRequest.onReceived(Re plicatedCache.CDB:5) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:99) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onNotify(ReplicatedCache.CDB:3) at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35) at java.lang.Thread.run(Thread.java:534)
    via by Matt Ryall,
  • When using query-cache with named parameters, the cache (Coherence) complains about the fact that the class net.sf.hibernate.engine.TypedValue is not serializable. Here is a the persisted class mapping along with the query: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="HibernatedB" table="B"> <cache usage="read-write"/> <composite-id name="entityID" class="com.bnpparibas.power.model.EntityID" unsaved-value="any"> <key-property name="businessKey" column="businessKey"/> <key-property name="version" column="version"/> </composite-id> <timestamp name="transactionStart" column="tbeg" unsaved-value="null"/> <property name="payload"/> <property name="cBusinessKey" access="field"/> <property name="validityStart"> <column name="vbeg" sql-type="date"/> </property> <property name="validityEnd"> <column name="vend" sql-type="date"/> </property> <property name="transactionEnd" not-null="true"> <column name="tend" sql-type="timestamp" not-null="true"/> </property> <property name="status" not-null="true"> <column name="status" not-null="true"/> </property> </class> <query name="findBByBusinessKey"> <![CDATA[from HibernatedB b where b.entityID.businessKey = :businessKey and ( b.transactionEnd = TO_TIMESTAMP('31/12/9999', 'dd:mm/yyyy') or b.status = 'D' )]]> </query> </hibernate-mapping> Here is the stacktrace : (Wrapped) java.io.NotSerializableException: net.sf.hibernate.engine.TypedValue at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:978) 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.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:1309) at com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:1454) at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:3) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ConverterToInternal.convert(DistributedCache.CDB:12) at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1260) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ViewMap.get(DistributedCache.CDB:1) at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1) at com.bnpparibas.power.cache.CoherenceCache.get(CoherenceCache.java:24) at net.sf.hibernate.cache.QueryCache.get(QueryCache.java:62) at net.sf.hibernate.loader.Loader.list(Loader.java:933) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) at net.sf.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:527) [... keeps going into my code ...]
    via by Jerome Bernard,
  • POF and Invocations
    via by 635724,
  • When using query-cache with named parameters, the cache (Coherence) complains about the fact that the class net.sf.hibernate.engine.TypedValue is not serializable. Here is a the persisted class mapping along with the query: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping> <class name="HibernatedB" table="B"> <cache usage="read-write"/> <composite-id name="entityID" class="com.bnpparibas.power.model.EntityID" unsaved-value="any"> <key-property name="businessKey" column="businessKey"/> <key-property name="version" column="version"/> </composite-id> <timestamp name="transactionStart" column="tbeg" unsaved-value="null"/> <property name="payload"/> <property name="cBusinessKey" access="field"/> <property name="validityStart"> <column name="vbeg" sql-type="date"/> </property> <property name="validityEnd"> <column name="vend" sql-type="date"/> </property> <property name="transactionEnd" not-null="true"> <column name="tend" sql-type="timestamp" not-null="true"/> </property> <property name="status" not-null="true"> <column name="status" not-null="true"/> </property> </class> <query name="findBByBusinessKey"> <![CDATA[from HibernatedB b where b.entityID.businessKey = :businessKey and ( b.transactionEnd = TO_TIMESTAMP('31/12/9999', 'dd:mm/yyyy') or b.status = 'D' )]]> </query> </hibernate-mapping> Here is the stacktrace : (Wrapped) java.io.NotSerializableException: net.sf.hibernate.engine.TypedValue at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:978) 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.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:1309) at com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:1454) at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:3) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ConverterToInternal.convert(DistributedCache.CDB:12) at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1260) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ViewMap.get(DistributedCache.CDB:1) at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1) at com.bnpparibas.power.cache.CoherenceCache.get(CoherenceCache.java:24) at net.sf.hibernate.cache.QueryCache.get(QueryCache.java:62) at net.sf.hibernate.loader.Loader.list(Loader.java:933) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) at net.sf.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:527) [... keeps going into my code ...]
    via by Jerome Bernard,
    • java.io.NotSerializableException: alt.javax.mail.SessionImpl at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:986) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2100) at com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:2287) at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:3) at com.tangosol.coherence.component.net.message.LeaseMessage.writeObject(LeaseMessage.CDB:11) at com.tangosol.coherence.component.util.CacheHandler.populateUpdateMessage(CacheHandler.CDB:80) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onCacheUpdateRequest(ReplicatedCache.CDB:32) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$CacheUpdateRequest.onReceived(ReplicatedCache.CDB:5) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9) at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:99) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onNotify(ReplicatedCache.CDB:3) at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35) at java.lang.Thread.run(Thread.java:534)

    Users with the same issue

    osvzsosvzs
    6 times, last one,
    Hiren AmaliyarHiren Amaliyar
    11 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Indri YunitaIndri Yunita
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    84 more bugmates