axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4278) ADBException: Unexpected subelement when POJO service returns object with a base class in a different package
Date Fri, 07 Jan 2011 10:12:48 GMT

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

Amila Chinthaka Suriarachchi resolved AXIS2-4278.
-------------------------------------------------

    Resolution: Fixed

already fixed

> ADBException: Unexpected subelement when POJO service returns object with a base class
in a different package
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4278
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4278
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4.1
>            Reporter: Pétur Runólfsson
>         Attachments: Base.java, Client.java, Derived.java, Server.java, Server.wsdl,
ServerCallbackHandler.java, ServerStub.java, services.xml
>
>
> An Axis2 POJO web service returns an object of type Derived in package derived, which
extends type Base in package base. When a client generated with Axis2 wsdl2java attempts to
call this service, it fails with the following exception:
>      [java] org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected
subelement one
>      [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
                 
>      [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)            
                       
>      [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)    
                       
>      [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)    
                       
>      [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)        
                       
>      [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
                    
>      [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.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
             
>      [java]     at org.apache.tools.ant.Task.perform(Task.java:348)                 
                       
>      [java]     at org.apache.tools.ant.Target.execute(Target.java:357)             
                       
>      [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)        
                       
>      [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
                    
>      [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)    
                       
>      [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     
>      [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1189)   
                       
>      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:758)                
                       
>      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:217)                
                       
>      [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)      
                       
>      [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)     
                       
>      [java] Caused by: org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement one
>      [java]     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)         
                                  
>      [java]     at org.apache.ws.axis2.ServerStub.fromOM(ServerStub.java:2017)      
                                  
>      [java]     at org.apache.ws.axis2.ServerStub.getDerived(ServerStub.java:191)   
                                  
>      [java]     at Client.main(Client.java:6)                                       
                                  
>      [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:217)
                                
>      [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
                            
>      [java]     ... 21 more
>      [java] Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
Unexpected subelement one
>      [java]     at org.apache.ws.axis2.ServerStub$Derived$Factory.parse(ServerStub.java:995)
>      [java]     at org.apache.ws.axis2.ServerStub$GetDerivedResponse$Factory.parse(ServerStub.java:1457)
>      [java]     at org.apache.ws.axis2.ServerStub.fromOM(ServerStub.java:2011)
>      [java]     ... 29 more
>      [java] Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
one
>      [java]     at org.apache.ws.axis2.ServerStub$Derived$Factory.parse(ServerStub.java:989)
>      [java]     ... 31 more
> I'm not sure if the problem is on the client or server side.

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message