Using NSXMLInputStream in JC
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.