IBM Support

PI32828: CLASSCASTEXCEPTION COM.IBM.EJS.CONTAINER.WASBEANMETADATA INCOMPATABLE WEBCONTAINER.METADATA.WEBCOMPONENTMETADATA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When attempting to make a programmatic login by calling
    HttpServletRequest.login() within a web service call, you may
    see
    
    [XX/XX/XX HH:MM:SS:MMM EST] 00000078 WsLoginReprod E
    com.ibm.ejs.container.WASBeanMetaData incompatible with
    com.ibm.ws.webcontainer.metadata.WebComponentMetaData
    java.lang.ClassCastException:
    
    com.ibm.ejs.container.WASBeanMetaData incompatible with
    com.ibm.ws.webcontainer.metadata.WebComponentMetaData
    at
    com.ibm.ws.security.web.WebCollaborator.login(WebCollaborator.ja
    va:3801)
    at
    com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorI
    mpl.login(WebAppSecurityCollaboratorImpl.java:368)
    at
    com.ibm.ws.webcontainer.srt.SRTServletRequest.login(SRTServletRe
    quest.java:3701)
    at
    com.ibm.ws.websvcs.transport.http.WASAxis2HttpServletRequestImpl
    .login(WASAxis2HttpServletRequestImpl.java:548)
    at
    waswslogin.WsLoginReproducer.makeLogin(WsLoginReproducer.java:27
    )
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:88)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at
    org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher.invokeTa
    rgetOperation(JavaDispatcher.java:120)
    at
    com.ibm.ws.websvcs.server.dispatcher.EJBBeanDispatcher.invokeTar
    getOperation(EJBBeanDispatcher.java:192)
    at
    org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invo
    ke(JavaBeanDispatcher.java:118)
    at
    com.ibm.ws.websvcs.server.dispatcher.EJBBeanDispatcher.invoke(EJ
    BBeanDispatcher.java:80)
    at
    org.apache.axis2.jaxws.server.EndpointController.invoke(Endpoint
    Controller.java:111)
    at
    org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWS
    MessageReceiver.java:161)
    at
    org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:212)
    at
    org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo
    stRequest(HTTPTransportUtils.java:172)
    at
    com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis
    2Servlet.java:1583)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A ClassCastException might be caught    *
    *                      when the HttpServletRequest object is   *
    *                      accessed from the EJB.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the HttpServletRequest object is propagated to the
    Enterprise Bean and it is accessed from the Bean, there is a
    potential that the ClassCastException is caught because the
    container context is not the WebContainer context.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI32828

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-01-15

  • Closed date

    2015-08-04

  • Last modified date

    2015-08-04

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022