[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2005-03-08 Thread jbm166
Hello,

Is this thread still alive ?
Has somebody had time to check this matter ?

Thanks.
Regards.

J&B

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-28 Thread [EMAIL PROTECTED]
I will look at it. Thanks.
It's possible that there was something wrong with 3.2.2 but I need to check.

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-21 Thread stscit04
I have a similar problem. I have 3 Beans A1,A2 and B.
both A1 and A2 have a 1-1 relationship to B. B
has a 1-1 Relationship to both A1 and A2.

If I create a instance of B and call b-setA1(A1), everything
works, whereas b.setA2(A2) doesnt work. The Relationships
are defined identical. I get the following Error


  | 2004-12-21 14:38:40,671 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException in method: null, causedBy:
  | 
  | javax.ejb.NoSuchObjectLocalException: Entity not found: primaryKey=
  | 
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:158)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:341)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
  | 
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
  | 
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | 
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | 
  | at 
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:484)
  | 
  | at org.jboss.ejb.Container.invoke(Container.java:709)
  | 
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeRemoveRelation(JDBCCMRFieldBridge.java:1211)
  | 
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:979)
  | 
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:961)
  | 
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:897)
  | 
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:708)
  | 
  | at 
org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler$FieldSetInvoker.invoke(EntityBridgeInvocationHandler.java:156)
  | 
  | at 
org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:91)
  | 
  | at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:62)
  | 
  | at 
de.fiducia.giropay.billingEntity.PartnerPaymentRootContractCMP$Proxy.setGenericContractualPartner()
  | 
  | at 
de.fiducia.giropay.billingEntity.PartnerPaymentRootContractBean.setContractualPartner(PartnerPaymentRootContractBean.java:326)
  | 
  | at 
de.fiducia.giropay.billingEntity.PartnerPaymentRootContractBean.ejbPostCreate(PartnerPaymentRootContractBean.java:146)
  | 
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | 
  | at 
org.jboss.ejb.plugins.CMPPersistenceManager.postCreateEntity(CMPPersistenceManager.java:233)
  | 
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.postCreateEntity(CachedConnectionInterceptor.java:278)
  | 
  | at 
org.jboss.ejb.EntityContainer.postCreateLocalHome(EntityContainer.java:589)
  | 
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | 
  | at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:)
  | 
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:72)
  | 
  | at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:289)
  | 
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
  | 
  | at 
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:116)
  | 
  | at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:175)
  | 
  | at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
  | 
  | at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
  | 
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128)
  | 
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:85)
  | 
  | at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn

[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-21 Thread jbm166
Hello,

I added it to jira.
Here is the KEY : JBAS-72

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-21 Thread jbm166
Ok I ll put it into jira.jboss.com.

I manage this morning to make a test app with 3 CMPs and a test class which is 
successful in 3.2.2 but crash in 3.2.5.

I could mail you those files if needed ( ? )

One thing I m wondering, since I also believe that I m doing something wrong, 
could it possible that 3.2.2 was somehow buggy and that this problem is now 
fixed in 3.2.5 which is why it crashes ?

Thanks.

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-21 Thread [EMAIL PROTECTED]
I need a simple testcase that shows the difference. So far I believe you are 
doing something wrong. If you have enough information for me to reproduce this, 
please, open a Jira issue on jira.jboss.com.

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-20 Thread jbm166
Hello,

No I don't really have any testcase.
Fact is that I m not an expert concerning transactions and so on, so I m 
actually wondering if problem comes from something I did wrong. However same 
code seems to behave differently in 3.2.2 and 3.2.5.

I could maybe send you couple of classes if that's ok ?

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-19 Thread [EMAIL PROTECTED]
Do you have a testcase that I can run on 3.2.2 and 3.2.5 and see what you are 
talking about? Updates were always committed at the end of the tx in all 
versions or other times when synchronization is required but not after adding 
CMR value.

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-17 Thread jbm166
Hi,

Thanks for your answer.

In JBoss 3.2.2, obviously the getB().add(relation) was commited immediately, 
since when the loop was iterating the second round the unique constraint was 
not triggered when creating a new B entity (Meaning that the foreign key had 
been set)

Where it is clear that in 3.2.5 getB().add() is not commited inside the loop 
but after, so that the foreign key is not immediately added.

I tried the insertAfterEjbPostCreate and it did not work better.
I don't think it would help anyway, since in this case the A entity already 
exist. We only create B entities that we map to A.

And this mapping happens in this method, not in the ejbPostCreate method of the 
B entity.


It is quite a surprising problem, because this code is generated by XDoclet  
and I found also the same code example of "howto add CMR" in different EJB 
manuals.

J&B

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Adding CMR fails

2004-12-17 Thread [EMAIL PROTECTED]
How did it work in 3.2.2?
Try http://www.jboss.org/wiki/Wiki.jsp?page=InsertAfterEjbPostCreate

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

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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user