Hibernate version: 2.1.6
Mapping documents: ?
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
2004-09-24 18:08:42,078 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/jboss/server/default/deploy/webmod.war
2004-09-24 18:11:48,921 INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.1.4
2004-09-24 18:11:48,937 INFO [net.sf.hibernate.cfg.Environment] loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=root, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://localhost/sg1, hibernate.connection.driver_class=com.mysql.jdbc.Driver}
2004-09-24 18:11:48,937 INFO [net.sf.hibernate.cfg.Environment] using CGLIB reflection optimizer
2004-09-24 18:11:48,953 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: salesgene/LeftNav/SellingActivity.hbm.xml
2004-09-24 18:11:48,968 DEBUG [net.sf.hibernate.util.DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath under net/sf/hibernate/
2004-09-24 18:11:48,968 DEBUG [net.sf.hibernate.util.DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath
2004-09-24 18:11:49,093 INFO [net.sf.hibernate.cfg.Binder] Mapping class: salesgene.LeftNav.SellingActivity -> selling_activity
2004-09-24 18:11:49,203 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: sellingActivityId -> SELLING_ACTIVITY_ID, type: integer
2004-09-24 18:11:49,234 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: sellingActivityName -> SELLING_ACTIVITY_NAME, type: string
2004-09-24 18:11:49,234 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: sellingActivityDescription -> SELLING_ACTIVITY_DESCRIPTION, type: string
2004-09-24 18:11:49,234 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: archive -> ARCHIVE, type: object
2004-09-24 18:11:49,234 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: sequence -> SEQUENCE, type: integer
2004-09-24 18:11:49,265 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: saoTypes, type: java.util.Set
2004-09-24 18:11:49,312 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: module -> MODULE_ID, type: salesgene.LeftNav.Module
2004-09-24 18:11:49,312 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-many association mappings
2004-09-24 18:11:49,312 DEBUG [net.sf.hibernate.cfg.Binder] Second pass for collection: salesgene.LeftNav.SellingActivity.saoTypes
2004-09-24 18:11:49,312 INFO [STDOUT] net.sf.hibernate.MappingException: Association references unmapped class: salesgene.LeftNav.SaoType
at net.sf.hibernate.cfg.Binder.bindCollectionSecondPass(Binder.java:1162)
at net.sf.hibernate.cfg.Binder$CollectionSecondPass.secondPass(Binder.java:1366)
at net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1342)
at net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:618)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:761)
at salesgene.LeftNav.SellingActivity_DAO.<init>(SellingActivity_DAO.java:21)
at salesgene.LeftNav.SellingActivity_Session_Bean.getSellingActivitiesAgainstModule(SellingActivity_Session_Bean.java:66)
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.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:723)
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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy57.getSellingActivitiesAgainstModule(Unknown Source)
at salesgene.LeftNav.SellingActivity_Controller.getAllActivityNames(SellingActivity_Controller.java:151)
at salesgene.LeftNav.SellingActivity_Controller.doGet(SellingActivity_Controller.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
Name and version of the database you are using:
mysql 4.0
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: