> Hi,
>
> >
> >
> > Suite:       org.jboss.test.cts.test.AllJUnitTests
> > Test:        testRemoveSessionObject
> > Type:        failure
> > Exception:   junit.framework.AssertionFailedError
> > Message:     [EJB 1.1, p42] Expected 'RemoveException',
> detail:java.rmi.ServerException: RemoteException occurred in server
thread;
> nested exception is:   javax.transaction.TransactionRolledbackException:
> Could not activate; nested exception is:   java.io.FileNotFoundException:
>
/home/lubega/jbossro/jboss/dist/db/sessions/StatefulSessionBean/org.jboss.te
> [EMAIL PROTECTED] (No such file or directory); nested
> exception is:   java.rmi.NoSuchObjectException: Could not activate; nested
> exception is:   java.io.FileNotFoundException:
>
/home/lubega/jbossro/jboss/dist/db/sessions/StatefulSessionBean/org.jboss.te
> [EMAIL PROTECTED] (No such file or directory)
> > Stack Trace:
> > junit.framework.AssertionFailedError: [EJB 1.1, p42] Expected
> 'RemoveException', detail:java.rmi.ServerException: RemoteException
occurred
> in server thread; nested exception is:
> > javax.transaction.TransactionRolledbackException: Could not activate;
> nested exception is:
> > java.io.FileNotFoundException:
>
/home/lubega/jbossro/jboss/dist/db/sessions/StatefulSessionBean/org.jboss.te
> [EMAIL PROTECTED] (No such file or directory); nested
> exception is:
> > java.rmi.NoSuchObjectException: Could not activate; nested exception is:
> > java.io.FileNotFoundException:
>
/home/lubega/jbossro/jboss/dist/db/sessions/StatefulSessionBean/org.jboss.te
> [EMAIL PROTECTED] (No such file or directory)
> > at junit.framework.Assert.fail(Assert.java:143)
> > at
>
org.jboss.test.cts.test.StatefulSessionTest.testRemoveSessionObject(Stateful
> SessionTest.java:187)



> >
>
> This test is checking that calling remove on a session object raises a
> RemoveException.
>
> It looks as if the actual exception being raised is that the client/server
> interaction is having trouble passing the primary key object across.
>
> ...but I'd have thought the client/EJBObject should be able to answer this
> method call with the exception immediately - or does it not know that it
is
> a session-type bean?
>
> Looking at HomeProxy/GenericProxy, it seems like it does not know...  and
it
> seems the you cannot tell from the client Home interface as it is the same
> for entity and session beans...
>
> Then on the server it tries to instantiate the object before it does the
> invocation - and that gives the above error.
>
> So - what do we do
> - add a remove method call specific check in the server handling of
session
> invocations?
> - remove the test?
> - adjust the test to accept any exception as a pass?
>
> Regards,
> Chris
>
>



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to