You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Detelin Yordanov (JIRA)" <ji...@apache.org> on 2008/12/05 16:23:44 UTC

[jira] Updated: (AXIS2-4004) Inner class instantiation problem

     [ https://issues.apache.org/jira/browse/AXIS2-4004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Detelin Yordanov updated AXIS2-4004:
------------------------------------

    Attachment:     (was: DefaultObjectSupplier.diff)

> Inner class instantiation problem
> ---------------------------------
>
>                 Key: AXIS2-4004
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4004
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: nightly
>            Reporter: Detelin Yordanov
>         Attachments: DefaultObjectSupplier.diff
>
>
> Hi guys,
>   I'm having problems using inner classes, if having a simple EchoService with an inner class like this:
> public class EchoService 
>     public MyInnerClass retMyInnerClass(MyInnerClass input) {
>         return input;
>     }
> 	
>     public class MyInnerClass {
>         private String name;
> 		
>         public MyInnerClass() {     }
> 		
> 	public void setName(String name) {
> 		this.name = name;
> 	}
> 		
> 	public String getName() {
> 		return this.name;
> 	}
>     };
> }
> I am able to deploy it and invoke it with a generated ADB client, however, when the service receives the XML request and tries to create
> an instance of the inner class an exception gets thrown inside the DefaultObjectSupplier:
> Caused by: java.lang.InstantiationException: org.tempuri.test.EchoService$MyInnerClass
>         at java.lang.Class.newInstance0(Class.java:335)
>         at java.lang.Class.newInstance(Class.java:303)
>         at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28)
>         ... 28 more
> The issue has been reported before, see AXIS2-2691, however it seems that the DefaultObjectSupplier patch provided there was never applied.
> Annogen changes were also required but since now (in the nightly build) Axis2 does not use annogen anymore, I think only the DefaultObjectSupplier patch is relevant.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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