[
https://jira.jboss.org/jira/browse/JBWS-2398?page=com.atlassian.jira.plug...
]
Swati Singhal updated JBWS-2398:
--------------------------------
Environment:
Running jboss 4.2.3 on Windows xp. Updating JBoss from 4.0.2 to 4.2.3.
I am using Axis2. The call fails when I do the ejb lookup and i am using ejb 2.1.
was:Running jboss 4.2.3 on Windows xp. Updating JBoss from 4.0.2 to 4.2.3
Description:
I am updating my jboss server from version 4.0.2 to 4.2.3. I am not able to access the
webservices using jboss 4.2.3.
When i access the same code through jboss 4.0.2 it runs absolutely fine. Here is the
exception i get:
Caused by: java.lang.ClassCastException:
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy cannot be cast to
org.jboss.invocation.Invoker
The code throwing the error:
Object obj = getHome( env, jndiName, narrowToEJBHome );
Method method = null;
Object _new = null;
try{
if( obj instanceof EJBHome ){
method = (Method) s_hmCreateMethods.get( narrowToEJBHome );
if( method == null ){
method = narrowToEJBHome.getMethod( "create", (Class[]) null
);
s_hmCreateMethods.put( narrowToEJBHome, method );
}
_new = method.invoke( obj, (Object[]) null ); // **** the line that the
code fails on****
}
if( isDebugged ){
s_log.debug( "createEjbObject time : " +
Util.elapsedTimeToString( millis ) + " : " + Util.previousStackMethod() );
}
return (EJBObject) _new;
}catch( Exception e ){
throw new AkcException( "ERROR: could not createHome(...," + now(
jndiName ) + "," + now( narrowToEJBHome ) + ") : method=" + now(
method ) + " : obj=" + nowdb( obj ) + " : _new=" + nowdb( _new ), e
);
}
The stack trace:
java.lang.reflect.InvocationTargetException
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 org.akc.web.lib.ejb.EjbUtil._createEjbObject(EjbUtil.java:291)
at org.akc.web.lib.ejb.EjbUtil.createEjbObject(EjbUtil.java:261)
at
org.akc.web.system.impl.SystemManagerEJBProxy.createEJB(SystemManagerEJBProxy.java:215)
at
org.akc.web.system.impl.SystemManagerEJBProxy.getAvailabilityByName(SystemManagerEJBProxy.java:57)
at
org.akc.web.system.SystemManagerProxy.getAvailabilityByName(SystemManagerProxy.java:272)
at org.akc.web.dog.service.InternalDogService.getDogInfo(InternalDogService.java:32)
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 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException:
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy cannot be cast to
org.jboss.invocation.Invoker
at org.jboss.invocation.InvocationContext.getInvoker(InvocationContext.java:103)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:226)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy204.create(Unknown Source)
... 41 more
was:
I am updating my jboss server from version 4.0.2 to 4.2.3. I am not able to access the
webservices using jboss 4.2.3.
When i access the same code through jboss 4.0.2 it runs absolutely fine. Here is the
exception i get:
Caused by: java.lang.ClassCastException:
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy cannot be cast to
org.jboss.invocation.Invoker
The stack trace:
java.lang.reflect.InvocationTargetException
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 org.akc.web.lib.ejb.EjbUtil._createEjbObject(EjbUtil.java:291)
at org.akc.web.lib.ejb.EjbUtil.createEjbObject(EjbUtil.java:261)
at
org.akc.web.system.impl.SystemManagerEJBProxy.createEJB(SystemManagerEJBProxy.java:215)
at
org.akc.web.system.impl.SystemManagerEJBProxy.getAvailabilityByName(SystemManagerEJBProxy.java:57)
at
org.akc.web.system.SystemManagerProxy.getAvailabilityByName(SystemManagerProxy.java:272)
at org.akc.web.dog.service.InternalDogService.getDogInfo(InternalDogService.java:32)
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 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException:
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy cannot be cast to
org.jboss.invocation.Invoker
at org.jboss.invocation.InvocationContext.getInvoker(InvocationContext.java:103)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:226)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy204.create(Unknown Source)
... 41 more
Webservice not running on jboss 4.2.3
-------------------------------------
Key: JBWS-2398
URL:
https://jira.jboss.org/jira/browse/JBWS-2398
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: Running jboss 4.2.3 on Windows xp. Updating JBoss from 4.0.2 to
4.2.3.
I am using Axis2. The call fails when I do the ejb lookup and i am using ejb 2.1.
Reporter: Swati Singhal
I am updating my jboss server from version 4.0.2 to 4.2.3. I am not able to access the
webservices using jboss 4.2.3.
When i access the same code through jboss 4.0.2 it runs absolutely fine. Here is the
exception i get:
Caused by: java.lang.ClassCastException:
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy cannot be cast to
org.jboss.invocation.Invoker
The code throwing the error:
Object obj = getHome( env, jndiName, narrowToEJBHome );
Method method = null;
Object _new = null;
try{
if( obj instanceof EJBHome ){
method = (Method) s_hmCreateMethods.get( narrowToEJBHome );
if( method == null ){
method = narrowToEJBHome.getMethod( "create", (Class[])
null );
s_hmCreateMethods.put( narrowToEJBHome, method );
}
_new = method.invoke( obj, (Object[]) null ); // **** the line that the
code fails on****
}
if( isDebugged ){
s_log.debug( "createEjbObject time : " +
Util.elapsedTimeToString( millis ) + " : " + Util.previousStackMethod() );
}
return (EJBObject) _new;
}catch( Exception e ){
throw new AkcException( "ERROR: could not createHome(...," + now(
jndiName ) + "," + now( narrowToEJBHome ) + ") : method=" + now(
method ) + " : obj=" + nowdb( obj ) + " : _new=" + nowdb( _new ), e
);
}
The stack trace:
java.lang.reflect.InvocationTargetException
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 org.akc.web.lib.ejb.EjbUtil._createEjbObject(EjbUtil.java:291)
at org.akc.web.lib.ejb.EjbUtil.createEjbObject(EjbUtil.java:261)
at
org.akc.web.system.impl.SystemManagerEJBProxy.createEJB(SystemManagerEJBProxy.java:215)
at
org.akc.web.system.impl.SystemManagerEJBProxy.getAvailabilityByName(SystemManagerEJBProxy.java:57)
at
org.akc.web.system.SystemManagerProxy.getAvailabilityByName(SystemManagerProxy.java:272)
at org.akc.web.dog.service.InternalDogService.getDogInfo(InternalDogService.java:32)
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 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException:
org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy cannot be cast to
org.jboss.invocation.Invoker
at org.jboss.invocation.InvocationContext.getInvoker(InvocationContext.java:103)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:226)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy204.create(Unknown Source)
... 41 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira