- This topic has 6 replies, 3 voices, and was last updated 20 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
wdscofieldMember– System Setup ——————————-
Operating System and version: Window 2000 5.0.2195 sp4
Eclipse version: 3.1.0
Eclipse build id: 200408122000
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 3
MyEclipse version: 3.8.1 build 200408201200-3.8.1
Eclipse JDK version: 1.4.2_04
Application Server JDK version: 1.4.2_04
Are there any exceptions in the Eclipse log file? yes– Message Body ——————————-
I’m getting a “unable to create part: ” msgbox when trying to open a .jsp file. I’ve cleanly installed the latest versions of eclipse and ME, including the third quick fix for 3.8.1 followed by a -clean launch. My jsp’s reside in a WebRoot directory separate from my src directory. The error log follows. Any help would be appreciated.Error:
Error Sep 02, 2004 11:04:43.790 Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
An error has occurred when initializing the input for the the editor’s source page.
at com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.createPages(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:191)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:148)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:144)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:218)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:993)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:975)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1097)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:352)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:113)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAreaHelper.java:281)
at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:790)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:776)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:888)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:650)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:635)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2195)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2187)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2172)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2168)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2153)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:276)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:268)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:176)
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:1435)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
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)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Riyad KallaMemberAre you *sure* your project is a web project? If you right click on the project properties do you have a “MyEclipse-Web” section for this project? If not, then please add your webroot dir to your source directories in your Java Build Path settings.
wdscofieldMemberI’m sorry if I implied that this was a ME web project. It is not! It’s a straight java project with separate source and webroot folders. This has worked fine for me in the past. I’m seeing a lot of other similar posts subsequent to mine today. I’m experiencing the exact same behavior. I can open jsp’s that don’t have includes, but not ones that do. Those includes exist in my src folder, not my WebRoot folder. Should I still add the WebRoot directory to my source directory in the Java Build Path setting?
Thanks for getting back to me. The rest of my experience with the newest version of ME is great. Keep up the good work! Bill
Riyad KallaMemberBill,
I’m sorry if I implied that this was a ME web project. It is not! It’s a straight java project with separate source and webroot folders. This has worked fine for me in the past.
Ok, no you didn’t I just assumed it. You are right that there were some growing pains with the plain java projects and ME in this 3.8 release, but for most people the key seemed to be adding the WebRoot dir (or whever the web pages live) to your sources paths so the editor can find the resources correctly.
Those includes exist in my src folder, not my WebRoot folder. Should I still add the WebRoot directory to my source directory in the Java Build Path setting?
Hmm… try and add the webroot dir, if it doesn’t help, can you outline your project structure for me and tell me where certain files are? Also if you have a specific error handy, you could explain that setup… something like “I get a ‘cannot find XYZ’ and the page is HERE and the XYZ file is HERE” so I can get an idea of what is happening and reproduce the exact setup locally then attach the project to a bug report.
wdscofieldMemberRiyad,
I’ve been playing around a bit this morning and have determined that it is indeed the include statement in my jsp that is causing the problem. When I comment out the include in a plain old text editor and save it, I can open the jsp with the ME jsp editor without a problem. As soon as I uncomment the include while in the ME jsp editor, things start to go haywire. I get the message “The command for the key you pressed failed”. So, I go back to the text editor, comment out the include statement, save the change, go back into the ME jsp editor and all is fine again. I also misstated that my include file lives outside of my WebRoot folder in my src folder. This is not true. The include is referencing a file in my WebRoot directory. My java project name is iEnrollment. It contains a src folder(for java source code) and a WebRoot folder(for web pages). My jsp name is ContactUs.jsp. It lives in WebRoot/enrolleePages. The include file name is iEnrollAuthenticate.inc. It lives in WebRoot/inc. The include statement in the jsp is <%include file=”/inc/iEnrollAuthenticate.inc” %>. It’s a pretty vanilla setup. Please let me know if I can provide any additional information. Thanks, Bill
P.S. I’ve just recreated the above steps for fun and now even commenting out the include doesn’t fix the problem! When I comment out the include line using the text editor and try to save, I get an error “Update JSP index (error: an internal error occured during ‘Update JSP index'”. The dump is as follows:
An internal error occurred during: “Update JSP Index”.
java.lang.NullPointerException
com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processInclude(Unknown Source)
com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.processInclude(Unknown Source)
com.ibm.sse.model.jsp.contentmodel.tld.TLDCMDocumentManager$DirectiveStructuredDocumentRegionHandler.nodeParsed(Unknown Source)
com.ibm.sse.model.xml.internal.parser.XMLSourceParser.fireNodeParsed(Unknown Source)
com.ibm.sse.model.jsp.parser.JSPSourceParser.parseNodes(Unknown Source)
com.ibm.sse.model.xml.internal.parser.XMLSourceParser.getDocumentRegions(Unknown Source)
com.ibm.sse.model.internal.text.BasicStructuredDocument.setText(Unknown Source)
com.ibm.sse.model.internal.text.BasicStructuredDocument.set(Unknown Source)
com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.setDocument(Unknown Source)
com.ibm.sse.model.jsp.modelquery.ModelQueryAdapterFactoryForJSP$TaglibSupportModelLifecycleListener.processPostModelEvent(Unknown Source)
com.ibm.sse.model.LifecycleNotificationManager.signalLifecycleEvent(Unknown Source)
com.ibm.sse.model.AbstractStructuredModel.signalLifecycleEvent(Unknown Source)
com.ibm.sse.model.AbstractStructuredModel.setStructuredDocument(Unknown Source)
com.ibm.sse.model.xml.internal.document.XMLModelImpl.setStructuredDocument(Unknown Source)
com.ibm.sse.model.AbstractModelLoader.load(Unknown Source)
com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
com.ibm.sse.model.ModelManagerImpl._commonGetModel(Unknown Source)
com.ibm.sse.model.ModelManagerImpl.getModelForRead(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPSearchDocument.createCompilationUnit(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPSearchDocument.<init>(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPSearchSupport.addJspFile(Unknown Source)
com.ibm.sse.model.jsp.internal.java.search.JSPIndexManager$2.visit(Unknown Source)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
com.ibm.sse.model.jsp.internal.java.search.JSPIndexManager$1.run(Unknown Source)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)Something really seems to be hosed up here?! I’m giving up for now.
astoneMemberThanks so much for the MyEclipse| AddWebProjectCapabillites information. That fixed my issue. Much appreciated!
Riyad KallaMemberGlad it helped!
-
AuthorPosts