-->
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.  [ 8 posts ] 
Author Message
 Post subject: error -> org.hibernate.cfg.CollectionSecondPass.collectio
PostPosted: Tue May 20, 2008 2:31 am 
Newbie

Joined: Mon May 19, 2008 4:17 am
Posts: 5
Hi guys!

I use the following target to generate models:


<target name="hbm2xml" description="Genera ficheros de mapeo: .hbmxml">
<hibernatetool destdir="temp" templatepath="src/template">
<jdbcconfiguration
configurationfile="temp/hibernate.cfg.xml"
packagename="com.iritec.generador.model"
revengfile="temp/hibernate.reveng.xml"
detectmanytomany="false"
detectoptimisticlock="false"
/>
<hbm2hbmxml destdir="temp"/>
</hibernatetool>

</target>

(the black line is the error line: c:\proyecto\generador\temp\model.xml:40)

and...

Hibernate version: Hibernate Tools 3.2.0.b9

Name and version of the database you are using: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0


But I get an error and I'm a bit lost with it... this is my stack trace:


INFO 190508 101340 BaseDispatchAction accion /generador.iniciar
INFO 190508 101340 BaseDispatchAction forward /seleccion-drivers.jsp
INFO 190508 101341 BaseDispatchAction
INFO 190508 101341 BaseDispatchAction accion /generador.aceptarSeleccionDrivers
INFO 190508 101342 GeneradorAction Ya se ha consultado la base de datos
INFO 190508 101342 BaseDispatchAction forward /seleccion-tablas.jsp
INFO 190508 101346 BaseDispatchAction
INFO 190508 101346 BaseDispatchAction accion /generador.almacenarDatos
INFO 190508 101346 GeneradorAction Tabla seleccionada 0: CAT_CATEGORIAS
INFO 190508 101346 TablasBL select * from CAT_CATEGORIAS
INFO 190508 101346 TablasBL catalogo: null
INFO 190508 101346 TablasBL Primary Key Column: ID
INFO 190508 101346 BaseDispatchAction forward /seleccion-parametros.jsp
INFO 190508 101350 BaseDispatchAction
INFO 190508 101350 BaseDispatchAction accion /generador.configuraPlantillas
INFO 190508 101350 JDBCMetaDataConfiguration Ignoring sessionfactory mapping
INFO 190508 101350 OverrideRepository Override file: c:\proyecto\generador\temp\hibernate.reveng.xml
INFO 190508 101351 ManagerConnectionProvider Using Hibernate built-in connection pool (not for production use!)
INFO 190508 101351 ManagerConnectionProvider Hibernate connection pool size: 20
INFO 190508 101351 ManagerConnectionProvider autocommit mode: false
INFO 190508 101351 ManagerConnectionProvider using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@des09:1521:orcl
INFO 190508 101351 ManagerConnectionProvider connection properties: {user=xxx, password=xxx}
INFO 190508 101351 SettingsFactory RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
INFO 190508 101351 SettingsFactory JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0
INFO 190508 101351 Dialect Using dialect: org.hibernate.dialect.OracleDialect
INFO 190508 101351 TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
INFO 190508 101351 ctionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO 190508 101351 SettingsFactory Automatic flush during beforeCompletion(): disabled
INFO 190508 101351 SettingsFactory Automatic session close at end of transaction: disabled
INFO 190508 101351 SettingsFactory JDBC batch size: 15
INFO 190508 101351 SettingsFactory JDBC batch updates for versioned data: disabled
INFO 190508 101351 SettingsFactory Scrollable result sets: enabled
INFO 190508 101351 SettingsFactory JDBC3 getGeneratedKeys(): enabled
INFO 190508 101351 SettingsFactory Connection release mode: auto
INFO 190508 101351 SettingsFactory Default batch fetch size: 1
INFO 190508 101351 SettingsFactory Generate SQL with comments: disabled
INFO 190508 101351 SettingsFactory Order SQL updates by primary key: disabled
INFO 190508 101351 SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO 190508 101351 ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
INFO 190508 101351 SettingsFactory Query language substitutions: {}
INFO 190508 101351 SettingsFactory Second-level cache: enabled
INFO 190508 101351 SettingsFactory Query cache: disabled
INFO 190508 101351 SettingsFactory Cache provider: org.hibernate.cache.EhCacheProvider
INFO 190508 101351 SettingsFactory Optimize cache for minimal puts: disabled
INFO 190508 101351 SettingsFactory Structured second-level cache entries: disabled
INFO 190508 101351 SettingsFactory Statistics: disabled
INFO 190508 101351 SettingsFactory Deleted entity synthetic identifier rollback: disabled
INFO 190508 101351 SettingsFactory Default entity-mode: pojo
INFO 190508 101352 ManagerConnectionProvider cleaning up connection pool: jdbc:oracle:thin:@des09:1521:orcl
ERROR 190508 101352 BaseDispatchAction
c:\proyecto\generador\temp\model.xml:40: java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at com.iritec.generador.bl.HibernateBL.generar(HibernateBL.java:402)
at com.iritec.generador.bl.HibernateBL.configuracionHibernate(HibernateBL.java:62)
at com.iritec.generador.bl.HibernateBL$$FastClassByCGLIB$$d0b20932.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.iritec.generador.bl.HibernateBL$$EnhancerByCGLIB$$7e543470.configuracionHibernate(<generated>)
at com.iritec.generador.controller.action.GeneradorAction.configuraPlantillas(GeneradorAction.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.iritec.generador.controller.action.BaseDispatchAction.execute(BaseDispatchAction.java:45)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
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(Unknown Source)
Caused by: java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass.secondPass(JDBCBinder.java:923)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1012)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:997)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:299)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:315)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 44 more
--- Nested Exception ---
java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass.secondPass(JDBCBinder.java:923)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1012)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:997)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:299)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:315)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at com.iritec.generador.bl.HibernateBL.generar(HibernateBL.java:402)
at com.iritec.generador.bl.HibernateBL.configuracionHibernate(HibernateBL.java:62)
at com.iritec.generador.bl.HibernateBL$$FastClassByCGLIB$$d0b20932.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.iritec.generador.bl.HibernateBL$$EnhancerByCGLIB$$7e543470.configuracionHibernate(<generated>)
at com.iritec.generador.controller.action.GeneradorAction.configuraPlantillas(GeneradorAction.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.iritec.generador.controller.action.BaseDispatchAction.execute(BaseDispatchAction.java:45)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
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(Unknown Source)
INFO 190508 101352 BaseDispatchAction forward /error.jsp



Could you help me? All suggestions are welcome!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 9:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you must be using a really old version of Hibernate 3.0 or 3.1.

If you really have to use such an old hibernate core, then you can
use a recent hibernate 3.2.x release with tools and just at runtime use the old version. The mapping files are compatible.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 23, 2008 3:00 am 
Newbie

Joined: Mon May 19, 2008 4:17 am
Posts: 5
Yes, that is true, I had Hibernate 3.1
Now I have changed the jars at runtime and at tools to Hibernate 3.2.6 but the code error is still there.

This is my full stack:

INFO 230508 083809 [/generador] Initializing Spring root WebApplicationContext
INFO 230508 083809 ContextLoader Root WebApplicationContext: initialization started
INFO 230508 083809 XmlWebApplicationContext Refreshing org.springframework.web.context.support.XmlWebApplicationContext@943dc4: display name [Root WebApplicationContext]; startup date [Fri May 23 08:38:09 CEST 2008]; root of context hierarchy
INFO 230508 083809 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/datasource-jndi.xml]
INFO 230508 083809 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/dao.xml]
[/b]INFO 230508 083809 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/bl.xml]
INFO 230508 083809 XmlWebApplicationContext Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@943dc4]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc3c84
INFO 230508 083809 efaultListableBeanFactory Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc3c84: defining beans [dataSource,sessionFactory,transactionManager,driversBL,driversBLTarget,tablasBL,tablasBLTarget,hibernateBL,hibernateBLTarget]; root of factory hierarchy
INFO 230508 083809 Environment Hibernate 3.2.6
INFO 230508 083809 Environment hibernate.properties not found
INFO 230508 083809 Environment Bytecode provider name : cglib
INFO 230508 083809 Environment using JDK 1.4 java.sql.Timestamp handling
INFO 230508 083809 LocalSessionFactoryBean Building new Hibernate SessionFactory
INFO 230508 083809 ConnectionProviderFactory Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
INFO 230508 083810 SettingsFactory RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

INFO 230508 083810 SettingsFactory JDBC driver: Oracle JDBC driver, version: 8.1.7.0.0
INFO 230508 083810 Dialect Using dialect: org.hibernate.dialect.OracleDialect
WARN 230508 083810 Oracle9Dialect The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
WARN 230508 083810 OracleDialect The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
INFO 230508 083810 TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
INFO 230508 083810 ctionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO 230508 083810 SettingsFactory Automatic flush during beforeCompletion(): disabled
INFO 230508 083810 SettingsFactory Automatic session close at end of transaction: disabled
INFO 230508 083810 SettingsFactory JDBC batch size: 15
INFO 230508 083810 SettingsFactory JDBC batch updates for versioned data: disabled
INFO 230508 083810 SettingsFactory Scrollable result sets: enabled
INFO 230508 083810 SettingsFactory JDBC3 getGeneratedKeys(): disabled
INFO 230508 083810 SettingsFactory Connection release mode: on_close
INFO 230508 083810 SettingsFactory Default batch fetch size: 1
INFO 230508 083810 SettingsFactory Generate SQL with comments: disabled
INFO 230508 083810 SettingsFactory Order SQL updates by primary key: disabled
INFO 230508 083810 SettingsFactory Order SQL inserts for batching: disabled
INFO 230508 083810 SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO 230508 083810 ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
INFO 230508 083810 SettingsFactory Query language substitutions: {}
INFO 230508 083810 SettingsFactory JPA-QL strict compliance: disabled
INFO 230508 083810 SettingsFactory Second-level cache: enabled
INFO 230508 083810 SettingsFactory Query cache: disabled
INFO 230508 083810 SettingsFactory Cache provider: org.hibernate.cache.NoCacheProvider
INFO 230508 083810 SettingsFactory Optimize cache for minimal puts: disabled
INFO 230508 083810 SettingsFactory Structured second-level cache entries: disabled
INFO 230508 083810 SettingsFactory Statistics: disabled
INFO 230508 083810 SettingsFactory Deleted entity synthetic identifier rollback: disabled
INFO 230508 083810 SettingsFactory Default entity-mode: pojo
INFO 230508 083810 SettingsFactory Named query checking : enabled
INFO 230508 083811 SessionFactoryImpl building session factory
INFO 230508 083811 ssionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
INFO 230508 083811 bernateTransactionManager Using DataSource [org.apache.tomcat.dbcp.dbcp.BasicDataSource@21447f] of Hibernate SessionFactory for HibernateTransactionManager
INFO 230508 083811 ContextLoader Root WebApplicationContext: initialization completed in 2913 ms
INFO 230508 083812 ContextLoaderPlugIn ContextLoaderPlugIn for Struts ActionServlet 'action, module '': initialization started
INFO 230508 083812 [/generador] Initializing WebApplicationContext for Struts ActionServlet 'action', module ''
INFO 230508 083812 XmlWebApplicationContext Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1edd9b3: display name [WebApplicationContext for namespace 'action-servlet']; startup date [Fri May 23 08:38:12 CEST 2008]; parent: org.springframework.web.context.support.XmlWebApplicationContext@943dc4
INFO 230508 083812 XmlBeanDefinitionReader Loading XML bean definitions from ServletContext resource [/WEB-INF/action-servlet.xml]
INFO 230508 083812 XmlWebApplicationContext Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1edd9b3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@a9a32c
INFO 230508 083812 efaultListableBeanFactory Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a9a32c: defining beans [/generador]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc3c84
INFO 230508 083812 ContextLoaderPlugIn Using context class 'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action'
INFO 230508 083812 ContextLoaderPlugIn ContextLoaderPlugIn for Struts ActionServlet 'action', module '': initialization completed in 31 ms
INFO 230508 083812 TilesPlugin Tiles definition factory loaded for module ''.
INFO 230508 083830 Configuracion Carga del fichero de propiedades file:/C:/java/apache-tomcat%205.5/webapps/generador/WEB-INF/classes/generador.properties
INFO 230508 083831 TilesRequestProcessor Tiles definition factory found for request processor ''.
INFO 230508 083831 BaseDispatchAction
INFO 230508 083949 BaseDispatchAction accion /generador.iniciar
INFO 230508 083949 BaseDispatchAction forward /seleccion-drivers.jsp
INFO 230508 083951 BaseDispatchAction
INFO 230508 083951 BaseDispatchAction accion /generador.aceptarSeleccionDrivers
INFO 230508 083951 DriversBL oracle.jdbc.driver.OracleDriver
INFO 230508 083951 DriversBL Conexion con la base de datos: extraccion de las tablas
INFO 230508 083951 GeneradorAction Ya se ha consultado la base de datos
INFO 230508 083951 BaseDispatchAction forward /seleccion-tablas.jsp
INFO 230508 083955 BaseDispatchAction
INFO 230508 083955 BaseDispatchAction accion /generador.almacenarDatos
INFO 230508 083955 GeneradorAction Tabla seleccionada 0: CAT_CATEGORIAS
INFO 230508 083955 TablasBL select * from CAT_CATEGORIAS
INFO 230508 083955 BaseDispatchAction forward /seleccion-parametros.jsp
INFO 230508 083959 BaseDispatchAction
INFO 230508 083959 BaseDispatchAction accion /generador.configuraPlantillas
INFO 230508 083959 JDBCMetaDataConfiguration Ignoring sessionfactory mapping
INFO 230508 083959 OverrideRepository Override file: c:\proyecto\generador\temp\hibernate.reveng.xml
INFO 230508 084000 ManagerConnectionProvider Using Hibernate built-in connection pool (not for production use!)
INFO 230508 084000 ManagerConnectionProvider Hibernate connection pool size: 20
INFO 230508 084000 ManagerConnectionProvider autocommit mode: false
INFO 230508 084000 ManagerConnectionProvider using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@des09:1521:orcl
INFO 230508 084000 ManagerConnectionProvider connection properties: {user=****, password=***}
INFO 230508 084000 SettingsFactory RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
INFO 230508 084000 SettingsFactory JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0
INFO 230508 084000 Dialect Using dialect: org.hibernate.dialect.OracleDialect
WARN 230508 084000 Oracle9Dialect The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
WARN 230508 084000 OracleDialect The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
INFO 230508 084000 TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
INFO 230508 084000 ctionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO 230508 084000 SettingsFactory Automatic flush during beforeCompletion(): disabled
INFO 230508 084000 SettingsFactory Automatic session close at end of transaction: disabled
INFO 230508 084000 SettingsFactory JDBC batch size: 15
INFO 230508 084000 SettingsFactory JDBC batch updates for versioned data: disabled
INFO 230508 084000 SettingsFactory Scrollable result sets: enabled
INFO 230508 084000 SettingsFactory JDBC3 getGeneratedKeys(): disabled
INFO 230508 084000 SettingsFactory Connection release mode: auto
INFO 230508 084000 SettingsFactory Default batch fetch size: 1
INFO 230508 084000 SettingsFactory Generate SQL with comments: disabled
INFO 230508 084000 SettingsFactory Order SQL updates by primary key: disabled
INFO 230508 084000 SettingsFactory Order SQL inserts for batching: disabled
INFO 230508 084000 SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO 230508 084000 ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
INFO 230508 084000 SettingsFactory Query language substitutions: {}
INFO 230508 084000 SettingsFactory JPA-QL strict compliance: disabled
INFO 230508 084000 SettingsFactory Second-level cache: enabled
INFO 230508 084000 SettingsFactory Query cache: disabled
INFO 230508 084000 SettingsFactory Cache provider: org.hibernate.cache.NoCacheProvider
INFO 230508 084000 SettingsFactory Optimize cache for minimal puts: disabled
INFO 230508 084000 SettingsFactory Structured second-level cache entries: disabled
INFO 230508 084000 SettingsFactory Statistics: disabled
INFO 230508 084000 SettingsFactory Deleted entity synthetic identifier rollback: disabled
INFO 230508 084000 SettingsFactory Default entity-mode: pojo
INFO 230508 084000 SettingsFactory Named query checking : enabled
INFO 230508 084006 ManagerConnectionProvider cleaning up connection pool: jdbc:oracle:thin:@des09:1521:orcl
ERROR 230508 084006 BaseDispatchAction
c:\proyecto\generador\temp\model.xml:40: java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at com.iritec.generador.bl.HibernateBL.generar(HibernateBL.java:415)
at com.iritec.generador.bl.HibernateBL.configuracionHibernate(HibernateBL.java:62)
at com.iritec.generador.bl.HibernateBL$$FastClassByCGLIB$$d0b20932.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.iritec.generador.bl.HibernateBL$$EnhancerByCGLIB$$738b0b33.configuracionHibernate(<generated>)
at com.iritec.generador.controller.action.GeneradorAction.configuraPlantillas(GeneradorAction.java:359)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.iritec.generador.controller.action.BaseDispatchAction.execute(BaseDispatchAction.java:45)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
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(Unknown Source)
Caused by: java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass.secondPass(JDBCBinder.java:923)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1136)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1121)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:299)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:315)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 44 more
--- Nested Exception ---
java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.CollectionSecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass
at org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass.secondPass(JDBCBinder.java:923)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1136)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1121)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:299)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:315)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at com.iritec.generador.bl.HibernateBL.generar(HibernateBL.java:415)
at com.iritec.generador.bl.HibernateBL.configuracionHibernate(HibernateBL.java:62)
at com.iritec.generador.bl.HibernateBL$$FastClassByCGLIB$$d0b20932.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at com.iritec.generador.bl.HibernateBL$$EnhancerByCGLIB$$738b0b33.configuracionHibernate(<generated>)
at com.iritec.generador.controller.action.GeneradorAction.configuraPlantillas(GeneradorAction.java:359)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.iritec.generador.controller.action.BaseDispatchAction.execute(BaseDispatchAction.java:45)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
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(Unknown Source)
INFO 230508 084006 BaseDispatchAction forward /error.jsp
INFO 230508 084006 ManagerConnectionProvider cleaning up connection pool: jdbc:oracle:thin:@des09:1521:orcl

Do you have more suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 26, 2008 1:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you are 1000% sure you are using hibernate 3.2.5+ with hibernate tools and you are still gettings this error then please report it in hibernate tools jira.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 28, 2008 3:53 am 
Newbie

Joined: Mon May 19, 2008 4:17 am
Posts: 5
Well, I have tried one more thing because I think that it is caused by a fault of Hibernate Tools.
I downloaded the last version of Hibernate Tools 3.2.1GA that has inside Hibernate 3.2.5 (I use at runtime this one) and I tried to generate code with those versions but the error is still there... so, I don't know what else can I do to solve this...


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 28, 2008 5:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
does it work if you just use the hibernate that is within hibernatetools eclipse plugin directory ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 28, 2008 7:28 am 
Newbie

Joined: Mon May 19, 2008 4:17 am
Posts: 5
No, it doesn't. The code error is still there.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 29, 2008 1:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
then you must be having some extra hibernate jar on the classpath since hibernate tools in eclipse is not having this error.

_________________
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.  [ 8 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.