The following comment has been added to this issue:
Author: Brendan W. McAdams
Created: Fri, 9 Jan 2004 10:16 AM
Body:
Create works fine, as does getting key post insert; however, findByPrimaryKey
is failing...
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java
-classpath
/Applications/IntelliJ-IDEA-3.0.5/lib/junit.jar:/Users/bwmcadams/code/geronimo/EJBAutoKeyGen/shadow:/Users/bwmcadams/code/geronimo/nova/nova/target/classes:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/dt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/jaws.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/netscape.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/charsets.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/dt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ext/ldapsec.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ext/localedata.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ext/sunjce_provider.jar:/Users/bwmcadams/code/geronimo/nova/nova/target/test-classes:/Users/bwmcadams/code/geronimo/nova/nova/target/openejb-nova-DEV.jar:/Users/bwmcadams/bea/weblogic81/server/ext/jdbc/sybase/jConnect-5_5/classes/jconn2.jar:/Users/bwmcadams/.maven/repository/openejb-nova/jars/openejb-nova-DEV.jar:/Users/bwmcadams/.maven/repository/mx4j/jars/mx4j-jmx-SNAPSHOT.jar:/Users/bwmcadams/.maven/repository/mx4j/jars/mx4j-SNAPSHOT.jar:/Users/bwmcadams/.maven/repository/mx4j/jars/mx4j-tools-SNAPSHOT.jar:/Users/bwmcadams/.maven/repository/hsqldb/jars/hsqldb-jdk1.4-1.7.1.jar:/Users/bwmcadams/.maven/repository/commons-logging/jars/commons-logging-1.0.3.jar:/Users/bwmcadams/code/geronimo/nova/lib/ant-1.5.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/ant-optional-1.5.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/avalon-framework.jar:/Users/bwmcadams/code/geronimo/nova/lib/castor-0.9.3.9-xml.jar:/Users/bwmcadams/code/geronimo/nova/lib/castor-0.9.3.9.jar:/Users/bwmcadams/code/geronimo/nova/lib/ejb-1.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/ejb-2.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/ichilli-tools.jar:/Users/bwmcadams/code/geronimo/nova/lib/idb_3.26.jar:/Users/bwmcadams/code/geronimo/nova/lib/jaas_1.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/jakarta-regexp-1.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/jca_1.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/jdbc2_0-stdext.jar:/Users/bwmcadams/code/geronimo/nova/lib/JDBC3Fake.jar:/Users/bwmcadams/code/geronimo/nova/lib/jdk12-proxies.jar:/Users/bwmcadams/code/geronimo/nova/lib/jedi-1_0.jar:/Users/bwmcadams/code/geronimo/nova/lib/jedi-plugin-j2ee12.jar:/Users/bwmcadams/code/geronimo/nova/lib/jms_1.0.2a.jar:/Users/bwmcadams/code/geronimo/nova/lib/jndi_1.2.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/jta_1.0.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/junit_3.8.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/log4j-1.2.1.jar:/Users/bwmcadams/code/geronimo/nova/lib/logkit.jar:/Users/bwmcadams/code/geronimo/nova/lib/minerva.jar:/Users/bwmcadams/code/geronimo/nova/lib/openorb-1.3.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/openorb_rmi-1.3.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/openorb_rmi_tools-1.3.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/openorb_tools-1.3.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/ots-jts_1.0.jar:/Users/bwmcadams/code/geronimo/nova/lib/poolman.jar:/Users/bwmcadams/code/geronimo/nova/lib/servlet.jar:/Users/bwmcadams/code/geronimo/nova/lib/tyrex-0.9.8-iiop.jar:/Users/bwmcadams/code/geronimo/nova/lib/tyrex-0.9.8.jar:/Users/bwmcadams/code/geronimo/nova/lib/xalan-2.4.D1.jar:/Users/bwmcadams/code/geronimo/nova/lib/xercesImpl-2.0.2.jar:/Users/bwmcadams/code/geronimo/nova/lib/xml-apis-2.4.D1.jar:/Users/bwmcadams/code/geronimo/nova/lib/xmlParserAPIs-2.0.2.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/cglib-HEAD-20031111.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/commons-httpclient-2.0-beta1.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/commons-logging-1.0.3.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/geronimo-kernel-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/geronimo-spec-j2ee-deployment-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/log4j-1.2.8.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/mx4j-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/xerces-2.4.0.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/bootlib/xml-apis-1.0.b2.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/castor-0.9.5.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/cglib-HEAD-20031109.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/classworlds-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-beanutils-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-cli-1.0.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-collections-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-jexl-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-jxpath-1.1.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-lang-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/commons-logging-1.0.3.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/concurrent-1.3.2.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/dom4j-1.4.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-clustering-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-common-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-core-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-core-rmiclassloaderspi.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-explorer-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-mail-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-remoting-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-schemas.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-activation-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-ejb-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-j2ee-connector-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-j2ee-jacc-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-j2ee-management-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-javamail-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-jms-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-jsp-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-jta-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-spec-servlet-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-tools-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-twiddle-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/geronimo-xbeans-DEV.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/groovy-1.0-alpha-1.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/hsqldb-1.7.1.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/jsr88-geronimo-plugin.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/mx4j-tools-SNAPSHOT.jar:/Users/bwmcadams/code/geronimo/incubator-geronimo/target/geronimo-DEV/lib/regexp-1.3-dev.jar:/Applications/IntelliJ-IDEA-3.0.5/lib/idea_rt.jar
com.intellij.rt.execution.junit.TextTestRunner
org.twodot.ejb.test.cmpkeygen.SybaseASEKeyGenTest
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Hey - got back an Identity of 1009
Instance Data Slot 0: 1009 Instance Data Slot 1: This is another test from the
Junit container
[EMAIL PROTECTED] and org.twodot.ejb.test.cmpkeygen.identity.CMPIdentityDO: {
DescriptionUID = 1009; Description = This is another test from the Junit
container}
10 [main] WARN org.openejb.nova.SystemExceptionInterceptor -
org.twodot.ejb.test.cmpkeygen.identity.CMPIdentityBean
java.lang.IllegalStateException: Could not locate transaction policy for
transaction policy key 1 and index -1
at
org.openejb.nova.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:83)
at
org.openejb.nova.SystemExceptionInterceptor.invoke(SystemExceptionInterceptor.java:82)
at
org.openejb.nova.entity.EntityLocalClientContainer.invoke(EntityLocalClientContainer.java:173)
at
org.openejb.nova.entity.EntityLocalClientContainer.access$500(EntityLocalClientContainer.java:85)
at
org.openejb.nova.entity.EntityLocalClientContainer$EntityLocalHomeCallback.intercept(EntityLocalClientContainer.java:212)
at
org.openejb.nova.entity.EntityLocalClientContainer$EntityLocalHomeImpl$$EnhancerByCGLIB$$34eacb9f.findByPrimaryKey(<generated>)
at
org.twodot.ejb.test.cmpkeygen.SybaseASEKeyGenTest.testLocalInvoke(SybaseASEKeyGenTest.java:124)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at junit.textui.TestRunner.start(TestRunner.java:172)
at
com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at
org.openejb.nova.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:81)
... 21 more
E
Time: 5.726
There was 1 error:
1)
testLocalInvoke(org.twodot.ejb.test.cmpkeygen.SybaseASEKeyGenTest)java.lang.IllegalStateException:
Could not locate transaction policy for transaction policy key 1 and index -1
at
org.openejb.nova.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:83)
at
org.openejb.nova.SystemExceptionInterceptor.invoke(SystemExceptionInterceptor.java:82)
at
org.openejb.nova.entity.EntityLocalClientContainer.invoke(EntityLocalClientContainer.java:173)
at
org.openejb.nova.entity.EntityLocalClientContainer.access$500(EntityLocalClientContainer.java:85)
at
org.openejb.nova.entity.EntityLocalClientContainer$EntityLocalHomeCallback.intercept(EntityLocalClientContainer.java:212)
at
org.openejb.nova.entity.EntityLocalClientContainer$EntityLocalHomeImpl$$EnhancerByCGLIB$$34eacb9f.findByPrimaryKey(<generated>)
at
org.twodot.ejb.test.cmpkeygen.SybaseASEKeyGenTest.testLocalInvoke(SybaseASEKeyGenTest.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at
org.openejb.nova.transaction.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:81)
... 21 more
FAILURES!!!
Tests run: 1, Failures: 0, Errors: 1
Process terminated with exit code -1
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=GERONIMO-140
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-140
Summary: Support Database Level Automatic Key Generation under CMP 2.0 with
Nova
Type: New Feature
Status: Open
Priority: Major
Original Estimate: 2 weeks
Time Spent: Unknown
Remaining: 2 weeks
Project: Apache Geronimo
Components:
core
Assignee: Jeremy Boynes
Reporter: Brendan W. McAdams
Created: Thu, 8 Jan 2004 9:50 PM
Updated: Fri, 9 Jan 2004 10:16 AM
Description:
I (Brendan) am working on some code to support DB Level auto-key-generation,
such as mysql autoincrement, sybase/ms-sql identity, and postgresql serial.
I'd like to track the issue and provide interim patches as they're available.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira