• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
No template found for component?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No template found for component?!?


  • Subject: No template found for component?!?
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 23 Jul 2008 18:18:38 +0200

As a followup for my previous mail,

On 23.7.2008, at 15:02, Ondra Cada wrote:

...I've considered the following pattern:

(a) giving all the slow components a common superclass, say, OCSLongResponserBase
(b) exploit a similar technique LongResponsePage uses in this superclass, but running the appendToResponse in the thread; thus, making them all "long response" at once.
...
The threads run precisely as intended, but the response generation in the long response thread does not work: seems the framework accesses some extra context which I forget to (or don't know how) cache or to "enforce" inside the long response thread. The actual result in the cached response seems somewhat random, from a completely empty response to a partially created page, I suppose depending on a timing of the long response and main threads.

it seems the culprit it does not work is that occassionally "No template found for component" occurs.


Does anybody knows who reports this error and why?

I have created my own Resource Manager, and it finds the desired component all right, but then the "No template found for component" error occurs, like this:

public class ResourceManager extends WOResourceManager {
...
public String urlForResourceNamed(String aResourceName,
String aFrameworkName,
NSArray aLanguagesList,
WORequest aRequest) {
NSLog.err.appendln("RM:url "+aResourceName +" ("+aFrameworkName+") in "+aLanguagesList+", request "+aRequest);
String url=super.urlForResourceNamed (aResourceName,aFrameworkName,aLanguagesList,aRequest);
NSLog.err.appendln(" returns \""+url+"\"");
return url;
}


and the log looks like this:

...
[2008-07-23 18:08:27 CEST] <Thread-1> RM:url PageFrame.wo (null) in ("Czech"), request null
[2008-07-23 18:08:27 CEST] <Thread-1> returns "/WebObjects/ Test.woa/Volumes/300/Projects/Test/Czech.lproj/PageFrame.wo"
... other threads logs only here ...
[2008-07-23 18:08:29 CEST] <Thread-1> <com.webobjects.appserver._private.WOComponentDefinition> No template found for component PageFrame at "file:/Users/ocs/Generated/ WODevelopment/Test.woa/".
...


I am pretty much flabbergasted :( Thanks for any idea what might be the culprit,
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc




_______________________________________________
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


  • Follow-Ups:
    • Re: No template found for component?!?
      • From: Mersida Kurti <email@hidden>
References: 
 >appendToResponse in a separate thread (outta context) (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Apache 2.2 Adaptor
  • Next by Date: Re: multiple model usage example
  • Previous by thread: appendToResponse in a separate thread (outta context)
  • Next by thread: Re: No template found for component?!?
  • Index(es):
    • Date
    • Thread