IBM Support

PI80535: ClassNotFoundException due to classes not being exported to the thread context

Fixes are available

17.0.0.2: WebSphere Application Server Liberty 17.0.0.2
17.0.0.3: WebSphere Application Server Liberty 17.0.0.3
17.0.0.4: WebSphere Application Server Liberty 17.0.0.4
18.0.0.1: WebSphere Application Server Liberty 18.0.0.1
18.0.0.2: WebSphere Application Server Liberty 18.0.0.2
18.0.0.3: WebSphere Application Server Liberty 18.0.0.3
18.0.0.4: WebSphere Application Server Liberty 18.0.0.4
19.0.0.1: WebSphere Application Server Liberty 19.0.0.1
19.0.0.2: WebSphere Application Server Liberty 19.0.0.2
19.0.0.3: WebSphere Application Server Liberty 19.0.0.3
19.0.0.4: WebSphere Application Server Liberty 19.0.0.4
19.0.0.5: WebSphere Application Server Liberty 19.0.0.5
19.0.0.6: WebSphere Application Server Liberty 19.0.0.6
19.0.0.7: WebSphere Application Server Liberty 19.0.0.7
19.0.0.8: WebSphere Application Server Liberty 19.0.0.8
19.0.0.9: WebSphere Application Server Liberty 19.0.0.9
19.0.0.10: WebSphere Application Server Liberty 19.0.0.10
19.0.0.11: WebSphere Application Server Liberty 19.0.0.11
19.0.0.12: WebSphere Application Server Liberty 19.0.0.12
20.0.0.1: WebSphere Application Server Liberty 20.0.0.1
20.0.0.2: WebSphere Application Server Liberty 20.0.0.2
20.0.0.3: WebSphere Application Server Liberty 20.0.0.3
20.0.0.4: WebSphere Application Server Liberty 20.0.0.4
20.0.0.5: WebSphere Application Server Liberty 20.0.0.5
20.0.0.6: WebSphere Application Server Liberty 20.0.0.6
20.0.0.7: WebSphere Application Server Liberty 20.0.0.7
20.0.0.8: WebSphere Application Server Liberty 20.0.0.8
20.0.0.9: WebSphere Application Server Liberty 20.0.0.9
20.0.0.10: WebSphere Application Server Liberty 20.0.0.10
20.0.0.11: WebSphere Application Server Liberty 20.0.0.11
20.0.0.12: WebSphere Application Server Liberty 20.0.0.12

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following exceptions were thrown while running the SVT
    GarageSale application on Liberty 17001.
    
    [4/6/17 4:56:47:026 EDT] 000464d1 WASSession    E
    DatabaseHashMap getValue SESN0051E: An attempt to
    deserialize a session object from the backend has resulted
    in a ClassNotFoundException.
    [4/6/17 4:56:47:026 EDT] 000464d1 WASSession    E
    DatabaseHashMap getValue Sessionid is:
    iNVlIcbJO3RwkYkyXWpvsNF
    [4/6/17 4:56:47:026 EDT] 000464d1 WASSession    E
    DatabaseHashMap getValue Exception is:
    java.lang.ClassNotFoundException:
    org.apache.myfaces.shared.context.flash.FlashClientWindowTok
    enCollection
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.findClas
    s(UnifiedClassLoader.java:120)
    at
    java.lang.ClassLoader.loadClassHelper(ClassLoader.java:850)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:829)
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClas
    s0(UnifiedClassLoader.java:108)
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader$Delegati
    on.loadClass(UnifiedClassLoader.java:79)
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClas
    s(UnifiedClassLoader.java:103)
    at
    com.ibm.ws.classloading.internal.ThreadContextClassLoader.lo
    adClass(ThreadContextClassLoader.java:112)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
    at
    com.ibm.ws.serialization.DeserializationObjectInputStream.lo
    adClass(DeserializationObjectInputStream.java:58)
    at
    com.ibm.ws.serialization.internal.DeserializationObjectInput
    StreamImpl.loadClass(DeserializationObjectInputStreamImpl.ja
    va:49)
    at
    com.ibm.ws.serialization.DeserializationObjectInputStream.re
    solveClass(DeserializationObjectInputStream.java:115)
    at
    com.ibm.ws.serialization.DeserializationObjectInputStream.re
    solveClass(DeserializationObjectInputStream.java:138)
    at
    java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream
    .java:1983)
    at
    java.io.ObjectInputStream.readClassDesc(ObjectInputStream.ja
    va:1877)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
    am.java:2170)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java
    :1698)
    at
    java.io.ObjectInputStream.readObjectImpl(ObjectInputStream.j
    ava:540)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:
    475)
          at java.util.Hashtable.readObject(Hashtable.java:1324)
    at sun.reflect.GeneratedMethodAccessor300115.invoke(Unknown
    Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
    at
    java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass
    .java:1139)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.j
    ava:2306)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
    am.java:2197)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java
    :1698)
    at
    java.io.ObjectInputStream.readObjectImpl(ObjectInputStream.j
    ava:540)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:
    475)
    at
    com.ibm.ws.session.utils.SessionLoader.loadObject(SessionLoa
    der.java:75)
    at
    com.ibm.ws.session.store.db.DatabaseHashMap.getValue(Databas
    eHashMap.java:1582)
    
    
    
    [4/6/17 10:59:28:912 EDT] 00000058
    com.ibm.ws.session.WASSession
    E Sessionid is: wRfwQj-L-8pVpMvBSuzBWV2
    [4/6/17 10:59:28:912 EDT] 00000058
    com.ibm.ws.session.WASSession
    E Exception is:
    java.lang.ClassNotFoundException:
    org.apache.myfaces.flow.cdi.FlowScopeBeanHolder
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.findClas
    s(UnifiedClassLoader.java:120)
    at
    java.lang.ClassLoader.loadClassHelper(ClassLoader.java:850)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:829)
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClas
    s0(UnifiedClassLoader.java:108)
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader$Delegati
    on.loadClass(UnifiedClassLoader.java:79)
    at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClas
    s(UnifiedClassLoader.java:103)
    at
    com.ibm.ws.classloading.internal.ThreadContextClassLoader.lo
    adClass(ThreadContextClassLoader.java:112)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
    at
    com.ibm.ws.serialization.DeserializationObjectInputStream.lo
    adClass(DeserializationObjectInputStream.java:58)
    at
    com.ibm.ws.serialization.internal.DeserializationObjectInput
    StreamImpl.loadClass(DeserializationObjectInputStreamImpl.ja
    va:49)
    at
    com.ibm.ws.serialization.DeserializationObjectInputStream.re
    solveClass(DeserializationObjectInputStream.java:115)
    at
    com.ibm.ws.serialization.DeserializationObjectInputStream.re
    solveClass(DeserializationObjectInputStream.java:138)
    at
    java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream
    .java:1983)
    at
    java.io.ObjectInputStream.readClassDesc(ObjectInputStream.ja
    va:1877)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
    am.java:2170)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java
    :1698)
    at
    java.io.ObjectInputStream.defaultReadFields(ObjectInputStrea
    m.java:2415)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.j
    ava:2339)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
    am.java:2197)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java
    :1698)
    at
    java.io.ObjectInputStream.readObjectImpl(ObjectInputStream.j
    ava:540)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:
    475)
    at java.util.Hashtable.readObject(Hashtable.java:1324)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:95)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    at
    java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass
    .java:1139)
    at
    java.io.ObjectInputStream.readSerialData(ObjectInputStream.j
    ava:2306)
    at
    java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
    am.java:2197)
    at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java
    :1698)
    at
    java.io.ObjectInputStream.readObjectImpl(ObjectInputStream.j
    ava:540)
    at
    java.io.ObjectInputStream.readObject(ObjectInputStream.java:
    475)
    at
    com.ibm.ws.session.utils.SessionLoader.loadObject(SessionLoa
    der.java:75)
    at
    com.ibm.ws.session.store.db.DatabaseHashMap.getValue(Databas
    eHashMap.java:1582)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - JavaServer Faces (JSF) 2.2 *
    *                  Apache MyFaces implementation               *
    ****************************************************************
    * PROBLEM DESCRIPTION: A ClassNotFoundException is thrown due  *
    *                      to packages not being exported to the   *
    *                      thread context                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Issues were found during system verification testing. The
    following exceptions were thrown:
    
    java.lang.ClassNotFoundException:
    org.apache.myfaces.shared.context.flash.FlashClientWindowTokenCo
    llection
            at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.findClass(Un
    ifiedClassLoader.java:120)
            at
    java.lang.ClassLoader.loadClassHelper(ClassLoader.java:850)
            at
    java.lang.ClassLoader.loadClass(ClassLoader.java:829)
            at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass0(U
    nifiedClassLoader.java:108)
            at
    com.ibm.ws.classloading.internal.UnifiedClassLoader$Delegation.l
    oadClass(UnifiedClassLoader.java:79)
            at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass(Un
    ifiedClassLoader.java:103)
            at
    com.ibm.ws.classloading.internal.ThreadContextClassLoader.loadCl
    ass(ThreadContextClassLoader.java:112)
            at
    java.lang.ClassLoader.loadClass(ClassLoader.java:809)
            at
    com.ibm.ws.serialization.DeserializationObjectInputStream.loadCl
    ass(DeserializationObjectInputStream.java:58)
    
    java.lang.ClassNotFoundException:
    org.apache.myfaces.flow.cdi.FlowScopeBeanHolder
           at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.findClass(Un
    ifiedClassLoader.java:120)
           at
    java.lang.ClassLoader.loadClassHelper(ClassLoader.java:850)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:829)
           at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass0(U
    nifiedClassLoader.java:108)
           at
    com.ibm.ws.classloading.internal.UnifiedClassLoader$Delegation.l
    oadClass(UnifiedClassLoader.java:79)
           at
    com.ibm.ws.classloading.internal.UnifiedClassLoader.loadClass(Un
    ifiedClassLoader.java:103)
           at
    com.ibm.ws.classloading.internal.ThreadContextClassLoader.loadCl
    ass(ThreadContextClassLoader.java:112)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
           at
    com.ibm.ws.serialization.DeserializationObjectInputStream.loadCl
    ass(DeserializationObjectInputStream.java:58)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI80535

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-04-25

  • Closed date

    2017-05-11

  • Last modified date

    2017-05-11

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • RCD0 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
18 October 2021