1 Reply Latest reply: Dec 30, 2010 7:17 AM by eduacsp RSS

    Cannot cast stub

    eduacsp
      Hello everybody,

      I'm having a big problem with Strub in weblogic 11g. After a while using the application I get this error in the log:

      java.lang.ClassCastException: oracle.bpel.services.workflow.query.ejb.TaskQueryS
      ervice_oz1ipg_HomeImpl_1033_WLStub cannot be cast to oracle.bpel.services.workfl
      ow.query.ejb.TaskQueryServiceRemoteHome
      at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClie
      nt.authenticate(TaskQueryServiceRemoteClient.java:155)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.i
      nvokeTarget(WFClientRetryInvocationHandler.java:130)
      at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.i
      nvoke(WFClientRetryInvocationHandler.java:69)
      at $Proxy138.authenticate(Unknown Source)
      at br.com.ultra.ultragaz.worklist.business.TaskManager.workflowContext(T
      askManager.java:861)
      at br.com.ultra.ultragaz.worklist.business.WorklistMBean.logar(WorklistM
      Bean.java:150)
      at br.com.ultra.ultragaz.worklist.business.LoginMBean.logar(LoginMBean.j
      ava:38)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)

      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
      va:68)
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
      hodBindingMethodExpressionAdapter.java:88)
      at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
      enerImpl.java:102)
      at br.com.ultra.estudio.crud.jsf.exception.ExceptionActionListenerJsfEst
      udio.processAction(ExceptionActionListenerJsfEstudio.java:15)
      at br.com.ultra.estudio.crud.jsf.action.ActionListenerJsfEstudio.process
      Action(ActionListenerJsfEstudio.java:33)
      at javax.faces.component.UICommand.broadcast(UICommand.java:387)
      at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:3
      21)
      at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java
      :296)
      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:25
      3)
      at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.j
      ava:466)
      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
      ionPhase.java:82)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
      (StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
      tyHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
      a:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:56)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)

      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFil
      ter.java:380)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:56)
      at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doF
      ilterInternal(OpenEntityManagerInViewFilter.java:112)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:76)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:56)
      at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsF
      ilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.doIt(WebAppServletContext.java:3684)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:3650)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
      ervletContext.java:2268)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
      ontext.java:2174)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
      ava:1446)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)