when you have a minute please supply WSDL and accompanying XSD
so we can determine if WSDL2Java can accomodate this particular ComplexType 
array type

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


Date: Thu, 25 Sep 2008 06:50:48 -0600
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: get_store() throws NullPointerException.


  


    
    
  
  
    
      Hi,    

      
    
             I was able to resolve this issue. The problem was that I was 
trying to instantiate an array type and do a set(type[]). Instead I used 
addNewtype() method, got a new empty object and set it's value. Now I do not 
get this error.    

      
    
      Thanks,    
    
      Srijith.

>>> "Srijith Kochunni" <[EMAIL PROTECTED]> 09/24/08 6:04 PM >>>
    
    
      Hi All,    
    
      

          
    
                   I am using Axis2 to create web service client using xmlbeans 
databinding. I have this strange problem that when I invoke the setter method 
for a particular type, I get a NullPointer exception. The exception is being 
thrown from an autogenerated code which I got using wsdl2java. The specific 
class which throws this error extends XmlObjectBase.    
    
      

          
    
      The exception is thrown when the following code is invoked in the 
autogenerated class.    
    
      

          
    
      target = (com.test.abc.Status)get_store().find_element_user(STATUS$0, 0); 
   
    
      

          
    
      So obviously get_store is returning null. Have checked with the xmlbeans 
doc here - > 
http://ws.apache.org/axis2/1_1_1/userguide-creatingclients-xmlbeans.html     
    
      and am following all steps correctly, but not sure, why this error is 
caused.     
    
      

          
    
      Any help in this regard would be greatly appreciated.    
    
      

          
    
      Thanks,    
    
      Srijith.
    
  


_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Reply via email to