[ http://issues.apache.org/jira/browse/AXIS2-843?page=all ]

Davanum Srinivas updated AXIS2-843:
-----------------------------------

    Description: 
Service Generated using:
w2j -uri c:\APACHE\axis2\modules\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -d 
xmlbeans -o samples -p org.apache.axis2.userguide

Client Generated using:
w2j -t -uri c:\APACHE\axis2\modules\samples\wsdl\Axis2SampleDocLit.wsdl -u -d 
xmlbeans -o samples -p org.apache.axis2.userguide

Stack traces:
>>>>> echoStringArray                                                           
>>>>>                                                                           
>>>>>                                                                    
>>>>> java.lang.RuntimeException: Data binding error                            
>>>>>                                                                           
>>>>>                                                                           
>>>>>        at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
>>>>>                                                                           
>>>>>                                            at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoStringArray(Axis2SampleDocLitServiceStub.java:167)
>>>>>                                                                           
>>>>>                                   at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoStringArray(Axis2SampleDocLitServiceTest.java:40)
>>>>>                                                                           
>>>>>                                at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:100)
>>>>>                                                                           
>>>>>                                      
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a 
[EMAIL PROTECTED]://userguide.axis2.apache.org/xsd: document element local name 
mismatch expected echoStringArrayReturn got string                
at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)    
                                                                                
                                                             at 
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
                                                                                
                                                 at 
org.apache.axis2.userguide.xsd.EchoStringArrayReturnDocument$Factory.parse(EchoStringArrayReturnDocument.java:86)
                                                                                
                         at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:812)
                                                                                
                                     ... 3 more                                 
                                                                                
                                                                                
         

 >>>>> echoStruct                                                               
 >>>>>                                                                          
 >>>>>                                                                      
 >>>>> java.lang.RuntimeException: Data binding error                           
 >>>>>                                                                          
 >>>>>                                                                          
 >>>>>           at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
 >>>>>                                                                          
 >>>>>                                             at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoStruct(Axis2SampleDocLitServiceStub.java:331)
 >>>>>                                                                          
 >>>>>                                         at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoStruct(Axis2SampleDocLitServiceTest.java:72)
 >>>>>                                                                          
 >>>>>                                      at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:106)
 >>>>>                                                                          
 >>>>>                                       
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a 
[EMAIL PROTECTED]://userguide.axis2.apache.org/xsd: document element local name 
mismatch expected echoStructReturn got varFloat                        
at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)    
                                                                                
                                                             at 
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
                                                                                
                                                 at 
org.apache.axis2.userguide.xsd.EchoStructReturnDocument$Factory.parse(EchoStructReturnDocument.java:86)
                                                                                
                                   at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:834)
                                                                                
                                     ... 3 more                                 
                                                                                
                                                                                
          

>>>>> echoString                                                                
>>>>>                                                                           
>>>>>                                                                    
>>>>> java.lang.RuntimeException: Data binding error                            
>>>>>                                                                           
>>>>>                                                                           
>>>>>        at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
>>>>>                                                                           
>>>>>                                            at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:495)
>>>>>                                                                           
>>>>>                                        at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoString(Axis2SampleDocLitServiceTest.java:92)
>>>>>                                                                           
>>>>>                                     at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:112)
>>>>>                                                                           
>>>>>                                      
Caused by: java.lang.NullPointerException                                       
                                                                                
                                                                   
at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:790)
                                                                                
                                     ... 3 more                                 
                                                                                
                                                                                
                                                                                
                                                                                
                                                                       

  was:
Service Generated using:
w2j -uri c:\APACHE\axis2\modules\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -d 
xmlbeans -o samples -p org.apache.axis2.userguide

Client Generated using:
w2j -t -uri c:\APACHE\axis2\modules\samples\wsdl\Axis2SampleDocLit.wsdl -u -d 
xmlbeans -o samples -p org.apache.axis2.userguide

Stack traces:
>>>>> echoStringArray                                                           
>>>>>                                                                           
>>>>>                                                                    
>>>>> java.lang.RuntimeException: Data binding error                            
>>>>>                                                                           
>>>>>                                                                           
>>>>>        at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
>>>>>                                                                           
>>>>>                                            at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoStringArray(Axis2SampleDocLitServiceStub.java:167)
>>>>>                                                                           
>>>>>                                   at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoStringArray(Axis2SampleDocLitServiceTest.java:40)
>>>>>                                                                           
>>>>>                                at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:100)
>>>>>                                                                           
>>>>>                                      
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a 
[EMAIL PROTECTED]://userguide.axis2.apache.org/xsd: document element local name 
mismatch expected echoStringArrayReturn got string                at 
org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)       
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
                                                                                
                                                 at 
org.apache.axis2.userguide.xsd.EchoStringArrayReturnDocument$Factory.parse(EchoStringArrayReturnDocument.java:86)
                                                                                
                         at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:812)
                                                                                
                                     ... 3 more                                 
                                                                                
                                                                                
         

 >>>>> echoStruct                                                               
 >>>>>                                                                          
 >>>>>                                                                      
 >>>>> java.lang.RuntimeException: Data binding error                           
 >>>>>                                                                          
 >>>>>                                                                          
 >>>>>           at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
 >>>>>                                                                          
 >>>>>                                             at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoStruct(Axis2SampleDocLitServiceStub.java:331)
 >>>>>                                                                          
 >>>>>                                         at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoStruct(Axis2SampleDocLitServiceTest.java:72)
 >>>>>                                                                          
 >>>>>                                      at 
 >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:106)
 >>>>>                                                                          
 >>>>>                                       
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a 
[EMAIL PROTECTED]://userguide.axis2.apache.org/xsd: document element local name 
mismatch expected echoStructReturn got varFloat                        at 
org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)       
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)         
                                                                                
                                                          at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
                                                                                
                                                 at 
org.apache.axis2.userguide.xsd.EchoStructReturnDocument$Factory.parse(EchoStructReturnDocument.java:86)
                                                                                
                                   at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:834)
                                                                                
                                     ... 3 more                                 
                                                                                
                                                                                
          

>>>>> echoString                                                                
>>>>>                                                                           
>>>>>                                                                    
>>>>> java.lang.RuntimeException: Data binding error                            
>>>>>                                                                           
>>>>>                                                                           
>>>>>        at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
>>>>>                                                                           
>>>>>                                            at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:495)
>>>>>                                                                           
>>>>>                                        at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoString(Axis2SampleDocLitServiceTest.java:92)
>>>>>                                                                           
>>>>>                                     at 
>>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:112)
>>>>>                                                                           
>>>>>                                      
Caused by: java.lang.NullPointerException                                       
                                                                                
                                                                     at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:790)
                                                                                
                                     ... 3 more                                 
                                                                                
                                                                                
                                                                                
                                                                                
                                                                       


> Axis2SampleDocLit.wsdl fails with "Data binding error" when using xmlbeans 
> databinding
> --------------------------------------------------------------------------------------
>
>          Key: AXIS2-843
>          URL: http://issues.apache.org/jira/browse/AXIS2-843
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Reporter: Davanum Srinivas
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Axis2SampleDocLitServiceSkeleton.java, 
> Axis2SampleDocLitServiceTest.java
>
> Service Generated using:
> w2j -uri c:\APACHE\axis2\modules\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd 
> -d xmlbeans -o samples -p org.apache.axis2.userguide
> Client Generated using:
> w2j -t -uri c:\APACHE\axis2\modules\samples\wsdl\Axis2SampleDocLit.wsdl -u -d 
> xmlbeans -o samples -p org.apache.axis2.userguide
> Stack traces:
> >>>>> echoStringArray                                                         
> >>>>>                                                                         
> >>>>>                                                                        
> >>>>> java.lang.RuntimeException: Data binding error                          
> >>>>>                                                                         
> >>>>>                                                                         
> >>>>>              at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
> >>>>>                                                                         
> >>>>>                                              at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoStringArray(Axis2SampleDocLitServiceStub.java:167)
> >>>>>                                                                         
> >>>>>                                     at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoStringArray(Axis2SampleDocLitServiceTest.java:40)
> >>>>>                                                                         
> >>>>>                                  at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:100)
> >>>>>                                                                         
> >>>>>                                        
> Caused by: org.apache.xmlbeans.XmlException: error: The document is not a 
> [EMAIL PROTECTED]://userguide.axis2.apache.org/xsd: document element local 
> name mismatch expected echoStringArrayReturn got string                
> at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)  
>                                                                               
>                                                                  at 
> org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)       
>                                                                               
>                                                               at 
> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)       
>                                                                               
>                                                               at 
> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)       
>                                                                               
>                                                               at 
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
>                                                                               
>                                                    at 
> org.apache.axis2.userguide.xsd.EchoStringArrayReturnDocument$Factory.parse(EchoStringArrayReturnDocument.java:86)
>                                                                               
>                            at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:812)
>                                                                               
>                                        ... 3 more                             
>                                                                               
>                                                                               
>                  
>  >>>>> echoStruct                                                             
>                                                                               
>                                                                   
> java.lang.RuntimeException: Data binding error                                
>                                                                               
>                                                                          at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
>                                                                               
>                                        at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoStruct(Axis2SampleDocLitServiceStub.java:331)
>                                                                               
>                                    at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoStruct(Axis2SampleDocLitServiceTest.java:72)
>                                                                               
>                                 at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:106)
>                                                                               
>                                  
> Caused by: org.apache.xmlbeans.XmlException: error: The document is not a 
> [EMAIL PROTECTED]://userguide.axis2.apache.org/xsd: document element local 
> name mismatch expected echoStructReturn got varFloat                        
> at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)  
>                                                                               
>                                                                  at 
> org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)       
>                                                                               
>                                                               at 
> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)       
>                                                                               
>                                                               at 
> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)       
>                                                                               
>                                                               at 
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
>                                                                               
>                                                    at 
> org.apache.axis2.userguide.xsd.EchoStructReturnDocument$Factory.parse(EchoStructReturnDocument.java:86)
>                                                                               
>                                      at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:834)
>                                                                               
>                                        ... 3 more                             
>                                                                               
>                                                                               
>                   
> >>>>> echoString                                                              
> >>>>>                                                                         
> >>>>>                                                                        
> >>>>> java.lang.RuntimeException: Data binding error                          
> >>>>>                                                                         
> >>>>>                                                                         
> >>>>>              at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:844)
> >>>>>                                                                         
> >>>>>                                              at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:495)
> >>>>>                                                                         
> >>>>>                                          at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.testechoString(Axis2SampleDocLitServiceTest.java:92)
> >>>>>                                                                         
> >>>>>                                       at 
> >>>>> org.apache.axis2.userguide.Axis2SampleDocLitServiceTest.main(Axis2SampleDocLitServiceTest.java:112)
> >>>>>                                                                         
> >>>>>                                        
> Caused by: java.lang.NullPointerException                                     
>                                                                               
>                                                                        
> at 
> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:790)
>                                                                               
>                                        ... 3 more                             
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>      

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to