3 Replies Latest reply: Mar 1, 2013 5:57 AM by 984014 RSS

    java.io.NotSerializableException

    984014
      Hi I'm getting below error messages, this only happened if i turn on both of our soa cluster, this not happening if only one cluster is up.

      Anyone encounter this error before ?

      Is this due to the replication issue ?

      Thanks in advance.

      <Error> <oracle.adfinternal.controller.state.SessionBasedScopeMap> <BEA-000000> <
      java.io.NotSerializableException: com.inspyrus.musicgroup.eprf.workflow.ui.bean.ManagePurchaseRequests
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at oracle.adfinternal.controller.util.Utils.verifySerializable(Utils.java:341)
           at oracle.adfinternal.controller.state.SessionBasedScopeMap.writeScopeMap(SessionBasedScopeMap.java:122)
           at oracle.adfinternal.controller.state.PageFlowScope.writeObject(PageFlowScope.java:156)
           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.lang.reflect.Method.invoke(Method.java:597)
           at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
           at sun.reflect.GeneratedMethodAccessor1657.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
           at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at weblogic.servlet.internal.session.ReplicatedSessionChange.writeExternal(ReplicatedSessionChange.java:153)
           at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1429)
           at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1398)
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
           at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:618)
           at weblogic.rjvm.MsgAbbrevOutputStream.writeObjectWL(MsgAbbrevOutputStream.java:609)
           at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:38)
           at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:88)
           at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:221)
           at weblogic.cluster.replication.ReplicationManager_1035_WLStub.update(Unknown Source)
           at sun.reflect.GeneratedMethodAccessor1662.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at
      weblogic.cluster.replication.SecureReplicationInvocationHandler$ReplicationServicesInvocationAction.run(SecureReplicationInvocationHandler.java:194)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.cluster.replication.SecureReplicationInvocationHandler.invoke(SecureReplicationInvocationHandler.java:164)
           at $Proxy466.update(Unknown Source)
           at weblogic.cluster.replication.ReplicationManager.sendUpdateRequestToSecondary(ReplicationManager.java:740)
           at weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:662)
           at weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:639)
           at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:85)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2860)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2835)
           at weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.java:1485)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1479)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1462)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      >

      Below is our SOA version running on weblogic 10.3.5.0
      INFO: Detected a WebLogic Installation.
      **************************************************************

      *****************************************************************************
      Oracle SOA Server version 11.1.1.6.0
      Build: 0
      Build time: Fri Sep 16 05:12:56 PDT 2011
      Build type: release
      Source tag: PCBPEL_11.1.1.5BPMHCFP_GENERIC_110915.2100.0120

      Oracle BAM Source Tag:ORABAM_11.1.1.5.0_GENERIC_110330.1900


      Oracle BPM Source Tag: PCBPEL_11.1.1.5BPMHCFP_GENERIC_110915.2100.0120

      Oracle Implementation-Version: Oracle Middleware 11.1.1 (ASKERNEL_11.1.1.5.0_
      GENERIC_110418.2020, ADMINSERVER_11.1.1.5.0_GENERIC_110322.2200, J2EE
      _11.1.1.5.0_GENERIC_110329.0915, JDEVADF_11.1.1.5.0_GENERIC_110409.00
      25.6013, TOPLINK_11.1.1.5.0_GENERIC_110305.0900, ENTSEC_11.1.1.5.0_GE
      NERIC_110326.1205, FMWCONFIG_11.1.1.4.0_GENERIC_RELEASE)

      Edited by: 981011 on Feb 24, 2013 6:56 PM
        • 1. Re: java.io.NotSerializableException
          984014
          Here the version of the SOA in our environment, running on weblogic 10.3.5.0

          INFO: Detected a WebLogic Installation.
          **************************************************************

          *****************************************************************************
          Oracle SOA Server version 11.1.1.6.0
          Build: 0
          Build time: Fri Sep 16 05:12:56 PDT 2011
          Build type: release
          Source tag: PCBPEL_11.1.1.5BPMHCFP_GENERIC_110915.2100.0120

          Oracle BAM Source Tag:ORABAM_11.1.1.5.0_GENERIC_110330.1900


          Oracle BPM Source Tag: PCBPEL_11.1.1.5BPMHCFP_GENERIC_110915.2100.0120

          Oracle Implementation-Version: Oracle Middleware 11.1.1 (ASKERNEL_11.1.1.5.0_
          GENERIC_110418.2020, ADMINSERVER_11.1.1.5.0_GENERIC_110322.2200, J2EE
          _11.1.1.5.0_GENERIC_110329.0915, JDEVADF_11.1.1.5.0_GENERIC_110409.00
          25.6013, TOPLINK_11.1.1.5.0_GENERIC_110305.0900, ENTSEC_11.1.1.5.0_GE
          NERIC_110326.1205, FMWCONFIG_11.1.1.4.0_GENERIC_RELEASE)
          • 2. Re: java.io.NotSerializableException
            Kishore Rout
            Hi,
            This is a known issue in cluster environment. Please find the below metalink id which describes this issue.
            Getting java.io.NotSerializableException: oracle.adf.view.rich.component.rich.RichPopup in Clustered Spaces [ID 1405823.1]

            You need to apply below patch.
            Patch 12800721 WC-HA-AUDIT: NON-SERIALIZABLE FIELD IN SERIALIZABLE CLASS

            Mark If this helps you.

            Regards,
            Kishore
            • 3. Re: java.io.NotSerializableException
              984014
              Hi

              I found that the issue is due to our SOA is cluster environment

              due to the weblogic settings below

              <session-descriptor>
              <persistent-store-type>replicated_if_clustered</persistent-store-type>
              </session-descriptor>

              It try to replicate the manage bean class by serializing it, the serialization failed due to the class didn't implement Serializable,

              refer to the this blog on how to implement serializable on your ADF manage bean class http://hasamali.blogspot.sg/2011/09/adf-jsf-adfc-scope-object-serialization.html


              Another way to resolve the issue is by put the weblogic setting (persistent-store-type = MEMORY), refer to Re: NotSerializableException


              <session-descriptor>
              <persistent-store-type>MEMORY</persistent-store-type>
              </session-descriptor>

              Thanks for the help!