java.lang.ClassNotFoundException: foo.bar.AnEnumType

Hibernate JIRA | Luke Maurer | 9 years ago
  1. 0

    In the Hibernate Console perspective, right-clicking a class in the Configuration subtree of the Hibernate Configurations view and clicking Open Mapping Diagram gives an empty editor ("Error opening the editor.") if the class, or any class reachable from it by assocations or collections, has a property whose type is a JDK5 enum. The error logged is "Unable to create editor ID org.jboss.tools.hibernate.ui.veditor.editors.visualeditor: Enum class not found"; the stack trace attached is: java.lang.ClassNotFoundException: foo.bar.AnEnumType at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112) at org.hibernate.type.EnumType.setParameterValues(EnumType.java:286) at org.hibernate.type.TypeFactory.injectParameters(TypeFactory.java:339) at org.hibernate.type.CustomType.<init>(CustomType.java:67) at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:245) at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:260) at org.hibernate.mapping.Property.getType(Property.java:50) at org.jboss.tools.hibernate.ui.view.views.OrmModelImageVisitor.visitPersistentField(OrmModelImageVisitor.java:111) at org.jboss.tools.hibernate.ui.view.views.OrmLabelProvider.getImage(OrmLabelProvider.java:58) at org.jboss.tools.hibernate.ui.veditor.editors.parts.ShapeEditPart.createFigure(ShapeEditPart.java:72) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.getFigure(AbstractGraphicalEditPart.java:445) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChildVisual(AbstractGraphicalEditPart.java:197) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:197) at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727) at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564) at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212) at org.jboss.tools.hibernate.ui.veditor.editors.parts.OrmShapeEditPart.addNotify(OrmShapeEditPart.java:44) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198) at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727) at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564) at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198) at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:610) at org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor.initializeGraphicalViewer(VisualEditor.java:56) at org.eclipse.gef.ui.parts.GraphicalEditor.createGraphicalViewer(GraphicalEditor.java:153) at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:163) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651) at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:433) at org.jboss.tools.hibernate.ui.view.views.OpenDiagramActionDelegate.run(OpenDiagramActionDelegate.java:51) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) Session Data: eclipse.buildId=I20070625-1500 java.version=1.6.0 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86

    Hibernate JIRA | 9 years ago | Luke Maurer
    java.lang.ClassNotFoundException: foo.bar.AnEnumType
  2. 0

    In the Hibernate Console perspective, right-clicking a class in the Configuration subtree of the Hibernate Configurations view and clicking Open Mapping Diagram gives an empty editor ("Error opening the editor.") if the class, or any class reachable from it by assocations or collections, has a property whose type is a JDK5 enum. The error logged is "Unable to create editor ID org.jboss.tools.hibernate.ui.veditor.editors.visualeditor: Enum class not found"; the stack trace attached is: java.lang.ClassNotFoundException: foo.bar.AnEnumType at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112) at org.hibernate.type.EnumType.setParameterValues(EnumType.java:286) at org.hibernate.type.TypeFactory.injectParameters(TypeFactory.java:339) at org.hibernate.type.CustomType.<init>(CustomType.java:67) at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:245) at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:260) at org.hibernate.mapping.Property.getType(Property.java:50) at org.jboss.tools.hibernate.ui.view.views.OrmModelImageVisitor.visitPersistentField(OrmModelImageVisitor.java:111) at org.jboss.tools.hibernate.ui.view.views.OrmLabelProvider.getImage(OrmLabelProvider.java:58) at org.jboss.tools.hibernate.ui.veditor.editors.parts.ShapeEditPart.createFigure(ShapeEditPart.java:72) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.getFigure(AbstractGraphicalEditPart.java:445) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChildVisual(AbstractGraphicalEditPart.java:197) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:197) at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727) at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564) at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212) at org.jboss.tools.hibernate.ui.veditor.editors.parts.OrmShapeEditPart.addNotify(OrmShapeEditPart.java:44) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198) at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727) at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564) at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198) at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:610) at org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor.initializeGraphicalViewer(VisualEditor.java:56) at org.eclipse.gef.ui.parts.GraphicalEditor.createGraphicalViewer(GraphicalEditor.java:153) at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:163) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651) at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:433) at org.jboss.tools.hibernate.ui.view.views.OpenDiagramActionDelegate.run(OpenDiagramActionDelegate.java:51) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) Session Data: eclipse.buildId=I20070625-1500 java.version=1.6.0 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86

    Hibernate JIRA | 9 years ago | Luke Maurer
    java.lang.ClassNotFoundException: foo.bar.AnEnumType
  3. 0

    db:: 4.77::ERROR [SchemaExport] schema export unsuccessful c1

    hivmr.com | 7 months ago
    java.lang.ClassNotFoundException: my.datalayer.SyssegmentsId
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    iBATIS - User - Java - ibator question about <commentGenerator> element

    nabble.com | 1 year ago
    java.lang.RuntimeException: Cannot instantiate object of type aces.ibatis.DefaultCommentGenerator
  6. 0

    The bundle spring-orm is missing the import for "com.ibatis.sqlmap.engine.transaction.external". Costin Leau told me this might come from a bug in the bnd tool. The package is imported by the class org.springframework.orm.ibatis.SqlMapClientFactoryBean, so it has to be in the bundle import-package, too! ERROR [org.springframework.osgi.extender.dependencies.startup.AsynchServiceDependencyApplicationContextExecutor] - Unable to create application context for [org.my.i18n.service], unsatisfied dependencies: none org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in OSGi res[/META-INF/spring/bundle-context.xml|id=186|symName=org.my.i18n.service]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.ibatis.SqlMapClientFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:557) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:238) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:167) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:235) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:167) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:379) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.postRefresh(AbstractDelegatedExecutionApplicationContext.java:219) at org.springframework.osgi.extender.dependencies.startup.AsynchServiceDependencyApplicationContextExecutor$CompleteRefreshTask.run(AsynchServiceDependencyApplicationContextExecutor.java:133) at java.lang.Thread.run(Thread.java:613) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.ibatis.SqlMapClientFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:860) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:823) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:511) ... 9 more Caused by: java.lang.NoClassDefFoundError at org.springframework.orm.ibatis.SqlMapClientFactoryBean.class$(SqlMapClientFactoryBean.java:72) at org.springframework.orm.ibatis.SqlMapClientFactoryBean.<init>(SqlMapClientFactoryBean.java:108) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83) ... 13 more Caused by: java.lang.ClassNotFoundException: com.ibatis.sqlmap.engine.transaction.external.ExternalTransactionConfig at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) ... 20 more Root cause follows. java.lang.ClassNotFoundException: com.ibatis.sqlmap.engine.transaction.external.ExternalTransactionConfig at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.springframework.orm.ibatis.SqlMapClientFactoryBean.class$(SqlMapClientFactoryBean.java:72) at org.springframework.orm.ibatis.SqlMapClientFactoryBean.<init>(SqlMapClientFactoryBean.java:108) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:860) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:823) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:511) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:238) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:167) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:235) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:167) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:379) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.postRefresh(AbstractDelegatedExecutionApplicationContext.java:219) at org.springframework.osgi.extender.dependencies.startup.AsynchServiceDependencyApplicationContextExecutor$CompleteRefreshTask.run(AsynchServiceDependencyApplicationContextExecutor.java:133) at java.lang.Thread.run(Thread.java:613)

    Spring JIRA | 9 years ago | Ingo Meyer
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in OSGi res[/META-INF/spring/bundle-context.xml|id=186|symName=org.my.i18n.service]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.ibatis.SqlMapClientFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError

  1. archenroot 1 times, last 1 week ago
  2. tyson925 5 times, last 2 weeks ago
  3. tzrlk 1 times, last 2 weeks ago
  4. musketyr 1 times, last 2 weeks ago
  5. kjhdofjosvs 3 times, last 3 weeks ago
63 more registered users
32 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    foo.bar.AnEnumType

    at java.lang.ClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.findClass(ClassLoader.java:358)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    3 frames
  3. Eclipse OSGi
    DefaultClassLoader.loadClass
    1. org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
    2. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    3. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    4. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
    4 frames
  4. Java RT
    Class.forName
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    3. java.lang.Class.forName0(Native Method)
    4. java.lang.Class.forName(Class.java:247)
    4 frames
  5. Hibernate
    ReflectHelper.classForName
    1. org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112)
    1 frame
  6. Hibernate
    Property.getType
    1. org.hibernate.type.EnumType.setParameterValues(EnumType.java:286)
    2. org.hibernate.type.TypeFactory.injectParameters(TypeFactory.java:339)
    3. org.hibernate.type.CustomType.<init>(CustomType.java:67)
    4. org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:245)
    5. org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:260)
    6. org.hibernate.mapping.Property.getType(Property.java:50)
    6 frames
  7. org.jboss.tools
    ShapeEditPart.createFigure
    1. org.jboss.tools.hibernate.ui.view.views.OrmModelImageVisitor.visitPersistentField(OrmModelImageVisitor.java:111)
    2. org.jboss.tools.hibernate.ui.view.views.OrmLabelProvider.getImage(OrmLabelProvider.java:58)
    3. org.jboss.tools.hibernate.ui.veditor.editors.parts.ShapeEditPart.createFigure(ShapeEditPart.java:72)
    3 frames
  8. Graphical Editing Framework
    AbstractGraphicalEditPart.addNotify
    1. org.eclipse.gef.editparts.AbstractGraphicalEditPart.getFigure(AbstractGraphicalEditPart.java:445)
    2. org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChildVisual(AbstractGraphicalEditPart.java:197)
    3. org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:197)
    4. org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727)
    5. org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677)
    6. org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564)
    7. org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
    8. org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
    8 frames
  9. org.jboss.tools
    OrmShapeEditPart.addNotify
    1. org.jboss.tools.hibernate.ui.veditor.editors.parts.OrmShapeEditPart.addNotify(OrmShapeEditPart.java:44)
    1 frame
  10. Graphical Editing Framework
    AbstractEditPartViewer.setContents
    1. org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
    2. org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:727)
    3. org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:677)
    4. org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:564)
    5. org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
    6. org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
    7. org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
    8. org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101)
    9. org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601)
    10. org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:610)
    10 frames
  11. org.jboss.tools
    VisualEditor.initializeGraphicalViewer
    1. org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor.initializeGraphicalViewer(VisualEditor.java:56)
    1 frame
  12. Graphical Editing Framework
    GraphicalEditor.createPartControl
    1. org.eclipse.gef.ui.parts.GraphicalEditor.createGraphicalViewer(GraphicalEditor.java:153)
    2. org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:163)
    2 frames
  13. Eclipse UI
    WorkbenchPage$10.run
    1. org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
    2. org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
    3. org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
    4. org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
    5. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739)
    6. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
    7. org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
    8. org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
    8 frames
  14. RWT
    BusyIndicator.showWhile
    1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    1 frame
  15. Eclipse UI
    WorkbenchPage.openEditor
    1. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
    2. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
    3. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
    3 frames
  16. Eclipse UI
    IDE.openEditor
    1. org.eclipse.ui.ide.IDE.openEditor(IDE.java:433)
    1 frame
  17. org.jboss.tools
    OpenDiagramActionDelegate.run
    1. org.jboss.tools.hibernate.ui.view.views.OpenDiagramActionDelegate.run(OpenDiagramActionDelegate.java:51)
    1 frame
  18. Eclipse UI
    PluginAction.runWithEvent
    1. org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
    1 frame
  19. JFace
    ActionContributionItem$5.handleEvent
    1. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
    2. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    3. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    3 frames
  20. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
    3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
    4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
    4 frames
  21. Eclipse UI
    Workbench$4.run
    1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    4. org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    4 frames
  22. Databinding
    Realm.runWithDefault
    1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    1 frame
  23. Eclipse UI
    Workbench.createAndRunWorkbench
    1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    1 frame
  24. Eclipse UI
    PlatformUI.createAndRunWorkbench
    1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    1 frame
  25. Eclipse IDE
    IDEApplication.start
    1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    1 frame
  26. Equinox Container
    EclipseAppHandle.run
    1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    1 frame
  27. Eclipse OSGi
    EclipseStarter.run
    1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    4 frames
  28. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  29. Equinox
    Main.run
    1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    3. org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    3 frames