axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhat, Suma" <Suma_B...@bmc.com>
Subject RE: Problem upgrading from 1.3 to 1.5
Date Wed, 17 Jun 2009 20:39:24 GMT
I am testing the services with soapui at the moment and I am sending the username/password
in a simple soap request.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.xx.yy.bmc.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:doLogin>
         <!--Optional:-->
         <ser:username>sysadmin</ser:username>
         <!--Optional:-->
         <ser:password>sysadmin2</ser:password>
      </ser:doLogin>
   </soapenv:Body>
</soapenv:Envelope>


As you will see from the stack trace the service implementation is complaining that the username
is empty, when it clearly is not empty in the request.

The response to this is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>User name should not be empty</faultstring>
         <detail>
            <Exception>org.apache.axis2.AxisFault: User name should not be empty
        at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
        at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
        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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Caused by: 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
        at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
        ... 20 more
Caused by: java.lang.IllegalArgumentException: User name should not be empty
        at com.bmc.bcan.ws.shared.ValidationUtils.validateAsNonEmpty(ValidationUtils.java:33)
        at com.bmc.bcan.ws.shared.AuthenticationService.validateDoLoginParams(AuthenticationService.java:104)
        at com.bmc.bcan.ws.service.AuthenticationServiceImpl.doLogin(AuthenticationServiceImpl.java:49)
        ... 26 more</Exception>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

-----Original Message-----
From: Andreas Veithen [mailto:andreas.veithen@gmail.com]
Sent: Wednesday, June 17, 2009 4:29 PM
To: axis-user@ws.apache.org
Subject: Re: Problem upgrading from 1.3 to 1.5

I think you will need to explain a bit further how the
username/password information is sent.

Andreas

On Wed, Jun 17, 2009 at 21:28, Bhat, Suma<Suma_Bhat@bmc.com> wrote:
> Thanks much. I did need the TCP transport.
>
> Actually, the upgrade is from axis2 1.3 to 1.5 (not 1.4 to 1.5 as I previously indicated)
and have changed the email subject to this effect.
>
> We have token based authentication system, so all web service calls must include the
user token returned by the login method in the Authentication Service.
> The problem I now see is that, the username and password values sent across in the request
are not getting deserialized properly on the server side. The login method in the service
implementation is getting "\n \n \n \n" as the username and null as the password. Any ideas
why this may be happening ?
>
> Thanks,
> Suma
>
>
>
> -----Original Message-----
> From: Andreas Veithen [mailto:andreas.veithen@gmail.com]
> Sent: Sunday, June 14, 2009 10:57 AM
> To: axis-user@ws.apache.org
> Cc: axis-dev@ws.apache.org
> Subject: Re: Problem upgrading from 1.4 to 1.5
>
> If you really need the TCP transport (which is unlikely), you can get
> it from [1]. If not, just remove the corresponding section from you
> axis2.xml.
>
> Andreas
>
> [1] http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-transport-tcp/1.0-SNAPSHOT/
>
> On Sun, Jun 14, 2009 at 11:38, Bhat, Suma<Suma_Bhat@bmc.com> wrote:
>> The transport jars are in the lib, but neither of the transport jars has the TCPTransportSender.
By transport jars, I mean
>> axis2-transport-http-1.5.jar and
>> axis2-transport-local-1.5.jar
>>
>> Is there another jar that I missing perhaps ?
>>
>> - Suma
>>
>> -----Original Message-----
>> From: Deepal Jayasinghe [mailto:deepal@opensource.lk]
>> Sent: Friday, June 12, 2009 6:42 PM
>> To: axis-user@ws.apache.org; axis-dev@ws.apache.org
>> Subject: Re: Problem upgrading from 1.4 to 1.5
>>
>> Yes, you need to download the transports jars and drop that into lib,
>> anyway I think we have to do a 1.5.1 release. So we will make sure that
>> it is there in the release.
>>
>> Thanks,
>> Deepal
>>
>> Bhat, Suma wrote:
>>>
>>> Hi,
>>>
>>>
>>>
>>> I am seeing the following exception on tomcat startup.
>>>
>>>
>>>
>>> Jun 12, 2009 3:58:06 PM
>>> org.apache.axis2.deployment.WarBasedAxisConfigurator <init>
>>>
>>> SEVERE: org.apache.axis2.transport.tcp.TCPTransportSender
>>>
>>> org.apache.axis2.deployment.DeploymentException:
>>> org.apache.axis2.transport.tcp.TCPTransportSender
>>>
>>>         at
>>> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:694)
>>>
>>>         at
>>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:121)
>>>
>>>         at
>>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:707)
>>>
>>>         at
>>> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
>>>
>>>         at
>>> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
>>>
>>>         at
>>> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
>>>
>>>         at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>>>
>>>         at
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>>>
>>>         at
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
>>>
>>>         at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>>
>>>         at
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>>>
>>>         at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>>
>>>         at
>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>>
>>>         at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>>
>>>         at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>>
>>>         at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>>
>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>>>
>>>         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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>
>>>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.axis2.transport.tcp.TCPTransportSender
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
>>>
>>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>
>>>         at java.lang.Class.forName0(Native Method)
>>>
>>>         at java.lang.Class.forName(Class.java:169)
>>>
>>>         at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>>>
>>>         at
>>> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:669)
>>>
>>>         ... 31 more
>>>
>>> Jun 12, 2009 3:58:06 PM org.apache.catalina.core.StandardContext
>>> loadOnStartup
>>>
>>> SEVERE: Servlet /bca-networks threw load() exception
>>>
>>> java.lang.ClassNotFoundException:
>>> org.apache.axis2.transport.tcp.TCPTransportSender
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
>>>
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
>>>
>>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>
>>>         at java.lang.Class.forName0(Native Method)
>>>
>>>         at java.lang.Class.forName(Class.java:169)
>>>
>>>         at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
>>>
>>>         at
>>> org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:669)
>>>
>>>         at
>>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:121)
>>>
>>>         at
>>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:707)
>>>
>>>         at
>>> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
>>>
>>>         at
>>> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
>>>
>>>         at
>>> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
>>>
>>>         at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>>>
>>>         at
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>>>
>>>         at
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
>>>
>>>         at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>>
>>>         at
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>>>
>>>         at
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>>>
>>>         at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>>
>>>         at
>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>>
>>>         at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>>
>>>         at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>>
>>>         at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>>
>>>         at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>>
>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>>>
>>>         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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>
>>>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>
>>>
>>>
>>> Also I noticed: http://issues.apache.org/jira/browse/AXIS2-4337 that
>>> talks about this.
>>>
>>>
>>>
>>> Is there a way to get around this issue? Or is this jira going to be
>>> fixed soon ?
>>>
>>>
>>>
>>> Do let me know since we can definitely not go through with the upgrade
>>> without a fix/workaround to this problem.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Suma Bhat
>>>
>>
>> --
>> Thank you!
>>
>>
>> http://blogs.deepal.org
>> http://deepal.org
>>
>>
>

Mime
View raw message