RCP strange behavior using XMLDecoder [message #449490] |
Mon, 15 May 2006 06:27  |
Eclipse User |
|
|
|
Hi,
This is now one week working in the following problem without success.
I'm using java 1.5.0 beta 2. and eclipse 3.1.
I have developped a first sharable plugin 1 that use XMLDecoder class in a
method called load (see hereafter).
Next, I have developped a plugin 2 dependent on plugin 1 that make use of
plugin 1 load method and tested it with success. Plugin 2 test has its
main method that use basic SWT widget display, shell, and a button that
call the load method from plugin 1.
Then I developped an RCP dependant on plugin 1 and call the same method
load from plugin 1 the same way I did for plugin 2.
In the RCP I receive an exception ("ClassNotFoundException")
Here is a summary of the plugin 1 load method
load(... input){
// the following line give the decoder variable its good value
XMLDecoder decoder = new XMLDecoder(input, null, null) ;
// the following line return null when using with RCP
// and finally throw an exception "ClassNotFoundException" in calling
method
Object obj = decoder.readObject();
}
I have then developped others plugins (swt) and rcp that use plugin 1.
All plugin using SWT and plugin 1 run with success.
All RCP throw the same exception
Any idea.
Many thanks for your answers
sami
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06039 seconds