facebook

4.0 GA – JSF editor – Source editing problem

💡
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 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #236855 Reply

    marcobarbi
    Member

    Hi,
    with MyEclipse 4.0GA I can correctly open the config.xml file by the JSF Editor but anytime I switch from the Design view to the Source view and I try to edit something an Exception is thrown:

    !ENTRY org.eclipse.ui 4 4 2005-09-08 10:53:47.234
    !MESSAGE “Delete” did not complete normally. Please see the log for more information.

    !ENTRY org.eclipse.ui 4 0 2005-09-08 10:53:47.234
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.documentChanged(AbstractReconciler.java:236)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument._fireDocumentChanged(BasicStructuredDocument.java:264)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:948)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:1694)
    at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:952)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
    at org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2688)
    at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5671)
    at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3521)
    at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:801)
    at com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:787)
    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.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    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)

    The effect of this Exception is the editor doesn’t work properly: cursor position not forwarded after key pressing, Enter key not recognised, …

    Any advise?
    Thanks

    #236861

    Brian Fernandes
    Moderator

    Marco,

    Could you tell us how you installed 4.0GA, was it a clean installation or did you upgrade? Answering all relevant questions in Posting Guidelines at the top of this thread will help.

    If you could install eclipse 3.1 final and MyEclipse 4.0GA in new locations, the problem should go away if this was a configuration issue. This is an issue which should be fixed in 4.0GA, so we hope it is.

    Could you give us an exact series of steps to reproduce the problem?
    Does it happen ever time you switch from Design to source even after restarting the editor or eclipse?
    Have you noticed this occurring in other editors (JSP or XML) as well?

    Best,
    Brian.

    #236862

    marcobarbi
    Member

    First of all, the answer to the Posting Guidelines questions:

    What operating system and version are you running?
    Win2000, sp4

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.1.0
    Build id: I20050627-1435

    Was Eclipse freshly installed for MyEclipse?
    Yes.

    Are any other external plugins installed?
    Yes. Namely: Hibernate Synchronizer 2.3.1, JasperAssistant 2.0.2

    How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    4: org.eclipse.pde.build_3.1.0, org.eclipse.pde.doc.user_3.1.0, org.eclipse.pde.junit.runtime_3.1.0, org.eclipse.pde.source_3.1.0

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    Version 4.0.0, build-id: 20050829-4.0.0-GA

    What JDK version are you using to run Eclipse? (java -version)
    1.5.0_04

    What JDK version are you using to launch your application server?
    1.5.0_04

    What steps did you take that resulted in the issue?
    In a JSF project, opening the config.xml file by means of JSF Visual Editor, the page-flow diagram is rendered ok. However any attempt to delete a navigation rule fails (no error but the navigation box isn’t deleted in the diagram). So I try to switch to the Source view, and I notice that the navigation rule has been deleted (switching again to the Design view the box is actually disappeared). Switching back to the Source view, I try to manually edit the file and, at this time, the Exception is thrown and the editor manifests a strange behaviour.
    The same result is achieved if I open the config.xml by means of the standard XML view.

    What application server are you using?
    Apache Tomcat 5.5

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
    See above (first post)

    I don’t know if it could help, but for this application I’m working with three JSF configuration files and the problem rises for each of them.
    Other editors seem to work fine.

    #236867

    Brian Fernandes
    Moderator

    Marco,

    Just a couple of quick questions. Can you setup a dummy jsf project and try editing the config file in that one with the JSF and the XML editor? Does it work fine?

    but for this application I’m working with three JSF configuration files and the problem rises for each of them.

    Do you mean you have config1.xml, config2.xml and config3.xml and all are faces config files configured for the same project?

    Another small test, can you turn Build Automatically off (Project > Build Automatically) and just to be sure go to the project settings and turn off all the validation. Restart eclipse and try editing those files.
    Let us know what happens.

    We appreciate your assistance,
    Brian.

    #236876

    marcobarbi
    Member

    Both the test you suggested me have been carried out with success.

    Firstly, without restrating Eclipse, I defined a new Web project and here everything worked ok. However at that time the main project didn’t work properly yet.
    Then, I switched the automatically build option off, I restarted Eclipse and now everything works fine (even with automatically build option on).

    On my point of view the problem has been solved. Unfortunately, I cannot say exactly how I got in that strange situation 🙁

    Many thanks!
    Marco

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: 4.0 GA – JSF editor – Source editing problem

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