java.io.NotSerializableException: alt.javax.mail.SessionImpl

Atlassian JIRA | Matt Ryall | 1 decade ago
  1. 0

    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)

    Atlassian JIRA | 1 decade ago | Matt Ryall
    java.io.NotSerializableException: alt.javax.mail.SessionImpl
  2. 0

    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)

    Atlassian JIRA | 1 decade ago | Matt Ryall
    java.io.NotSerializableException: alt.javax.mail.SessionImpl
  3. 0

    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 ...]

    Hibernate JIRA | 1 decade ago | Jerome Bernard
    java.io.NotSerializableException: net.sf.hibernate.engine.TypedValue
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Standalone java application that calls Db2

    Oracle Community | 1 decade ago | 3004
    java.io.NotSerializableException: PersonalDetails
  6. 0

    POF and Invocations

    Oracle Community | 7 years ago | 635724
    java.io.NotSerializableException: com.rightnow.chat.persistent_data.cache.client.EndUserSession

  1. kjhdofjosvs 2 times, last 1 week ago
  2. treefolk 1 times, last 1 week ago
  3. filpgame 4 times, last 1 week ago
  4. Handemelindo 15 times, last 2 weeks ago
  5. eti22 1 times, last 1 month ago
11 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.NotSerializableException

    alt.javax.mail.SessionImpl

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
    2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
    3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
    4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
    5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
    6. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    7. java.util.HashMap.writeObject(HashMap.java:986)
    8. sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
    9. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10. java.lang.reflect.Method.invoke(Method.java:324)
    11. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
    12. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
    13. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
    14. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
    15. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    15 frames
  3. com.tangosol.util
    ExternalizableHelper.writeObject
    1. com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2100)
    2. com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:2287)
    2 frames
  4. com.tangosol.coherence
    Daemon.run
    1. com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:3)
    2. com.tangosol.coherence.component.net.message.LeaseMessage.writeObject(LeaseMessage.CDB:11)
    3. com.tangosol.coherence.component.util.CacheHandler.populateUpdateMessage(CacheHandler.CDB:80)
    4. com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onCacheUpdateRequest(ReplicatedCache.CDB:32)
    5. com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$CacheUpdateRequest.onReceived(ReplicatedCache.CDB:5)
    6. com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9)
    7. com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:99)
    8. com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onNotify(ReplicatedCache.CDB:3)
    9. com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    9 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:534)
    1 frame