• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MarshallableObject for java 6 version

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I do have a project which which has been using jre1.5.0_06 from the past few years. But now i would like to upgrade it to jre1.6.0_20. When i do the upgradation, i do get an error for the Class MarshallableObject ( i didnt get any error when i was using jre1.5.0_06 ).

Now MarshallableObject class has two methods as shown below

marshal(Marshaller m)
unmarshal(Unmarshaller u)

Detail usage of the above methods in my project is as below:



Now the following piece of code

1) XMLWriter w = m.writer();

2) XMLScanner xs = u.scanner();

3) Validator v = u.validator();

doesnt pose a problem with jre1.5.0_06 , but when i use jre1.6.0_20, the method writer, scanner, validator doesnt seem to exists for Marshaller and UnMarshaller class.
I checked the api documentation. The methods do exists for both the classes.

Is it that the respective methods are not included in java 6?? Is there any replacement methods for these???Couldnt find any related matter.
any help would be appreciated.


The error mesage that i am getting is " the method scanner is undefined for the type Unmarshaller" and similarly for others.

In java 6, Marshaller is an interface, but i went through a site, which showed Marshaller as a class. Here the link for both

Marshaller Class= (Marshaller Class)

Marshaller interface - (Interface Marshaller)


Heres the link for MarshallableObject which has both marshal and Unmarshal Methods

MarshallableObject Class : Class MarshallableObject

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic