openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Strange, intermittent problem running the new models.company tests
Date Fri, 16 Feb 2007 00:55:30 GMT
Hi Marc,

On Feb 15, 2007, at 12:34 PM, Marc Prud'hommeaux wrote:

>
> Can you send the stack trace?
>
I think this is all the good stuff and no extraneous garbage:

Running  
org.apache.openjpa.persistence.models.company.propertyaccess.TestPropert 
yCompanyModel
0  test  INFO   [main] openjpa.Runtime - Starting OpenJPA 0.0.0
3  test  INFO   [main] openjpa.jdbc.JDBC - OpenJPA will now connect  
to the database to attempt to determine what type of database  
dictionary to use.  To prevent this connection in the future, set  
your openjpa.jdbc.DBDictionary configuration property to the  
appropriate value for your database (see the documentation for  
available values).
10  test  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class  
"org.apache.openjpa.jdbc.sql.DerbyDictionary" (Apache Derby 10.2.2.0  
- (485682) ,Apache Derby Embedded JDBC Driver 10.2.2.0 - (485682)).
29  test  INFO   [main] openjpa.MetaData - Found 10 classes with  
metadata in 1 milliseconds.
33  test  INFO   [main] openjpa.MetaData - Found 10 classes with  
metadata in 0 milliseconds.
35  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.FullTimeEm 
ployee".
35  test  INFO   [main] openjpa.MetaData - Parsing package  
"org.apache.openjpa.persistence.models.company.propertyaccess.FullTimeEm 
ployee".
135  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Employee".
173  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Person".
180  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Address".
218  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Company".
288  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Product".
303  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.LineItem".
355  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Customer".
363  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.ProductOrd 
er".
406  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.PartTimeEm 
ployee".
417  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name "PRP_Address".
484  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name "PRP_Company".
532  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name "PRP_LineItem".
537  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name "PRP_Person".
554  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name "PRP_Product".
600  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name "PRP_ProductOrder".
607  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name  
"PRP_ProductOrder_PRP_LineItem".
612  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name  
"PRP_Product_PRP_Company".
659  test  INFO   [main] openjpa.jdbc.Schema - Reading sequence  
information for schema "null", sequence name "null".
1791  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Company".
1791  test  INFO   [main] openjpa.MetaData - Parsing package  
"org.apache.openjpa.persistence.models.company.propertyaccess.Company".
1799  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Address".
1842  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Employee".
1849  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Person".
1854  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Product".
1885  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.FullTimeEm 
ployee".
1996  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.PartTimeEm 
ployee".
2021  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.Customer".
2039  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.ProductOrd 
er".
2058  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.models.company.propertyaccess.LineItem".
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:  
133.615 sec <<< FAILURE!
testBasicQueries 
(org.apache.openjpa.persistence.models.company.propertyaccess.TestProper 
tyCompanyModel)  Time elapsed: 133.582 sec  <<< ERROR!
<0|false|0.0.0> org.apache.openjpa.persistence.PersistenceException:  
The exception 'java.lang.NullPointerException' was thrown while  
evaluating an expression. {prepstmnt 8542064 SELECT t0.id, t0.DTYPE,  
t0.firstName, t2.id, t2.city, t2.phoneNumber, t2.postalCode,  
t2.state, t2.streetAddress, t0.lastName, t3.id, t4.id, t4.city,  
t4.phoneNumber, t4.postalCode, t4.state, t4.streetAddress, t3.name,  
t0.hireDate, t1.id, t1.DTYPE, t1.firstName, t1.homeAddress_id,  
t1.lastName, t1.company_id, t1.hireDate, t1.title, t1.salary,  
t0.title, t0.salary, t0.wage, t0.weeklyHours FROM PRP_Person t0 LEFT  
OUTER JOIN PRP_Person t1 ON t0.manager_id = t1.id LEFT OUTER JOIN  
PRP_Address t2 ON t0.homeAddress_id = t2.id LEFT OUTER JOIN  
PRP_Company t3 ON t0.company_id = t3.id LEFT OUTER JOIN PRP_Address  
t4 ON t3.address_id = t4.id WHERE (ABS(t0.manager_id) <> ? OR CAST(ABS 
(t1.salary) AS REAL) <> CAST(? AS REAL) OR (CAST(t1.firstName AS  
VARCHAR(1000)))||(CAST(t1.firstName AS VARCHAR(1000))) = ? OR (CAST 
(t1.lastName AS VARCHAR(1000)))||(CAST(t1.lastName AS VARCHAR(1000)))  
= ? OR (CAST(t1.title AS VARCHAR(1000)))||(CAST(t1.title AS VARCHAR 
(1000))) = ? OR CAST(LENGTH(t1.firstName) AS BIGINT) > CAST(? AS  
BIGINT) OR CAST(LENGTH(t1.lastName) AS BIGINT) > CAST(? AS BIGINT) OR  
CAST(LENGTH(t1.title) AS BIGINT) > CAST(? AS BIGINT) OR CAST(((LOCATE 
(CAST((t1.firstName) AS VARCHAR(1000)), CAST((?) AS VARCHAR(1000)),  
CAST(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1) - 1)  
+ ?) AS BIGINT) > CAST(? AS BIGINT) OR CAST(((LOCATE(CAST 
((t1.lastName) AS VARCHAR(1000)), CAST((?) AS VARCHAR(1000)), CAST 
(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1) - 1) + ?)  
AS BIGINT) > CAST(? AS BIGINT) OR CAST(((LOCATE(CAST((t1.title) AS  
VARCHAR(1000)), CAST((?) AS VARCHAR(1000)), CAST(((CAST(? AS BIGINT)  
- CAST(? AS BIGINT))) AS INTEGER) + 1) - 1) + ?) AS BIGINT) > CAST(?  
AS BIGINT) OR LOWER(CAST(t1.firstName AS VARCHAR(1000))) = ? OR LOWER 
(CAST(t1.lastName AS VARCHAR(1000))) = ? OR LOWER(CAST(t1.title AS  
VARCHAR(1000))) = ? OR CAST(SQRT(t0.manager_id) AS DOUBLE) <> CAST(?  
AS DOUBLE) OR CAST(SQRT(t1.salary) AS DOUBLE) <> CAST(? AS DOUBLE) OR  
SUBSTR(CAST((t1.firstName) AS VARCHAR(1000)), CAST(((CAST(? AS  
BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1, CAST(((? + (CAST(? AS  
BIGINT) - CAST(? AS BIGINT)))) AS INTEGER) - CAST(((CAST(? AS BIGINT)  
- CAST(? AS BIGINT))) AS INTEGER)) = ? OR SUBSTR(CAST((t1.lastName)  
AS VARCHAR(1000)), CAST(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS  
INTEGER) + 1, CAST(((? + (CAST(? AS BIGINT) - CAST(? AS BIGINT)))) AS  
INTEGER) - CAST(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS  
INTEGER)) = ? OR SUBSTR(CAST((t1.title) AS VARCHAR(1000)), CAST(((CAST 
(? AS BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1, CAST(((? + (CAST 
(? AS BIGINT) - CAST(? AS BIGINT)))) AS INTEGER) - CAST(((CAST(? AS  
BIGINT) - CAST(? AS BIGINT))) AS INTEGER)) = ? OR LTRIM(t1.firstName)  
= ? OR LTRIM(t1.lastName) = ? OR LTRIM(t1.title) = ? OR UPPER(CAST 
(t1.firstName AS VARCHAR(1000))) = ? OR UPPER(CAST(t1.lastName AS  
VARCHAR(1000))) = ? OR UPPER(CAST(t1.title AS VARCHAR(1000))) = ? OR  
t0.manager_id IS NOT NULL OR t0.manager_id IS NULL OR t1.company_id  
IS NOT NULL OR t1.company_id IS NULL OR t1.firstName IS NOT NULL OR  
t1.firstName IS NULL OR t1.hireDate <> CURRENT_TIMESTAMP OR  
t1.hireDate IS NOT NULL OR t1.hireDate IS NULL OR t1.homeAddress_id  
IS NOT NULL OR t1.homeAddress_id IS NULL OR t0.manager_id < ? OR  
t0.manager_id <= ? OR t0.manager_id <> ? OR t0.manager_id = ? OR  
t0.manager_id > ? OR t0.manager_id >= ? OR t0.manager_id IS NOT NULL  
OR t0.manager_id IS NULL OR t1.lastName IS NOT NULL OR t1.lastName IS  
NULL OR t1.manager_id IS NOT NULL OR t1.manager_id IS NULL OR CAST 
(t1.salary AS REAL) < CAST(? AS REAL) OR CAST(t1.salary AS REAL) <=  
CAST(? AS REAL) OR CAST(t1.salary AS REAL) <> CAST(? AS REAL) OR CAST 
(t1.salary AS REAL) = CAST(? AS REAL) OR CAST(t1.salary AS REAL) >  
CAST(? AS REAL) OR CAST(t1.salary AS REAL) >= CAST(? AS REAL) OR  
t1.salary IS NOT NULL OR t1.salary IS NULL OR t1.title IS NOT NULL OR  
t1.title IS NULL) AND t0.DTYPE IN (?, ?, ?) [params=(long) 0, (long)  
0, (String) x, (String) x, (String) x, (long) 0, (long) 0, (long) 0,  
(String) x, (long) 1, (int) 1, (int) 1, (long) 0, (String) x, (long)  
1, (int) 1, (int) 1, (long) 0, (String) x, (long) 1, (int) 1, (int)  
1, (long) 0, (String) x, (String) x, (String) x, (long) 0, (long) 0,  
(long) 1, (int) 1, (long) 2, (long) 1, (int) 1, (long) 1, (int) 1,  
(String) x, (long) 1, (int) 1, (long) 2, (long) 1, (int) 1, (long) 1,  
(int) 1, (String) x, (long) 1, (int) 1, (long) 2, (long) 1, (int) 1,  
(long) 1, (int) 1, (String) x, (String) x, (String) x, (String) x,  
(String) x, (String) x, (String) x, (long) 0, (long) 0, (long) 0,  
(long) 0, (long) 0, (long) 0, (long) 0, (long) 0, (long) 0, (long) 0,  
(long) 0, (long) 0, (String) Employee, (String) FullTimeEmployee,  
(String) PartTimeEmployee]} [code=30000, state=38000]
         at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException 
(DBDictionary.java:3765)
         at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore 
(SQLExceptions.java:94)
         at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore 
(SQLExceptions.java:80)
         at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore 
(SQLExceptions.java:56)
         at  
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.handleCheckedE 
xception(SelectResultObjectProvider.java:152)
         at org.apache.openjpa.lib.rop.EagerResultList.<init> 
(EagerResultList.java:37)
         at org.apache.openjpa.kernel.QueryImpl.toResult 
(QueryImpl.java:1214)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:981)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:791)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:761)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:757)
         at org.apache.openjpa.kernel.DelegatingQuery.execute 
(DelegatingQuery.java:512)
         at org.apache.openjpa.persistence.QueryImpl.execute 
(QueryImpl.java:225)
         at org.apache.openjpa.persistence.QueryImpl.getResultList 
(QueryImpl.java:264)
         at org.apache.openjpa.persistence.test.SingleEMTest.find 
(SingleEMTest.java:250)
         at  
org.apache.openjpa.persistence.models.company.CompanyModelTest.testBasic 
Queries(CompanyModelTest.java:99)
         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:585)
         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 sun.reflect.GeneratedMethodAccessor106.invoke(Unknown  
Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.maven.surefire.junit.JUnitTestSet.execute 
(JUnitTestSet.java:210)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe 
t(AbstractDirectoryTestSuite.java:135)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
(AbstractDirectoryTestSuite.java:122)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
         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:585)
         at  
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
(SurefireBooter.java:225)
         at org.apache.maven.surefire.booter.SurefireBooter.main 
(SurefireBooter.java:747)
Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: The  
exception 'java.lang.NullPointerException' was thrown while  
evaluating an expression. {prepstmnt 8542064 SELECT t0.id, t0.DTYPE,  
t0.firstName, t2.id, t2.city, t2.phoneNumber, t2.postalCode,  
t2.state, t2.streetAddress, t0.lastName, t3.id, t4.id, t4.city,  
t4.phoneNumber, t4.postalCode, t4.state, t4.streetAddress, t3.name,  
t0.hireDate, t1.id, t1.DTYPE, t1.firstName, t1.homeAddress_id,  
t1.lastName, t1.company_id, t1.hireDate, t1.title, t1.salary,  
t0.title, t0.salary, t0.wage, t0.weeklyHours FROM PRP_Person t0 LEFT  
OUTER JOIN PRP_Person t1 ON t0.manager_id = t1.id LEFT OUTER JOIN  
PRP_Address t2 ON t0.homeAddress_id = t2.id LEFT OUTER JOIN  
PRP_Company t3 ON t0.company_id = t3.id LEFT OUTER JOIN PRP_Address  
t4 ON t3.address_id = t4.id WHERE (ABS(t0.manager_id) <> ? OR CAST(ABS 
(t1.salary) AS REAL) <> CAST(? AS REAL) OR (CAST(t1.firstName AS  
VARCHAR(1000)))||(CAST(t1.firstName AS VARCHAR(1000))) = ? OR (CAST 
(t1.lastName AS VARCHAR(1000)))||(CAST(t1.lastName AS VARCHAR(1000)))  
= ? OR (CAST(t1.title AS VARCHAR(1000)))||(CAST(t1.title AS VARCHAR 
(1000))) = ? OR CAST(LENGTH(t1.firstName) AS BIGINT) > CAST(? AS  
BIGINT) OR CAST(LENGTH(t1.lastName) AS BIGINT) > CAST(? AS BIGINT) OR  
CAST(LENGTH(t1.title) AS BIGINT) > CAST(? AS BIGINT) OR CAST(((LOCATE 
(CAST((t1.firstName) AS VARCHAR(1000)), CAST((?) AS VARCHAR(1000)),  
CAST(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1) - 1)  
+ ?) AS BIGINT) > CAST(? AS BIGINT) OR CAST(((LOCATE(CAST 
((t1.lastName) AS VARCHAR(1000)), CAST((?) AS VARCHAR(1000)), CAST 
(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1) - 1) + ?)  
AS BIGINT) > CAST(? AS BIGINT) OR CAST(((LOCATE(CAST((t1.title) AS  
VARCHAR(1000)), CAST((?) AS VARCHAR(1000)), CAST(((CAST(? AS BIGINT)  
- CAST(? AS BIGINT))) AS INTEGER) + 1) - 1) + ?) AS BIGINT) > CAST(?  
AS BIGINT) OR LOWER(CAST(t1.firstName AS VARCHAR(1000))) = ? OR LOWER 
(CAST(t1.lastName AS VARCHAR(1000))) = ? OR LOWER(CAST(t1.title AS  
VARCHAR(1000))) = ? OR CAST(SQRT(t0.manager_id) AS DOUBLE) <> CAST(?  
AS DOUBLE) OR CAST(SQRT(t1.salary) AS DOUBLE) <> CAST(? AS DOUBLE) OR  
SUBSTR(CAST((t1.firstName) AS VARCHAR(1000)), CAST(((CAST(? AS  
BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1, CAST(((? + (CAST(? AS  
BIGINT) - CAST(? AS BIGINT)))) AS INTEGER) - CAST(((CAST(? AS BIGINT)  
- CAST(? AS BIGINT))) AS INTEGER)) = ? OR SUBSTR(CAST((t1.lastName)  
AS VARCHAR(1000)), CAST(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS  
INTEGER) + 1, CAST(((? + (CAST(? AS BIGINT) - CAST(? AS BIGINT)))) AS  
INTEGER) - CAST(((CAST(? AS BIGINT) - CAST(? AS BIGINT))) AS  
INTEGER)) = ? OR SUBSTR(CAST((t1.title) AS VARCHAR(1000)), CAST(((CAST 
(? AS BIGINT) - CAST(? AS BIGINT))) AS INTEGER) + 1, CAST(((? + (CAST 
(? AS BIGINT) - CAST(? AS BIGINT)))) AS INTEGER) - CAST(((CAST(? AS  
BIGINT) - CAST(? AS BIGINT))) AS INTEGER)) = ? OR LTRIM(t1.firstName)  
= ? OR LTRIM(t1.lastName) = ? OR LTRIM(t1.title) = ? OR UPPER(CAST 
(t1.firstName AS VARCHAR(1000))) = ? OR UPPER(CAST(t1.lastName AS  
VARCHAR(1000))) = ? OR UPPER(CAST(t1.title AS VARCHAR(1000))) = ? OR  
t0.manager_id IS NOT NULL OR t0.manager_id IS NULL OR t1.company_id  
IS NOT NULL OR t1.company_id IS NULL OR t1.firstName IS NOT NULL OR  
t1.firstName IS NULL OR t1.hireDate <> CURRENT_TIMESTAMP OR  
t1.hireDate IS NOT NULL OR t1.hireDate IS NULL OR t1.homeAddress_id  
IS NOT NULL OR t1.homeAddress_id IS NULL OR t0.manager_id < ? OR  
t0.manager_id <= ? OR t0.manager_id <> ? OR t0.manager_id = ? OR  
t0.manager_id > ? OR t0.manager_id >= ? OR t0.manager_id IS NOT NULL  
OR t0.manager_id IS NULL OR t1.lastName IS NOT NULL OR t1.lastName IS  
NULL OR t1.manager_id IS NOT NULL OR t1.manager_id IS NULL OR CAST 
(t1.salary AS REAL) < CAST(? AS REAL) OR CAST(t1.salary AS REAL) <=  
CAST(? AS REAL) OR CAST(t1.salary AS REAL) <> CAST(? AS REAL) OR CAST 
(t1.salary AS REAL) = CAST(? AS REAL) OR CAST(t1.salary AS REAL) >  
CAST(? AS REAL) OR CAST(t1.salary AS REAL) >= CAST(? AS REAL) OR  
t1.salary IS NOT NULL OR t1.salary IS NULL OR t1.title IS NOT NULL OR  
t1.title IS NULL) AND t0.DTYPE IN (?, ?, ?) [params=(long) 0, (long)  
0, (String) x, (String) x, (String) x, (long) 0, (long) 0, (long) 0,  
(String) x, (long) 1, (int) 1, (int) 1, (long) 0, (String) x, (long)  
1, (int) 1, (int) 1, (long) 0, (String) x, (long) 1, (int) 1, (int)  
1, (long) 0, (String) x, (String) x, (String) x, (long) 0, (long) 0,  
(long) 1, (int) 1, (long) 2, (long) 1, (int) 1, (long) 1, (int) 1,  
(String) x, (long) 1, (int) 1, (long) 2, (long) 1, (int) 1, (long) 1,  
(int) 1, (String) x, (long) 1, (int) 1, (long) 2, (long) 1, (int) 1,  
(long) 1, (int) 1, (String) x, (String) x, (String) x, (String) x,  
(String) x, (String) x, (String) x, (long) 0, (long) 0, (long) 0,  
(long) 0, (long) 0, (long) 0, (long) 0, (long) 0, (long) 0, (long) 0,  
(long) 0, (long) 0, (String) Employee, (String) FullTimeEmployee,  
(String) PartTimeEmployee]} [code=30000, state=38000]
         at  
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap 
(LoggingConnectionDecorator.java:188)
         at  
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.access$800 
(LoggingConnectionDecorator.java:53)
         at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator 
$LoggingConnection$LoggingPreparedStatement.executeQuery 
(LoggingConnectionDecorator.java:840)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:259)
         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager 
$CancelPreparedStatement.executeQuery(JDBCStoreManager.java:1369)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:249)
         at org.apache.openjpa.jdbc.sql.SelectImpl.execute 
(SelectImpl.java:324)
         at org.apache.openjpa.jdbc.sql.SelectImpl.execute 
(SelectImpl.java:296)
         at org.apache.openjpa.jdbc.sql.LogicalUnion 
$UnionSelect.execute(LogicalUnion.java:402)
         at org.apache.openjpa.jdbc.sql.LogicalUnion.execute 
(LogicalUnion.java:213)
         at org.apache.openjpa.jdbc.sql.LogicalUnion.execute 
(LogicalUnion.java:203)
         at  
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.open 
(SelectResultObjectProvider.java:91)
         at org.apache.openjpa.lib.rop.EagerResultList.<init> 
(EagerResultList.java:31)
         ... 35 more
NestedThrowables:
ERROR 38000: The exception 'java.lang.NullPointerException' was  
thrown while evaluating an expression.
         at org.apache.derby.iapi.error.StandardException.newException 
(Unknown Source)
         at  
org.apache.derby.iapi.error.StandardException.unexpectedUserException 
(Unknown Source)
         at  
org.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown  
Source)
         at  
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCor 
e(Unknown Source)
         at org.apache.derby.impl.sql.execute.JoinResultSet.openCore 
(Unknown Source)
         at org.apache.derby.impl.sql.execute.JoinResultSet.openCore 
(Unknown Source)
         at org.apache.derby.impl.sql.execute.JoinResultSet.openCore 
(Unknown Source)
         at  
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openCore 
(Unknown Source)
         at  
org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open 
(Unknown Source)
         at org.apache.derby.impl.sql.GenericPreparedStatement.execute 
(Unknown Source)
         at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement 
(Unknown Source)
         at  
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement 
(Unknown Source)
         at  
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery 
(Unknown Source)
         at  
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:92)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:261)
         at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator 
$LoggingConnection$LoggingPreparedStatement.executeQuery 
(LoggingConnectionDecorator.java:838)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:259)
         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager 
$CancelPreparedStatement.executeQuery(JDBCStoreManager.java:1369)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:249)
         at org.apache.openjpa.jdbc.sql.SelectImpl.execute 
(SelectImpl.java:324)
         at org.apache.openjpa.jdbc.sql.SelectImpl.execute 
(SelectImpl.java:296)
         at org.apache.openjpa.jdbc.sql.LogicalUnion 
$UnionSelect.execute(LogicalUnion.java:402)
         at org.apache.openjpa.jdbc.sql.LogicalUnion.execute 
(LogicalUnion.java:213)
         at org.apache.openjpa.jdbc.sql.LogicalUnion.execute 
(LogicalUnion.java:203)
         at  
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.open 
(SelectResultObjectProvider.java:91)
         at org.apache.openjpa.lib.rop.EagerResultList.<init> 
(EagerResultList.java:31)
         at org.apache.openjpa.kernel.QueryImpl.toResult 
(QueryImpl.java:1214)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:981)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:791)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:761)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:757)
         at org.apache.openjpa.kernel.DelegatingQuery.execute 
(DelegatingQuery.java:512)
         at org.apache.openjpa.persistence.QueryImpl.execute 
(QueryImpl.java:225)
         at org.apache.openjpa.persistence.QueryImpl.getResultList 
(QueryImpl.java:264)
         at org.apache.openjpa.persistence.test.SingleEMTest.find 
(SingleEMTest.java:250)
         at  
org.apache.openjpa.persistence.models.company.CompanyModelTest.testBasic 
Queries(CompanyModelTest.java:99)
         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:585)
         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 sun.reflect.GeneratedMethodAccessor106.invoke(Unknown  
Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.maven.surefire.junit.JUnitTestSet.execute 
(JUnitTestSet.java:210)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe 
t(AbstractDirectoryTestSuite.java:135)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
(AbstractDirectoryTestSuite.java:122)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
         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:585)
         at  
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
(SurefireBooter.java:225)
         at org.apache.maven.surefire.booter.SurefireBooter.main 
(SurefireBooter.java:747)
java.lang.NullPointerException
         at  
org.apache.derby.exe.aca6399fbdx0110xc701x7f61x0000000c58d00.e11 
(Unknown Source)
         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:585)
         at  
org.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown  
Source)
         at  
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCor 
e(Unknown Source)
         at org.apache.derby.impl.sql.execute.JoinResultSet.openCore 
