Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Serialization issue
Serialization issue [message #453510] Tue, 01 August 2006 12:55 Go to next message
Eclipse UserFriend
Originally posted by: amarcus.us.ibm.com

I'm having issues similar to those brought up on 9/28/2004 in the thread
"Classloader / Serialization issue", but the solutions proposed do not
fix it.

I have to plugins, A and B. B has a class Clazz that is internal to
plugin B, but is returned through an interface to methods of plugin A.
When a call from a method in A to a method in B occurs, B deserializes a
Clazz object that it retrieves through HTTP. When this occurs, I get a
ClassNotFoundException for Clazz.

Upon further inspection, I realized that I can create a Clazz object in
plugin A (even though I would never actually do this), and even call
Class.forname("path.to.Clazz"). However, if I call the method in B
which deserializes a Clazz object, the ClassNotFoundException is thrown.

I tried using the buddy system (I am using Eclipse 3.2), but I am either
using it incorrectly or it's not working. Can anyone suggest anything?

Thanks in advance,
Adam Marcus
Re: Serialization issue [message #453515 is a reply to message #453510] Tue, 01 August 2006 13:49 Go to previous message
Eclipse UserFriend
Originally posted by: amarcus.us.ibm.com

I've just solved the issue. Sorry to trouble you all. Eclipse Buddy
system solved it:).

-Adam
Adam Marcus wrote:
> I'm having issues similar to those brought up on 9/28/2004 in the thread
> "Classloader / Serialization issue", but the solutions proposed do not
> fix it.
>
> I have to plugins, A and B. B has a class Clazz that is internal to
> plugin B, but is returned through an interface to methods of plugin A.
> When a call from a method in A to a method in B occurs, B deserializes a
> Clazz object that it retrieves through HTTP. When this occurs, I get a
> ClassNotFoundException for Clazz.
>
> Upon further inspection, I realized that I can create a Clazz object in
> plugin A (even though I would never actually do this), and even call
> Class.forname("path.to.Clazz"). However, if I call the method in B
> which deserializes a Clazz object, the ClassNotFoundException is thrown.
>
> I tried using the buddy system (I am using Eclipse 3.2), but I am either
> using it incorrectly or it's not working. Can anyone suggest anything?
>
> Thanks in advance,
> Adam Marcus
Previous Topic:is org.eclipse.debug.core part of RCP or usable in an RCP?
Next Topic:Root directories, finding files
Goto Forum:
  


Current Time: Wed Oct 09 16:14:23 GMT 2024

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

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

Back to the top