NPE under j2eedt.core.internal.project.E.getContextRoot()

Home Forums Archived Forums MyEclipse Archived Web Development (HTML, CSS, etc.) NPE under j2eedt.core.internal.project.E.getContextRoot()

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of Brian Fernandes Brian Fernandes 4 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #317701

    !ENTRY org.eclipse.ui 4 0 2011-06-22 20:36:12.923
    I’m using the latest -> MyEclipse for Spring Version 9.0 and I didn’t added any plug-ins. It’s not working out of the box.

    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.core.internal.project.E.getContextRoot(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateLocationField(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.handleProjectsComboBoxModified(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.initializeProjectsComboBox(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.createControl(Unknown Source)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:734)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:606)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.jface.window.Window.open(Window.java:790)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.addDeployment(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.AddDeploymentAction.basicRun(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.runWithEvent(Unknown Source)
    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:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    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:369)
    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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

    !ENTRY org.eclipse.ui 4 0 2011-06-22 20:36:23.845
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.core.internal.project.E.getContextRoot(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.updateLocationField(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.handleProjectsComboBoxModified(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.initializeProjectsComboBox(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizardPage.createControl(Unknown Source)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:734)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:606)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.jface.window.Window.open(Window.java:790)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.addDeployment(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.AddDeploymentAction.basicRun(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.runWithEvent(Unknown Source)
    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:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    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:369)
    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:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

    !ENTRY org.eclipse.core.jobs 4 2 2011-06-22 20:36:45.189
    !MESSAGE An internal error occurred during: “Launching extdirectspring-demo on MyEclipse Tomcat “.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.core.internal.project.E.getContextRoot(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.computeDeploymentLocation(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.debug.RunOnServerLaunchConfigurationDelegate.?(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.debug.RunOnServerLaunchConfigurationDelegate.?(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.debug.RunOnServerLaunchConfigurationDelegate.?(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.debug.RunOnServerLaunchConfigurationDelegate.launch(Unknown Source)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    #317705
    Profile photo of support-swapna
    support-swapna
    Moderator

    sebtardif,

    Sorry that you have this problem with MyEclipse Spring.

    Can you answer some more questions for me to understand the issue better ?

    1) How did you install MyEclipse for Spring ? Is it through Pulse/All-In-One installer/ Archived Update site?

    2) What kind of a project is it? Are you importing it to your workspace from elsewhere?

    3) Did the project deployments ever work before ? Is it the first time you are trying to deploy project with MyEclipse Spring 9 ?

    4) Start the IDE with -clean, switch to a new workspace, create a sample project and check if you see the same issue when deploying to MyEclipse Tomcat. Here is an FAQ on -clean : https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/

    Let me know how this works for you.

    #317714

    I can upload the project to the forum if I find the way to do so.

    I only installed this: myeclipse-9.0a-offline-installer-windows.exe

    I imported the project using Import -> Maven Project -> pom.xml

    Deployment work with Spring STS and standalone Eclipse.

    I will look at your page about clean. My workspace was clean, I tried many new workspace.

    I could debug your code if you provide a “debug” switch to start the IDE, but I guess since you are the only Java library I have seen that do not keep the line number you probably don’t have any attempt to facilitate ways for the community to fix your bugs.

    #317763
    Profile photo of Brian Fernandes
    Brian Fernandes
    Moderator

    sebtardif,

    Sorry you are running into this issue and the late response. On the line numbers, a few of projects around the MyEclipse core are thus protected due to licensing concerns; we are certainly one of the most pirated IDEs out there. I agree it would help in this case though, thanks for offering to help debug.

    Is a WebTools dynamic web project which you have imported into MyEclipse? Or is this a regular Maven project that you have been working on outside the IDE. I have a few questions and suggestions:

    1) Use the MyEclipse > Enhance WTP Project menu action on the project to see if it fixes the issue.

    2) Send us your project at support@myelcipseide.com ATTN Brian with a link to this thread, that will allow me to examine your project directly and see what is going wrong/put a fix in.

    3) Create a new MyEclipse Web project and enable Maven support. Copy your resources into this project, including the pom.xml, that will make this a MyEclipse web project which will not have issues reading deployment data.
    I realize this is cumbersome but we have some defects around the *import* of Maven projects which we will be fixing in the MyEclipse 10 release.

    I apologize for the inconvenience caused.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Web Development (HTML, CSS, etc.)’ is closed to new topics and replies.