(Unknown Source)
         at org.apache.derby.impl.sql.execute.JoinResultSet.openCore 
(Unknown Source)
         at org.apache.derby.impl.sql.execute.JoinResultSet.openCore 
(Unknown Source)
         at  
org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openCore 
(Unknown Source)
         at  
org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open 
(Unknown Source)
         at org.apache.derby.impl.sql.GenericPreparedStatement.execute 
(Unknown Source)
         at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement 
(Unknown Source)
0  test  INFO   [main] openjpa.Runtime - Starting OpenJPA 0.0.0
2  test  INFO   [main] openjpa.jdbc.JDBC - OpenJPA will now connect  
to the database to attempt to determine what type of database  
dictionary to use.  To prevent this connection in the future, set  
your openjpa.jdbc.DBDictionary configuration property to the  
appropriate value for your database (see the documentation for  
available values).
8  test  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class  
"org.apache.openjpa.jdbc.sql.DerbyDictionary" (Apache Derby 10.2.2.0  
- (485682) ,Apache Derby Embedded JDBC Driver 10.2.2.0 - (485682)).
18  test  INFO   [main] openjpa.MetaData - Found 1 classes with  
metadata in 1 milliseconds.
24  test  INFO   [main] openjpa.MetaData - Found 1 classes with  
metadata in 1 milliseconds.
24  test  INFO   [main] openjpa.MetaData - Parsing class  
"org.apache.openjpa.persistence.callbacks.ExceptionsFromCallbacksEntity" 
.
24  test  INFO   [main] openjpa.MetaData - Parsing package  
"org.apache.openjpa.persistence.callbacks.ExceptionsFromCallbacksEntity" 
.
119  test  INFO   [main] openjpa.jdbc.Schema - Reading table  
information for schema name "null", table name  
"ExceptionsFromCallbacksEntity".
         at  
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement 
(Unknown Source)
         at  
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery 
(Unknown Source)
         at  
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:92)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:261)
         at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator 
