facebook

Autocomplete in JSP Editor fails in linked folders

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #243961 Reply

    loomax
    Member

    I have a Eclipse Project with jsp pages with linked folders – autocompletion of the jsp editor doesn’t work

    To make a proof i created a project with two folders one of them linked to the filesystem

    when just creating a jsppage from the template autocompletion only works in the not linked folder

    <%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
    basePath.
    %>

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <base href=”<%=basePath%>”>

    <title>My JSP ‘MyJsp.jsp’ starting page</title>

    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”cache-control” content=”no-cache”>
    <meta http-equiv=”expires” content=”0″>
    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”This is my page”>

    <!–
    <link rel=”stylesheet” type=”text/css” href=”styles.css”>
    –>
    </head>

    <body>
    This is my JSP page. <br>
    </body>
    </html>

    #243962 Reply

    loomax
    Member

    This problem was also mentioned here:

    http://myeclipseide.com/PNphpBB2+file-viewtopic-t-10137-highlight-linked.html

    I assume that it’s a problem related to my config — can anyone do a short test on a Eclipse 3.1.1 amd MyEclipse 4.1M2 Environment
    and give me a post here

    #243964 Reply

    loomax
    Member

    It’s nor a problem of my config — I took the downloads of Eclips 3.1.1 and 4.1 M2 and run this new installed system — same result

    No codecompletion is done in the editor – pressing ctrl+1 i get a MessageWindow showing a NullpointerException

    Here’s the content of my logfile:

    !SESSION 2006-01-04 12:56:05.734 ———————————————–
    eclipse.buildId=M20050929-0840
    java.version=1.5.0_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.328
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\css_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.718
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\forms_lists_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.828
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\htmlform_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.875
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\html_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:56.953
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\javascript_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.00
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_f_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.62
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_h_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.109
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_bean_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.171
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_html_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.218
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_logic_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 0 2006-01-04 12:56:57.250
    !MESSAGE Installed snippet library: c:\eclipse3\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_tiles_snippets.xml

    !ENTRY com.genuitec.eclipse.core 1 0 2006-01-04 12:58:16.671
    !MESSAGE Unable to locate .myeclipse.properties file

    !ENTRY org.eclipse.ui 4 4 2006-01-04 13:01:09.140
    !MESSAGE “Quick Fix” did not complete normally. Please see the log for more information.

    !ENTRY org.eclipse.ui 4 0 2006-01-04 13:01:09.140
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor.hasCorrections(QuickFixProcessor.java:177)
    at com.ibm.sse.editor.jsp.internal.correction.CorrectionProcessorJSP.addQuickFixProposals(CorrectionProcessorJSP.java:87)
    at com.ibm.sse.editor.internal.correction.StructuredCorrectionProcessor.computeCompletionProposals(StructuredCorrectionProcessor.java:44)
    at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:301)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$13(CompletionProposalPopup.java:298)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:261)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:256)
    at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1352)
    at com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:569)
    at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
    at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
    at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
    at org.eclipse.core.commands.Command.execute(Command.java:311)
    at org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:550)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:493)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:117)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:917)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
    at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1475)
    at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3348)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3067)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    #243965 Reply

    loomax
    Member

    public QuickFixProcessor()
    {
    }

    public boolean hasCorrections(ICompilationUnit cu, int problemId)
    {
    /* 37*/ switch(problemId)
    {
    /* 175*/ case -1610612266:
    /* 175*/ case -1610612265:
    /* 175*/ case -1610612263:
    .
    .
    .
    }
    /* 177*/ if(JavaModelUtil.is50OrHigher(cu.getJavaProject()))
    /* 178*/ return ModifierCorrectionSubProcessor.hasSuppressWarningsProposal(problemId);
    /* 180*/ else
    /* 180*/ return false;
    }

    The problem seems to be that cu is coming as Null in line 175

    #244036 Reply

    loomax
    Member

    Can anyone reproduce this behavior or post that it works on his system ( Eclipse 3.1.1 and Myeclipse 4.1 M2 )

    #244154 Reply

    loomax
    Member

    Please help me – i’m still stuck

    #244183 Reply

    Riyad Kalla
    Member

    Loomax this does seem to be a bug, thank you for bringing it to our attention.

    #244480 Reply

    fuzzyslug
    Participant

    Does anyone know how far you need to roll back to get things working again? I really miss this feature.

    #244796 Reply

    loomax
    Member

    Just to motivate you — I’ll buy another two licences if you fix this in the next release

    #244802 Reply

    Riyad Kalla
    Member

    Unfortunately this wasn’t directly addressed in 4.1, I will make a note to see if it can make it into a followup bugfix release.

    #244849 Reply

    loomax
    Member

    Thank you for your help — i don’t know whether myeclipse does so but if you need a beta tester as soon as the bugfix is done i’d like to test it.

    #246731 Reply

    loomax
    Member

    Will this be solved in 4.1.1 ?

    #246735 Reply

    Riyad Kalla
    Member

    It has not been targetted for 4.1.1 at this time, but I will ask the developers if there is time.

    #247517 Reply

    njendrusch
    Member

    I’ve same trouble — is the any solution in the pipeline — I think this was korking in previous versions

    #247520 Reply

    Riyad Kalla
    Member

    This was not fixed in 4.1.1 AFAIK. Sorry guys. This should be fixed in 5.0 though.

Viewing 15 posts - 1 through 15 (of 25 total)
Reply To: Autocomplete in JSP Editor fails in linked folders

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