Bugs item #594596, was opened at 2002-08-13 16:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=594596&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Nir Oren (jhudsy)
Assigned to: Nobody/Anonymous (nobody)
Summary: [3.0.1]ejbPostCreate CMR field failure

Initial Comment:
Attempted to update a CMR field in ejbPostCreate(...).
The database field remains null.

OS: Linux  2.4.18 on a Pentium IV
JDK: 1.4
Backend DB: postgres 7.2.1
Jboss version: 3.0.1

To reproduce the bug, run the attached jar file (RunTest).
The server trace (from deployment of the app) follows:

---------------CUT HERE----------------------
2002-08-13 17:27:07,166 DEBUG
[org.jboss.ejb.EJBDeployer] start application,
deploymentInfo:
org.jboss.deployment.DeploymentInfo@708a0100 {
url=file:/opt/jboss-3.0.1/server/default/deploy/test.jar }
  deployer: org.jboss.ejb.EJBDeployer@54864a
  status: Starting
  state: START_DEPLOYER
  watch:
file:/opt/jboss-3.0.1/server/default/deploy/test.jar
  lastDeployed: 1029252426450
  lastModified: 1029252426000
  mbeans:
    jboss.j2ee:service=EJB,jndiName=ejb/test/Test1
state: null
    jboss.j2ee:service=EJB,jndiName=ejb/test/Test2
state: null
, short name: test.jar, parent short name: null
2002-08-13 17:27:07,166 INFO  [org.jboss.ejb.EjbModule]
Starting
2002-08-13 17:27:07,167 DEBUG [org.jboss.ejb.EjbModule]
Application.start(), start container:
org.jboss.ejb.EntityContainer@4b081b
2002-08-13 17:27:07,167 DEBUG
[org.jboss.ejb.EntityContainer] Begin java:comp/env for
EJB: Test1
2002-08-13 17:27:07,167 DEBUG
[org.jboss.ejb.EntityContainer] TCL:
java.net.URLClassLoader@c9b196
2002-08-13 17:27:07,170 DEBUG
[org.jboss.ejb.EntityContainer] End java:comp/env for
EJB: Test1
2002-08-13 17:27:07,177 DEBUG
[org.jboss.ejb.plugins.local.BaseLocalContainerInvoker]
Bound EJBLocalHome of Test1 to Test1Local
2002-08-13 17:27:07,243 DEBUG
[org.jboss.proxy.ejb.ProxyFactory] Bound Test1 to
ejb/test/Test1
2002-08-13 17:27:07,243 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Test1]
Initializing CMP plugin for Test1
2002-08-13 17:27:07,254 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Test1]
Loading standardjbosscmp-jdbc.xml :
file:/opt/jboss-3.0.1/server/default/conf/standardjbosscmp-jdbc.xml
2002-08-13 17:27:07,637 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Test1]
jar:file:/opt/jboss-3.0.1/server/default/tmp/deploy/server/default/deploy/test.jar/62.test.jar!/META-INF/jbosscmp-j
dbc.xml found. Overriding defaults
2002-08-13 17:27:07,703 DEBUG
[org.jboss.resource.connectionmanager.CachedConnectionInterceptor]
start called in CachedConnectionInterceptor
2002-08-13 17:27:07,703 DEBUG [org.jboss.ejb.EjbModule]
Application.start(), start container:
org.jboss.ejb.EntityContainer@7748d3
2002-08-13 17:27:07,703 DEBUG
[org.jboss.ejb.EntityContainer] Begin java:comp/env for
EJB: Test2
2002-08-13 17:27:07,703 DEBUG
[org.jboss.ejb.EntityContainer] TCL:
java.net.URLClassLoader@98bbf6
2002-08-13 17:27:07,705 DEBUG
[org.jboss.ejb.EntityContainer] End java:comp/env for
EJB: Test2
2002-08-13 17:27:07,711 DEBUG
[org.jboss.ejb.plugins.local.BaseLocalContainerInvoker]
Bound EJBLocalHome of Test2 to Test2Local
2002-08-13 17:27:07,756 DEBUG
[org.jboss.proxy.ejb.ProxyFactory] Bound Test2 to
ejb/test/Test2
2002-08-13 17:27:07,756 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Test2]
Initializing CMP plugin for Test2
2002-08-13 17:27:07,806 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test1]
Entity Exists SQL: SELECT COUNT(*) FROM test1 WHERE iD=?
2002-08-13 17:27:07,806 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test1]
Insert Entity SQL: INSERT INTO test1 (iD, test2key)
VALUES (?, ?)
2002-08-13 17:27:07,806 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.Test1]
Remove SQL: DELETE FROM test1 WHERE iD=?
2002-08-13 17:27:07,839 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Test1]
Executing SQL: CREATE TABLE test1 (iD INT4 NOT NULL,
test2key INT4, CONSTRAINT pk_test1 PRIMARY KEY (iD))
2002-08-13 17:27:07,846 INFO 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Test1]
Created table 'test1' successfully.
2002-08-13 17:27:07,857 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Test1.findByPrimaryKey]
SQL: SELECT iD FROM test1 WHERE iD=?
2002-08-13 17:27:07,858 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.Test1]
Added findByPrimaryKey query command for home interface
2002-08-13 17:27:07,858 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Test1.findByPrimaryKey]
SQL: SELECT iD FROM test1 WHERE iD=?
2002-08-13 17:27:07,858 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.Test1]
Added findByPrimaryKey query command for local home
interface
2002-08-13 17:27:07,866 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test2]
Entity Exists SQL: SELECT COUNT(*) FROM test2 WHERE id=?
2002-08-13 17:27:07,866 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test2]
Insert Entity SQL: INSERT INTO test2 (id) VALUES (?)
2002-08-13 17:27:07,866 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.Test2]
Remove SQL: DELETE FROM test2 WHERE id=?
2002-08-13 17:27:07,899 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Test2]
Executing SQL: CREATE TABLE test2 (id INT4 NOT NULL,
CONSTRAINT pk_test2 PRIMARY KEY (id))
2002-08-13 17:27:07,906 INFO 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Test2]
Created table 'test2' successfully.
2002-08-13 17:27:07,907 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Test2]
Foreign key constraint not added as requested:
relationshipRolename=test2value
2002-08-13 17:27:07,907 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.Test2]
Foreign key constraint not added as requested:
relationshipRolename=the-test2value
2002-08-13 17:27:07,907 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Test2.findByPrimaryKey]
SQL: SELECT id FROM test2 WHERE id=?
2002-08-13 17:27:07,908 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.Test2]
Added findByPrimaryKey query command for home interface
2002-08-13 17:27:07,908 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Test2.findByPrimaryKey]
SQL: SELECT id FROM test2 WHERE id=?
2002-08-13 17:27:07,908 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.Test2]
Added findByPrimaryKey query command for local home
interface
2002-08-13 17:27:07,908 DEBUG
[org.jboss.resource.connectionmanager.CachedConnectionInterceptor]
start called in CachedConnectionInterceptor
2002-08-13 17:27:07,909 INFO  [org.jboss.ejb.EjbModule]
Started
2002-08-13 17:27:07,917 DEBUG
[org.jboss.ejb.EJBDeployer] Deployed:
file:/opt/jboss-3.0.1/server/default/deploy/test.jar
2002-08-13 17:27:07,918 DEBUG
[org.jboss.deployment.MainDeployer] End deployment
start on package: test.jar
2002-08-13 17:27:07,918 INFO 
[org.jboss.deployment.MainDeployer] Deployed package:
file:/opt/jboss-3.0.1/server/default/deploy/test.jar
2002-08-13 17:27:07,918 DEBUG
[org.jboss.deployment.scanner.URLDeploymentScanner]
Watch URL for:
file:/opt/jboss-3.0.1/server/default/deploy/test.jar ->
file:/opt/jboss-3.0.1/server/default/deploy/test
.jar
2002-08-13 17:27:07,919 INFO 
[org.jboss.deployment.MainDeployer] Starting deployment
of package:
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,920 DEBUG
[org.jboss.deployment.MainDeployer] Starting deployment
(init step) of package at:
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,920 DEBUG
[org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL
with url
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,920 DEBUG
[org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL
with url
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,921 DEBUG
[org.jboss.mx.loading.UnifiedLoaderRepository2] Adding
org.jboss.mx.loading.UnifiedClassLoader@c5e2cf{
url=file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
}
2002-08-13 17:27:07,931 DEBUG
[org.jboss.deployment.MainDeployer] using deployer
org.jboss.jetty.JettyService@7f45d
2002-08-13 17:27:07,932 DEBUG
[org.jboss.jetty.JettyService] Begin init
2002-08-13 17:27:07,932 DEBUG
[org.jboss.jetty.JettyService] End init
2002-08-13 17:27:07,943 DEBUG
[org.jboss.deployment.MainDeployer] found 0 subpackages
of
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,943 DEBUG
[org.jboss.deployment.MainDeployer] Watching new file:
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,944 DEBUG
[org.jboss.deployment.MainDeployer] create step for
deployment
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,944 DEBUG
[org.jboss.deployment.MainDeployer] Done with create
step of deploying jmx-console.war
2002-08-13 17:27:07,944 DEBUG
[org.jboss.deployment.MainDeployer] Begin deployment
start
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,949 DEBUG
[org.jboss.jetty.JettyService] webContext: null
2002-08-13 17:27:07,949 DEBUG
[org.jboss.jetty.JettyService] warURL:
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:07,949 DEBUG
[org.jboss.jetty.JettyService] webAppParser:
org.jboss.web.AbstractWebContainer$DescriptorParser@ac1e22
2002-08-13 17:27:08,446 INFO  [org.jboss.jbossweb]
Registered
jboss.web:Jetty=0,JBossWebApplicationContext=0,context=/jmx-console
2002-08-13 17:27:09,211 DEBUG
[org.jboss.jetty.JBossWebApplicationContext#/jmx-console]
setting Realm: JBoss JMX Console
2002-08-13 17:27:09,369 DEBUG
[org.jboss.jetty.JBossWebApplicationContext#/jmx-console]
setting up ENC...
2002-08-13 17:27:09,370 DEBUG
[org.jboss.jetty.JettyService]
AbstractWebContainer.parseWebAppDescriptors, Begin
2002-08-13 17:27:09,372 DEBUG
[org.jboss.jetty.JettyService] Creating ENC using
ClassLoader:
org.mortbay.http.ContextLoader(file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/WEB-INF/classes/)
 / java.net.FactoryURLClassLoader@a826da
2002-08-13 17:27:09,373 DEBUG
[org.jboss.jetty.JettyService]
..java.net.FactoryURLClassLoader@a826da
2002-08-13 17:27:09,373 DEBUG
[org.jboss.jetty.JettyService]
..org.jboss.mx.loading.UnifiedClassLoader2@6b61c3{
url=file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
}
2002-08-13 17:27:09,373 DEBUG
[org.jboss.jetty.JettyService]
..java.net.URLClassLoader@30c221
2002-08-13 17:27:09,373 DEBUG
[org.jboss.jetty.JettyService]
..sun.misc.Launcher$AppClassLoader@f38798
2002-08-13 17:27:09,373 DEBUG
[org.jboss.jetty.JettyService]
..sun.misc.Launcher$ExtClassLoader@4b222f
2002-08-13 17:27:09,375 DEBUG
[org.jboss.jetty.JettyService] Linked
java:comp/UserTransaction to JNDI name: UserTransaction
2002-08-13 17:27:09,376 DEBUG
[org.jboss.jetty.JettyService] addEnvEntries
2002-08-13 17:27:09,376 DEBUG
[org.jboss.jetty.JettyService] linkResourceEnvRefs
2002-08-13 17:27:09,377 DEBUG
[org.jboss.jetty.JettyService] linkResourceRefs
2002-08-13 17:27:09,377 DEBUG
[org.jboss.jetty.JettyService] linkEjbRefs
2002-08-13 17:27:09,397 DEBUG
[org.jboss.jetty.JettyService] linkEjbLocalRefs
2002-08-13 17:27:09,398 DEBUG
[org.jboss.jetty.JettyService] linkSecurityDomain
2002-08-13 17:27:09,398 DEBUG
[org.jboss.jetty.JettyService] Binding
security/securityMgr to NullSecurityManager
2002-08-13 17:27:09,410 DEBUG
[org.jboss.jetty.JettyService]
AbstractWebContainer.parseWebAppDescriptors, End
2002-08-13 17:27:09,411 DEBUG
[org.jboss.jetty.JBossWebApplicationContext#/jmx-console]
setting up ENC succeeded
2002-08-13 17:27:09,411 DEBUG
[org.jboss.jetty.security.JBossUserRealm#JBoss JMX
Console] initialising...
2002-08-13 17:27:09,413 DEBUG
[org.jboss.jetty.security.JBossUserRealm#JBoss JMX
Console] ...initialised
2002-08-13 17:27:09,452 INFO  [org.jboss.jbossweb]
Started
WebApplicationContext[/jmx-console,file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/]
2002-08-13 17:27:10,338 INFO  [org.jboss.jbossweb]
successfully deployed
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
to /jmx-console
2002-08-13 17:27:10,339 DEBUG
[org.jboss.deployment.MainDeployer] End deployment
start on package: jmx-console.war
2002-08-13 17:27:10,339 INFO 
[org.jboss.deployment.MainDeployer] Deployed package:
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
2002-08-13 17:27:10,340 DEBUG
[org.jboss.deployment.scanner.URLDeploymentScanner]
Watch URL for:
file:/opt/jboss-3.0.1/server/default/deploy/jmx-console.war/
-> file:/opt/jboss-3.0.1/server/default/dep
loy/jmx-console.war/WEB-INF/web.xml
2002-08-13 17:27:10,353 DEBUG
[org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread]
Notified that enabled: true
2002-08-13 17:27:10,354 INFO 
[org.jboss.deployment.scanner.URLDeploymentScanner] Started
2002-08-13 17:27:10,354 DEBUG
[org.jboss.deployment.MainDeployer] End deployment
start on package: jboss-service.xml
2002-08-13 17:27:10,355 INFO 
[org.jboss.deployment.MainDeployer] Deployed package:
file:/opt/jboss-3.0.1/server/default/conf/jboss-service.xml
2002-08-13 17:27:10,378 INFO 
[org.jboss.system.server.Server] JBoss (MX MicroKernel)
[3.0.1 Date:200208062340] Started in 0m:27s:291ms
2002-08-13 17:27:18,335 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test2]
Create: pk=[.0.]
2002-08-13 17:27:18,339 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test2]
Executing SQL: SELECT COUNT(*) FROM test2 WHERE id=?
2002-08-13 17:27:18,352 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test2.id]
Set parameter: index=1, jdbcType=INTEGER, value=0
2002-08-13 17:27:18,356 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test2]
Executing SQL: INSERT INTO test2 (id) VALUES (?)
2002-08-13 17:27:18,356 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test2.id]
Set parameter: index=1, jdbcType=INTEGER, value=0
2002-08-13 17:27:18,359 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test2]
Rows affected = 1
2002-08-13 17:27:18,420 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.Test2]
Store command NOT executed. Entity is not dirty: pk=[.0.]
2002-08-13 17:27:18,480 DEBUG
[org.jboss.invocation.MarshalledValueInputStream]
resolveProxyClass called, ifaces=[test.Test2]
2002-08-13 17:27:18,534 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test1]
Create: pk=[.0.]
2002-08-13 17:27:18,534 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test1]
Executing SQL: SELECT COUNT(*) FROM test1 WHERE iD=?
2002-08-13 17:27:18,535 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test1.iD]
Set parameter: index=1, jdbcType=INTEGER, value=0
2002-08-13 17:27:18,537 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test1]
Executing SQL: INSERT INTO test1 (iD, test2key) VALUES
(?, ?)
2002-08-13 17:27:18,538 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test1.iD]
Set parameter: index=1, jdbcType=INTEGER, value=0
2002-08-13 17:27:18,538 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test1.id]
Set parameter: index=2, jdbcType=INTEGER, value=NULL
2002-08-13 17:27:18,540 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Test1]
Rows affected = 1
2002-08-13 17:27:18,561 DEBUG
[org.jboss.invocation.MarshalledValueInputStream]
resolveProxyClass called, ifaces=[test.Test2]
2002-08-13 17:27:18,568 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.Test1]
Store command NOT executed. Entity is not dirty: pk=[.0.]
2002-08-13 17:27:18,569 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Test2.findByPrimaryKey]
Executing SQL: SELECT id FROM test2 WHERE id=?
2002-08-13 17:27:18,570 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Test2.findByPrimaryKey]
Set parameter: index=1, jdbcType=INTEGER, value=0
2002-08-13 17:27:18,572 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test2.id]
Get result: index=1, javaType=int, Simple, value=0
2002-08-13 17:27:18,580 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Test2]
RESET PERSISTENCE CONTEXT: id=[.0.]
2002-08-13 17:27:18,581 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.Test2]
load data: entity=Test2 pk=[.0.]
2002-08-13 17:27:18,584 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.Test2]
No preload data found: entity=Test2 pk=[.0.]
2002-08-13 17:27:18,589 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Test2]
Default eager-load for entity: readahead=null
2002-08-13 17:27:18,590 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.Test2]
Add relation: field=Test1_test2 id=[.0.] relatedId=[.0.]
2002-08-13 17:27:18,590 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Test2.Test1_test2]
Read ahead cahce load: cmrField=Test1_test2 pk=[.0.]
2002-08-13 17:27:18,590 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.Test2]
load data: entity=Test2 pk=[.0.]
2002-08-13 17:27:18,591 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.Test2]
No preload data found: entity=Test2 pk=[.0.]
2002-08-13 17:27:18,592 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.Test2]
Executing SQL: SELECT iD FROM test1 WHERE (test2key=?)
2002-08-13 17:27:18,593 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Test1.id]
Set parameter: index=1, jdbcType=INTEGER, value=0
2002-08-13 17:27:18,599 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.Test2]
Store command NOT executed. Entity is not dirty: pk=[.0.]
2002-08-13 17:27:18,600 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.Test1]
Store command NOT executed. Entity is not dirty: pk=[.0.]


----------------------------------------------------------------------

Comment By: Alexey Loubyansky (loubyansky)
Date: 2002-08-13 20:09

Message:
Logged In: YES 
user_id=543482

The cause is zero values in pk-fields.
If One side (Test2) of the relationship has a non-zero primary 
key field value, it works fine.

BTW, entity beans in the example construct and return 
primary key in ejbCreate. By the spec ejbCreate must return 
null value in case of CMP and not null pk in case of BMP.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=594596&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to