Re: Getting the component causing an error

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Tue Aug 22 2006 - 14:39:44 EDT

  • Next message: Anjo Krank: "Re: Getting the component causing an error"

    Yeah, it's dirty and it's fun.

    We could add an option to disable it.

    Uli

    Am 22.08.2006 um 20:26 schrieb Mike Schrag:

    > So TECHNICALLY, we can shove our version first in the classpath
    > when we run and beat out WO, but man is that dirty and it's going
    > to really mess with people who have different versions of WO.
    >
    > ms
    >
    > On Aug 22, 2006, at 2:23 PM, Ulrich Köster wrote:
    >
    >> If I catch it in the app I'll have to do it very dirty. Don't
    >> forget I'm not the one developing the app I'm the one developing
    >> the IDE.
    >>
    >> Is there a way to reuse the stuff from wonder and inject it into
    >> all apps :-) Sounds like a job for Jonathan 'Wolf' Rentzsch.
    >>
    >> Uli
    >>
    >> To get a feeling what I trying to do: Get the latest WOLips and
    >> create a <webobject name"foo"></webobject> in your html without
    >> anything in the wod.
    >>
    >> Am 22.08.2006 um 20:07 schrieb Anjo Krank:
    >>
    >>> If you catch it in the app, you can get to the parent tree and
    >>> log it... we do that in Wonder. This line number thing is much
    >>> more involved, I needed to patch various association classes and
    >>> it still didn't work properly.
    >>>
    >>> Cheers, Anjo
    >>>
    >>>
    >>> Am 22.08.2006 um 20:03 schrieb Mike Schrag:
    >>>
    >>>> No line numbers or anything, huh? I think I looked into this
    >>>> before and could never find a way to get the data I was looking
    >>>> for ...
    >>>>
    >>>> On Aug 22, 2006, at 2:00 PM, Ulrich Köster wrote:
    >>>>
    >>>>> Moin,
    >>>>>
    >>>>> I need some help for a new feature of WOLips.
    >>>>>
    >>>>> How do I get the Component from an error?
    >>>>>
    >>>>> For instance from the wod:
    >>>>>
    >>>>> foo: WOString {
    >>>>> }
    >>>>>
    >>>>>
    >>>>>
    >>>>> [2006-08-22 19:43:39 CEST] <WorkerThread0>
    >>>>> <com.webobjects.appserver._private.WOComponentRequestHandler>:
    >>>>> Exception occurred while handling request:
    >>>>> com.webobjects.foundation.NSForwardException
    >>>>> [com.webobjects.appserver._private.WODynamicElementCreationExcepti
    >>>>> on] null
    >>>>> [2006-08-22 19:43:39 CEST] <WorkerThread0>
    >>>>> com.webobjects.foundation.NSForwardException for
    >>>>> com.webobjects.appserver._private.WODynamicElementCreationExceptio
    >>>>> n: <com.webobjects.appserver._private.WOString> ( no 'value'
    >>>>> attribute specified.
    >>>>> at com.webobjects.appserver._private.WOString.<init>
    >>>>> (WOString.java:25)
    >>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0
    >>>>> (Native Method)
    >>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance
    >>>>> (NativeConstructorAccessorImpl.java:39)
    >>>>> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
    >>>>> (DelegatingConstructorAccessorImpl.java:27)
    >>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:
    >>>>> 494)
    >>>>> at com.webobjects.foundation._NSUtilities.instantiateObject
    >>>>> (_NSUtilities.java:575)
    >>>>> at
    >>>>> com.webobjects.appserver.WOApplication.dynamicElementWithName
    >>>>> (WOApplication.java:2033)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLWebObjectTag._elementWithC
    >>>>> lass(WOHTMLWebObjectTag.java:145)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLWebObjectTag._elementWithD
    >>>>> eclaration(WOHTMLWebObjectTag.java:199)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLWebObjectTag.dynamicElemen
    >>>>> t(WOHTMLWebObjectTag.java:122)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLTemplateParser.didParseClo
    >>>>> singWebObjectTag(WOHTMLTemplateParser.java:52)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLParser.didParseClosingWebO
    >>>>> bjectTag(WOHTMLParser.java:183)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLParser.endOfWebObjectTag
    >>>>> (WOHTMLParser.java:150)
    >>>>> at com.webobjects.appserver._private.WOHTMLParser.parseHTML
    >>>>> (WOHTMLParser.java:67)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOHTMLTemplateParser.parseHTML
    >>>>> (WOHTMLTemplateParser.java:81)
    >>>>> at com.webobjects.appserver._private.WOHTMLTemplateParser.parse
    >>>>> (WOHTMLTemplateParser.java:95)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOParser.templateWithHTMLAndDecl
    >>>>> aration(WOParser.java:71)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOComponentDefinition.template
    >>>>> (WOComponentDefinition.java:288)
    >>>>> at com.webobjects.appserver.WOComponent.templateWithName
    >>>>> (WOComponent.java:597)
    >>>>> at com.webobjects.appserver.WOComponent.template
    >>>>> (WOComponent.java:507)
    >>>>> at com.webobjects.appserver.WOComponent.appendToResponse
    >>>>> (WOComponent.java:982)
    >>>>> at com.webobjects.appserver.WOSession.appendToResponse
    >>>>> (WOSession.java:1200)
    >>>>> at com.webobjects.appserver.WOApplication.appendToResponse
    >>>>> (WOApplication.java:1418)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispa
    >>>>> tchWithPreparedPage(WOComponentRequestHandler.java:230)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispa
    >>>>> tchWithPreparedSession(WOComponentRequestHandler.java:287)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispa
    >>>>> tchWithPreparedApplication(WOComponentRequestHandler.java:322)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOComponentRequestHandler._handl
    >>>>> eRequest(WOComponentRequestHandler.java:358)
    >>>>> at
    >>>>> com.webobjects.appserver._private.WOComponentRequestHandler.handle
    >>>>> Request(WOComponentRequestHandler.java:432)
    >>>>> at com.webobjects.appserver.WOApplication.dispatchRequest
    >>>>> (WOApplication.java:1306)
    >>>>> at com.webobjects.appserver._private.WOWorkerThread.runOnce
    >>>>> (WOWorkerThread.java:173)
    >>>>> at com.webobjects.appserver._private.WOWorkerThread.run
    >>>>> (WOWorkerThread.java:254)
    >>>>> at java.lang.Thread.run(Thread.java:613)
    >>>>>
    >>>>>
    >>>>> I'll need a way to get the component with the invalid binding
    >>>>> named 'foo' without subclassing WOClasses.
    >>>>>
    >>>>> Merci
    >>>>>
    >>>>> Uli
    >>>>>
    >>>>> _______________________________________________
    >>>>> Do not post admin requests to the list. They will be ignored.
    >>>>> Webobjects-dev mailing list (Webobjects-de..ists.apple.com)
    >>>>> Help/Unsubscribe/Update your Subscription:
    >>>>> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%
    >>>>> 40mdimension.com
    >>>>>
    >>>>> This email sent to mschra..dimension.com
    >>>>
    >>>
    >>
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Tue Aug 22 2006 - 14:39:47 EDT