I using Hibernate since one month. Everything worked perfekt. Today I had to reengiener the whole database and so I had to create the Mapping files new (with Exadel Studio)
Now when I start my JSF-Application, I get the following error stack:
Code:
2005-10-07 14:53:05,746 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Static SQL for entity: com.magnasteyr.editool.hibernate.EtWerk
2005-10-07 14:53:05,746 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Version select: /* get version com.magnasteyr.editool.hibernate.EtWerk */ select WERK_ID from EDITOOLS.ET_WERK where WERK_ID =?
2005-10-07 14:53:05,746 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Snapshot select: /* get current state com.magnasteyr.editool.hibernate.EtWerk */ select etwerk_.WERK_ID, etwerk_.WERK_NR as WERK2_32_, etwerk_.WERK_NAME as WERK3_32_ from EDITOOLS.ET_WERK etwerk_ where etwerk_.WERK_ID=?
2005-10-07 14:53:05,824 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Insert 0: /* insert com.magnasteyr.editool.hibernate.EtWerk */ insert into EDITOOLS.ET_WERK (WERK_NR, WERK_NAME, WERK_ID) values (?, ?, ?)
2005-10-07 14:53:05,824 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Update 0: /* update com.magnasteyr.editool.hibernate.EtWerk */ update EDITOOLS.ET_WERK set WERK_NR=?, WERK_NAME=? where WERK_ID=?
2005-10-07 14:53:05,824 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Delete 0: /* delete com.magnasteyr.editool.hibernate.EtWerk */ delete from EDITOOLS.ET_WERK where WERK_ID=?
2005-10-07 14:53:05,871 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Static SQL for entity: com.magnasteyr.editool.hibernate.EtEdiSw
2005-10-07 14:53:05,871 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Version select: /* get version com.magnasteyr.editool.hibernate.EtEdiSw */ select EDI_SW_ID from EDITOOLS.ET_EDI_SW where EDI_SW_ID =?
2005-10-07 14:53:05,871 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Snapshot select: /* get current state com.magnasteyr.editool.hibernate.EtEdiSw */ select etedisw_.EDI_SW_ID, etedisw_.EDI_SW as EDI2_15_ from EDITOOLS.ET_EDI_SW etedisw_ where etedisw_.EDI_SW_ID=?
2005-10-07 14:53:05,871 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Insert 0: /* insert com.magnasteyr.editool.hibernate.EtEdiSw */ insert into EDITOOLS.ET_EDI_SW (EDI_SW, EDI_SW_ID) values (?, ?)
2005-10-07 14:53:05,871 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Update 0: /* update com.magnasteyr.editool.hibernate.EtEdiSw */ update EDITOOLS.ET_EDI_SW set EDI_SW=? where EDI_SW_ID=?
2005-10-07 14:53:05,871 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Delete 0: /* delete com.magnasteyr.editool.hibernate.EtEdiSw */ delete from EDITOOLS.ET_EDI_SW where EDI_SW_ID=?
2005-10-07 14:53:05,918 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Static SQL for entity: com.magnasteyr.editool.hibernate.EtSamstatus
2005-10-07 14:53:05,918 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Version select: /* get version com.magnasteyr.editool.hibernate.EtSamstatus */ select SAM_S_ID from EDITOOLS.ET_SAMSTATUS where SAM_S_ID =?
2005-10-07 14:53:05,918 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Snapshot select: /* get current state com.magnasteyr.editool.hibernate.EtSamstatus */ select etsamstatu_.SAM_S_ID, etsamstatu_.SAM_STATUS as SAM2_29_ from EDITOOLS.ET_SAMSTATUS etsamstatu_ where etsamstatu_.SAM_S_ID=?
2005-10-07 14:53:05,918 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Insert 0: /* insert com.magnasteyr.editool.hibernate.EtSamstatus */ insert into EDITOOLS.ET_SAMSTATUS (SAM_STATUS, SAM_S_ID) values (?, ?)
2005-10-07 14:53:05,918 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Update 0: /* update com.magnasteyr.editool.hibernate.EtSamstatus */ update EDITOOLS.ET_SAMSTATUS set SAM_STATUS=? where SAM_S_ID=?
2005-10-07 14:53:05,918 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Delete 0: /* delete com.magnasteyr.editool.hibernate.EtSamstatus */ delete from EDITOOLS.ET_SAMSTATUS where SAM_S_ID=?
2005-10-07 14:53:05,981 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Static SQL for entity: com.magnasteyr.editool.hibernate.EtDatasheets
2005-10-07 14:53:05,981 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Version select: /* get version com.magnasteyr.editool.hibernate.EtDatasheets */ select DASH_ID from EDITOOLS.ET_DATASHEETS where DASH_ID =?
2005-10-07 14:53:05,981 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Snapshot select: /* get current state com.magnasteyr.editool.hibernate.EtDatasheets */ select etdatashee_.DASH_ID, etdatashee_.USER_ACRONYM as USER2_8_, etdatashee_.INS_DATE as INS3_8_, etdatashee_.LINK as LINK8_, etdatashee_.FILENAME as FILENAME8_, etdatashee_.DESCR as DESCR8_, etdatashee_.PA_ID as PA7_8_ from EDITOOLS.ET_DATASHEETS etdatashee_ where etdatashee_.DASH_ID=?
2005-10-07 14:53:05,981 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Insert 0: /* insert com.magnasteyr.editool.hibernate.EtDatasheets */ insert into EDITOOLS.ET_DATASHEETS (USER_ACRONYM, INS_DATE, LINK, FILENAME, DESCR, PA_ID, DASH_ID) values (?, ?, ?, ?, ?, ?, ?)
2005-10-07 14:53:05,981 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Update 0: /* update com.magnasteyr.editool.hibernate.EtDatasheets */ update EDITOOLS.ET_DATASHEETS set USER_ACRONYM=?, INS_DATE=?, LINK=?, FILENAME=?, DESCR=?, PA_ID=? where DASH_ID=?
2005-10-07 14:53:05,981 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Delete 0: /* delete com.magnasteyr.editool.hibernate.EtDatasheets */ delete from EDITOOLS.ET_DATASHEETS where DASH_ID=?
2005-10-07 14:53:06,043 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Static SQL for entity: com.magnasteyr.editool.hibernate.EtPartnerNotes
2005-10-07 14:53:06,043 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Version select: /* get version com.magnasteyr.editool.hibernate.EtPartnerNotes */ select PAN_ID from EDITOOLS.ET_PARTNER_NOTES where PAN_ID =?
2005-10-07 14:53:06,043 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Snapshot select: /* get current state com.magnasteyr.editool.hibernate.EtPartnerNotes */ select etpartnern_.PAN_ID, etpartnern_.USER_ACRONYM as USER2_24_, etpartnern_.INS_DATE as INS3_24_, etpartnern_.TEXT as TEXT24_, etpartnern_.PA_ID as PA5_24_ from EDITOOLS.ET_PARTNER_NOTES etpartnern_ where etpartnern_.PAN_ID=?
2005-10-07 14:53:06,043 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Insert 0: /* insert com.magnasteyr.editool.hibernate.EtPartnerNotes */ insert into EDITOOLS.ET_PARTNER_NOTES (USER_ACRONYM, INS_DATE, TEXT, PA_ID, PAN_ID) values (?, ?, ?, ?, ?)
2005-10-07 14:53:06,043 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Update 0: /* update com.magnasteyr.editool.hibernate.EtPartnerNotes */ update EDITOOLS.ET_PARTNER_NOTES set USER_ACRONYM=?, INS_DATE=?, TEXT=?, PA_ID=? where PAN_ID=?
2005-10-07 14:53:06,043 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Delete 0: /* delete com.magnasteyr.editool.hibernate.EtPartnerNotes */ delete from EDITOOLS.ET_PARTNER_NOTES where PAN_ID=?
2005-10-07 14:53:06,074 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Static SQL for entity: com.magnasteyr.editool.hibernate.EtDtFilename
2005-10-07 14:53:06,074 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Version select: /* get version com.magnasteyr.editool.hibernate.EtDtFilename */ select DT_FILE_ID from EDITOOLS.ET_DT_FILENAME where DT_FILE_ID =?
2005-10-07 14:53:06,074 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Snapshot select: /* get current state com.magnasteyr.editool.hibernate.EtDtFilename */ select etdtfilena_.DT_FILE_ID, etdtfilena_.DT_FILENAME as DT2_12_ from EDITOOLS.ET_DT_FILENAME etdtfilena_ where etdtfilena_.DT_FILE_ID=?
2005-10-07 14:53:06,074 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Insert 0: /* insert com.magnasteyr.editool.hibernate.EtDtFilename */ insert into EDITOOLS.ET_DT_FILENAME (DT_FILENAME, DT_FILE_ID) values (?, ?)
2005-10-07 14:53:06,074 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Update 0: /* update com.magnasteyr.editool.hibernate.EtDtFilename */ update EDITOOLS.ET_DT_FILENAME set DT_FILENAME=? where DT_FILE_ID=?
2005-10-07 14:53:06,074 DEBUG [http-8080-Processor25] org.hibernate.persister.entity.AbstractEntityPersister: Delete 0: /* delete com.magnasteyr.editool.hibernate.EtDtFilename */ delete from EDITOOLS.ET_DT_FILENAME where DT_FILE_ID=?
2005-10-07 14:53:06,106 ERROR [http-8080-Processor25] com.magnasteyr.editool.hibernate.util.HibernateUtil: Initial SessionFactory creation failed.
java.lang.ClassCastException
at org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:82)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:155)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:410)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:219)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1127)
at com.magnasteyr.editool.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:16)
at com.magnasteyr.editool.hibernate.helpers.QueryHelper.listbeziehungsart(QueryHelper.java:367)
at com.magnasteyr.editool.hibernate.helpers.QueryHelper.fillcomboboxes(QueryHelper.java:175)
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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
at javax.faces.component.UICommand.broadcast(UICommand.java:86)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:301)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
2005-10-07 14:53:06,137 ERROR [http-8080-Processor25] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/editool1].[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.el.EvaluationException: Exception while invoking expression #{queryHelper.fillcomboboxes}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at javax.faces.component.UICommand.broadcast(UICommand.java:86)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:301)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ExceptionInInitializerError
at com.magnasteyr.editool.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:19)
at com.magnasteyr.editool.hibernate.helpers.QueryHelper.listbeziehungsart(QueryHelper.java:367)
at com.magnasteyr.editool.hibernate.helpers.QueryHelper.fillcomboboxes(QueryHelper.java:175)
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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
... 23 more
Caused by: java.lang.ClassCastException
at org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:82)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:155)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:410)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:219)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1127)
at com.magnasteyr.editool.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:16)
... 30 more
What could be the problem. I am using Hibernate 3.1 beta3 with an Oracle 9i DB
THX!