-
1. Re: NoSuchObjectException issue
mdubord Aug 15, 2001 3:05 PM (in response to mdubord)I would like to post a retraction of this comment and apologize to anyone who spent any time on it. The error was something stupid that I did. CVS to the rescue.
Thanks again.
Matt Dubord -
2. Re: NoSuchObjectException issue
charris Oct 16, 2001 9:53 AM (in response to mdubord)I am getting this exception also, and can't figure out why, could you please tell me what the solution was to the problem.
thanks
colin....... -
3. Re: NoSuchObjectException issue
kshitij Feb 1, 2002 3:36 PM (in response to mdubord)Did you figure this one out. Please let me know.
Thanks,
Kshitij -
4. Re: NoSuchObjectException issue
kshitij Feb 1, 2002 6:26 PM (in response to mdubord)How did you fix this. I have a similar problem,
> Here's the deal:
>
> Service 103 exists in the database:
> **********************************************
> test=# select * from service;
> serviceroot | servicename | hostip |
> | serviceid
> ------------------+--------------+------------+-------
> ---
> /usr/local/mike | TestService2 | 10.0.0.186 |
> 102
> /usr/local/storm | TestService1 | 10.0.0.186 |
> 103
> /usr/local/mike | TestService2 | 10.0.0.186 |
> 108
> (3 rows)
> **********************************
> But I get the following exception:
>
> [Service] TRANSACTION ROLLBACK EXCEPTION:null; nested
> exception is:
> java.rmi.NoSuchObjectException
> [Service] java.rmi.NoSuchObjectException
> [Service] at
> org.jboss.ejb.plugins.AbstractInstanceCache.get(Abstra
> tInstanceCache.java:173)
> [Service] at
> org.jboss.ejb.plugins.EntityInstanceCache.get(EntityIn
> tanceCache.java:58)
>
> I can do a findByPrimaryKey(), and it returns a
> remote reference that is NOT null, but when I try to
> call a method on this remote reference, I get the
> exception. It seems to be saying that the bean has
> been removed, but that's not true because it exists
> in the database. If you need more info, let me
> know.
>
> Thanks.
>
> Matt
>
> mdubord10@lycos.com -
5. Re: NoSuchObjectException issue
rpmorris Feb 27, 2002 10:13 AM (in response to mdubord)I'm having this problem as well.
What's the stupid thing that you said you did? It's not obvious to me. -
6. Re: NoSuchObjectException issue
caoming Feb 27, 2002 1:25 PM (in response to mdubord)
this issue is due to the way JBoss implements enterprise beans. JBoss wrapps all return objects with MarshalledObject - thus if a EJB method returns a remote object, this remote object immediately become GCable. Whether a client can use this remote reference or not depends totally on whether GC has a chance to collect it.
Does any body know how to enter this bug to the database? -
7. Re: NoSuchObjectException issue
dsundstrom Feb 27, 2002 2:16 PM (in response to mdubord)http://sourceforge.net/projects/jboss/
Enter it as a JBossServer bug. This bug is not specific to CMP.