facebook

JSP Editor: unable to create part [Closed]

💡
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 18 total)
  • Author
    Posts
  • #218602 Reply

    When I try to open a jsp page with the jsp editor I get the following error:
    ‘unable to create part’

    and the following error in the event log:
    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:187)
    at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:133)
    at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:205)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:939)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)
    at org.eclipse.ui.internal.EditorStack.setSelection(EditorStack.java:196)
    at org.eclipse.ui.internal.EditorStack.setVisibleEditor(EditorStack.java:200)
    at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:338)
    at org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAreaHelper.java:268)
    at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:694)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:683)
    at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:779)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:582)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:570)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2244)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2177)
    at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2169)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2156)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2151)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:299)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:137)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:110)
    at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:164)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:150)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:212)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:188)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:289)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:490)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:429)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:427)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:635)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:731)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:211)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:206)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:238)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)

    The file opens correctly using the eclipse text editor. All other pages open successfully with the jsp editor.

    #218604

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #218826

    – What operating system and version are you running?
    Windows 3003 server

    – What Eclipse version and build id are you using?
    Version: 3.0.1
    Build id: 200409161125

    – Was Eclipse freshly installed for MyEclipse?
    No

    – If not, was it upgraded to its current version using the update manager?
    Yes

    – Are any other external plugins installed?
    yes

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    8 (I have the Eclipse SDK Installed)

    – What MyEclipse version are you using?
    Version: 3.8.2
    Build id: 200409171200-3.8.2

    – What JDK version are you using to run Eclipse?
    Sun Java 2 5.0 JRE

    – What JDK version are you using to launch your application server?
    Sun Java 2 sdk 1.4.2_02

    – What steps did you take that resulted in the issue?
    I opened a jsp file

    – What application server are you using?
    JBoss 3.2.3

    – Are there any exceptions in the Eclipse log file?
    Yes I reported them in my previous message.

    I think it would be better to just send you the jsp page.

    #218843

    Riyad Kalla
    Member
    #218849

    Patryn
    Member

    Nice linklist, nearly all of them have unresolved problems described (first 6 links), someone triggered this include-stuff good down, and then there was no answer on that point (here we have that include-problem too, i wrote allready, includes are quite buggy).
    In 4 or 5 from them is never said, the people would not have web app caps added, i know: i have, and a lot of collegues have, yet they get often cannot create part.

    Good you want to concentrate on new stuff for marketing reasons when fundamental jsp dosnt work…so you will keep the new won customers for sure 😉


    André

    #218851

    Scott Anderson
    Participant

    Andre,

    With MyEclipse 3.8.2 and the 2nd quickfix applied there should now be no errors of this type. Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #218852

    Riyad Kalla
    Member

    pkorros,
    Andre’s post actually just triggered my memory… this “Cannot create part” problem is typically related to people trying to edit their JSP pages and such in normal Java Projects without adding Web Capabilities to it… if you *need* to keep your project as a normal Java Project, we do try and support it, but your project has to be in a very strict format so the editors can all find everything… in that your webroot must be your project root. If you choose to add web capabilities, you can layout your project pretty flexibly.

    Andre the snide remark is far from helpful; the MyEclipse team cannot remember the last time we didn’t work through a weekend to make this product stable and robust for ALL our users for $30. In every one of the threads posted above the problem was solved for the user or the user did not post a followup response. If you are continuing to have problems then we will work with you as we do all of our users.

    #218863

    Scott Anderson
    Participant

    this “Cannot create part” problem is typically related to people trying to edit their JSP pages and such in normal Java Projects without adding Web Capabilities to it.

    Just for clarificaiton, this problem was resolved in the latest version of the product, so should no longer occur for installations that are completely up to date.

    #218914

    My project is a web project. It has many jsp pages in it and only one gives me this error.

    #218916

    I sent a ziped to the support email that contains a web project that exposes the issue.

    It containes two pages.

    ProcessProcessing.jsp gives the unable to create part error
    ProcessProcessing2.jsp is the same pages fixed so that it doesn’t cause that error.

    #218932

    Riyad Kalla
    Member

    Thank you pkorros, we will look into it ASAP.

    #218936

    Riyad Kalla
    Member

    pkorros,
    I just checked with support about getting this project from them, and it turns out the dev got your sample project, confirmed AND fixed the bug by 8am this morning, how’s that for turn around time 😀

    #219054

    Patryn
    Member

    Maybe the problem is fixed than in the next version.
    The last fixes improved it, now only a few jsp pages have that problem, i know that you worked on this problem. (i send an example too month ago, but you couldnt reproduce)

    Anyway, there are problems with jsp:include, everyone using it knows that, the first link described it well.
    I have web project caps, had ever, webroot is correctly set, all is the way it should be…cannot create part and include-problems are existent, everyone who is working on a greater web project will find it.

    A minor bug: java.util.Vector creates the warning “import not needed”,
    if i delete it, then i get a bug, Vector unknown. May be, its the special Servlet-Container, that is using java.util.Vector.

    Have latest Versions, Eclipse 3.0.1, MyEclipse 3.8.2 + Quickfix like ever…no other choice for working with a just working myeclipse.


    André

    #219068

    Riyad Kalla
    Member

    Andre,

    Anyway, there are problems with jsp:include, everyone using it knows that, the first link described it well.

    Which ‘link’ are you talking about? I have checked this message and the text of all the links I gave above and not one of them even mentioned the phrase “jsp:include”. If you are infact having a problem with jsp:include please create a small sample project that exhibits the problem and send it to support@genuitec.com ATTN: Riyad and I will personally confirm and file any bugs I find. Please also include the Vector issue too.

    We are dedicated to making MyEclipse better all the time and fixing the bugs in it, but that does require help from time to time from our users. We aren’t Microsoft, we actually listen to you guys and work with you; so your help and patience is appreciated.

    #219091

    Patryn
    Member

    Have no time yet, but hopefully this week.
    The first link contains following text, we have similar problems, but i cant find a set of rules for the problem…its quite strange behaviour, showing bugs where are none, ignoring other bugs.
    My collegue had tried to isolate the bug with 3 files, including and changing and commenting out, had a lot of problems but couldnt say exactly, what is wrong…its all strange. Will aks him for an example.


    Riyad,

    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

Viewing 15 posts - 1 through 15 (of 18 total)
Reply To: JSP Editor: unable to create part [Closed]

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