Re: Object gets empty value, womp
Re: Object gets empty value, womp
- Subject: Re: Object gets empty value, womp
- From: email@hidden
- Date: Fri, 12 Aug 2005 11:16:26 +0200
I see nothing bad with that code.
webobjects-dev-bounces+pierre.bernard=email@hidden
wrote on 08/12/2005 10:14:08 AM:
> Hi Pierre,
> I did overwrite dispatchRequest() using the following
method (from
> Chuck's seminar):
> ---
> public WOResponse dispatchRequest(WORequest
request)
> {
> NSLog.debug.appendln("\n======================
Start of
> Request - Response Loop ======================");
> NSLog.debug.appendln("Starting
to dispatch URL: " + request.uri());
> NSLog.debug.appendln("request
headers = " + request.headers());
> NSTimestamp startTime
= new NSTimestamp();
>
> // Uncomment this
to see the result of an exception escaping
> dispatchRequest
> // if (1 == 1) throw
new RuntimeException("exception from
> dispatchRequest()");
>
> WOResponse response
= super.dispatchRequest(request);
> NSTimestamp endTime
= new NSTimestamp();
> NSLog.debug.appendln
("response headers = " + response.headers());
> NSLog.debug.appendln("Finished
dispatching URL: " + request.uri());
>
> // Note odd output
formatting. This makes it easy to grep
> out these lines
> // and load them
into Excel as CSV for analysis
> NSLog.debug.appendln(",Elapsed
Time," + new Double((endTime.
> getTime() - startTime.getTime())/1000.0).toString());
> return response;
> }
> ---
>
> Could this be the reason of my problem?
>
> I'll try without this method just in case
>
>
> Hi!
>
> "womp" is the request handler key used by the WOTaskD contacing
your
> application. This request most likely has nothing to do with your
> problem as it should not reach your component.
>
> If it indeed does get handled by your component, then something is
> horribly wrong. Did you override dispatchRequest(), register your
> own request handler, ... ?
>
> Pierre
>
> webobjects-dev-bounces+pierre.bernard=email@hidden wrote
> on 08/12/2005 02:30:03 AM:
>
> > Hi list,
> > I didn't wanted to post without more details...
> > I've got the exact same application/framework on the exact same
OS
> > (10.4.2) and WO version (latest),
> > but things doesn't work the same on the development machine and
the
> > deployment machine.
> >
> > After checking all the logs I could, I have found that there's
an
> > extra request-response loop on the deployment machine!?
> > and this loop just emptied my objects (put null value in every
field
> > except the ec global id)
> >
> > here's the extra request-response loop:
> > --------
> > [2005-08-12 02:18:16 CEST] <WorkerThread4>
> > ====================== Start of Request - Response Loop
> > ======================
> > [2005-08-12 02:18:16 CEST] <WorkerThread4> Starting to
dispatch URL: /
> > cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
> > [2005-08-12 02:18:16 CEST] <WorkerThread4> request headers
= {content-
> > length = ("116"); }
> > [2005-08-12 02:18:16 CEST] <WorkerThread4> response headers
=
> > {content-length = ("2707"); x-webobjects-loadaverage
= ("1"); set-
> > cookie = (); }
> > [2005-08-12 02:18:16 CEST] <WorkerThread4> Finished dispatching
URL: /
> > cgi-bin/WebObjects/HarasdHurlventBO.woa/womp/instanceRequest
> > [2005-08-12 02:18:16 CEST] <WorkerThread4> ,Elapsed Time,0.265
> > --------
> >
> > Could someone tell me what's this womp/instanceRequest and how
come
> > it fills my object with null?
> >
> > or a starting point to get rid of that:)
> >
> > Thanks
> >
> > Xavier
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> email@hidden
> >
> > This email sent to email@hidden
> >
>
>
> **********************************************************************
> This email and any files transmitted with it are intended solely for
> the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the sender
> of this message. (email@hidden)
> This email message has been checked for the presence of computer
> viruses; however this protection does not ensure this message is
> virus free.
> Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
> **********************************************************************
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden