You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gary Yue <yu...@yahoo.com> on 2006/06/21 08:56:49 UTC

Need help on Axis2SampleDocLitService sample!!!!

Hi,

I am trying the Axis2SampleDocLitService example in
the Axis2.0 user guide. I ran WSDL2Java against the
sample wsdl, and I was able to get the server up and
running. However, for the client, i am getting a
runtime exception while sending the message to server:
(I did use the tcpmon and see that the server was
sending a proper message back to the client, so this
seems to be a client side serialization problem): 

     [java] java.lang.RuntimeException : Data binding
error
     [java]     at
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:877)
     [java]     at
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString
(Axis2SampleDocLitServiceStub.java:500)
     [java]     at
echoStringClient.main(echoStringClient.java:59)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at
java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
     [java]     at
org.apache.tools.ant.taskdefs.Java.run (Java.java:710)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
     [java]     at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at
org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:275)
     [java]     at
org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at
org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at
org.apache.tools.ant.Target.performTasks
(Target.java:369)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:40)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
     [java]     at
org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt
(Main.java:187)
     [java]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
     [java] Caused by: java.lang.NullPointerException 
     [java]     at
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:823)
     [java]     ... 23 more


Can anyone help???
thanks



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Need help on Axis2SampleDocLitService sample!!!!

Posted by Gary Yue <yu...@yahoo.com>.
Hi,

i also tried the latest nightly built, but that didn't
help.

Has anyone tried this sample and have gotten it to
work?
Any idea what i might have missed?
(i tried both adb and xmlbeans databinding. None of
them works)

thanks
gary


--- Gary Yue <yu...@yahoo.com> wrote:

> Hi,
> 
> I am trying the Axis2SampleDocLitService example in
> the Axis2.0 user guide. I ran WSDL2Java against the
> sample wsdl, and I was able to get the server up and
> running. However, for the client, i am getting a
> runtime exception while sending the message to
> server:
> (I did use the tcpmon and see that the server was
> sending a proper message back to the client, so this
> seems to be a client side serialization problem): 
> 
>      [java] java.lang.RuntimeException : Data
> binding
> error
>      [java]     at
>
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:877)
>      [java]     at
>
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString
> (Axis2SampleDocLitServiceStub.java:500)
>      [java]     at
> echoStringClient.main(echoStringClient.java:59)
>      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>      [java]     at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java]     at
> java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at
>
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
>      [java]     at
>
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
>      [java]     at
> org.apache.tools.ant.taskdefs.Java.run
> (Java.java:710)
>      [java]     at
>
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
>      [java]     at
>
org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
>      [java]     at
> org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:275)
>      [java]     at
> org.apache.tools.ant.Task.perform(Task.java:364)
>      [java]     at
> org.apache.tools.ant.Target.execute(Target.java:341)
>      [java]     at
> org.apache.tools.ant.Target.performTasks
> (Target.java:369)
>      [java]     at
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>      [java]     at
>
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>      [java]     at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets
> (DefaultExecutor.java:40)
>      [java]     at
>
org.apache.tools.ant.Project.executeTargets(Project.java:1068
> )
>      [java]     at
> org.apache.tools.ant.Main.runBuild(Main.java:668)
>      [java]     at
> org.apache.tools.ant.Main.startAnt
> (Main.java:187)
>      [java]     at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>      [java]     at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>      [java] Caused by:
> java.lang.NullPointerException 
>      [java]     at
>
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:823)
>      [java]     ... 23 more
> 
> 
> Can anyone help???
> thanks
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-user-help@ws.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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