Hi
I am getting the same error, were you able to figure out what the problem was? It runs fine in webobjects 5.2 but not with 5.4
Thanks.
--- On Wed, 7/23/08, Ondra Cada <email@hidden> wrote:
From: Ondra Cada <email@hidden> Subject: No template found for component?!? To: "WebObjects-Dev Development" <email@hidden> Date: Wednesday, July 23, 2008, 12:18 PM
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="" (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/
email@hidden |