Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20724

Cannot generate entities from tables

XMLWordPrintable

    • Hide

      This is a sakila example. I've used sakila-h2 database and wanted to generate entities

      1) run Generate Entities from Tables wizard
      2) On first wizard page select sakila db, and hit next

      Show
      This is a sakila example. I've used sakila-h2 database and wanted to generate entities 1) run Generate Entities from Tables wizard 2) On first wizard page select sakila db, and hit next

      java.lang.reflect.InvocationTargetException
      	at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
      	at org.jboss.forge.addon.facets.AbstractFaceted_$$_javassist_4d780f3f-8c7c-47c0-8d85-b4e0e87ddb55.getValueChoices(AbstractFaceted_$$_javassist_4d780f3f-8c7c-47c0-8d85-b4e0e87ddb55.java)
      	at org.jboss.tools.forge.ui.internal.ext.control.many.CheckboxTableControlBuilder.build(CheckboxTableControlBuilder.java:79)
      	at org.jboss.tools.forge.ui.internal.ext.control.many.CheckboxTableControlBuilder.build(CheckboxTableControlBuilder.java:1)
      	at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardPage.createControl(ForgeWizardPage.java:96)
      	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1216)
      	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1208)
      	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1197)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1194)
      	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:885)
      	at org.jboss.tools.forge.ui.internal.ext.dialog.ForgeWizardDialog.nextPressed(ForgeWizardDialog.java:50)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:425)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
      	at org.eclipse.jface.window.Window.open(Window.java:803)
      	at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:210)
      	at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:102)
      	at org.jboss.tools.forge.ui.internal.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:233)
      	at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:322)
      	at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:312)
      	at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents$1.keyPressed(QuickAccessContents.java:343)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1338)
      	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1365)
      	at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:763)
      	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3317)
      	at org.eclipse.swt.widgets.Text.gtk_key_press_event(Text.java:1810)
      	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1980)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:5590)
      	at org.eclipse.swt.widgets.Text.windowProc(Text.java:2767)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4717)
      	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
      	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9279)
      	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1225)
      	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
      	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2425)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3428)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.JDBCMetaDataConfiguration
      	at org.jboss.forge.addon.database.tools.generate.DatabaseTableSelectionStep$1.call(DatabaseTableSelectionStep.java:97)
      	at org.jboss.forge.addon.database.tools.generate.DatabaseTableSelectionStep$1.call(DatabaseTableSelectionStep.java:88)
      	at org.jboss.forge.furnace.util.Callables.call(Callables.java:43)
      	at org.jboss.forge.addon.ui.impl.input.AbstractUISelectInputComponent.getValueChoices(AbstractUISelectInputComponent.java:55)
      	... 75 more
      

              rhn-support-ggastald George Gastaldi
              psrna Pavol Srna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: