You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Jaideep Dhok <ja...@da-iict.org> on 2006/06/06 06:45:22 UTC

Exception in my sample service - Exception in AddressingHandler

Hi,
I am trying to write a simple service using kandula. I have deployed the
service in the same tomcat instance where kandula is running. All of the
settings are default, and I have also placed client-config.wsdd in
$AXIS_DEPLOY/WEB-INF/classes. However, when I try to invoke that service I
get the following Exception at the tomcat console-

********************************************
org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI
with empty parameters.
        at org.apache.axis.types.URI.initialize(URI.java:614)
        at org.apache.axis.types.URI.<init>(URI.java:311)
        at org.apache.axis.types.URI.<init>(URI.java:272)
        at
org.apache.axis.message.addressing.handler.AddressingHandler.processClientRequest(AddressingHandl

er.java:240)
        at

org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at

localhost.axis.services.CalculatePrice.CalculatePriceSoapBindingStub.getInitialPrice(CalculatePri

ceSoapBindingStub.java:103)
        at AgriMarketProcess.startAgriProcess(AgriMarketProcess.java:28)
        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:324)
        at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
        at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
        at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.

java:705)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)
*************************************************

All of my settings are the default settings.
The service I am trying to deploy is in turn calling some other services,
and they are also deployed in the same tomcat instance.
I read some messages in the mailing list and according to them the To and
>From fields may be erroneous, but they are fine in my case(?)
I am pasting the contents of message headers below -

1.CreateCoordinationContextRequest -
				   ----
	<soapenv:Header>
         <wsa:MessageID

soapenv:mustUnderstand="0">uuid:9c0a4cd0-f515-11da-a891-ff583c84fafa</wsa:MessageID>
         <wsa:To

soapenv:mustUnderstand="0">http://localhost:8081/axis/services/activationCoordinator</wsa:To>
         <wsa:Action soapenv:mustUnderstand="0">http://xxx</wsa:Action>
         <wsa:From soapenv:mustUnderstand="0">


<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
         </wsa:From>
      </soapenv:Header>
                                    ----
CreateCoordinationContextResponse -
		----
	<soapenv:Header>
         <wsa:MessageID

soapenv:mustUnderstand="0">uuid:9c198f10-f515-11da-a891-ff583c84fafa</wsa:MessageID>
         <wsa:To

soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:T

o>
         <wsa:Action
soapenv:mustUnderstand="0">http://xxxResponse</wsa:Action>
         <wsa:From soapenv:mustUnderstand="0">
            <wsa:Address>http://localhost:8081/axis/services/activationCoordinator</wsa:Address>
         </wsa:From>
         <wsa:RelatesTo RelationshipType="wsa:Reply"

soapenv:mustUnderstand="0">uuid:9c0a4cd0-f515-11da-a891-ff583c84fafa</wsa:RelatesTo>
      </soapenv:Header>
                ---
2. Register
              ---
	<soapenv:Header>
         <wsa:MessageID

soapenv:mustUnderstand="0">uuid:9c25c410-f515-11da-a891-ff583c84fafa</wsa:MessageID>
         <wsa:To

soapenv:mustUnderstand="0">http://localhost:8081/axis/services/registrationCoordinator</wsa:To>
         <wsa:Action soapenv:mustUnderstand="0">http://xxx</wsa:Action>
         <wsa:From soapenv:mustUnderstand="0">


<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
         </wsa:From>
         <ns3:CallbackRef xmlns:ns3="http://ws.apache.org/kandula"

soapenv:mustUnderstand="0">uuid:9c198f10-f515-11da-a891-ff583c84fafa</ns3:CallbackRef>
      </soapenv:Header>
		----
RegisterResponse
	---
	<soapenv:Header>
         <wsa:MessageID

soapenv:mustUnderstand="0">uuid:9c2d6530-f515-11da-a891-ff583c84fafa</wsa:MessageID>
         <wsa:To

soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:T

o>
         <wsa:Action
soapenv:mustUnderstand="0">http://xxxResponse</wsa:Action>
         <wsa:From soapenv:mustUnderstand="0">


<wsa:Address>http://localhost:8081/axis/services/registrationCoordinator</wsa:Address>
            <wsa:ReferenceProperties>
               <ns3:CallbackRef soapenv:mustUnderstand="0"

xmlns:ns3="http://ws.apache.org/kandula"

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">uuid:9c198f10-f515-11da-a891-ff583c84fa

fa</ns3:CallbackRef>
            </wsa:ReferenceProperties>
         </wsa:From>
         <wsa:RelatesTo RelationshipType="wsa:Reply"

soapenv:mustUnderstand="0">uuid:9c25c410-f515-11da-a891-ff583c84fafa</wsa:RelatesTo>
      </soapenv:Header>
	---
After that the exception is thrown and I try to rollback the transaction,
but rollback messages do not get any reply.
Can anybody tell me what is going wrong here?

Thanks in advance,
Jaideep Dhok.



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


Re:

Posted by Dasarath Weeratunge <dw...@purdue.edu>.
Quoting Jaideep Dhok <ja...@da-iict.org>:

> Hi Dasarath,
> Thanks for the help.
> I changed the soapAction attribute's value to "foo" and created the stubs
> again. Now, I am getting a different error -
> 
>  Exception in AddressingHandler
> org.apache.axis.types.URI$MalformedURIException: No scheme found in URI.

try changing "foo" to something like "http://foo".

please direct your mails to "kandula-dev" so that they will be archived.

thanks,
--dasarath


> What I have done is -
>  1. Deploy services by placing class files in AXIS_HOME/WEB-INF/classes
> and adding entries to server-config.wsdd
>  2. Get wsdl from http://localhost:8080/axis/services/CalculatePrice?wsdl
>  3. Change soapAction attribute value to "foo" and create/compile the stubs.
>  4. Copy stubs class files in AXIS_HOME/WEB-INF/classes.
> 
> 
> I have deployed controlling web-servie and the other web services using
> .jws method. Do I need to make changes in them as well?  I am a bit new to
> web-service development, am I making some stupid mistake?
> Regards,
> 
>   - Jaideep Dhok
>     200201131
>     Ph. 9824268041
> 
> 
> 
> 
> 



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


Re:

Posted by Dasarath Weeratunge <dw...@purdue.edu>.
Quoting Jaideep Dhok <ja...@da-iict.org>:

> Hi Dasarath,
> Thanks for the help.
> I changed the soapAction attribute's value to "foo" and created the stubs
> again. Now, I am getting a different error -
> 
>  Exception in AddressingHandler
> org.apache.axis.types.URI$MalformedURIException: No scheme found in URI.

try changing "foo" to something like "http://foo".

please direct your mails to "kandula-dev" so that they will be archived.

thanks,
--dasarath


> What I have done is -
>  1. Deploy services by placing class files in AXIS_HOME/WEB-INF/classes
> and adding entries to server-config.wsdd
>  2. Get wsdl from http://localhost:8080/axis/services/CalculatePrice?wsdl
>  3. Change soapAction attribute value to "foo" and create/compile the stubs.
>  4. Copy stubs class files in AXIS_HOME/WEB-INF/classes.
> 
> 
> I have deployed controlling web-servie and the other web services using
> .jws method. Do I need to make changes in them as well?  I am a bit new to
> web-service development, am I making some stupid mistake?
> Regards,
> 
>   - Jaideep Dhok
>     200201131
>     Ph. 9824268041
> 
> 
> 
> 
> 



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


Re: Exception in my sample service - Exception in AddressingHandler

Posted by Dasarath Weeratunge <dw...@purdue.edu>.
Quoting Jaideep Dhok <ja...@da-iict.org>:

This is a very common error and is not caused by Kandula. The problem is if your
 soap action URI is empty(null) the AddressingHandler throws an exception.
Please use a non-empty soapAction for all 'your services' and try again. This
needs to be configured in the WSDL before generating code if you are using stubs.

thanks,
--dasarath

