tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng (JIRA)" <tuscany-...@ws.apache.org>
Subject [jira] Resolved: (TUSCANY-1941) NPE and classcast exceptions when putting all SCA jars from libs and modules on classpath
Date Mon, 03 Mar 2008 22:14:50 GMT

     [ https://issues.apache.org/jira/browse/TUSCANY-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Raymond Feng resolved TUSCANY-1941.
-----------------------------------

    Resolution: Fixed

Patch applied under r633301. Thanks!

> NPE and classcast exceptions when putting all SCA jars from libs and modules on classpath
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1941
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1941
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.0.1
>         Environment: windows, jdk1.6.0_02
>            Reporter: andrej koelewijn
>            Assignee: Raymond Feng
>            Priority: Trivial
>             Fix For: Java-SCA-Next
>
>         Attachments: ReallySmallRuntime-patch.txt
>
>
> When i put all jars from the libs and modules directories on my classpath (modules first,
then libs), i get a nullpointer exception (when running standalone), or a classcast exception
(when running as part of a webapp). In both stacktraces i can see that it's using axion in
the axis2 binding code.
> Stacktrace for cli application:
> Dec 19, 2007 12:15:55 AM org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver
invokeBusinessLogic
> SEVERE: java.lang.ClassCastException: java.lang.String
> org.osoa.sca.ServiceRuntimeException: java.lang.ClassCastException: java.lang.String
>     at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:127)
>     at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke (RuntimeWireInvoker.java:89)
>     at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:83)
>     at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java
:127)
>     at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:587)
>     at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic
(Axis2ServiceInOutSyncMessageReceiver.java:59)
>     at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
>     at org.apache.axis2.receivers.AbstractMessageReceiver.receive (AbstractMessageReceiver.java:96)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>     at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>     at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
>     at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181)
>     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
>     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>     at org.mortbay.jetty.Server.handle (Server.java:285)
>     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
>     at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
>     at org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:641)
>     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
>     at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:368)
>     at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61)
>     at org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java
:205)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>     at java.lang.Thread.run( Thread.java:595)
> Caused by: java.lang.ClassCastException: java.lang.String
>     at org.apache.tuscany.sca.databinding.axiom.OMElementWrapperHandler.getChildren(OMElementWrapperHandler.java:46)
>     at org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform
(Input2InputTransformer.java:176)
>     at org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:46)
>     at org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate (MediatorImpl.java:73)
>     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.transform(DataTransformationInterceptor.java:173)
>     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke
(DataTransformationInterceptor.java:71)
>     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:73)
>     at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke (RuntimeWireInvoker.java:118)
>     ... 29 more
> Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
>     at $Proxy6.ping(Unknown Source)
>     at nl.iteye.patient.ScaContainerStarter.main (ScaContainerStarter.java:17)
> Caused by: org.apache.tuscany.sca.interfacedef.util.FaultException: java.lang.ClassCastException:
java.lang.String
>     at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke (Axis2BindingInvoker.java:79)
>     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:73)
>     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke
(DataTransformationInterceptor.java:73)
>     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
>     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke (JDKInvocationHandler.java:130)
>     ... 2 more
> Problem can be solved by only including tuscany-sca-manifest.jar on the classpath, or
by removing all jars in modules from the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Mime
View raw message