tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nishant Joshi" <nishantrjo...@gmail.com>
Subject Re: Conversation from a non-SCA application
Date Tue, 29 Jan 2008 05:24:06 GMT
Hi,
First i didn't get what you mean by "I started the server first, noted the
random port number
that was assigned, then built the client using that port number."


But I have tried with modifying the sample callback-ws-service in 1.1-RC3
I got the same exception that i have posted before...
following is the only change i have done in
callback-ws-service\MyServiceImpl.java
-------------------------------------------------
@Context
    protected ComponentContext componentContext;

    @Init
    public void init() {
     System.out.println("Init....");
     myServiceCallback =  componentContext.getRequestContext
().getCallback();
    }
-------------------------------------------------
Following is the output of server.....

--------------------------------------------------------------------------------------------------
Jan 29, 2008 10:35:39 AM org.apache.tuscany.sca.node.impl.SCADomainProxyImplinit
INFO: Domain will be started stand-alone as domain URL is not provided
Jan 29, 2008 10:35:39 AM
org.apache.tuscany.sca.domain.impl.SCADomainImplregisterNode
INFO: Registered node: http://nishantj02:3283 at endpoint
http://nishantj02:3283
Jan 29, 2008 10:35:39 AM
org.apache.tuscany.sca.node.impl.SCADomainProxyImplcreateRuntime
INFO: Domain management configured from
file:/C:/Downloads/Tuscany/1.1-RC3/tuscany-sca-1.1-incubating/lib/tuscany-
sca-all-1.1-incubating.jar
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3283/SCADomainEventServiceProxyComponent
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3283/SCADomainAPIServiceProxyComponent
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3283/SCANodeManagerComponent/SCANodeManagerService
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3283/SCANodeManagerComponent/ComponentManagerService/*
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3283/SCANodeManagerComponent/ComponentManagerService
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping: http://nishantj02:3283/SCADomain/scaDomain.js
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.node.impl.SCANodeImplactivateComposite
INFO: Building composite: {http://callbackws}callbackws
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.node.impl.SCANodeImplstartComposite
INFO: Starting composite: {http://callbackws}callbackws
Jan 29, 2008 10:35:45 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping: http://nishantj02:8086/MyServiceComponent
Callback server started (press enter to shutdown)
Init....
someMethod on thread Thread[pool-1-thread-3,5,main]
Sleeping ...
RuntimeException invoking receiveResult:
java.lang.reflect.UndeclaredThrowableException
java.lang.reflect.UndeclaredThrowableException
        at $Proxy17.receiveResult(Unknown Source)
        at myserver.MyServiceImpl.someMethod(MyServiceImpl.java:62)
        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:585)
        at
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke
(JavaImplementationInvoker.java:105)
        at
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke
(DataTransformationInterceptor.java:74)
        at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(
RuntimeWireInvoker.java:113)
        at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(
RuntimeWireInvoker.java:88)
        at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(
RuntimeWireInvoker.java:82)
        at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(
RuntimeWireImpl.java:126)
        at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(
Axis2ServiceProvider.java:589)
        at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInMessageReceiver.invokeBusinessLogic
(Axis2ServiceInMessageReceiver.java:48)
        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: org.apache.axis2.AxisFault: The system cannot infer the transport
information from the / URL.
        at org.apache.axis2.description.ClientUtils.inferOutTransport(
ClientUtils.java:73)
        at org.apache.axis2.client.OperationClient.prepareMessageContext(
OperationClient.java:302)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl
(OutInAxisOperation.java:174)
        at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:163)
        at
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(
Axis2BindingInvoker.java:101)
        at
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(
Axis2BindingInvoker.java:76)
        at
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke
(DataTransformationInterceptor.java:74)
        at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
JDKInvocationHandler.java:249)
        at
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
JDKInvocationHandler.java:146)
        ... 37 more

--------------------------------------------------------------------------------------------------

Following is output from client....


--------------------------------------------------------------------------------------------------
Jan 29, 2008 10:44:18 AM org.apache.tuscany.sca.node.impl.SCADomainProxyImplinit
INFO: Domain will be started stand-alone as domain URL is not provided
Jan 29, 2008 10:44:18 AM
org.apache.tuscany.sca.domain.impl.SCADomainImplregisterNode
INFO: Registered node: http://nishantj02:3583 at endpoint
http://nishantj02:3583
Jan 29, 2008 10:44:18 AM
org.apache.tuscany.sca.node.impl.SCADomainProxyImplcreateRuntime
INFO: Domain management configured from
file:/C:/Downloads/Tuscany/1.1-RC3/tuscany-sca-1.1-incubating/lib/tuscany-
sca-all-1.1-incubating.jar
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3583/SCADomainEventServiceProxyComponent
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3583/SCADomainAPIServiceProxyComponent
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3583/SCANodeManagerComponent/SCANodeManagerService
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3583/SCANodeManagerComponent/ComponentManagerService/*
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3583/SCANodeManagerComponent/ComponentManagerService
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping: http://nishantj02:3583/SCADomain/scaDomain.js
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.node.impl.SCANodeImplactivateComposite
INFO: Building composite: {http://myapp}myapp
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.node.impl.SCANodeImplstartComposite
INFO: Starting composite: {http://myapp}myapp
Jan 29, 2008 10:44:23 AM
org.apache.tuscany.sca.http.jetty.JettyServeraddServletMapping
INFO: Added Servlet mapping:
http://nishantj02:3583/MyClientComponent/myService
aClientMethod on thread Thread[main,5,main]
aClientMethod return from someMethod on thread Thread[main,5,main]
Closing the domain
Jan 29, 2008 10:44:29 AM
org.apache.tuscany.sca.node.impl.SCANodeImplstopComposite
INFO: Stopping composite: {http://myapp}myapp

--------------------------------------------------------------------------------------------------



-- 
Thanks
Nishant Joshi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message