- This topic has 11 replies, 3 voices, and was last updated 18 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
peiMemberHi,
I have problems deploying my project, in Eclipse’s “.log” I see a NullPointerException:
!ENTRY org.eclipse.ui 4 0 Nov 24, 2004 15:04:31.531 !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.WebDeployment.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.Ä…(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$2(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$5.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431) at org.eclipse.jface.window.Window.runEventLoop(Window.java:668) at org.eclipse.jface.window.Window.open(Window.java:648) at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:266) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:206) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866) at org.eclipse.jface.action.ActionContributionItem$8.handleEvent(ActionContributionItem.java:824) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:183) at org.eclipse.core.launcher.Main.run(Main.java:644)
Is that Exception thrown because I use a linked Folder as WebRoot?
my environment:
OS: Win 2000
JDK:1.4.1
IDE: Eclipse 3.0 (new install) and Workbench 3.8.2 (new install)Thanks
Peter
Riyad KallaMemberPeter,
1) Do you have a /src folder setup in your project to store Java source code? Does the directory exist?2) I’m not sure if linked resources would break this, I’ll ask.
peiMemberRiyad,
1) Yes I have a /src folder setup, it also refers to a linked folder
2) Ok, thanks for asking.
Riyad KallaMemberPeter,
I wasn’t able to reproduce this, see my screenshot below (this took a while to setup, I was assuming it would die actually)Let me know if I missed a detail of your setup and I will try and modify it to recreate it.
peiMemberHi Riyad,
I see one difference. In my setup /src and webroot folders aren´t linked to other projects, but to a variable. They are created by “New Folder” -> “Advanced” -> “Link to folder in the file system” -> “variables”.This could result in the exception.
Thanks again.
Riyad KallaMemberAhh yea that could… is this level of indireaction really necessary in your setup? It seems abnormally round-about and I don’t think we test a situation like this.
I don’t mind filing bugs and getting them fixed, but I don’t know that they would make it into 3.8.3 and I don’t want you to keep running into problems; that’s why I ask.
peiMemberUsing a variable helps to switch quickly (one point of change) between different versions (different folders, for example between bugfix- and integration-branches) without the need of several project setups.
Or how would MyEclipse recommend that setup?
Riyad KallaMemberPeter,
I changed my setup to use variables instead of straight linked folders, and it still worked exactly as I posted above… can you (using code-blocks to keep formatted) give me your project outline below so I can see if that might be the problem? Also try and denote when resources are linked or not.Use the “post reply” button below to get a better editor screen to post to.
alex.aalto@telus.comMemberI’m now having this same problem for the third time over the last six months. The last two times I’ve reinstalled MyEclipse and had to restart Eclipse a few times before I can start redeploying my projects again. I’m running Linux Fedora Core 3, Elipse 3.1.1 (Build id: M20050929-0840) and have just installed the latest 4.1.1 GA (Build id: 20060228-4.1.1-GA). The weirdest thing is that I get an empty “Error” dialog box when I try adding a new deployment. At that point, nothing appears in the .log file. It does add a deployment in the “Deployments” box. If I select this new deployment and click the “Redeploy” button, then I get (in the .log file):
!ENTRY org.eclipse.ui 4 4 2006-03-10 13:09:15.838
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2006-03-10 13:09:15.840
!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)
…etc…I’ve checked, and the project src folder and the MyEclipse settings are the same.
Any help or insight would be appreciated!
Cheers,
a
Riyad KallaMemberAlex,
If you open your web projects properties and go to MyEclipse-Web, are either of the two text boxes empty? They shouldn’t be.
alex.aalto@telus.comMember…indeed – they are both populated. “Web-root folder” is set to “”/WebRoot” (which is wrong and seems to be read only?!?) and “Web Context-root:” is set to “/”. This particular project I’m working has a web-root of “/web” – which I specified when re-adding the “WebProject Capabilities” from the “MyEclipse” drop down menu. I guessing this is causing the problem as MyEclipse can’t find web.xml to properly deploy. …but how do I change this??? ….oh – I see. If I close and restart eclipse, it’s now properly set. …and hey look – it’s correctly deploying. I can work again!
I’m guessing that I checked out a CVS project while it had “/WebRoot” as the web-root and then I changed the global preferences to use “/web” after this assuming they would magically apply to my project. Re-adding the “WebProject Capabilities” with the correct web-root and restarting eclipse seems to have fixed things.
MyEclipse is a fantastic product. I hope this helps in fixing the empty error dialog box and the NullPointer problem.
Cheers,
A
Riyad KallaMemberVery strange, yes it’s most likely that came from CVS. I’ll file this type of behavior for investigation later.
-
AuthorPosts