-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Author Message
 Post subject: FooBarTest
PostPosted: Wed Jan 07, 2004 6:53 am 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
When running FooBarTest a JNDI error comes up. Does this test have to be run from within an app server? Is there a recommended setup to run this test? Can the test be run successfully from a command line?

05:45:56,391 INFO HibernateServiceMBean:167 - starting service at JNDI name: SessionFactory
05:45:56,422 INFO HibernateServiceMBean:168 - service properties: {hibernate.session_factory_name=SessionFactory, hibernate.use_outer_join=false, hibernate.show_sql=true}
05:45:56,469 INFO Configuration:287 - Mapping resource: net/sf/hibernate/test/Simple.hbm.xml
05:45:56,500 INFO HibernateServiceMBean:148 - Could not build SessionFactory using the MBean classpath - will try again using client classpath: Resource: net/sf/hibernate/test/Simple.hbm.xml not found
05:45:56,562 INFO SessionFactoryObjectFactory:86 - Factory name: SessionFactory
05:45:56,625 INFO NamingHelper:26 - JNDI InitialContext properties:{}
05:45:56,672 WARN SessionFactoryObjectFactory:98 - Could not bind factory to JNDI
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:292)
at javax.naming.InitialContext.getNameParser(InitialContext.java:441)
at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at net.sf.hibernate.jmx.SessionFactoryStub.<init>(SessionFactoryStub.java:58)
at net.sf.hibernate.jmx.HibernateService.start(HibernateService.java:150)
at org.hibernate.test.FooBarTest.testService(FooBarTest.java:4434)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 07, 2004 8:55 am 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
What hibernate.properties file are you using? It will be on your classpth somewhere.


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 08, 2004 10:13 am 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
sgwood wrote:
What hibernate.properties file are you using? It will be on your classpth somewhere.


Sherman


I'm using the default hibernate.properties, modified to use my database only. The JNDI stuff at the end remains commented out.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 08, 2004 1:17 pm 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
Hmmm....

The FooBarTest class is explicitly doing that test, and does not check to see whether you are running in an app server. Maybe you can include the jboss jars on your classpath to get it to work.


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 10, 2004 9:02 pm 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
Thanks for the reply. The PC I was using has a problem with IE and posting replies, hence the delay in getting back to you.

The JBoss jars are there, I believe, because I'm just running "ant junit" from the command line. So are you saying that you can run "ant junit" without error just from the command line without doing anything to hibernate.properties other than setting up the dialect?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2004 12:25 am 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
On second thought, FooBarTest only works if you are running in JBoss, because of the MBean and the need for JNDI.

FooBarTest is a regression test for Hibernate itself. Why are you running it?


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2004 3:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
guys - it is ONLY a warning! it does not matter - and all test passes anyhow.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2004 9:59 am 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
I'm running "ant junit" because I'm trying to find out to what extent Hibernate will work with DB2 for iSeries a.k.a. DB2/400. I have subclassed DB2Dialect and can get now get "ant eg" to run without error. My premise is that "ant junit" will provide the best proof of how Hibernate works with DB2/400. Where it doesn't (for example there is no support for a repeat function in DB2/400) I was planning on looking into further to see what could be done. -- Peter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2004 10:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
cool. Extending on the already existing DB2400Dialect by you, right ?

