[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems if i try to access the members

2004-05-28 Thread jual
Hello ironbird
 
I found the (my) mistake.
You were just right as you said "the beans are not yet loaded at the end of the 
finder. ".
Every entity bean has a PK-Class, and in this case i returned just the wrong object 
type in the DAO-Class.
Than it is clear that it is just impossible to load the bean with the wrong type of 
the PK-Class.
My imbacility

I just thank You again for your help

regards 
jual

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836660#3836660

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836660



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems if i try to access the members

2004-05-28 Thread ironbird
OK for the naming and finder exceptions.
As your bean is a BMP, what are you doing in the finder ?
How is filled the collection. This is the start point of the problem I think, or just 
in the first getID method ?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836652#3836652

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836652



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems if i try to access the members

2004-05-28 Thread jual
Hello ironbird

it is a BMP that uses a DAO-Class to access the DB.
If i have understand it, I don't thing that it's a transaction issue because i use 
this code

  | try
  |{
  | ...
  |}
  | catch(FinderException fe)
  | {
  | context.setRollbackOnly();
  | throw new EJBException("Could not find specified Destination. 
" +
  |"Exception is " + 
fe.getMessage());
  | }
  | catch(NamingException ne)
  | {
  | context.setRollbackOnly();
  | throw new EJBException(
  | "Could not lookup the Destination ejb. Exception is " + 
ne.getMessage());
  | }
  | 

Thank You for helping me

regards

Jual

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836649#3836649

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836649



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems if i try to access the members

2004-05-28 Thread ironbird
Your bean seems to be a BMP one, and I suspect a transaction issue in your NPE, like 
your beans are not yet loaded at the end of the finder.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836641#3836641

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836641



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems if i try to access the members

2004-05-28 Thread jual
i just forgot to wrote 
that i don't understand what happens ??

Can somebody help me ??

regards jual

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836635#3836635

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836635



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user