> Hi,
> I am trying to write a simple service using kandula. I have deployed the
> service in the same tomcat instance where kandula is running. All of the
> settings are default, and I have also placed client-config.wsdd in
> $AXIS_DEPLOY/WEB-INF/classes. However, when I try to invoke that service I
> get the following Exception at the tomcat console-
> 
> ********************************************
> org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI
> with empty parameters.
>         at org.apache.axis.types.URI.initialize(URI.java:614)
>         at org.apache.axis.types.URI.<init>(URI.java:311)
>         at org.apache.axis.types.URI.<init>(URI.java:272)
>         at
>
org.apache.axis.message.addressing.handler.AddressingHandler.processClientRequest(AddressingHandl
> 
> er.java:240)
>         at
> 
>
org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at
> 
>
localhost.axis.services.CalculatePrice.CalculatePriceSoapBindingStub.getInitialPrice(CalculatePri
> 
> ceSoapBindingStub.java:103)
>         at AgriMarketProcess.startAgriProcess(AgriMarketProcess.java:28)
>         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:324)
>         at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
>         at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
>         at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at
> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
>         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
>         at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> 
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at
> 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> 
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 
>         at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at
> 
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.
> 
> java:705)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
> *************************************************
> 
> All of my settings are the default settings.
> The service I am trying to deploy is in turn calling some other services,
> and they are also deployed in the same tomcat instance.
> I read some messages in the mailing list and according to them the To and
> From fields may be erroneous, but they are fine in my case(?)
> I am pasting the contents of message headers below -
> 
> 1.CreateCoordinationContextRequest -
> 				   ----
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c0a4cd0-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://localhost:8081/axis/services/activationCoordinator</wsa:To>
>          <wsa:Action soapenv:mustUnderstand="0">http://xxx</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
> 
> 
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
>          </wsa:From>
>       </soapenv:Header>
>                                     ----
> CreateCoordinationContextResponse -
> 		----
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c198f10-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:T
> 
> o>
>          <wsa:Action
> soapenv:mustUnderstand="0">http://xxxResponse</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
>            
>
<wsa:Address>http://localhost:8081/axis/services/activationCoordinator</wsa:Address>
>          </wsa:From>
>          <wsa:RelatesTo RelationshipType="wsa:Reply"
> 
>
soapenv:mustUnderstand="0">uuid:9c0a4cd0-f515-11da-a891-ff583c84fafa</wsa:RelatesTo>
>       </soapenv:Header>
>                 ---
> 2. Register
>               ---
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c25c410-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://localhost:8081/axis/services/registrationCoordinator</wsa:To>
>          <wsa:Action soapenv:mustUnderstand="0">http://xxx</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
> 
> 
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
>          </wsa:From>
>          <ns3:CallbackRef xmlns:ns3="http://ws.apache.org/kandula"
> 
>
soapenv:mustUnderstand="0">uuid:9c198f10-f515-11da-a891-ff583c84fafa</ns3:CallbackRef>
>       </soapenv:Header>
> 		----
> RegisterResponse
> 	---
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c2d6530-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:T
> 
> o>
>          <wsa:Action
> soapenv:mustUnderstand="0">http://xxxResponse</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
> 
> 
>
<wsa:Address>http://localhost:8081/axis/services/registrationCoordinator</wsa:Address>
>             <wsa:ReferenceProperties>
>                <ns3:CallbackRef soapenv:mustUnderstand="0"
> 
> xmlns:ns3="http://ws.apache.org/kandula"
> 
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">uuid:9c198f10-f515-11da-a891-ff583c84fa
> 
> fa</ns3:CallbackRef>
>             </wsa:ReferenceProperties>
>          </wsa:From>
>          <wsa:RelatesTo RelationshipType="wsa:Reply"
> 
>
soapenv:mustUnderstand="0">uuid:9c25c410-f515-11da-a891-ff583c84fafa</wsa:RelatesTo>
>       </soapenv:Header>
> 	---
> After that the exception is thrown and I try to rollback the transaction,
> but rollback messages do not get any reply.
> Can anybody tell me what is going wrong here?
> 
> Thanks in advance,
> Jaideep Dhok.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: kandula-dev-help@ws.apache.org
> 
> 



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


Re: Exception in my sample service - Exception in AddressingHandler

Posted by Dasarath Weeratunge <dw...@purdue.edu>.
Quoting Jaideep Dhok <ja...@da-iict.org>:

This is a very common error and is not caused by Kandula. The problem is if your
 soap action URI is empty(null) the AddressingHandler throws an exception.
Please use a non-empty soapAction for all 'your services' and try again. This
needs to be configured in the WSDL before generating code if you are using stubs.

thanks,
--dasarath

