facebook

[Closed] NullPointerException when deploying EA Project

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #271054 Reply

    jaybis
    Member

    I get a NullPointerException in the .metadata/.log file when I try to deploy my Enterprise Application Project “pafeui_ear” from the Project Deployments dialog. In the GUI I only see an “Error” popup window. The EA project only contains the web-project “pafeui”. The problems started when I checked out the same web-project, from a different branch, over the existing web-project (“overwrite”).

    I have tried to start with “eclipse -clean”, but it didn’t solve the problem.
    I get the same error when I try to run with MyEclipse version 5.1.1 instead.

    Version: 5.5.0 Milestone 2
    Build id: 20070409-5.5.0-Milestone2

    My ../.metadata/.log looks like this:


    !ENTRY org.eclipse.core.resources 2 75 2007-06-04 09:29:53.199
    !MESSAGE Errors during build.
    !SUBENTRY 1 com.genuitec.eclipse.ast.deploy.core 2 75 2007-06-04 09:29:53.199
    !MESSAGE Errors running builder “DeploymentBuilder” on project pafeui_ear.
    !SUBENTRY 1 com.genuitec.eclipse.ast.deploy.core 2 75 2007-06-04 09:29:53.199
    !MESSAGE java.lang.NullPointerException encountered while running DeploymentBuilder.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.isSourceFolder(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.EARDeployment.resyncAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.earProjectBuildAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:217)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    Regards,
    Joakim T

    #271090

    Riyad Kalla
    Member

    Joakim,
    Because you checked one project out ontop of another, try and go to the EA project, right click on it and go down to MyEclipse and try and remove the web project module, hit OK, now go back and try and re-add the module.

    #271130

    jaybis
    Member

    When I select “pafeui” in the “Module Projects” window, I get an empty “error popup window”, and after I have removed it I get another empty popup window. The .metadata/.log looks like this after this:

    !ENTRY org.eclipse.jface 4 2 2007-06-05 12:06:48.355
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.j2eedt.ui.dialog.ModuleProjectManagerDialog.updateContextRootsExcluding(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.dialog.ModuleProjectManagerDialog.updateSelectedProject(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.dialog.ModuleProjectManagerDialog$2.selectionChanged(Unknown Source)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1976)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1128)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1154)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:213)
    at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:207)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:374)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.genuitec.eclipse.j2eedt.ui.action.ModuleProjectMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:244)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    !ENTRY org.eclipse.wst.internet.cache 1 0 2007-06-05 12:06:54.652
    !MESSAGE wtp.autotest.noninteractive is set. Licenses dialogs will not be displayed.

    !ENTRY org.eclipse.jface 4 2 2007-06-05 12:07:15.262
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
    !STACK 0
    java.lang.IllegalArgumentException: Argument cannot be null
    at org.eclipse.swt.SWT.error(SWT.java:3358)
    at org.eclipse.swt.SWT.error(SWT.java:3297)
    at org.eclipse.swt.SWT.error(SWT.java:3268)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:435)
    at org.eclipse.swt.widgets.Text.setText(Text.java:1649)
    at com.genuitec.eclipse.j2eedt.ui.wizard.AddEARModuleWizardPage.updateDetailsPanel(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.wizard.AddEARModuleWizardPage$2.selectionChanged(Unknown Source)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1976)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1128)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1154)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:213)
    at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:207)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:374)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.genuitec.eclipse.j2eedt.ui.dialog.ModuleProjectManagerDialog.ÄÂ�(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.dialog.ModuleProjectManagerDialog.access$0(Unknown Source)
    at com.genuitec.eclipse.j2eedt.ui.dialog.ModuleProjectManagerDialog$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.genuitec.eclipse.j2eedt.ui.action.ModuleProjectMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:244)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    #271136

    Riyad Kalla
    Member

    Sounds like something went wrong with the web project.

    Can you check the .project file and tell me all the Natures listed in it? Also can you open your project properties for the Web File, and go to MyEclipse > Web and make sure that both text boxes have values filled in for them?

    #271139

    jaybis
    Member

    Hi!

    The file .project for the Web Project “pafeui” looks like this:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <projectDescription>
    <name>pafeui</name>
    <comment></comment>
    <projects>
    <project>paf_static</project>
    <project>pokernetwork</project>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.jdt.core.javabuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.wst.validation.validationbuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
    <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
    </projectDescription>

    Can you describe more exact what you mean with “Also can you open your project properties for the Web File, and go to MyEclipse > Web and make sure that both text boxes have values filled in for them”.

    #271141

    Riyad Kalla
    Member

    Sorry about that, can you right-click on your “pafeui” project, go down to Properties, then go to MyEclipse > Web, and you should see 2 text fields. What are the values in each one?

    #271145

    jaybis
    Member

    Web-root folder: WebRoot
    Web Context-root: /

    #271149

    Riyad Kalla
    Member

    Shoot those look ok… so do your project settings.

    Try this:
    1) Remove the Web project module from the EAR and hit OK
    2) Now rebuild/clean both projects
    3) Restart MyEclipse
    3) Now edit the EAR’s modules again and try and re-add the Web Module.

    #271221

    jaybis
    Member

    That didn’t help. I get the same beaviour (with an “empty popup window”)I have tried both with version 5.1.1 and 5.5 M2. One strange thing is that I now can’t see any rows in the .metadata/.log file. The only diffenence from tuesday is that I have rebooted my computer.

    #271223

    beming
    Member

    I meet the error too:

    !ENTRY org.eclipse.ui 4 4 2007-06-07 16:21:29.284
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2007-06-07 16:21:29.284
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.isSourceFolder(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.redeploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.redeployProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.Ä…(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$3(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$6.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.ManageDeploymentsAction.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:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    help~! the 5.5.1GA + EC3.2.2 + wtp1.5.4

    #271224

    beming
    Member

    Ok, I fixed now:

    I delete the project, and new an new Web Project, copy all the src and file, refresh, add web capabilities and else what I need capabilities, and redeploy…
    the problem fixed!!

    #271232

    Loyal Water
    Member

    Glad to know you fixed it. Thanks for letting us know.

    #271235

    Riyad Kalla
    Member

    jaybis,
    As extreme as it seems, does aming’s solution work for you?

    #271265

    jaybis
    Member

    Actually, I first thought it had something to do with that I have worked in the same workspace with both MyEclipse 5.1.1 and MyEclipse 5.5 M2. I experienced such a problem when we upgraded from Eclipse WTP 3.1 to 3.2. Then we neded to create a new workspace to get everything to work. The project(s) in my new workspace is now working! So maybe the lesson to learn from this is that you should not import a project from a CVS-branch over a project that was checked out from HEAD. I have also changed the name of the project to pafeui_branch, seems to be a better strategy.

    Regards,
    Joakim Tengstrand

    #271280

    Riyad Kalla
    Member

    Joakim,
    I’m glad to hear things are working better now.

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: [Closed] NullPointerException when deploying EA Project

You must be logged in to post in the forum log in