Hello,
I'm currently developing an Eclipse RCP application that uses Hibernate for persistence.
In short:
Hibernate has a problem with creating the proxys for my model. (See detailed Hibernate Log futher down)
Code:
2006-09-29 12:36:37,800 ERROR [main] CGLIBLazyInitializer line 130: CGLIB Enhancement failed: com.xx.zoorender.model.TaskElement
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
Caused by: net.sf.cglib.core.CodeGenerationException:
java.lang.reflect.InvocationTargetException-->null
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
The strange thing is, that most of the application works regardless these errors. That are just some queries that don't work, e.g. initialization of a mapped collection. The
example I post here is the mapping of a table
Quote:
tasktype
and a table
Quote:
tasktype_parameter
. You can find the mapping files (hbm.xml) and the source code of the two classes of the model.
My plugin structure is that I have seperate plugin projects for my main application, for my model, for the mysql driver and for the hibernate libraries. I use buddy classloading so that every plugin can see the ones it needs. Unfortunately this doesn't work completely.
If I create just a regular Java class with a main method in a new project that references the other plugin projects in my workspace, I get no error messages and everything works fine. I can execute every query.
I hope that somebody can give me a hint where I could find the bug in my code., I'm turning in circles and don't know where I could look to find it. I tried the latest version of Hibernate, but with the latest version, Hibernate doesn't work at all due to this issue.
Hibernate version: 3.1 and 3.2
RCP Plugin Manifest documents:My main Manifest:Code:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ZooRender Manager Plug-in
Bundle-SymbolicName: com.xx.zoorender.manager; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.xx.zoorender.manager.Activator
Bundle-Vendor: XX
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.xx.zoorender.model,
org.hibernate.eclipse,
org.eclipse.ui.forms
Eclipse-LazyStart: true
Eclipse-RegisterBuddy: org.hibernate.eclipse
Manifest of the model:Code:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Model Plug-in
Bundle-SymbolicName: com.xx.zoorender.model
Bundle-Version: 1.0.0
Bundle-Vendor: XX
Bundle-Localization: plugin
Export-Package: com.xx.zoorender.model
Manifest of my JDBC Driver:Code:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MySQL Plug-in
Bundle-SymbolicName: com.mysql.eclipse
Bundle-Version: 3.1
Bundle-ClassPath: .
Bundle-Vendor: MySQL
Bundle-Localization: plugin
Export-Package: com.mysql.jdbc,
com.mysql.jdbc.configs,
com.mysql.jdbc.integration.c3p0,
com.mysql.jdbc.integration.jboss,
com.mysql.jdbc.jdbc2.optional,
com.mysql.jdbc.log,
com.mysql.jdbc.profiler,
com.mysql.jdbc.util,
org.gjt.mm.mysql
Manifest of the hibernate plugin:Code:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Eclipse Plug-in
Bundle-SymbolicName: org.hibernate.eclipse
Bundle-Version: 3.1
Bundle-ClassPath: hibernate3.jar,
ant-1.6.5.jar,
ant-antlr-1.6.5.jar,
ant-junit-1.6.5.jar,
ant-launcher-1.6.5.jar,
antlr-2.7.6rc1.jar,
ant-swing-1.6.5.jar,
asm.jar,
asm-attrs.jar,
c3p0-0.9.0.jar,
cglib-2.1.3.jar,
cleanimports.jar,
commons-collections-2.1.1.jar,
commons-logging-1.0.4.jar,
concurrent-1.3.2.jar,
connector.jar,
dom4j-1.6.1.jar,
ehcache-1.1.jar,
jaas.jar,
jacc-1_0-fr.jar,
jaxen-1.1-beta-7.jar,
jboss-cache.jar,
jboss-common.jar,
jboss-jmx.jar,
jboss-system.jar,
jdbc2_0-stdext.jar,
jgroups-2.2.8.jar,
jta.jar,
junit-3.8.1.jar,
log4j-1.2.11.jar,
oscache-2.1.jar,
proxool-0.8.3.jar,
swarmcache-1.0rc2.jar,
syndiag2.jar,
versioncheck.jar,
xerces-2.6.2.jar,
xml-apis.jar
Bundle-Localization: plugin
Export-Package: .,
EDU.oswego.cs.dl.util.concurrent,
antlr,
antlr.ASdebug,
antlr.actions.cpp,
antlr.actions.csharp,
antlr.actions.java,
antlr.actions.python,
antlr.build,
antlr.collections,
antlr.collections.impl,
antlr.debug,
antlr.debug.misc,
antlr.preprocessor,
com.mchange,
com.mchange.lang,
com.mchange.util,
com.mchange.v1,
com.mchange.v1.db,
com.mchange.v1.db.sql,
com.mchange.v1.identicator,
com.mchange.v1.io,
com.mchange.v1.util,
com.mchange.v2,
com.mchange.v2.async,
com.mchange.v2.beans,
com.mchange.v2.c3p0,
com.mchange.v2.c3p0.filter,
com.mchange.v2.c3p0.impl,
com.mchange.v2.c3p0.mbean,
com.mchange.v2.c3p0.stmt,
com.mchange.v2.c3p0.subst,
com.mchange.v2.c3p0.util,
com.mchange.v2.cfg,
com.mchange.v2.coalesce,
com.mchange.v2.codegen,
com.mchange.v2.codegen.bean,
com.mchange.v2.codegen.intfc,
com.mchange.v2.debug,
com.mchange.v2.holders,
com.mchange.v2.lang,
com.mchange.v2.log,
com.mchange.v2.log.jdk14logging,
com.mchange.v2.log.log4j,
com.mchange.v2.naming,
com.mchange.v2.resourcepool,
com.mchange.v2.ser,
com.mchange.v2.sql,
com.mchange.v2.sql.filter,
com.mchange.v2.util,
com.opensymphony.oscache.base,
com.opensymphony.oscache.base.algorithm,
com.opensymphony.oscache.base.events,
com.opensymphony.oscache.base.persistence,
com.opensymphony.oscache.extra,
com.opensymphony.oscache.general,
com.opensymphony.oscache.plugins.clustersupport,
com.opensymphony.oscache.plugins.diskpersistence,
com.opensymphony.oscache.util,
com.opensymphony.oscache.web,
com.opensymphony.oscache.web.filter,
com.opensymphony.oscache.web.tag,
com.sun.security.auth,
com.sun.security.auth.login,
com.tombrus.cleanImports.ant,
com.tombrus.cleanImports.engine,
com.tombrus.cleanImports.model,
com.tombrus.cleanImports.parser,
com.tombrus.cleanImports.parser.compiler140,
com.tombrus.cleanImports.parser.compiler141,
com.tombrus.cleanImports.parser.test,
com.tombrus.javaParser,
com.tombrus.javaParser.compiler140,
com.tombrus.javaParser.compiler141,
com.tombrus.javaParser.example,
com.tombrus.javaParser.example.compiler140,
com.tombrus.javaParser.example.compiler141,
com.tombrus.util,
dtd,
edu.usfca.syndiag,
images,
javax.management,
javax.management.loading,
javax.management.modelmbean,
javax.management.monitor,
javax.management.openmbean,
javax.management.relation,
javax.management.timer,
javax.resource,
javax.resource.cci,
javax.resource.spi,
javax.resource.spi.security,
javax.security.auth,
javax.security.auth.callback,
javax.security.auth.login,
javax.security.auth.spi,
javax.security.jacc,
javax.sql,
javax.transaction,
javax.transaction.xa,
javax.xml.parsers,
javax.xml.transform,
javax.xml.transform.dom,
javax.xml.transform.sax,
javax.xml.transform.stream,
junit.awtui,
junit.extensions,
junit.framework,
junit.runner,
junit.swingui,
junit.swingui.icons,
junit.textui,
license,
net.mark_malakanov.sdg2,
net.sf.cglib.beans,
net.sf.cglib.core,
net.sf.cglib.proxy,
net.sf.cglib.reflect,
net.sf.cglib.transform,
net.sf.cglib.transform.hook,
net.sf.cglib.transform.impl,
net.sf.cglib.util,
net.sf.ehcache,
net.sf.ehcache.config,
net.sf.ehcache.hibernate,
net.sf.ehcache.store,
net.sf.swarmcache,
org.apache.commons.collections,
org.apache.commons.collections.comparators,
org.apache.commons.collections.iterators,
org.apache.commons.logging,
org.apache.commons.logging.impl,
org.apache.html.dom,
org.apache.log4j,
org.apache.log4j.chainsaw,
org.apache.log4j.config,
org.apache.log4j.helpers,
org.apache.log4j.jdbc,
org.apache.log4j.jmx,
org.apache.log4j.lf5,
org.apache.log4j.lf5.config,
org.apache.log4j.lf5.util,
org.apache.log4j.lf5.viewer,
org.apache.log4j.lf5.viewer.categoryexplorer,
org.apache.log4j.lf5.viewer.configure,
org.apache.log4j.lf5.viewer.images,
org.apache.log4j.net,
org.apache.log4j.nt,
org.apache.log4j.or,
org.apache.log4j.or.jms,
org.apache.log4j.or.sax,
org.apache.log4j.spi,
org.apache.log4j.varia,
org.apache.log4j.xml,
org.apache.tools.ant,
org.apache.tools.ant.filters,
org.apache.tools.ant.filters.util,
org.apache.tools.ant.helper,
org.apache.tools.ant.input,
org.apache.tools.ant.launch,
org.apache.tools.ant.listener,
org.apache.tools.ant.loader,
org.apache.tools.ant.taskdefs,
org.apache.tools.ant.taskdefs.compilers,
org.apache.tools.ant.taskdefs.condition,
org.apache.tools.ant.taskdefs.cvslib,
org.apache.tools.ant.taskdefs.email,
org.apache.tools.ant.taskdefs.optional,
org.apache.tools.ant.taskdefs.optional.junit,
org.apache.tools.ant.taskdefs.optional.junit.xsl,
org.apache.tools.ant.taskdefs.optional.splash,
org.apache.tools.ant.taskdefs.rmic,
org.apache.tools.ant.types,
org.apache.tools.ant.types.mappers,
org.apache.tools.ant.types.resolver,
org.apache.tools.ant.types.selectors,
org.apache.tools.ant.types.selectors.modifiedselector,
org.apache.tools.ant.util,
org.apache.tools.ant.util.facade,
org.apache.tools.ant.util.regexp,
org.apache.tools.bzip2,
org.apache.tools.mail,
org.apache.tools.tar,
org.apache.tools.zip,
org.apache.wml,
org.apache.wml.dom,
org.apache.xerces.dom,
org.apache.xerces.dom.events,
org.apache.xerces.dom3,
org.apache.xerces.dom3.as,
org.apache.xerces.dom3.bootstrap,
org.apache.xerces.impl,
org.apache.xerces.impl.dtd,
org.apache.xerces.impl.dtd.models,
org.apache.xerces.impl.dv,
org.apache.xerces.impl.dv.dtd,
org.apache.xerces.impl.dv.util,
org.apache.xerces.impl.dv.xs,
org.apache.xerces.impl.io,
org.apache.xerces.impl.msg,
org.apache.xerces.impl.validation,
org.apache.xerces.impl.xpath,
org.apache.xerces.impl.xpath.regex,
org.apache.xerces.impl.xs,
org.apache.xerces.impl.xs.identity,
org.apache.xerces.impl.xs.models,
org.apache.xerces.impl.xs.opti,
org.apache.xerces.impl.xs.traversers,
org.apache.xerces.impl.xs.util,
org.apache.xerces.jaxp,
org.apache.xerces.parsers,
org.apache.xerces.util,
org.apache.xerces.xinclude,
org.apache.xerces.xni,
org.apache.xerces.xni.grammars,
org.apache.xerces.xni.parser,
org.apache.xerces.xs,
org.apache.xml.serialize,
org.apache.xmlcommons,
org.dom4j,
org.dom4j.bean,
org.dom4j.datatype,
org.dom4j.dom,
org.dom4j.dtd,
org.dom4j.io,
org.dom4j.jaxb,
org.dom4j.rule,
org.dom4j.rule.pattern,
org.dom4j.swing,
org.dom4j.tree,
org.dom4j.util,
org.dom4j.xpath,
org.dom4j.xpp,
org.hibernate,
org.hibernate.action,
org.hibernate.cache,
org.hibernate.cache.entry,
org.hibernate.cfg,
org.hibernate.classic,
org.hibernate.collection,
org.hibernate.connection,
org.hibernate.context,
org.hibernate.criterion,
org.hibernate.dialect,
org.hibernate.dialect.function,
org.hibernate.engine,
org.hibernate.engine.query,
org.hibernate.engine.transaction,
org.hibernate.event,
org.hibernate.event.def,
org.hibernate.exception,
org.hibernate.hql,
org.hibernate.hql.antlr,
org.hibernate.hql.ast,
org.hibernate.hql.ast.exec,
org.hibernate.hql.ast.tree,
org.hibernate.hql.ast.util,
org.hibernate.hql.classic,
org.hibernate.id,
org.hibernate.impl,
org.hibernate.intercept,
org.hibernate.jdbc,
org.hibernate.jmx,
org.hibernate.loader,
org.hibernate.loader.collection,
org.hibernate.loader.criteria,
org.hibernate.loader.custom,
org.hibernate.loader.entity,
org.hibernate.loader.hql,
org.hibernate.lob,
org.hibernate.mapping,
org.hibernate.metadata,
org.hibernate.param,
org.hibernate.persister,
org.hibernate.persister.collection,
org.hibernate.persister.entity,
org.hibernate.pretty,
org.hibernate.property,
org.hibernate.proxy,
org.hibernate.secure,
org.hibernate.sql,
org.hibernate.stat,
org.hibernate.tool.hbm2ddl,
org.hibernate.tool.instrument,
org.hibernate.transaction,
org.hibernate.transform,
org.hibernate.tuple,
org.hibernate.type,
org.hibernate.usertype,
org.hibernate.util,
org.jaxen,
org.jaxen.dom,
org.jaxen.dom4j,
org.jaxen.expr,
org.jaxen.expr.iter,
org.jaxen.function,
org.jaxen.function.ext,
org.jaxen.function.xslt,
org.jaxen.javabean,
org.jaxen.jdom,
org.jaxen.pattern,
org.jaxen.saxpath,
org.jaxen.saxpath.base,
org.jaxen.saxpath.helpers,
org.jaxen.util,
org.jaxen.xom,
org.jboss,
org.jboss.cache,
org.jboss.cache.aop,
org.jboss.cache.eviction,
org.jboss.cache.interceptors,
org.jboss.cache.loader,
org.jboss.cache.loader.bdbje,
org.jboss.cache.loader.rmi,
org.jboss.cache.lock,
org.jboss.cache.tests,
org.jboss.cache.transaction,
org.jboss.deployment,
org.jboss.deployment.cache,
org.jboss.deployment.scanner,
org.jboss.logging,
org.jboss.logging.appender,
org.jboss.logging.filter,
org.jboss.logging.layout,
org.jboss.logging.util,
org.jboss.mx.capability,
org.jboss.mx.interceptor,
org.jboss.mx.loading,
org.jboss.mx.metadata,
org.jboss.mx.modelmbean,
org.jboss.mx.notification,
org.jboss.mx.persistence,
org.jboss.mx.server,
org.jboss.mx.server.registry,
org.jboss.mx.service,
org.jboss.mx.util,
org.jboss.mx.util.propertyeditor,
org.jboss.net.protocol,
org.jboss.net.protocol.file,
org.jboss.net.protocol.http,
org.jboss.net.protocol.njar,
org.jboss.net.protocol.resource,
org.jboss.net.sockets,
org.jboss.net.ssl,
org.jboss.system,
org.jboss.system.pm,
org.jboss.system.server,
org.jboss.util,
org.jboss.util.coerce,
org.jboss.util.collection,
org.jboss.util.deadlock,
org.jboss.util.file,
org.jboss.util.id,
org.jboss.util.loading,
org.jboss.util.platform,
org.jboss.util.property,
org.jboss.util.property.jmx,
org.jboss.util.propertyeditor,
org.jboss.util.state,
org.jboss.util.state.xml,
org.jboss.util.stream,
org.jboss.util.threadpool,
org.jboss.util.timeout,
org.jboss.util.xml,
org.jboss.xml,
org.jboss.xml.binding,
org.jboss.xml.binding.metadata,
org.jboss.xml.binding.metadata.marshalling,
org.jboss.xml.binding.metadata.unmarshalling,
org.jboss.xml.binding.metadata.unmarshalling.impl,
org.jboss.xml.binding.parser,
org.jboss.xml.binding.parser.sax,
org.jboss.xml.binding.parser.xni,
org.jgroups,
org.jgroups.blocks,
org.jgroups.conf,
org.jgroups.debug,
org.jgroups.demos,
org.jgroups.demos.applets,
org.jgroups.demos.wb,
org.jgroups.persistence,
org.jgroups.protocols,
org.jgroups.protocols.pbcast,
org.jgroups.protocols.ring,
org.jgroups.service,
org.jgroups.service.lease,
org.jgroups.stack,
org.jgroups.tests,
org.jgroups.tests.adapt,
org.jgroups.tests.adaptjms,
org.jgroups.tests.adapttcp,
org.jgroups.tests.adaptudp,
org.jgroups.tests.perf,
org.jgroups.tests.perf.transports,
org.jgroups.tests.stack,
org.jgroups.util,
org.logicalcobwebs.asm,
org.logicalcobwebs.asm.tree,
org.logicalcobwebs.asm.util,
org.logicalcobwebs.cglib.core,
org.logicalcobwebs.cglib.proxy,
org.logicalcobwebs.cglib.reflect,
org.logicalcobwebs.cglib.util,
org.logicalcobwebs.concurrent,
org.logicalcobwebs.logging,
org.logicalcobwebs.logging.impl,
org.logicalcobwebs.proxool,
org.logicalcobwebs.proxool.admin,
org.logicalcobwebs.proxool.admin.jmx,
org.logicalcobwebs.proxool.admin.servlet,
org.logicalcobwebs.proxool.configuration,
org.logicalcobwebs.proxool.resources,
org.logicalcobwebs.proxool.util,
org.objectweb.asm,
org.objectweb.asm.attrs,
org.w3c.dom,
org.w3c.dom.css,
org.w3c.dom.events,
org.w3c.dom.html,
org.w3c.dom.ls,
org.w3c.dom.ranges,
org.w3c.dom.stylesheets,
org.w3c.dom.traversal,
org.w3c.dom.views,
org.xml.sax,
org.xml.sax.ext,
org.xml.sax.helpers,
versioncheck
Eclipse-BuddyPolicy: registered
Require-Bundle: com.mysql.eclipse
Full stack trace of any exception that occurs:Code:
java.lang.NullPointerException
at org.hibernate.tuple.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:372)
at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:3121)
at org.hibernate.event.def.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:232)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:173)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:862)
at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:830)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266)
at org.hibernate.type.EntityType.resolve(EntityType.java:303)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
at org.hibernate.loader.Loader.doQuery(Loader.java:717)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2145)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at org.hibernate.loader.Loader.list(Loader.java:2024)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.xx.zoorender.manager.views.SubmissionPanelView$ComboSelectionChangedListener.selectionChanged(SubmissionPanelView.java:183)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1976)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1128)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1154)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:213)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:207)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:374)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3164)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.xx.zoorender.manager.Application.run(Application.java:18)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Name and version of the database: MySQL 5.0.18
Debug level Hibernate log excerpt:Code:
2006-09-29 11:26:54,943 INFO [main] SessionFactoryImpl: building session factory
2006-09-29 11:26:54,964 WARN [main] Configurator: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: bundleresource://21/ehcache-failsafe.xml
2006-09-29 11:26:55,445 ERROR [main] CGLIBLazyInitializer: CGLIB Enhancement failed: com.xx.zoorender.model.TasktypeErrorstring
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:126)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
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:216)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at test.rcpviewtemplate.HibernateUtil.<clinit>(HibernateUtil.java:33)
at test.rcpviewtemplate.View.createPartControl(View.java:71)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:601)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:532)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:562)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:244)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:815)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2429)
at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:2616)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2597)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:658)
at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:795)
at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:1437)
at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1388)
at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:190)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:708)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at test.rcpviewtemplate.Application.run(Application.java:18)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
... 61 more
Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
... 66 more
2006-09-29 11:26:55,453 WARN [main] PojoEntityTuplizer: could not create proxy factory for:com.xx.zoorender.model.TasktypeErrorstring
org.hibernate.HibernateException: CGLIB Enhancement failed: com.xx.zoorender.model.TasktypeErrorstring
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
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:216)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at test.rcpviewtemplate.HibernateUtil.<clinit>(HibernateUtil.java:33)
at test.rcpviewtemplate.View.createPartControl(View.java:71)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:601)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:532)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:562)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:244)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:815)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2429)
at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:2616)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2597)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:658)
at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:795)
at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:1437)
at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1388)
at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:190)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:708)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at test.rcpviewtemplate.Application.run(Application.java:18)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:126)
... 58 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
... 61 more
Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
... 66 more
Hibernate Mapping files:For the Tasktype class: Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 10-Aug-2006 2:18:43 PM by Hibernate Tools 3.2.0.beta6a -->
<hibernate-mapping>
<class name="com.xx.zoorender.model.Tasktype" table="tasktype" catalog="zoorender_test01">
<comment></comment>
<id name="idtasktype" type="long" unsaved-value="0">
<column name="idtasktype" />
<generator class="native" />
</id>
<property name="tasktypename" type="string">
<column name="tasktypename" length="45">
</column>
</property>
<set name="tasktypeParameters" inverse="true" cascade="all-delete-orphan" lazy="true">
<key>
<column name="tasktype_idtasktype" not-null="true">
</column>
</key>
<one-to-many class="com.xx.zoorender.model.TasktypeParameter" />
</set>
</class>
</hibernate-mapping>
For the TasktypeParameter class Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 21-Aug-2006 12:51:41 PM by Hibernate Tools 3.2.0.beta6a -->
<hibernate-mapping>
<class name="com.xx.zoorender.model.TasktypeParameter" table="tasktype_parameter" catalog="zoorender_test01">
<comment></comment>
<id name="idtasktypeParameter" type="long">
<column name="idtasktype_parameter" />
<generator class="native" />
</id>
<many-to-one name="tasktype" class="com.xx.zoorender.model.Tasktype" fetch="select">
<column name="tasktype_idtasktype" not-null="true">
<comment></comment>
</column>
</many-to-one>
</property>
<property name="argumenttag" type="string">
<column name="argumenttag">
<comment></comment>
</column>
</property>
<property name="orderincommand" type="java.lang.Integer">
<column name="orderincommand">
<comment></comment>
</column>
</property>
</class>
</hibernate-mapping>
Java classes:Tasktype class: Code:
package com.xx.zoorender.model;
// Generated 10-Aug-2006 2:18:42 PM by Hibernate Tools 3.2.0.beta6a
import java.util.HashSet;
import java.util.Set;
/**
* Tasktype generated by hbm2java
*/
public class Tasktype implements java.io.Serializable {
// Fields
private long idtasktype;
private String tasktypename;
private Set<TasktypeParameter> tasktypeParameters = new HashSet<TasktypeParameter>(0);
// Constructors
/** default constructor */
public Tasktype() {
}
// Property accessors
...
}
TasktypeParameter class: Code:
package com.xx.zoorender.model;
// Generated 21-Aug-2006 12:51:41 PM by Hibernate Tools 3.2.0.beta6a
/**
* TasktypeParameter generated by hbm2java
*/
public class TasktypeParameter implements java.io.Serializable {
// Fields
private long idtasktypeParameter;
private Tasktype tasktype;
private String argumenttag;
private Integer orderincommand;
// Constructors
/** default constructor */
public TasktypeParameter() {
}
// Property accessors
...
}
Quote:
Thank you in advance for all suggestions.