Re: Getting the component causing an error

From: Mike Schrag (mschra..dimension.com)
Date: Tue Aug 22 2006 - 14:03:04 EDT

  • Next message: Mike Schrag: "Re: Making WOLips more appealing to new users"

    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._elementWithClass
    > (WOHTMLWebObjectTag.java:145)
    > at
    > com.webobjects.appserver._private.WOHTMLWebObjectTag._elementWithDecla
    > ration(WOHTMLWebObjectTag.java:199)
    > at
    > com.webobjects.appserver._private.WOHTMLWebObjectTag.dynamicElement
    > (WOHTMLWebObjectTag.java:122)
    > at
    > com.webobjects.appserver._private.WOHTMLTemplateParser.didParseClosing
    > WebObjectTag(WOHTMLTemplateParser.java:52)
    > at
    > com.webobjects.appserver._private.WOHTMLParser.didParseClosingWebObjec
    > tTag(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.templateWithHTMLAndDeclarat
    > ion(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._dispatchW
    > ithPreparedPage(WOComponentRequestHandler.java:230)
    > at
    > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
    > ithPreparedSession(WOComponentRequestHandler.java:287)
    > at
    > com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
    > ithPreparedApplication(WOComponentRequestHandler.java:322)
    > at
    > com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
    > uest(WOComponentRequestHandler.java:358)
    > at
    > com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
    > est(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:03:12 EDT