Re: Getting the component causing an error

From: Anjo Krank (kran..ogicunited.com)
Date: Tue Aug 22 2006 - 14:07:31 EDT

  • Next message: Ulrich Köster: "Re: Getting the component causing an error"

    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.WODynamicElementCreationException]
    >> null
    >> [2006-08-22 19:43:39 CEST] <WorkerThread0>
    >> com.webobjects.foundation.NSForwardException for
    >> com.webobjects.appserver._private.WODynamicElementCreationException:
    >> <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._elementWithClas
    >> s(WOHTMLWebObjectTag.java:145)
    >> at
    >> com.webobjects.appserver._private.WOHTMLWebObjectTag._elementWithDecl
    >> aration(WOHTMLWebObjectTag.java:199)
    >> at
    >> com.webobjects.appserver._private.WOHTMLWebObjectTag.dynamicElement
    >> (WOHTMLWebObjectTag.java:122)
    >> at
    >> com.webobjects.appserver._private.WOHTMLTemplateParser.didParseClosin
    >> gWebObjectTag(WOHTMLTemplateParser.java:52)
    >> at
    >> com.webobjects.appserver._private.WOHTMLParser.didParseClosingWebObje
    >> ctTag(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.templateWithHTMLAndDeclara
    >> tion(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._dispatch
    >> WithPreparedPage(WOComponentRequestHandler.java:230)
    >> at
    >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatch
    >> WithPreparedSession(WOComponentRequestHandler.java:287)
    >> at
    >> com.webobjects.appserver._private.WOComponentRequestHandler._dispatch
    >> WithPreparedApplication(WOComponentRequestHandler.java:322)
    >> at
    >> com.webobjects.appserver._private.WOComponentRequestHandler._handleRe
    >> quest(WOComponentRequestHandler.java:358)
    >> at
    >> com.webobjects.appserver._private.WOComponentRequestHandler.handleReq
    >> uest(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:07:31 EDT