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 George H <ge...@gmail.com> on 2007/09/07 22:44:34 UTC

Help solving InvokationTargetException with Axis2 codegen plugin for eclipse

Hi,

I am using Eclipse "europa" J2EE version with the Axis2 v1.3 codegen
plugin for my webservices. I've successfully created and deployed
webservices with these plugins and I am very happy with them.

But, I've encountered this error when I wrote a java class and used
the codegen tool to create a WSDL file from java source. At the very
last step of the wizard (when selecting where to save the wsdl file) I
repeatedly gives me this error message:  "An error occurred while
completing process -java.lang.reflect.InvokationTargetException"

I don't know what is causing it. My webservice method returns
"boolean" and takes "byte[]" as it's parameter.

Any help is much appreciated.

-- 
"Nothing is impossible for the person that doesn't have to do it"
"The probability of anything happening is in inverse ratio to its desirability"
"The problem is not freedom of choice, it is about the choices you
have. Choice is always limited by the number of alternatives presented
to you"
--
George H
george.dma@gmail.com

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


Re: Help solving InvokationTargetException with Axis2 codegen plugin for eclipse

Posted by George H <ge...@gmail.com>.
Hi,

I discovered it was giving me this exception with 1 method only.

private GenericStruct createError(int id, String type, String type_desc) {

}

That's the method above.. the "GenericStruct" is my own custom class.
I use it all around the place and it seemed that if I removed that
method everything worked fine.

Thanks.

On 9/18/07, Lahiru Sandakith <sa...@gmail.com> wrote:
> Hi George,
> If you can put the exact method signatures in all the methods that you
> expose, I ll try to reproduce the error, But for all the simple types and
> their arrays the plugin works for me.
> Thanks
> Lahiru
>
>
> On 9/8/07, George H <ge...@gmail.com> wrote:
> >
> > Hi,
> >
> > I am using Eclipse "europa" J2EE version with the Axis2 v1.3 codegen
> > plugin for my webservices. I've successfully created and deployed
> > webservices with these plugins and I am very happy with them.
> >
> > But, I've encountered this error when I wrote a java class and used
> > the codegen tool to create a WSDL file from java source. At the very
> > last step of the wizard (when selecting where to save the wsdl file) I
> > repeatedly gives me this error message:  "An error occurred while
> > completing process
> -java.lang.reflect.InvokationTargetException"
> >
> > I don't know what is causing it. My webservice method returns
> > "boolean" and takes "byte[]" as it's parameter.
> >
> > Any help is much appreciated.
> >
> > --
> > "Nothing is impossible for the person that doesn't have to do it"
> > "The probability of anything happening is in inverse ratio to its
> desirability"
> > "The problem is not freedom of choice, it is about the choices you
> > have. Choice is always limited by the number of alternatives presented
> > to you"
> > --
> > George H
> > george.dma@gmail.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Thanks
> Lahiru Sandakith
>
>  http://sandakith.wordpress.com/
> GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


-- 
"Nothing is impossible for the person that doesn't have to do it"
"The probability of anything happening is in inverse ratio to its desirability"
"The problem is not freedom of choice, it is about the choices you
have. Choice is always limited by the number of alternatives presented
to you"
--
George H
george.dma@gmail.com

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


Re: Help solving InvokationTargetException with Axis2 codegen plugin for eclipse

Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi George,
If you can put the exact method signatures in all the methods that you
expose, I ll try to reproduce the error, But for all the simple types and
their arrays the plugin works for me.
Thanks
Lahiru

On 9/8/07, George H <ge...@gmail.com> wrote:
>
> Hi,
>
> I am using Eclipse "europa" J2EE version with the Axis2 v1.3 codegen
> plugin for my webservices. I've successfully created and deployed
> webservices with these plugins and I am very happy with them.
>
> But, I've encountered this error when I wrote a java class and used
> the codegen tool to create a WSDL file from java source. At the very
> last step of the wizard (when selecting where to save the wsdl file) I
> repeatedly gives me this error message:  "An error occurred while
> completing process -java.lang.reflect.InvokationTargetException"
>
> I don't know what is causing it. My webservice method returns
> "boolean" and takes "byte[]" as it's parameter.
>
> Any help is much appreciated.
>
> --
> "Nothing is impossible for the person that doesn't have to do it"
> "The probability of anything happening is in inverse ratio to its
> desirability"
> "The problem is not freedom of choice, it is about the choices you
> have. Choice is always limited by the number of alternatives presented
> to you"
> --
> George H
> george.dma@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F