-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Unmarshal Exception
PostPosted: Mon Mar 12, 2007 5:07 am 
Newbie

Joined: Mon Mar 12, 2007 4:42 am
Posts: 2
Hi,

I'm developing a J2EE application with EJB and Hibernate in JBoss.

In an EJB method, it loads a Member object from Hibernate session then call assignGroup(String) method. The assignGroup method may throw InvalidGroupException.

try {
member.assignGroup(group);
} catch(InvalidGroupException ex) {
...
return GROUP_ERROR_CODE;
}

When I test it by assigning an invalid group, I expect the codes inside the catch block is executed and GROUP_ERROR_CODE is returned. However, I get the following exception in EJB client:

java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: com.caplogic.InvalidGroupException
(no security manager: RMI class loader disabled)

Then I modify the EJB method, the member object is constructed instead of loaded from Hibernate session. This time I get the expected result. Why?

Thanks for your help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.