axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garth Keesler <gar...@gdcjk.com>
Subject Re: Bug with PojoGuide clone
Date Wed, 10 Jan 2007 12:37:51 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I don't mean to be filling this thread up with my own replies but...<br>
<br>
If you examine wsVendor.java in the tar file, you'll see that it
supports two services: wsgetVendor and wsgetVendorName. wsgetVendor
returns an object of type Vendor and wsgetVendorName returns a String.
I converted the client to call wsgetVendorName (returning a String)
instead of wsgetVendor (returning a Vendor) and it worked!<br>
<br>
So, this has something to do with sending or receiving the Vendor
object correctly. (At least I think:-)<br>
<br>
Thanx,<br>
Garth<br>
<br>
Garth Keesler wrote:
<blockquote cite="mid45A4D573.4060700@gdcjk.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
Just upgraded to Axis2 v1.1.1 with same result. I knew this was my prob
but it was worth a try... :-)<br>
  <br>
Thanx,<br>
Garth<br>
  <br>
Garth Keesler wrote:
  <blockquote cite="mid45A4BC73.8060902@gdcjk.com" type="cite">
    <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
    <title></title>
Hello and Thanx for the reply!<br>
    <br>
I'm running Tomcat v5.5.20 and Axis2 v1.1.<br>
    <br>
The full stackdump is in the tar file but here's a copy. Note that I
trap the error and request the stackdump in the code.:<br>
    <br>
rpc.client.run:<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java] Endpoint found.<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java] targetEPR set.<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java] QName set.<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java] Ready for call.<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java] Error returned - null<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java] java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:294)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:549)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:499)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:438)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:97)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
com.ttna.rpcclient.wsVendorClient.main(Unknown
Source)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
java.lang.reflect.Method.invoke(Method.java:585)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.Java.run(Java.java:710)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Task.perform(Task.java:364)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Target.execute(Target.java:341)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Target.performTasks(Target.java:369)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Task.perform(Task.java:364)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Target.execute(Target.java:341)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Target.performTasks(Target.java:369)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Main.runBuild(Main.java:668)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.Main.startAnt(Main.java:187)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)<br>
&nbsp;&nbsp;&nbsp;&nbsp; [java]&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)<br>
    <br>
BUILD SUCCESSFUL<br>
Total time: 6 seconds<br>
    <br>
I've tried "implements Serializable" on the main class since the trace
references "deserialize" but it had no visible impact.<br>
    <br>
I really appreciate any help you can provide.<br>
    <br>
Thanx,<br>
GarthK<br>
    <br>
Deepal Jayasinghe wrote:
    <blockquote cite="mid45A4676A.3040406@opensource.lk" type="cite">
      <pre wrap="">Hi Garth ;

What the Axis2  version are you using ? and what is the exception.

Thanks
Deepal

  </pre>
      <blockquote type="cite">
        <pre wrap="">Sorry, I forgot to include services.xml.

&lt;service name="wsVendor" scope="application"&gt;
    &lt;description&gt;
        Vendor Service Service
    &lt;/description&gt;
    &lt;messageReceivers&gt;
        &lt;messageReceiver mep=<a class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2004/08/wsdl/in-out">"http://www.w3.org/2004/08/wsdl/in-out"</a>
                        
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/&gt;
        &lt;messageReceiver mep=<a class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2004/08/wsdl/in-out">"http://www.w3.org/2004/08/wsdl/in-out"</a>
                        
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/&gt;
    &lt;/messageReceivers&gt;
    &lt;parameter name="ServiceClass"&gt;com.ttna.wsVendor&lt;/parameter&gt;
 
&lt;/service&gt;

Thanx,
Garth


Garth Keesler wrote:

    </pre>
        <blockquote type="cite">
          <pre wrap="">All,

First, I'm a newbie trying to get the first "real" web service to
work. BTW, this works great using Eclipse and WTP but only on the
same server which sort of limits the approach.

Attached is a tar file of a simple PojoGuide clone that I have spent
days on trying to clear the last bug. I am getting a null return in
the rpcclient but the service, located on another box, seems to be
running correctly. I've tried a variety of things to clear the error
but I can't figure out what's wrong. The Diags folder in the tar file
shows the stackdump as well as the trace output from the web service.
All of the source and build.xml files are included.

Help greatly appreciated.

Thanx Much,
Garth

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

---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>

      </pre>
        </blockquote>
        <pre wrap="">---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For
additional commands, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a> 
    </pre>
      </blockquote>
      <pre wrap=""><!---->

  </pre>
    </blockquote>
    <br>
---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
.
  </blockquote>
  <br>
---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>
.
</blockquote>
<br>
</body>
</html>

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


Mime
View raw message