Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Serial Version UID problem
Serial Version UID problem [message #62063] Sat, 18 February 2006 00:41 Go to next message
Eclipse UserFriend
Originally posted by: ytgyazilim.gmail.com

Hello,

I have been trying to intercept my calls to jboss server thorough
ejb3 calls. I have been successfully intercept the
org.jboss.ejb3.stateful.StatefulRemoteProxy class.

However jboss developers do not assign explicit SUIDs.
And woven jar (jbossall-client.jar) has the classes with the different
serial UIDs. Thus streaming facility firing InvalidClassExcepton as it
thinks local and remote classes are not the same. Well that's true but
in theory.

Is there any way to suppress this check or have the aspectj compiler use
the same SUID as of the original class?

I try to intercept StatefulRemoteProxy.invoke() ony because I cannot
intercept the client proxies created after context look ups.
I tried the interface+, etc. with no success. As this proxy is created
by reflection (I think) there is no way to intercept it without load
time weaving.

But that is another story. Since my app is an RCP application it runs
within the osgi platform which likes to control the class loading all
by itself. So does the load time weaving. Which leads to a nonstarter place.

Now,
HAs anyone have any idea to overcome this problem?

Thanks in advance,
H.Ceylan
Re: Serial Version UID problem [message #62088 is a reply to message #62063] Sat, 18 February 2006 07:14 Go to previous messageGo to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 505
Registered: July 2009
Senior Member
You can calculate and inject suids into the code before weaving. Such
transformer would be only few lines in ASM...

regards,
Eugene


H.Ceylan wrote:
> Hello,
>
> I have been trying to intercept my calls to jboss server thorough
> ejb3 calls. I have been successfully intercept the
> org.jboss.ejb3.stateful.StatefulRemoteProxy class.
>
> However jboss developers do not assign explicit SUIDs.
> And woven jar (jbossall-client.jar) has the classes with the different
> serial UIDs. Thus streaming facility firing InvalidClassExcepton as it
> thinks local and remote classes are not the same. Well that's true but
> in theory.
>
> Is there any way to suppress this check or have the aspectj compiler use
> the same SUID as of the original class?
>
> I try to intercept StatefulRemoteProxy.invoke() ony because I cannot
> intercept the client proxies created after context look ups.
> I tried the interface+, etc. with no success. As this proxy is created
> by reflection (I think) there is no way to intercept it without load
> time weaving.
>
> But that is another story. Since my app is an RCP application it runs
> within the osgi platform which likes to control the class loading all
> by itself. So does the load time weaving. Which leads to a nonstarter place.
>
> Now,
> HAs anyone have any idea to overcome this problem?
>
> Thanks in advance,
> H.Ceylan
>
Re: Serial Version UID problem [message #62112 is a reply to message #62088] Sat, 18 February 2006 20:39 Go to previous message
Eclipse UserFriend
Originally posted by: ytgyazilim.gmail.com

Hello Eugune,

Thanks for the response. I will be looking into it...

H.Ceylan

Eugene Kuleshov wrote:
>
> You can calculate and inject suids into the code before weaving. Such
> transformer would be only few lines in ASM...
>
> regards,
> Eugene
>
>
> H.Ceylan wrote:
>> Hello,
>>
>> I have been trying to intercept my calls to jboss server thorough
>> ejb3 calls. I have been successfully intercept the
>> org.jboss.ejb3.stateful.StatefulRemoteProxy class.
>>.......
Re: Serial Version UID problem [message #592288 is a reply to message #62063] Sat, 18 February 2006 07:14 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 505
Registered: July 2009
Senior Member
You can calculate and inject suids into the code before weaving. Such
transformer would be only few lines in ASM...

regards,
Eugene


H.Ceylan wrote:
> Hello,
>
> I have been trying to intercept my calls to jboss server thorough
> ejb3 calls. I have been successfully intercept the
> org.jboss.ejb3.stateful.StatefulRemoteProxy class.
>
> However jboss developers do not assign explicit SUIDs.
> And woven jar (jbossall-client.jar) has the classes with the different
> serial UIDs. Thus streaming facility firing InvalidClassExcepton as it
> thinks local and remote classes are not the same. Well that's true but
> in theory.
>
> Is there any way to suppress this check or have the aspectj compiler use
> the same SUID as of the original class?
>
> I try to intercept StatefulRemoteProxy.invoke() ony because I cannot
> intercept the client proxies created after context look ups.
> I tried the interface+, etc. with no success. As this proxy is created
> by reflection (I think) there is no way to intercept it without load
> time weaving.
>
> But that is another story. Since my app is an RCP application it runs
> within the osgi platform which likes to control the class loading all
> by itself. So does the load time weaving. Which leads to a nonstarter place.
>
> Now,
> HAs anyone have any idea to overcome this problem?
>
> Thanks in advance,
> H.Ceylan
>
Re: Serial Version UID problem [message #592298 is a reply to message #62088] Sat, 18 February 2006 20:39 Go to previous message
Eclipse UserFriend
Originally posted by: ytgyazilim.gmail.com

Hello Eugune,

Thanks for the response. I will be looking into it...

H.Ceylan

Eugene Kuleshov wrote:
>
> You can calculate and inject suids into the code before weaving. Such
> transformer would be only few lines in ASM...
>
> regards,
> Eugene
>
>
> H.Ceylan wrote:
>> Hello,
>>
>> I have been trying to intercept my calls to jboss server thorough
>> ejb3 calls. I have been successfully intercept the
>> org.jboss.ejb3.stateful.StatefulRemoteProxy class.
>>.......
Previous Topic:Serial Version UID problem
Next Topic:Matching all the method that calls a specific joinpoint
Goto Forum:
  


Current Time: Thu Dec 18 04:10:22 GMT 2014

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

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