• Post Reply Bookmark Topic Watch Topic
  • New Topic

websphere MarshalException

 
jaime barciela
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all
this is my first post here, hopefully somebody find interesting this weird problem, and can help me
i developed a stateless session bean in weblogic 3.5.3, with one method that returns an instance of a class named NewspaperVo and no parameters, everything (database access, etc) in the method execute ok, but when i want to actually return the instance i get this in the client

the class implements Serializable and i can save an instance of it to a file
now the weird part: if i return DummyVo that extends NewspaperVo instead of NewspaperVo everything works fine
i'm running the client inside VisualAge 4.0
thanks in advance for any help
jaime
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try deleting all your compiled classes, then compile everything again and also regenerate deployed code for your session bean.
-BJ
 
Narendra Kamaraju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We have experienced the same problem with working on WAS3.5.3 or VA java's verison 3.5.3.
nested Marshall exception will be thrown only when communication/contact from the EJB to the container or vice_versa fails.
Only option to come out of this problem is restarting your appserver.You dont need to re-compile and re-deploy as the previous post suggested.
Hope this will clear doubt.
Regards,
Narendra.
 
jaime barciela
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by BJ Grau:
Try deleting all your compiled classes, then compile everything again and also regenerate deployed code for your session bean.
-BJ

hey, my first reply!
thanks for your answer BJ
i think i can't delete the class files, visual age is repository based, no files whatsoever, so you never see a class file, i don't know if there is something equivalent that i can do
also, i have regenerated the deployed code every time, but it doesn't appears to be helping
i wonder what means the "Mismatched serialization UIDs" story, is that i have two versions of my class? i toyed with that idea but i can't find where in the server can be possibly hiding another version of my class
have you seen something like this before?
jaime
 
jaime barciela
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Narendra Kamaraju:
Hi,
We have experienced the same problem with working on WAS3.5.3 or VA java's verison 3.5.3.
nested Marshall exception will be thrown only when communication/contact from the EJB to the container or vice_versa fails.
Only option to come out of this problem is restarting your appserver.You dont need to re-compile and re-deploy as the previous post suggested.
Hope this will clear doubt.
Regards,
Narendra.

hi, thanks for your answer Narendra
are you sugesting to restart the whole machine or only the virtual app server inside websphere that my application uses?
anyway, the administrators restarted the machine yesterday but i'm still getting the same behavior
as i said to BJ just before, i think that maybe the whole thing revolves around the "Mismatched serialization UIDs" thing in the error message
what do you think?
jaime
 
jaime barciela
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eh, i solved it!
not that i understand exactly why but if you add by hand to the class a property like:
private final static long serialVersionUID = -4517176943347132780L;
the error goes away
i dont see why the automatic generation of the serialization id should generate also a problem in websphere, maybe if there is some IBM expert in the forum that can bring some light to this question?
anyway, thanks for your help
jaime
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!