Re: html editor problems

From: Mike Schrag (mschra..dimension.com)
Date: Mon Jun 25 2007 - 22:47:17 EDT

  • Next message: John Gregory: "Newbie Entity Modeler Help"

    Both of these problems have been fixed .. It will be in tonight's build.
    On Jun 25, 2007, at 10:33 PM, Patrick Robinson wrote:

    > OK, I'll do that. But, there's more:
    >
    > If, instead of creating a new (empty) component, I use the default
    > Main.wo files, then I'm able to insert a WOForm inside the BODY tag
    > pair. But then, if I try to insert a so-called "WOTextArea" inside
    > the WOForm, then I get different errors, and I'm guessing it may be
    > because it should be called WOText, not WOTextArea?
    >
    > The errors are: "Unhandled event loop exception", followed by a
    > NullPointerException:
    >
    > eclipse.buildId=M20070212-1330
    > java.version=1.5.0_07
    > java.vendor=Apple Computer, Inc.
    > BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
    > Framework arguments: -keyring /Users/pgr/.eclipse_keyring -
    > showlocation
    > Command-line arguments: -os macosx -ws carbon -keyring /Users/
    > pgr/.eclipse_keyring -consoleLog -showlocation
    >
    > Error
    > Mon Jun 25 22:15:51 EDT 2007
    > java.lang.NullPointerException
    >
    > java.lang.NullPointerException
    > at
    > org.objectstyle.wolips.wodclipse.core.util.WodApiUtils.findApiModelWo(
    > Unknown Source)
    > at
    > org.objectstyle.wolips.wodclipse.core.completion.WodParserCache.getWo(
    > Unknown Source)
    > at
    > org.objectstyle.wolips.wodclipse.core.completion.WodParserCache.getWo(
    > Unknown Source)
    > at
    > org.objectstyle.wolips.componenteditor.actions.InsertComponentAction.g
    > etWo(Unknown Source)
    > at
    > org.objectstyle.wolips.componenteditor.actions.InsertComponentAction.g
    > etRequiredBindings(Unknown Source)
    > at
    > org.objectstyle.wolips.componenteditor.actions.InsertComponentAction.g
    > etComponentSpecification(Unknown Source)
    > at
    > org.objectstyle.wolips.componenteditor.actions.InsertHtmlAndWodAction.
    > run(Unknown Source)
    > at org.eclipse.ui.actions.ActionDelegate.runWithEvent
    > (ActionDelegate.java:70)
    > at org.eclipse.ui.internal.PluginAction.runWithEvent
    > (PluginAction.java:244)
    > at
    > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
    > ActionContributionItem.java:539)
    > at org.eclipse.jface.action.ActionContributionItem.access$2
    > (ActionContributionItem.java:488)
    > at org.eclipse.jface.action.ActionContributionItem$6.handleEvent
    > (ActionContributionItem.java:441)
    > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
    > 3312)
    > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
    > 1930)
    > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    > at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
    > (Workbench.java:422)
    > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
    > 149)
    > at org.eclipse.ui.internal.ide.IDEApplication.run
    > (IDEApplication.java:95)
    > at org.eclipse.core.internal.runtime.PlatformActivator$1.run
    > (PlatformActivator.java:78)
    > at
    > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic
    > ation(EclipseAppLauncher.java:92)
    > at
    > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
    > (EclipseAppLauncher.java:68)
    > at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    > (EclipseStarter.java:400)
    > at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    > (EclipseStarter.java:177)
    > 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:336)
    > at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    > at org.eclipse.core.launcher.Main.run(Main.java:977)
    > at org.eclipse.core.launcher.Main.main(Main.java:952)
    >
    >
    > On Jun 25, 2007, at 10:04 PM, Mike Schrag wrote:
    >
    >> Oh I didn't realize you were in an empty document ... I totally
    >> believe that. Go ahead and log a jira bug for it.
    >>
    >> ms
    >>
    >> On Jun 25, 2007, at 10:00 PM, Patrick Robinson wrote:
    >>
    >>> There is no HTML to send... it's a brand spanking new project
    >>> with nothing in it, yet. OK, I'm at home now, on a different
    >>> machine (a MBP). I just downloaded a fresh copy of Eclipse
    >>> 3.2.2, and created a brand new, completely empty workspace dir.
    >>> I then installed WOLips 2.0.0.4116 (I included Goodies Mac,
    >>> WOLips JProfiler Launching, and Standard Install), then restarted
    >>> Eclipse.
    >>>
    >>> I switched to the WOLips perspective, then clicked File -> New ->
    >>> WOApplication.
    >>> Project name = Thing.
    >>> File -> New -> WOComponent. Parent folder = Thing. WOComponent
    >>> name = MyComponent.
    >>> This opens the new component in the component editor. Cursor is
    >>> in the (new, empty) HTML pane.
    >>> Click icon to "Insert WOForm Component". Panel pops open to
    >>> enter "webobject tag name". I leave it as the default "Form".
    >>> Click OK.
    >>>
    >>> *BOOM* ... Internal Error, as below.
    >>>
    >>> Can you not reproduce this? Anything else I could send you that
    >>> might help?
    >>>
    >>> - Patrick
    >>>
    >>>
    >>> On Jun 25, 2007, at 6:44 PM, Mike Schrag wrote:
    >>>
    >>>> Can you send me the HTML file along with the specific selection
    >>>> you were making?
    >>>>
    >>>> On Jun 25, 2007, at 5:42 PM, Patrick Robinson wrote:
    >>>>
    >>>>> The Error Log shows Internal Errors, like this one:
    >>>>>
    >>>>> eclipse.buildId=M20070212-1330
    >>>>> java.version=1.5.0_07
    >>>>> java.vendor=Apple Computer, Inc.
    >>>>> BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
    >>>>> Framework arguments: -keyring /Users/pgr/.eclipse_keyring -
    >>>>> showlocation
    >>>>> Command-line arguments: -os macosx -ws carbon -keyring /Users/
    >>>>> pgr/.eclipse_keyring -consoleLog -showlocation
    >>>>>
    >>>>> Error
    >>>>> Mon Jun 25 17:38:29 EDT 2007
    >>>>> Internal Error
    >>>>>
    >>>>> org.eclipse.jface.text.BadLocationException
    >>>>> at org.eclipse.jface.text.AbstractDocument.replace
    >>>>> (AbstractDocument.java:1068)
    >>>>> at
    >>>>> org.eclipse.core.internal.filebuffers.SynchronizableDocument.repla
    >>>>> ce(SynchronizableDocument.java:147)
    >>>>> at org.eclipse.jface.text.AbstractDocument.replace
    >>>>> (AbstractDocument.java:1090)
    >>>>> at
    >>>>> org.eclipse.core.internal.filebuffers.SynchronizableDocument.repla
    >>>>> ce(SynchronizableDocument.java:133)
    >>>>> at
    >>>>> org.objectstyle.wolips.componenteditor.actions.InsertHtmlAndWodAct
    >>>>> ion.run(Unknown Source)
    >>>>> at org.eclipse.ui.actions.ActionDelegate.runWithEvent
    >>>>> (ActionDelegate.java:70)
    >>>>> at org.eclipse.ui.internal.PluginAction.runWithEvent
    >>>>> (PluginAction.java:244)
    >>>>> at
    >>>>> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelect
    >>>>> ion(ActionContributionItem.java:539)
    >>>>> at org.eclipse.jface.action.ActionContributionItem.access$2
    >>>>> (ActionContributionItem.java:488)
    >>>>> at org.eclipse.jface.action.ActionContributionItem$6.handleEvent
    >>>>> (ActionContributionItem.java:441)
    >>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:
    >>>>> 66)
    >>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    >>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    >>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    >>>>> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:
    >>>>> 1279)
    >>>>> at org.eclipse.swt.widgets.Display.runDeferredEvents
    >>>>> (Display.java:3312)
    >>>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
    >>>>> 2941)
    >>>>> at org.eclipse.ui.internal.Workbench.runEventLoop
    >>>>> (Workbench.java:1930)
    >>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    >>>>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
    >>>>> (Workbench.java:422)
    >>>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench
    >>>>> (PlatformUI.java:149)
    >>>>> at org.eclipse.ui.internal.ide.IDEApplication.run
    >>>>> (IDEApplication.java:95)
    >>>>> at org.eclipse.core.internal.runtime.PlatformActivator$1.run
    >>>>> (PlatformActivator.java:78)
    >>>>> at
    >>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAp
    >>>>> plication(EclipseAppLauncher.java:92)
    >>>>> at
    >>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
    >>>>> (EclipseAppLauncher.java:68)
    >>>>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    >>>>> (EclipseStarter.java:400)
    >>>>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    >>>>> (EclipseStarter.java:177)
    >>>>> 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:336)
    >>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    >>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
    >>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)
    >>>>>
    >>>>>
    >>>>> On Jun 25, 2007, at 5:06 PM, Mike Schrag wrote:
    >>>>>
    >>>>>> i would open your Errors View and see if it generates an
    >>>>>> exception when you try to do it
    >>>>>>
    >>>>>> On Jun 25, 2007, at 4:53 PM, Patrick Robinson wrote:
    >>>>>>
    >>>>>>> I'm using Eclipse 3.2.2 and WOLips 2.0.0.4116.
    >>>>>>>
    >>>>>>> I can't seem to add certain WO tags to my component, using
    >>>>>>> the "Insert" icons at the top:
    >>>>>>>
    >>>>>>> I create a new WOnderApplication project. In this project, I
    >>>>>>> create as new WOComponent. I open it with the Component
    >>>>>>> editor, and click in the HTML panel at the top. I then click
    >>>>>>> the "Insert WOForm Component" icon at the top. Nothing
    >>>>>>> happens. I try some of the other "Insert..." icons. Many of
    >>>>>>> them do nothing! Here are the ones that didn't seem to work:
    >>>>>>>
    >>>>>>> Tag
    >>>>>>> WOForm
    >>>>>>> WOTextArea
    >>>>>>> WOHyperlink
    >>>>>>> WORepetition
    >>>>>>> WOConditional
    >>>>>>>
    >>>>>>> Am I doing something wrong, or are these bugs?
    >>>>>>>
    >>>>>>> --
    >>>>>>> Patrick Robinson
    >>>>>>> AHNR Info Technology, Virginia Tech
    >>>>>>> pg..t.edu
    >>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>
    >>>>>
    >>>>> --
    >>>>> Patrick Robinson
    >>>>> AHNR Info Technology, Virginia Tech
    >>>>> pg..t.edu
    >>>>>
    >>>>>
    >>>>>
    >>>>
    >>>
    >>> --
    >>> Patrick Robinson
    >>> AHNR-IT, Virginia Tech
    >>> pg..t.edu
    >>>
    >>>
    >>>
    >>
    >
    > --
    > Patrick Robinson
    > AHNR-IT, Virginia Tech
    > pg..t.edu
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Jun 25 2007 - 22:48:15 EDT