$LoggingConnection$LoggingPreparedStatement.executeQuery 
(LoggingConnectionDecorator.java:838)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:259)
         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager 
$CancelPreparedStatement.executeQuery(JDBCStoreManager.java:1369)
         at  
org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeQuery 
(DelegatingPreparedStatement.java:249)
         at org.apache.openjpa.jdbc.sql.SelectImpl.execute 
(SelectImpl.java:324)
         at org.apache.openjpa.jdbc.sql.SelectImpl.execute 
(SelectImpl.java:296)
         at org.apache.openjpa.jdbc.sql.LogicalUnion 
$UnionSelect.execute(LogicalUnion.java:402)
         at org.apache.openjpa.jdbc.sql.LogicalUnion.execute 
(LogicalUnion.java:213)
         at org.apache.openjpa.jdbc.sql.LogicalUnion.execute 
(LogicalUnion.java:203)
         at  
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.open 
(SelectResultObjectProvider.java:91)
         at org.apache.openjpa.lib.rop.EagerResultList.<init> 
(EagerResultList.java:31)
         at org.apache.openjpa.kernel.QueryImpl.toResult 
(QueryImpl.java:1214)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:981)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:791)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:761)
         at org.apache.openjpa.kernel.QueryImpl.execute 
(QueryImpl.java:757)
         at org.apache.openjpa.kernel.DelegatingQuery.execute 
(DelegatingQuery.java:512)
         at org.apache.openjpa.persistence.QueryImpl.execute 
(QueryImpl.java:225)
         at org.apache.openjpa.persistence.QueryImpl.getResultList 
(QueryImpl.java:264)
         at org.apache.openjpa.persistence.test.SingleEMTest.find 
(SingleEMTest.java:250)
         at  
org.apache.openjpa.persistence.models.company.CompanyModelTest.testBasic 
Queries(CompanyModelTest.java:99)
         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:585)
         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 sun.reflect.GeneratedMethodAccessor106.invoke(Unknown  
Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.maven.surefire.junit.JUnitTestSet.execute 
(JUnitTestSet.java:210)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe 
t(AbstractDirectoryTestSuite.java:135)
         at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
(AbstractDirectoryTestSuite.java:122)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
         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:585)
         at  
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
(SurefireBooter.java:225)
         at org.apache.maven.surefire.booter.SurefireBooter.main 
(SurefireBooter.java:747)


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message