...remember that if the log says: WARN: <some exception> it normally just is that: a warning, which you normally can ignore. (in this case you would not ignore it if you in fact WAS running inside a container - then you should react ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2004 4:03 pm 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
Yes, that's what I'm seeing if I can do and I'm wondering if there are any tips on getting the entire test suite to run. I have access to Tomcat and Websphere AS more readily that JBoss so if the testing can be done in either of those environments it would be preferred.

To run the "ant junit" test suite in an app server do you make a servlet from whch to run ant? Is there an example of this available?

-- Peter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2004 4:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, this is just a warning - are you actually getting test case failures because of not having a container?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 10:18 am 
Beginner
Beginner

Joined: Sun Dec 28, 2003 3:29 pm
Posts: 22
Location: Massachusetts USA
gloeglm wrote:
Well, this is just a warning - are you actually getting test case failures because of not having a container?


No, it looks like I'm not getting failures due to not running in container with JNDI. I'm beginning to get it that legitimate test results may be obtained when running outside of a container and without JNDI.

At this point when running iSeries DB2 (DB2400Dialect) and AllTests I have 14 errors and 8 failures out of 187 tests. I'm going to look into this further.

Thanks for the responses. FYI, here is summary of AllTests.

There were 14 errors:
1) testQueryLockMode(org.hibernate.test.FooBarTest)net.sf.hibernate.NonUniqueResultException: query did not return a unique result: 64
at net.sf.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:514)
at net.sf.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:505)
at org.hibernate.test.FooBarTest.testQueryLockMode(FooBarTest.java:1110)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
2) testListRemove(org.hibernate.test.FooBarTest)net.sf.hibernate.JDBCException: could not delete: [org.hibernate.test.Fee#4028814bfa0a429800fa0a5616ce01d8]
at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:645)
at net.sf.hibernate.impl.ScheduledDeletion.execute(ScheduledDeletion.java:29)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java(Compiled Code))
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2264)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2185)
at org.hibernate.test.FooBarTest.testListRemove(FooBarTest.java:966)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
Caused by: java.sql.SQLException: [SQL0532] Delete prevented by referential constraint FK300C6DBDE28AFF in $MYTESTLIB.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:533)
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCPreparedStatement.executeUpdate(AS400JDBCPreparedStatement.java(Compiled Code))
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java(Compiled Code))
at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:626)
... 21 more
3) testUpdate(org.hibernate.test.FooBarTest)net.sf.hibernate.JDBCException: could not delete: [org.hibernate.test.Glarch#4028814bfa0a429800fa0a56c2dd01e3]
at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:645)
at net.sf.hibernate.impl.ScheduledDeletion.execute(ScheduledDeletion.java:29)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java(Compiled Code))
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2264)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2185)
at org.hibernate.test.FooBarTest.testUpdate(FooBarTest.java:929)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
Caused by: java.sql.SQLException: [SQL0532] Delete prevented by referential constraint FK300C6D18E87 in $MYTESTLIB.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:533)
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCPreparedStatement.executeUpdate(AS400JDBCPreparedStatement.java(Compiled Code))
at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:623)
... 21 more
4) testNonlazyCollection(org.hibernate.test.FooBarTest)net.sf.hibernate.NonUniqueResultException: query did not return a unique result: 6
at net.sf.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:514)
at net.sf.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:322)
at org.hibernate.test.FooBarTest.testNonlazyCollection(FooBarTest.java:651)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
5) testQuery(org.hibernate.test.FooBarTest)net.sf.hibernate.JDBCException: Could not execute query
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1476)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1452)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1444)
at org.hibernate.test.FooBarTest.testQuery(FooBarTest.java:224)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
Caused by: java.sql.SQLException: [SQL0204] REPEAT in *LIBL type *N not found.
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCPreparedStatement.<init>(AS400JDBCPreparedStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java:918)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:983)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1473)
... 19 more
6) testCriteriaCollection(org.hibernate.test.FooBarTest)net.sf.hibernate.NonUniqueResultException: query did not return a unique result: 6
at net.sf.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:514)
at net.sf.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:322)
at org.hibernate.test.FooBarTest.testCriteriaCollection(FooBarTest.java:179)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
7) testDeleteEmpty(org.hibernate.test.ParentChildTest)net.sf.hibernate.UnresolvableObjectException: No row with the given identifier exists: org.hibernate.test.MoreStuff@d1b, of class: org.hibernate.test.MoreStuff
at net.sf.hibernate.UnresolvableObjectException.throwIfNull(UnresolvableObjectException.java:37)
at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1879)
at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:68)
at net.sf.hibernate.type.EntityType.resolveIdentifier(EntityType.java:215)
at net.sf.hibernate.type.ComponentType.resolveIdentifier(ComponentType.java(Compiled Code))
at net.sf.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:145)
at net.sf.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:347)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java:918)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:983)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1473)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1452)
at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1594)
at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1580)
at org.hibernate.test.ParentChildTest.testDeleteEmpty(ParentChildTest.java:830)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
8) testCircularCascade(org.hibernate.test.ParentChildTest)net.sf.hibernate.UnresolvableObjectException: No row with the given identifier exists: org.hibernate.test.MoreStuff@d1b, of class: org.hibernate.test.MoreStuff
at net.sf.hibernate.UnresolvableObjectException.throwIfNull(UnresolvableObjectException.java:37)
at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1879)
at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:68)
at net.sf.hibernate.type.EntityType.resolveIdentifier(EntityType.java:215)
at net.sf.hibernate.type.ComponentType.resolveIdentifier(ComponentType.java(Compiled Code))
at net.sf.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:145)
at net.sf.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:347)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java:918)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:983)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1473)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1452)
at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1594)
at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1580)
at org.hibernate.test.ParentChildTest.testCircularCascade(ParentChildTest.java:822)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
9) testClassWhere(org.hibernate.test.ParentChildTest)net.sf.hibernate.NonUniqueResultException: query did not return a unique result: 7
at net.sf.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:514)
at net.sf.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:322)
at org.hibernate.test.ParentChildTest.testClassWhere(ParentChildTest.java:292)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
10) testComplexCriteria(org.hibernate.test.ParentChildTest)net.sf.hibernate.JDBCException: could not delete: [org.hibernate.test.Glarch#4028814bfa0a429800fa0ae79f650277]
at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:645)
at net.sf.hibernate.impl.ScheduledDeletion.execute(ScheduledDeletion.java:29)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java(Compiled Code))
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2264)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2185)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at org.hibernate.test.ParentChildTest.testComplexCriteria(ParentChildTest.java:266)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
Caused by: java.sql.SQLException: [SQL0532] Delete prevented by referential constraint FK300C6D18E87 in $MYTESTLIB.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:533)
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonExecute(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCPreparedStatement.executeUpdate(AS400JDBCPreparedStatement.java(Compiled Code))
at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:623)
... 22 more
11) testProxyReuse(org.hibernate.test.ParentChildTest)net.sf.hibernate.UnresolvableObjectException: No row with the given identifier exists: org.hibernate.test.MoreStuff@d1b, of class: org.hibernate.test.MoreStuff
at net.sf.hibernate.UnresolvableObjectException.throwIfNull(UnresolvableObjectException.java:37)
at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1879)
at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:68)
at net.sf.hibernate.type.EntityType.resolveIdentifier(EntityType.java:215)
at net.sf.hibernate.type.ComponentType.resolveIdentifier(ComponentType.java(Compiled Code))
at net.sf.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:145)
at net.sf.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:347)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java:918)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:983)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1473)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1452)
at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1594)
at net.sf.hibernate.impl.SessionImpl.delete(SessionImpl.java:1580)
at org.hibernate.test.ParentChildTest.testProxyReuse(ParentChildTest.java:136)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
12) testBlobClob(org.hibernate.test.SQLFunctionsTest)java.lang.UnsupportedOperationException: Blobs are not cacheable
at net.sf.hibernate.type.BlobType.disassemble(BlobType.java:60)
at net.sf.hibernate.impl.CacheEntry.disassemble(CacheEntry.java(Compiled Code))
at net.sf.hibernate.impl.CacheEntry.<init>(CacheEntry.java:27)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:32)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java(Compiled Code))
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2259)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2185)
at org.hibernate.test.SQLFunctionsTest.testBlobClob(SQLFunctionsTest.java:420)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
13) testSQLFunctions(org.hibernate.test.SQLFunctionsTest)net.sf.hibernate.JDBCException: Could not execute query
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1476)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1452)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1444)
at org.hibernate.test.SQLFunctionsTest.testSQLFunctions(SQLFunctionsTest.java:277)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
Caused by: java.sql.SQLException: [SQL0204] REPEAT in *LIBL type *N not found.
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCPreparedStatement.<init>(AS400JDBCPreparedStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java:918)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:983)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1473)
... 19 more
14) testFindBySQLStar(org.hibernate.test.SQLLoaderTest)net.sf.hibernate.JDBCException: SQLException occurred
at net.sf.hibernate.impl.SessionImpl.findBySQL(SessionImpl.java:3631)
at net.sf.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:50)
at org.hibernate.test.SQLLoaderTest.testFindBySQLStar(SQLLoaderTest.java:65)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
Caused by: java.sql.SQLException: [SQL0199] Keyword SIMPLE not expected. Valid tokens: FOR WITH FETCH ORDER UNION OPTIMIZE.
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCPreparedStatement.<init>(AS400JDBCPreparedStatement.java(Compiled Code))
at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java(Compiled Code))
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.list(Loader.java:918)
at net.sf.hibernate.loader.SQLLoader.list(SQLLoader.java:71)
at net.sf.hibernate.impl.SessionImpl.findBySQL(SessionImpl.java:3628)
... 18 more

There were 8 failures:
1) testAssociationId(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testAssociationId(FooBarTest.java:1851)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
2) testCollectionWhere(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testCollectionWhere(FooBarTest.java:1737)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
3) testNamedParams(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testNamedParams(FooBarTest.java:1459)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
4) testLimit(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testLimit(FooBarTest.java:1377)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
5) testSortables(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testSortables(FooBarTest.java:1022)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
6) testQueryCollectionOfValues(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testQueryCollectionOfValues(FooBarTest.java:756)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
7) testCascadeDeleteDetached(org.hibernate.test.FooBarTest)junit.framework.AssertionFailedError
at org.hibernate.test.FooBarTest.testCascadeDeleteDetached(FooBarTest.java:544)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)
8) testOdmgApi(org.hibernate.test.ODMGTest)junit.framework.AssertionFailedError
at org.hibernate.test.ODMGTest.testOdmgApi(ODMGTest.java:45)
at org.hibernate.test.TestCase.runTest(TestCase.java:79)
at org.hibernate.test.AllTests.main(AllTests.java:32)

FAILURES!!!
Tests run: 187, Failures: 8, Errors: 14


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 10:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
These errors are most likely not dependent on being inside a container.
It's probably more to do with diaelect or database problems.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.