facebook

No error markings in JSP’s [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 IDE
  2.  > 
  3. General Development
Viewing 15 posts - 1 through 15 (of 37 total)
  • Author
    Posts
  • #207091 Reply

    Hi,

    I’ve been bitten a few times by typos in my JSPs that aren’t flagged before I deploy them. Why is that? Which part of my setup is wrong? I’ve set compile JSP’s to true but if I enter some Java code with errors, I don’t see the error until I deploy.

    Thanks,

    L

    #207095

    Riyad Kalla
    Member

    Are you sure your editing your JSP pages with our editor? If you right click on the JSP page, go to “Open With…” and select “MyEclipse JSP Editor” and then open the file, edit it, add some errors and hit save, do you see markers?

    Also what kind of errors are you talking about? Any kind of errors that would cause a compiler-problem (for example, unbalanced JSP expressions) should/will be marked. But tag typos and such are not marked (e.g. using “fnot” instead of “font”)

    #207097

    Yes, I’m using the correct editor. The type of error that doesn’t show up is something like this:

    <%
    for (int i = 0; i 10; i++) {
    doSomething();
    }
    %>

    Notice that I types “i 10” instead of “i < 10”.

    I’m using 3.0M8, on Linux, if that has an impact.

    L

    #207099

    Riyad Kalla
    Member

    I am unable to produce this problem, make sure you have the following preference checked:
    Window > Preferences > Workbench > “Perform Build Automatically on Resource Modification” (CHECKED)

    Without this, the file is not compiled when you save it, which would cause the error to be missed.

    #207101

    I noticed a couple of other things that may be related:

    – If I rename a constant or a method in a Java class, the corresponding Java code in the JSPs isn’t automatically updated

    – If I have a JSP opened in an editor, then I rename the JSP, the opened version isn’t renamed. I have to close it and open the renamed version.

    #207102

    Yes, I have that option set also. Is it because I’m still on the trial version?

    L

    #207104

    Scott Anderson
    Participant

    – If I rename a constant or a method in a Java class, the corresponding Java code in the JSPs isn’t automatically updated

    – If I have a JSP opened in an editor, then I rename the JSP, the opened version isn’t renamed. I have to close it and open the renamed version.

    These are both known issues and open enhancements at this time.

    Yes, I have that option set also. Is it because I’m still on the trial version?

    No, there is no differnece in functionality between the trial and subscription versions.

    #207111

    Riyad Kalla
    Member

    lduperval,
    I should have asked this at the start, but please post all your vitals that we ask for in the posting guidelines here:
    http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=394

    also note that specific version numbers are important, so just “JDK 1.4” is not as helpful as say “JDK 1.4.2_03”

    #207128

    Ok, here is the info:

    I’m on Gentoo Linux. Since I install from source, it’s a guess as to the version number. 🙂

    I’m using 3.0M8: Version: 3.0.0
    Build id: 200403261517

    Eclipse was already installed when I added MyEclipse. There was no update since MyEclipseIDE was unstalled.

    Installed plugins:

    MockCreator 2.6.1
    Design Pattern Toolkit 1.4.1
    Umlet Plug-in 1.0.0
    Implementors plugin 0.0.12
    ObjectlearnGroup 3.0.0M8
    SolarEclipse 3.7.2 (I think that’s art of MyEclipseIDE)

    The only *.pde plugins are the 8 provided by Eclipse

    java version “1.4.2_04”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

    My server is launched (outside of Eclise) with the same JDK. I’m using Tomcat 5.0.19.

    My eclipse: Version: 3.7.2
    Build id: 200404091200-3.7.2GA

    I don’t see any particular error messages in the log file.

    I hope that helps.

    L

    #207130

    Riyad Kalla
    Member

    This is strange to say the least, everything sounds kosher with your setup (I am using Gentoo as well). If you have the time, we can try to do a completely fresh download/install of Eclipse 3.0M8 and MyEclipse 3.7.2 in another location (just temporarily) and start it up and see if you get error marking to atleast see if its possible that you are getting plugin conflict or might have a problem with stale workspace plugin info…

    Do you mind trying this?

    #207147

    I can try that. I know my workplace is fairly fresh. For some reason, I had to recreate it a few days ago, not sure why. But MEI was installed before that refresh.

    I’ll let you know once I have a chance to do so.

    L

    #207150

    Riyad Kalla
    Member

    Thanks for giving it a try, this really is strange and I’m sorry I don’t have a better/more clear cut answer for you.

    Also, 2.8 Beta 1 was released, if you are feeling adventerous and don’t mind a few bugs, you could always try a fresh install with that and see if it helps.

    #207258

    Well, I saw your answer after I did my overhaul. Here’s what I did:

    – Removed previous version of eclipse
    – Removed previous workspace
    – reinstalled eclipse
    – configured MyEclipseIDE
    – started eclipse
    – ijmported my existing project
    – switched to MyEclippse view
    – tried to open a JSP file and got this on the console:

    
    Unable to find view label: org.eclipse.debug.ui.ConsoleView
    Could not create view: com.genuitec.eclipse.core.browserview.perspectiveextension
    

    The log looks like this:

    
    !SESSION May 20, 2004 08:45:36.117 ---------------------------------------------
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    !ENTRY org.eclipse.osgi May 20, 2004 08:45:36.119
    !MESSAGE Bundle reference:file:/usr/local/eclipse/plugins/org.eclipse.jdt.debug_3.0.0/ [29] was not resolved
    !ENTRY org.eclipse.osgi May 20, 2004 08:45:36.120
    !MESSAGE Bundle reference:file:/usr/local/eclipse/plugins/org.eclipse.debug.ui_3.0.0/ [57] was not resolved
    !ENTRY org.eclipse.ui 4 4 May 20, 2004 08:48:28.674
    !MESSAGE Unable to find view label: org.eclipse.debug.ui.ConsoleView
    !ENTRY org.eclipse.ui 4 4 May 20, 2004 08:48:28.677
    !MESSAGE Could not create view: com.genuitec.eclipse.core.browserview.perspectiveextension
    !ENTRY org.eclipse.core.runtime 4 2 May 20, 2004 08:48:53.384
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 0
    com.genuitec.eclipse.core.T: Invalid thread state detected on write.
        at com.genuitec.eclipse.core.O.ă(Unknown Source)
        at com.genuitec.eclipse.core.O.Ą(Unknown Source)
        at com.genuitec.eclipse.core.O.�(Unknown Source)
        at com.genuitec.eclipse.core.M.�(Unknown Source)
        at com.genuitec.eclipse.core.M.�(Unknown Source)
        at com.genuitec.eclipse.core.ViperCore.Ĕ(Unknown Source)
        at com.genuitec.eclipse.core.ViperCore.ē(Unknown Source)
        at de.bb.bje.eclipse.editors.BJspEditor.init(Unknown Source)
        at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:117)
        at de.bb.bje.eclipse.editors.JspMultiPageEditor.Ă(Unknown Source)
        at de.bb.bje.eclipse.editors.JspMultiPageEditor.createPages(Unknown Source)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:185)
        at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:94)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:610)
        at org.eclipse.core.runtime.Platform.run(Platform.java:521)
        at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:90)
        at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:154)
        at org.eclipse.ui.internal.EditorWorkbook.showPart(EditorWorkbook.java:470)
        at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:292)
        at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:56)
        at org.eclipse.ui.internal.EditorPresentation.openEditor(EditorPresentation.java:225)
        at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:550)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
        at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:539)
        at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:635)
        at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:438)
        at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:426)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2129)
        at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2072)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2059)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2054)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:265)
        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:158)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:147)
        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:327)
        at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:302)
        at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:406)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:610)
        at org.eclipse.core.runtime.Platform.run(Platform.java:521)
        at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:404)
        at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:614)
        at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:703)
        at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:209)
        at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:204)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:233)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:939)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1953)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1726)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1562)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
        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:267)
        at org.eclipse.core.launcher.Main.run(Main.java:692)
        at org.eclipse.core.launcher.Main.main(Main.java:676)
    

    I’m not sure why this happened.

    L

    #207260

    Wait! I tried reloading the file and it worked. The file I’m using has some compilation errors, but MEI is still not showing them. The problem I’m having is that there are unbalanced braces in my Java code. I’m not sure if the editor can find those or not.

    L

    #207261

    Riyad Kalla
    Member

    Hey that is good news!

    Yes when you save the file it will find unbalanced braces because the JSP page is actually compiled, so any compiler errors that Tomcat will find, we will find.

Viewing 15 posts - 1 through 15 (of 37 total)
Reply To: No error markings in JSP’s [Closed]

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