Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Error: Null setter method specificied.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I created a wsdl for a class returning an Array object of a use defined complex type( Eg. UserData[] ) for a method say getWorkspaces().

The SEI for the above is :

public interface TestOne_SEI extends java.rmi.Remote
{
public com.proto.data.UserData[] getWorkspaces();
}

The UserData class is as follows :
public class UserData implements Serializable {
private String name;
/**
* @return
*/
public String getName() {
return name;
}
/**
* @param string
*/
public void setName(String string) {
name = string;
}

}
The generation of the client was done using IBM Websphere 5.0.2 (Web Service Runtime ) in WSAD 5.1.0.
However, the testing of the client resulted in an error :

faultCode: {http://websphere.ibm.com/webservices/}Server.generalException
faultString: java.lang.IllegalAccessException: WSWS3214E: Error: Null setter method specified.
faultActor: null
faultDetail:
stackTrace: java.lang.IllegalAccessException: WSWS3214E: Error: Null setter method specified.
at com.ibm.ws.webservices.engine.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:186)
at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.setIt(BeanDeserializer.java:524)
at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onSimpleChild(BeanDeserializer.java:435)
at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:724)
at com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2DConverter.java:391)
at sax.SAX2DocumentEntityParserBase.endElementAction(Unknown Source)
at util.DocumentEntityParserBase.endElementEvent(Unknown Source)
at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanEndElement(Unknown Source)
at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
at util.DocumentEntityParserBase.parse(Unknown Source)
at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)

I am using the default serialization/deserialization.
Am I missing something ??

Thx in advance ...
Pawan
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic