- This topic has 9 replies, 3 voices, and was last updated 20 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
david32MemberHi,
I zipped my workspace to back it up and since then when I save a JSP page I get the above error.The details give the following
Errors during build. java.lang.NullPointerException encountered while running com.genuitec.eclipse.j2eedt.core.builder.J2EEProjectValidator.
The tasks list gives the following error
Exception during execution: Errors during build. - org.eclipse.core.internal.resources.ResourceException: Errors during build. at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:216) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:884) at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1156) at de.bb.bje.eclipse.support.JspCompiler.getWorkDirectory(Unknown Source) at de.bb.bje.eclipse.IncrementalJspBuilder.compile(Unknown Source) at de.bb.bje.eclipse.IncrementalJspBuilder.visit(Unknown Source) at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106) at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:50) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:76) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:80) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:119) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:82) at de.bb.bje.eclipse.IncrementalJspBuilder.buildProject(Unknown Source) at de.bb.bje.eclipse.action.RecompileJspsAction.basicRun(Unknown Source) at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source) at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583)
and the log contains the error
!ENTRY org.eclipse.core.resources 4 2 Dec 11, 2003 11:57:15.265 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.genuitec.eclipse.core.A.B.a(Unknown Source) at com.genuitec.eclipse.core.A.B.a(Unknown Source) at com.genuitec.eclipse.j2eedt.core.J2EEProject.A(Unknown Source) at com.genuitec.eclipse.j2eedt.core.J2EEProject.getProject(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.J2EEProjectValidator.a(Unknown Source) at com.genuitec.eclipse.j2eedt.core.builder.J2EEProjectValidator.build(Unknown Source) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:243) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:212) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:884) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1600) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(AbstractTextEditor.java:3033) at org.eclipse.ui.texteditor.AbstractTextEditor.doSave(AbstractTextEditor.java:2836) at org.eclipse.ui.editors.text.TextEditor.doSave(TextEditor.java:244) at de.bb.bje.eclipse.editors.JspMultiPageEditor.doSave(Unknown Source) at org.eclipse.ui.internal.EditorManager$11.run(EditorManager.java:1090) at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:960) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252) at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:431) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:428) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1385) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager.java:966) at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1095) at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2353) at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2365) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:57) at org.eclipse.jface.action.Action.runWithEvent(Action.java:842) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583)
Any idea whats done wrong? The zipping didn’t move or delete anything
I’m using eclipse Version: 2.1.2
Build id: 200311030802and MyEclipse
Version: 2.6.4
Build id: 200311041200
support-michaelKeymasterDid you unzip this workspace or do anything that might affect the workspace? I’m not sure what happened. Does your project still contain its .mymetadata file and the <project>/myeclipse folder?
You might try reinstalling MyEclipse over the top of your current installation and see if it fixes the problem.
Michael
MyEclipse Support
david32MemberNo, I just zipped the folder and then I backup that zip file. So no files or folders are removed. If I go through each of the jsps and modify and save them, I’ll get the error each time but after doing them all it will disappear.
I take it the errors themselves don’t mean anything to you then?
Riyad KallaMemberDavid I *think* I see behavior like this all the time with MyEclipse… it happens almost always when:
I’m working on a JSP page that is used as an include (But is named .jsp NOT .jspf). The first few compiles/changes will work fine. Eventually if I work on the page long enough or change enough code, it starts reporting the class JspFactory error (about 8 of them, they almost always mean its a busted JSP page). Anyway if I rebuild my entire project or right click on the project root and “Rebuild all JSPs” the errors will go away.
While this is mildly annoying and definately misleading, I was sort of hoping that its a synchronization issue that is fixed with the 2.7 release.
So I’m wondering if you are seeing this problem too with pages that are includes themselves? Or are these straight normal JSPs?
david32MemberNope normal jsp files, and refreshing and compiling seems to make the problem worse.
The only thing I can think of is WinZip changes the last accessed date on the files, but surely this wouldn’t cause such a large problem?
support-michaelKeymasterThe error messages do not correlate to something that a zip would cause.
More questions:
0) does your project reside in side the workspace file hierarchy or outside it?
1) what platform are you on (Wintel, Linux, …)?
2) are you using linked resource in your application?
3) are you using any 3rd party plugins?Michael
MyEclipse Support
david32MemberHi,
0) inside the workspace
1) Windows 2000 on Intel
2) Nope, none of that
3) Nope, just Eclipse and myEclipseCould it be the last accessed date being changed? Is that used by some class? Not sure if WinZip changes that but its the only thing I can think WinZip would do. I.e. read all the files.
Dave
support-michaelKeymasterTry refreshing one of your problematic projects and see if the problem still persists.
Michael
david32MemberI’ll tried that, and recompiling all the jsps, the only way around it is to edit and resave each jsp page. It just seems a bit strange having to do that each time I take a copy of my workspace!
Dave
Riyad KallaMemberWinZip *shouldn’t* be effecting the source files that it is creating its own zip file out of at all, that is the even weirder part… Just for my own clarification:
1) You have errors
2) You edit and resave ALL the pages
3) All errors are gone, you are happy
4) You ZIP UP all of the files into a zip file that you can backup
5) Now all the sudden out of nowhere, if you refresh and recompile there are errors everywhere?This is indeed strange… BUT if Eclipse does use the file timestamp to determine if it needs to recompiled and that is getting mucked with, I suppose I could see necessary pages not getting compiled == problems for other pages that rely on it… but as you mentioned none of these are includes, so they should all be standalone.
Is this a clean install of Eclipse/MyEclipse? Did you update it? Do you run compression on that drive from within windows? I’m wondering if that could change the last changed dates… any virus scanners or system utilities that could aggrevate this?
-
AuthorPosts