• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using NSXMLInputStream in JC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSXMLInputStream in JC


  • Subject: Using NSXMLInputStream in JC
  • From: Paolo Sommaruga <email@hidden>
  • Date: Thu, 11 Mar 2004 17:31:41 +0100

In my JC application I need to allow the user to save on local disk
some object state values. I have read at
http://developer.apple.com/documentation/WebObjects/XML_Serialization/
index.html
the WebObjects xml serialization features and I would like to use them.
I have start using NSXMLInputStream and NSXMLOutputStream. In Xcode I
have add javafoundation.jar to Web Server target because normally the
com.webobjects.foundation.xml package is inside the
JavaFoundation.framework only in the Application Server target.

Now the serialization process works very fine but in the
deserialization when the jc read the file stream

	xml_stream = new NSXMLInputStream(file_input_stream);

I have the following error:

	java.lang.ExceptionInInitializerError
         at
com.webobjects.foundation.xml.NSXMLInputStream.<clinit>(NSXMLInputStream
.java:188)
	......
	......
	Caused by: java.lang.NullPointerException
         at
com.webobjects.foundation.NSBundle.LoadUserAndBundleProperties(NSBundle.
java:641)
         at
com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)

I guess this problem is in some way related with the client side use of
some server side class.  There are some way to workaround with this ?

Thanks for your suggestions. I'm in the trouble because
NSXMLOutputStream works great and I would like also to make the
"reverse" way good


	Paolo Sommaruga
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Gini
  • Next by Date: Re: Weird WOComponentDefinition error
  • Previous by thread: Re[2]: Gini
  • Next by thread: Re: DbEdit again
  • Index(es):
    • Date
    • Thread