> Hi,
> I am trying to write a simple service using kandula. I have deployed the
> service in the same tomcat instance where kandula is running. All of the
> settings are default, and I have also placed client-config.wsdd in
> $AXIS_DEPLOY/WEB-INF/classes. However, when I try to invoke that service I
> get the following Exception at the tomcat console-
> 
> ********************************************
> org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI
> with empty parameters.
>         at org.apache.axis.types.URI.initialize(URI.java:614)
>         at org.apache.axis.types.URI.<init>(URI.java:311)
>         at org.apache.axis.types.URI.<init>(URI.java:272)
>         at
>
org.apache.axis.message.addressing.handler.AddressingHandler.processClientRequest(AddressingHandl
> 
> er.java:240)
>         at
> 
>
org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at
> 
>
localhost.axis.services.CalculatePrice.CalculatePriceSoapBindingStub.getInitialPrice(CalculatePri
> 
> ceSoapBindingStub.java:103)
>         at AgriMarketProcess.startAgriProcess(AgriMarketProcess.java:28)
>         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:324)
>         at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
>         at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
>         at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at
> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
>         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
>         at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> 
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at
> 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> 
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> 
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 
>         at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at
> 
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.
> 
> java:705)
>         at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
> *************************************************
> 
> All of my settings are the default settings.
> The service I am trying to deploy is in turn calling some other services,
> and they are also deployed in the same tomcat instance.
> I read some messages in the mailing list and according to them the To and
> From fields may be erroneous, but they are fine in my case(?)
> I am pasting the contents of message headers below -
> 
> 1.CreateCoordinationContextRequest -
> 				   ----
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c0a4cd0-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://localhost:8081/axis/services/activationCoordinator</wsa:To>
>          <wsa:Action soapenv:mustUnderstand="0">http://xxx</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
> 
> 
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
>          </wsa:From>
>       </soapenv:Header>
>                                     ----
> CreateCoordinationContextResponse -
> 		----
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c198f10-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:T
> 
> o>
>          <wsa:Action
> soapenv:mustUnderstand="0">http://xxxResponse</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
>            
>
<wsa:Address>http://localhost:8081/axis/services/activationCoordinator</wsa:Address>
>          </wsa:From>
>          <wsa:RelatesTo RelationshipType="wsa:Reply"
> 
>
soapenv:mustUnderstand="0">uuid:9c0a4cd0-f515-11da-a891-ff583c84fafa</wsa:RelatesTo>
>       </soapenv:Header>
>                 ---
> 2. Register
>               ---
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c25c410-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://localhost:8081/axis/services/registrationCoordinator</wsa:To>
>          <wsa:Action soapenv:mustUnderstand="0">http://xxx</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
> 
> 
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
>          </wsa:From>
>          <ns3:CallbackRef xmlns:ns3="http://ws.apache.org/kandula"
> 
>
soapenv:mustUnderstand="0">uuid:9c198f10-f515-11da-a891-ff583c84fafa</ns3:CallbackRef>
>       </soapenv:Header>
> 		----
> RegisterResponse
> 	---
> 	<soapenv:Header>
>          <wsa:MessageID
> 
>
soapenv:mustUnderstand="0">uuid:9c2d6530-f515-11da-a891-ff583c84fafa</wsa:MessageID>
>          <wsa:To
> 
>
soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:T
> 
> o>
>          <wsa:Action
> soapenv:mustUnderstand="0">http://xxxResponse</wsa:Action>
>          <wsa:From soapenv:mustUnderstand="0">
> 
> 
>
<wsa:Address>http://localhost:8081/axis/services/registrationCoordinator</wsa:Address>
>             <wsa:ReferenceProperties>
>                <ns3:CallbackRef soapenv:mustUnderstand="0"
> 
> xmlns:ns3="http://ws.apache.org/kandula"
> 
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">uuid:9c198f10-f515-11da-a891-ff583c84fa
> 
> fa</ns3:CallbackRef>
>             </wsa:ReferenceProperties>
>          </wsa:From>
>          <wsa:RelatesTo RelationshipType="wsa:Reply"
> 
>
soapenv:mustUnderstand="0">uuid:9c25c410-f515-11da-a891-ff583c84fafa</wsa:RelatesTo>
>       </soapenv:Header>
> 	---
> After that the exception is thrown and I try to rollback the transaction,
> but rollback messages do not get any reply.
> Can anybody tell me what is going wrong here?
> 
> Thanks in advance,
> Jaideep Dhok.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: kandula-dev-help@ws.apache.org
> 
> 



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