• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

org.xml.sax.SAXException: Unregistered type: class java.lang.Object

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I am have generated java classes from wsdl file and using stub classes to consume web services (Alfresco ECM system)

Java classes are generated using Eclipse IDE (Apache Axis).

I am able to consume some services but some services throws following exception:




Is there any issue with java stub classes generation using eclipse?

Which tool generates the most perfect client side java classes from wsdl file?

Thanks for any help.
 
Nikes Shah
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please guide. I have searched a lot on internet but did not get any resolution.

Can some one tell whether I am missing in generating stubs or any deserialization needed?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you are using RPC instead of JAXB to convert from java objects to xml and back, are you just using a web service plugin for eclipse? You may have to update how you are generating the classes. In any event what's going on is that java and xml both have types and when you convert between java objects and xml (which it has to for these services) it has certain classes that map to certain xml types, and visa versa. It looks like whatever method you are using doesn't have a mapping for the Object class. I've never used the Eclipse plugin for generating the classes, but there are plenty of command line tools that you can use if you can't get the plugin figured out, I use wsconsume for the most part. Hope this helped!
 
Nikes Shah
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Matt.

I am using Eclipse Galileo version which comes with inbuilt Axis plugin "org.apache.axis_1.4.0.v200905122109".

I was looking at the stub generated classes from wsdl and it looks like that BeanDeserializer mapping is not generated.

In my client code I added BeanDeserializer mapping manually and I am getting the proper response.

So now I have to look for latest version of Axis plugin or I will go with Axis2 client so that stub calsses can take care of
serialization/deserialization.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nikes Shah wrote:Thanks Matt.

I am using Eclipse Galileo version which comes with inbuilt Axis plugin "org.apache.axis_1.4.0.v200905122109".

I was looking at the stub generated classes from wsdl and it looks like that BeanDeserializer mapping is not generated.

In my client code I added BeanDeserializer mapping manually and I am getting the proper response.

So now I have to look for latest version of Axis plugin or I will go with Axis2 client so that stub calsses can take care of
serialization/deserialization.



I have a book, Developing Web Services with Apache Axis2, and on page 30 it says that v1.4 of the Code Generator Wizard plugin contains a critical bug and to use v1.3 instead.

I just switched to net beans once I read that. I used eclipse for a long time and liked it very much however.
 
reply
    Bookmark Topic Watch Topic
  • New Topic