java.lang.ClassCastException: $Proxy294 cannot be cast to com.sjs.trans.data.service.UserManagementEJB

Oracle Community | apostle | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JNDI lookup for a local EJB fails

    Oracle Community | 5 years ago | apostle
    java.lang.ClassCastException: $Proxy294 cannot be cast to com.sjs.trans.data.service.UserManagementEJB

    Root Cause Analysis

    1. java.lang.ClassCastException

      $Proxy294 cannot be cast to com.sjs.trans.data.service.UserManagementEJB

      at com.sjs.trans.common.converter.UserConverter.getAsObject()
    2. com.sjs.trans
      UserConverter.getAsObject
      1. com.sjs.trans.common.converter.UserConverter.getAsObject(UserConverter.java:38)
      1 frame
    3. JSF
      MenuRenderer.getConvertedValue
      1. com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:171)
      2. com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:202)
      3. com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:319)
      3 frames
    4. primefaces
      SelectOneMenuRenderer.getConvertedValue
      1. org.primefaces.component.selectonemenu.SelectOneMenuRenderer.getConvertedValue(SelectOneMenuRenderer.java:34)
      1 frame
    5. JavaEE 7
      UIForm.processValidators
      1. javax.faces.component.UIInput.getConvertedValue(UIInput.java:1030)
      2. javax.faces.component.UIInput.validate(UIInput.java:960)
      3. javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
      4. javax.faces.component.UIInput.processValidators(UIInput.java:698)
      5. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
      6. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
      7. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
      8. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
      9. javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
      10. javax.faces.component.UIForm.processValidators(UIForm.java:253)
      10 frames
    6. JSF
      PartialVisitContext.invokeVisitCallback
      1. com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:508)
      2. com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      2 frames
    7. JavaEE 7
      UIComponent.visitTree
      1. javax.faces.component.UIForm.visitTree(UIForm.java:354)
      2. javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      3. javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      4. javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      5. javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      6. javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      6 frames
    8. JSF
      PartialViewContextImpl.processPartial
      1. com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)
      2. com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)
      2 frames
    9. JavaEE 7
      PartialViewContextWrapper.processPartial
      1. javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
      1 frame
    10. RichFaces Core API
      ExtendedPartialViewContextImpl.processPartial
      1. org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:199)
      1 frame
    11. JavaEE 7
      UIViewRoot.processValidators
      1. javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1170)
      1 frame
    12. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      3 frames
    13. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      1 frame
    14. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      3 frames
    15. com.sjs.trans
      CharacterEncodingFilter.doFilter
      1. com.sjs.trans.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:32)
      1 frame
    16. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      6 frames
    17. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      2 frames
    18. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      3 frames
    19. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:232)
      1 frame
    20. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    21. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame