axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "albert quinn" <albertber...@gmail.com>
Subject AxisFault caused by : java.lang.InstantiationException
Date Wed, 18 Jul 2007 18:38:47 GMT
  Hi again !! :

  Many hours after my last posts, I'm back. I've been learning about
Ant, then I've created a new project in Eclipse and I've copied the
"pojoguide" sample. I've changed the lines :

  	<property name="axis2.home" value="...
	<property name="repository.path" value="...

to reference my AXIS2_HOME and my Axis 2 repository. Then I've used
the build.xml to generate the service, I've deployed it, I've
generated the rpc client and I've run it. It worked.

  So I've created a new project and copied again the "pojoguide"
sample. Then I've changed the sample classes for my own classes, then
I've changed the "build.xml" and "services.xml" to reference my own
classes. I've compared the "build.xml" and "services.xml" of the
sample with my own files, line by line, MANY times.

  Then I've used the new "build.xml" and I've generated the service
and deployed it, checking it was running with my browser. All seems to
be ok. Then I've generated the rpc client and I've run it. And then
I've got the exception trace at the bottom of my e-mail.

  I've checked the files many times but I can't see any error. I think
the trees don't let me see the forest!!!. I've attached my project to
this e-mail, perhaps anybody could help me, sure I'm not the one who
got that Exception (sure?... hummm... not sure). If anybody could tell
me what's happening here I promise to do a google bombing : the F@#%$&
Axis 2 guru = his/her name. Please, help!!!.

  Thanks in advance to all the Axis 2 gurus who know the solution to
this annoying problem and are going to tell it to me ;)

  Regards.



rpc.client.run:
     [java] ERROR !!! AxisFault.
     [java] org.apache.axis2.AxisFault: org.testing.data.External
     [java] at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28)
     [java] at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:370)
     [java] at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:676)
     [java] at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:624)
     [java] at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:560)
     [java] at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:99)
     [java] at org.testing.rpcclient.MyTestingServiceRPCClient.main(MyTestingServiceRPCClient.java:29)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java] at java.lang.reflect.Method.invoke(Unknown Source)
     [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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
     [java] at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
     [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
     [java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
     [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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
     [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
     [java] Caused by: java.lang.InstantiationException:
org.testing.data.External
     [java] at java.lang.Class.newInstance0(Unknown Source)
     [java] at java.lang.Class.newInstance(Unknown Source)
     [java] at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:26)
     [java] ... 36 more

Mime
View raw message