Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP strange behavior using XMLDecoder
RCP strange behavior using XMLDecoder [message #449490] Mon, 15 May 2006 06:27 Go to next message
Eclipse UserFriend
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
Re: RCP strange behavior using XMLDecoder [message #449502 is a reply to message #449490] Mon, 15 May 2006 10:17 Go to previous messageGo to next message
Eclipse UserFriend
If you really need to put it in multiple newsgroups, cross-post (one
post, sent to multiple newsgroups) as opposed to multi-post. You now
have separate threads on the same question.

Later,
PW
Re: RCP strange behavior using XMLDecoder [message #449515 is a reply to message #449502] Mon, 15 May 2006 12:43 Go to previous message
Eclipse UserFriend
Thanks for your sugestion.
Later,
sami
Previous Topic:Splash progress bar for early initialization
Next Topic:How to specify the toolbar's position?
Goto Forum:
  


Current Time: Sat Aug 30 13:45:01 EDT 2025

Powered by FUDForum. Page generated in 0.06039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top