[ http://jira.jboss.com/jira/browse/HIBERNATE-1?page=history ] Steve Ebersole resolved HIBERNATE-1: ------------------------------------
Resolution: Done Gavin said he found a bug in 2.1.7 that would cause this. It is fixed in CVS. we will need to apply the 2.1.7d release, not 2.1.7c. > HibernateIntgUnitTestCase fails with hibernate-2.1.7c > ----------------------------------------------------- > > Key: HIBERNATE-1 > URL: http://jira.jboss.com/jira/browse/HIBERNATE-1 > Project: Hibernate > Type: Bug > Environment: [EMAIL PROTECTED] testsuite]$ java -version > java version "1.4.2_05" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) > Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) > Note that this requires an upto date snapshot of the 4.0 branch to pickup > treecache and the hibernate2.jar. > Reporter: Scott M Stark > Assignee: Steve Ebersole > Priority: Blocker > > > The latest jboss Branch_4_0 codebase has a failure in the > org.jboss.test.hibernate.test.HibernateIntgUnitTestCase when updating the > jboss-hibernate.deployer/hibernate2.jar to the 2.1.7c binary from > sourceforge. The following exception is seen on the console: > 10:19:47,265 INFO [EARDeployer] Started J2EE application: > file:/C:/cvs/JBoss4.0 > /jboss-4.0/testsuite/output/lib/hib-test.ear > 10:19:47,609 WARN [JDBCExceptionReporter] SQL Error: -22, SQLState: S0002 > 10:19:47,609 ERROR [JDBCExceptionReporter] Table not found: user in statement > [select max(id) from "user"] > 10:19:47,625 ERROR [LogInterceptor] EJBException in method: public abstract > org. > jboss.test.hibernate.model.User > org.jboss.test.hibernate.ejb.interfaces.ProfileService.storeUser(org.jboss.test.hibernate.model.User) > throws java.rmi.RemoteException, causedBy: > net.sf.hibernate.exception.SQLGrammarException: Could not save object > at > net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:69) > at > net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:30) > at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4110) > at > net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:792) > at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747) > at > net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1397) > at > org.jboss.test.hibernate.ProfileService.storeUser(ProfileService.java:54) > at > org.jboss.test.hibernate.ejb.ProfileBean.storeUser(ProfileBean.java:44) > 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 org.jboss.invocation.Invocation.performCall(Invocation.java:345) > at > org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) > at > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113) > at > org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51) > at > org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) > at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313) > at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) > at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:122) > at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) > at > org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) > at > org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) > at org.jboss.ejb.Container.invoke(Container.java:856) > 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 > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) > at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) > at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) > at > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) > at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) > at > org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805) > at > org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406) > 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) > at sun.rmi.transport.Transport$1.run(Transport.java:148) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:144) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) > at java.lang.Thread.run(Thread.java:534) > Caused by: java.sql.SQLException: Table not found: user in statement [select > max(id) from "user"] > at org.hsqldb.jdbc.jdbcUtil.throwError(Unknown Source) > at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source) > at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source) > at > org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:355) > at > org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:205) > at > net.sf.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java:65) > at > net.sf.hibernate.id.IncrementGenerator.generate(IncrementGenerator.java:42) > at > net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:774) > ... 44 more > 10:19:47,875 INFO [EJBDeployer] Undeploying: > file:/C:/cvs/JBoss4.0/jboss-4.0/bu > ild/output/jboss-4.0.1RC2/server/all/tmp/deploy/tmp14728hib-test.ear-contents/hib-test-ejb.jar > 10:19:47,906 INFO [SessionFactoryImpl] closing > 10:19:47,921 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI > nam > e: java:/hibernate/SessionFactory > 10:19:47,921 INFO [NamingHelper] JNDI InitialContext properties:{} > 10:19:47,921 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI > name: java:/hibernate/SessionFactory > 10:19:47,921 INFO [SchemaExport] Running hbm2ddl schema export > 10:19:47,921 INFO [SchemaExport] exporting generated schema to database > 10:19:47,921 INFO [NamingHelper] JNDI InitialContext properties:{} > 10:19:47,921 INFO [DatasourceConnectionProvider] Using datasource: > java:/DefaultDS > 10:19:47,921 INFO [SchemaExport] schema export complete > 10:19:47,937 WARN [ServiceController] Ignoring request to stop nonexistent > service: null > 10:19:47,968 INFO [EjbModule] Undeployed ProfileService > 10:19:47,984 WARN [ServiceController] Ignoring request to destroy > nonexistent service: null > 10:19:47,984 WARN [ServiceController] Ignoring request to remove nonexistent > service: null > 10:19:48,000 INFO [EARDeployer] Undeploying J2EE application, destroy step: > file:/C:/cvs/JBoss4.0/jboss-4.0/testsuite/output/lib/hib-test.ear > 10:19:48,000 WARN [DeploymentInfo] Could not delete > file:/C:/cvs/JBoss4.0/jboss > -4.0/build/output/jboss-4.0.1RC2/server/all/tmp/deploy/tmp14728hib-test.ear > restart will delete it > Restoring the hibernate2.jar to the 2.1.6 version allows the test to run. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development