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

JPA Tools > "Generate Tables from Entities..." doesn't complete

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.3.0.Beta1
    • 3.3.0.Beta1
    • hibernate
    • None
    • Hide
      • create a database test
      • create a new connection profile pointing at the test database
      • from JBoss Central, create a new HTML5 project
      • The created project has the JPA facet installed
      • right click on project > properties > JPA > select the aforementioned connection profile
      • right click on project > JPA Tools > Generate tables from entities
      • select export to database
      • click finish
        ASSERT : the tables are created in the test database
        ASSERT : ddl file is created,
        ASSERT : wizard closes
        FAIL : wizard doesn't close (but tables and files are generated as expected)
      Show
      create a database test create a new connection profile pointing at the test database from JBoss Central, create a new HTML5 project The created project has the JPA facet installed right click on project > properties > JPA > select the aforementioned connection profile right click on project > JPA Tools > Generate tables from entities select export to database click finish ASSERT : the tables are created in the test database ASSERT : ddl file is created, ASSERT : wizard closes FAIL : wizard doesn't close (but tables and files are generated as expected)

    Description

      After creating a project from the HTML5 archetype in JBoss Central, when I try to execute JPA Tools > Generate Tables from Entities... (export to database), the wizard doesn't close. The log shows :

      java.lang.NullPointerException
      	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.formatGeneratedCode(CodeGenerationLaunchDelegate.java:347)
      	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:273)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
      	at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateDdlWizard.performFinish(GenerateDdlWizard.java:70)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      	at org.eclipse.jface.window.Window.open(Window.java:801)
      	at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateDDL(HibernateJpaPlatformUi.java:64)
      	at org.eclipse.jpt.jpa.ui.internal.actions.GenerateDDLAction.execute(GenerateDDLAction.java:25)
      	at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.execute(ProjectAction.java:87)
      	at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.execute(ProjectAction.java:63)
      	at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.run(ProjectAction.java:55)
      	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	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:622)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      

      Attachments

        1. patch.txt
          3 kB
          Dmitry Geraskov

        Activity

          People

            dgeraskov Dmitry Geraskov (Inactive)
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: