-
1. Re: 3.2.4 CMP Bug
aloubyansky Jun 7, 2004 7:54 AM (in response to cepage)Fixed in 3.2.4RC2 and HEAD.
Index: JDBCLoadEntityCommand.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCLoadEntityCommand.java,v retrieving revision 1.19.2.23 diff -r1.19.2.23 JDBCLoadEntityCommand.java 112c112,115 < return true; --- > if(requiredField != null && requiredField.isLoaded(ctx)) > { > return true; > }
Thanks! -
2. Re: 3.2.4 CMP Bug
aloubyansky Jun 7, 2004 8:03 AM (in response to cepage)The next one is
Index: JDBCLoadEntityCommand.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/JDBCLoadEntityCommand.java,v retrieving revision 1.19.2.24 diff -r1.19.2.24 JDBCLoadEntityCommand.java 112c112 < if(requiredField != null && requiredField.isLoaded(ctx)) --- > if(requiredField == null || (requiredField != null && requiredField.isLoaded(ctx)))
-
3. Re: 3.2.4 CMP Bug
myname Jun 8, 2004 12:46 PM (in response to cepage)Hello,
having a problem with CMP in 3.2.4 (June 4th 2004 Version). Looks like the one mentioned above, so I enter the same thread.
Setup is a CMR with a "campaignInstance" entity bean that has "agentInstance" entity beans as children. The code works fine using commit-levels B or C, but not with commit level A:
Jboss tries to access the field "outputType" from an "agentInstance", whereas "outputType" is not used in the application at this point in time (and has not been used before). Other fields from the "agentInstance" shall be accessed. Then the error "Could not load field value: outputType" occurs.2004-06-08 18:08:01,340 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.CampaignInstance] Executing SQL: SELECT startDate FROM SAM_CMP_RUNTIME WHERE (id=?)
2004-06-08 18:08:01,340 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.CampaignInstance] Executing SQL: SELECT startDate FROM SAM_CMP_RUNTIME WHERE (id=?)
2004-06-08 18:08:01,350 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.CampaignInstance] Executing SQL: SELECT stopDate FROM SAM_CMP_RUNTIME WHERE (id=?)
2004-06-08 18:08:01,350 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.CampaignInstance] Executing SQL: SELECT stopDate FROM SAM_CMP_RUNTIME WHERE (id=?)
2004-06-08 18:08:01,350 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.CampaignInstance] load relation SQL: SELECT id FROM SAM_AGT_RUNTIME WHERE (cmp_inst_id=?)
2004-06-08 18:08:01,350 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.CampaignInstance] load relation SQL: SELECT id FROM SAM_AGT_RUNTIME WHERE (cmp_inst_id=?)
2004-06-08 18:08:01,370 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String net.ehp.campaign.ejb.AgentInstanceLocal.getOutputType(), causedBy:
javax.ejb.EJBException: Could not load field value: outputType
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:179)
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:208)
at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler$FieldGetInvoker.invoke(EntityBridgeInvocationHandler.java:133)
at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:91)
at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:62)
at net.ehp.campaign.ejb.AgentInstanceCMP$Proxy.getOutputType(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
...
Any hints or fixes are highly appreciated.
Regards
Volker -
4. Re: 3.2.4 CMP Bug
aloubyansky Jun 9, 2004 5:18 AM (in response to cepage)And when you update your 3.2.4 with the fixes above, do you still have the problem?
-
5. Re: 3.2.4 CMP Bug
myname Jun 10, 2004 6:13 AM (in response to cepage)I apologize, I assumed the fixes were in my build already ... this was incorrect.
It now works with A too.
Volker