Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.17.0.AM1
    • Fix Version/s: None
    • Component/s: hibernate
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      1. Import attached project
      2. Select package org.test in Project explorer
      3. Open wizard "File -> New ->Other" and select "Hibernate" -> "Hibernate XML Mapping file(hbm.xml)" and click "Next"
      4. Select package and click "Next"
      5. click "Next"
      6. An Exception is thrown in Error log
      Show
      Import attached project Select package org.test in Project explorer Open wizard "File -> New ->Other" and select "Hibernate" -> "Hibernate XML Mapping file(hbm.xml)" and click "Next" Select package and click "Next" click "Next" An Exception is thrown in Error log

      Description

      null
      org.eclipse.jface
      Error
      Wed Sep 09 13:50:39 CEST 2020
      Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      
      java.lang.NullPointerException
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.getService(NewHibernateMappingFileWizard.java:300)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.access$1(NewHibernateMappingFileWizard.java:294)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard$HibernateMappingExporterWrapper.<init>(NewHibernateMappingFileWizard.java:285)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.getPlaces2Gen(NewHibernateMappingFileWizard.java:322)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.handlePageChanging(NewHibernateMappingFileWizard.java:171)
      	at org.eclipse.jface.wizard.WizardDialog$6.run(WizardDialog.java:1565)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
      	at org.eclipse.jface.wizard.WizardDialog.firePageChanging(WizardDialog.java:1562)
      	at org.eclipse.jface.wizard.WizardDialog.doPageChanging(WizardDialog.java:930)
      	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1214)
      	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:917)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:468)
      	at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
      	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
      	at org.eclipse.jface.window.Window.open(Window.java:799)
      	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:260)
      	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:280)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:319)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:253)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
      	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:579)
      	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:413)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:657)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:556)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
      	at org.eclipse.reddeer.jdt.junit.UITestApplication.start(UITestApplication.java:69)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
      	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:401)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      
      

      And:

      eclipse.buildId=12.17.0.AM1-v20200904-0727-B6889
      java.version=11.0.8
      java.vendor=AdoptOpenJDK
      BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
      Framework arguments:  -product com.jboss.devstudio.core.product -product com.jboss.devstudio.core.product -product com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
      Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product com.jboss.devstudio.core.product -product com.jboss.devstudio.core.product -data file:/Users/jkopriva/workspace_B6889/ -product com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
      
      org.eclipse.ui
      Error
      Wed Sep 09 13:55:18 CEST 2020
      Unhandled event loop exception
      
      java.lang.NullPointerException
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.getService(NewHibernateMappingFileWizard.java:300)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.access$1(NewHibernateMappingFileWizard.java:294)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard$HibernateMappingExporterWrapper.<init>(NewHibernateMappingFileWizard.java:285)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.getPlaces2Gen(NewHibernateMappingFileWizard.java:322)
      	at org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMappingFileWizard.performFinish(NewHibernateMappingFileWizard.java:377)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:832)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:472)
      	at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
      	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
      	at org.eclipse.jface.window.Window.open(Window.java:799)
      	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:260)
      	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:280)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
      	at jdk.internal.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:319)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:253)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
      	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:579)
      	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:413)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:657)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:556)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
      	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:401)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                koen.aers Koen Aers
                Reporter:
                jkopriva Josef Kopriva
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: