For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 14 replies, 4 voices, and was last updated 18 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
jaybisMemberI 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-Milestone2My ../.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 TJune 4, 2007 at 12:14 pm #271090
Riyad KallaMemberJoakim,
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.June 5, 2007 at 5:15 am #271130
jaybisMemberWhen 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)June 5, 2007 at 7:55 am #271136
Riyad KallaMemberSounds 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?
June 5, 2007 at 9:10 am #271139
jaybisMemberHi!
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”.
June 5, 2007 at 9:15 am #271141
Riyad KallaMemberSorry 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?
June 5, 2007 at 9:31 am #271145
jaybisMemberWeb-root folder: WebRoot
Web Context-root: /June 5, 2007 at 9:53 am #271149
Riyad KallaMemberShoot 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.June 7, 2007 at 1:46 am #271221
jaybisMemberThat 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.
June 7, 2007 at 3:25 am #271223
bemingMemberI 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
June 7, 2007 at 3:57 am #271224
bemingMemberOk, 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!!June 7, 2007 at 8:21 am #271232
Loyal WaterMemberGlad to know you fixed it. Thanks for letting us know.
June 7, 2007 at 9:52 am #271235
Riyad KallaMemberjaybis,
As extreme as it seems, does aming’s solution work for you?June 8, 2007 at 12:57 am #271265
jaybisMemberActually, 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 TengstrandJune 8, 2007 at 7:58 am #271280
Riyad KallaMemberJoakim,
I’m glad to hear things are working better now. -
AuthorPosts
