Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

session facade to entity bean error

2 views
Skip to first unread message

Wei Jin

unread,
Oct 24, 2001, 5:26:57 PM10/24/01
to
I have 1 entity bean with one to many relationship to another entity bean,
the first entity bean returns a value object contains a collection of
another entity bean data.

When I use my test client to get the value object from the first entity
bean, everything works fine. But once I use a session facade to the entity
bean, I always get the error. Is there any way to work around this problem?
My AppServer is Inprise 4.1.1

Nested Exception is:
javax.transaction.TransactionRolledbackException: java.rmi.ServerException:
Could not resolve one-to-many relationship; nested exception is:
java.lang.reflect.InvocationTargetException
...

I found same scenario has been posted earlier with ClassCastException in
April, Could anyone tell me if it is caused by Inprise 4.1.1 in my case?

Thanks a lot.

Krishnan Subramanian

unread,
Oct 27, 2001, 5:02:26 PM10/27/01
to
Wei,

I would recommend upgrading to version 4.5.1 if possible.

Otherwise, it seems strange that a remote client works while
a session bean calling that entity bean does not. Are your
beans in same jar (you mention a ClassCastException)?

-krish

"Wei Jin" <wjin...@hotmail.com> wrote in message news:3bd73220$1_1@dnews...

Wei Jin

unread,
Oct 29, 2001, 10:25:17 AM10/29/01
to
Yes, all the beans are in the same jar. In my case, it's not
ClassCastException.

The production environment is ias 4.1.1, the problem is I can not use the
entity bean directly, it must go through a seesion facade bean inside the
same jar or another session controller in seperate jar. How can I solve this
problem?

Thanks a lot.

Wei Jin

"Krishnan Subramanian" <ksubra...@borland.com> wrote in message
news:3bdc471f_1@dnews...

Renato Quedas

unread,
Nov 6, 2001, 2:12:59 PM11/6/01
to
Looks like the classloader,

try a Class.forName("vo.class") inside your Session
Bean before you do anything with your vo.

Renato
"Wei Jin" <wjin...@hotmail.com> escreveu na mensagem
news:3bdd74dc$1_2@dnews...

0 new messages