Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help figuring out Marshal exception

 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody have any information on what this error means?

I'm upgrading an application from Weblogic 8.1/Java 1.4 to Weblogic 10.3 / Java 6. We have a Swing client that communicates with the Weblogic server. This error is appearing when trying to start the Swing client. I've traced it through to see that the swing client is successfully connecting to the server and that the server is performing the correct action. However, when the server is sending the response back to the client, I get the error below on the client side (there is no error on the server side).

I've checked classpaths and made sure that the client and the server are using the same JRE and all that good stuff -- although I'm hoping that it's something like that that I just missed. I've looked around and can't find any (useful) information on this error.

 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a bit brute force, but have you tried mixing and matching more JDK and Weblogic versions? I'm thinking 1.5_17 with Weblogic 10.3 in particular. Also, what version of the JDK 6 are you using exactly?
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried using both the JDKs that install w/ weblogic 10.3: the JRocktt and Sun's. Those are both 1.6.0.5. I've also tried using my system's JRE, which is 1.6.0.4

I hadn't tried using any 1.5 versions -- I'll give that a try and see what happens.

Thanks,
Joel
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would also try 1.6_12, I have run across tmi bugs before in earlier point releases of the idk...
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried 1.6_12, got the same error. I haven't tried 1.5_17 yet; need to unimplement a few methods before I do that.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an update, I still haven't tried any 1.5 version (I've been entertaining other suggestions), but I did discover that the problem seems to stem from the fact that I'm sending multiple objects as a response.

You can see different tests as I experiment with what works and what doesn't, and you can also see that this is (mostly) pre-generic source code. Note the call to lcColl.isEmpty(); if I only put one VO in the list, it works. If there's more than one, it fails.

Also, I can see the error being thrown on the server side if I run the server through a debugger and trap for javax.rmi.MarshalExceptions.

I'm still not any further to solving this, as I would really, really like to return more than one of these VOs, but maybe this extra information will help someone say "Here's what the problem is..."

Joel
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does an actual ResponseVO and a LicensedComponentVO look like? I'm going out on a limb here but I'm wondering if some member variable/setting in there is causing problems when there are multiples of them (really going out on a limb here).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic