Hi,
sometimes, when I hit the refresh button of my web browser, I get the following stack trace from Seaside. It seems the WARenderingContext has a document which is nil. I'm using pharo1.0beta-10401web09.07.5.image which contains Seaside 2.8a1-pmm.593. Can somebody help me please? Thank you 2 August 2009 1:09:39 pm VM: Win32 - IX86 - NT - Squeak3.10.2 of '5 June 2008' [latest update: #7179] Image: Pharo1.0beta [Latest update: #10401] SecurityManager state: Restricted: false FileAccess: true SocketAccess: true Working Dir E:\Squeak VM 3.11.3 pharo 9.7.5 Trusted Dir E:\Squeak VM 3.11.3 pharo 9.7.5\Parents2 Untrusted Dir C:\Documents and Settings\Parents2\Mes documents\My Squeak UndefinedObject(Object)>>doesNotUnderstand: #openTag:attributes:closed: Receiver: nil Arguments and temporary variables: aMessage: openTag: 'div' attributes: a WAHtmlAttributes closed: false exception: MessageNotUnderstood: receiver of "openTag:attributes:closed:" is ni...etc... resumeValue: nil Receiver's instance variables: nil WADivTag(WATagBrush)>>openTag Receiver: a WADivTag Arguments and temporary variables: Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: false attributes: a WAHtmlAttributes WADivTag(WATagBrush)>>with: Receiver: a WADivTag Arguments and temporary variables: anObject: [closure] in GdoHeader>>renderContentOn: Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: false attributes: a WAHtmlAttributes GdoHeader>>renderContentOn: Receiver: a GdoHeader Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoHeader titre: 'Gestion des opérations' search: a GdoHeaderRecherches chainesARechercher: nil identif: nil gdoMain: a GdoMain GdoHeader(WAPresenter)>>renderWithContext: Receiver: a GdoHeader Arguments and temporary variables: aRenderingContext: a WARenderingContext html: a WARenderCanvas callbacks: a WACallbackRegistry Receiver's instance variables: decoration: a WAValueHolder contents: a GdoHeader titre: 'Gestion des opérations' search: a GdoHeaderRecherches chainesARechercher: nil identif: nil gdoMain: a GdoMain [] in GdoHeader(WAComponent)>>renderOn: Receiver: a GdoHeader Arguments and temporary variables: aRenderer: a GdoHeader each: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoHeader titre: 'Gestion des opérations' search: a GdoHeaderRecherches chainesARechercher: nil identif: nil gdoMain: a GdoMain GdoHeader(WAComponent)>>decorationChainDo: Receiver: a GdoHeader Arguments and temporary variables: aBlock: [closure] in GdoHeader(WAComponent)>>renderOn: Receiver's instance variables: decoration: a WAValueHolder contents: a GdoHeader titre: 'Gestion des opérations' search: a GdoHeaderRecherches chainesARechercher: nil identif: nil gdoMain: a GdoMain GdoHeader(WAComponent)>>renderOn: Receiver: a GdoHeader Arguments and temporary variables: aRenderer: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoHeader titre: 'Gestion des opérations' search: a GdoHeaderRecherches chainesARechercher: nil identif: nil gdoMain: a GdoMain WARenderCanvas(WACanvas)>>render: Receiver: a WARenderCanvas Arguments and temporary variables: anObject: a GdoHeader Receiver's instance variables: currentBrush: nil parentBrush: nil context: a WARenderingContext callbacks: a WACallbackRegistry [] in GdoMain>>renderContentOn: Receiver: a GdoMain Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoMain gdo: a Gdo chainesEnCours: nil collectOperations: nil mesPreferences: a Dictionary('gdoActionDefaut'->'Initialisation' 'gdoClassement...etc... equipe: an Equipe collectOpRecherchees: nil msgStatus: nil dicoForms: a Dictionary(#bandeau->a GdoHeader #barreOutils->a GdoHeaderToolsBar...etc... dicoBools: a Dictionary(#boolIdent->false #chainesARechercher->nil #selAffectat...etc... dicoIdent: a Dictionary(#chaineIdent->nil #identifiant->'Cassou' #initiales->'J...etc... BlockClosure>>renderOn: Receiver: [closure] in GdoMain>>renderContentOn: Arguments and temporary variables: aRenderer: a WARenderCanvas Receiver's instance variables: outerContext: GdoMain>>renderContentOn: startpc: 111 numArgs: 0 [] in WAFormTag(WATagBrush)>>with: Receiver: a WAFormTag Arguments and temporary variables: anObject: [closure] in GdoMain>>renderContentOn: Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: true attributes: a WAHtmlAttributes defaultAction: nil BlockClosure>>renderOn: Receiver: [closure] in WAFormTag(WATagBrush)>>with: Arguments and temporary variables: aRenderer: a WARenderCanvas Receiver's instance variables: outerContext: WAFormTag(WATagBrush)>>with: startpc: 46 numArgs: 0 WARenderCanvas(WACanvas)>>nest: Receiver: a WARenderCanvas Arguments and temporary variables: aBlock: [closure] in WAFormTag(WATagBrush)>>with: Receiver's instance variables: currentBrush: nil parentBrush: nil context: a WARenderingContext callbacks: a WACallbackRegistry WAFormTag(WABrush)>>with: Receiver: a WAFormTag Arguments and temporary variables: aBlock: [closure] in WAFormTag(WATagBrush)>>with: Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: true attributes: a WAHtmlAttributes defaultAction: nil WAFormTag(WATagBrush)>>with: Receiver: a WAFormTag Arguments and temporary variables: anObject: [closure] in GdoMain>>renderContentOn: Receiver's instance variables: canvas: a WARenderCanvas parent: nil closed: true attributes: a WAHtmlAttributes defaultAction: nil WARenderCanvas(WAHtmlCanvas)>>form: Receiver: a WARenderCanvas Arguments and temporary variables: aBlock: [closure] in GdoMain>>renderContentOn: Receiver's instance variables: currentBrush: nil parentBrush: nil context: a WARenderingContext callbacks: a WACallbackRegistry GdoMain>>renderContentOn: Receiver: a GdoMain Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoMain gdo: a Gdo chainesEnCours: nil collectOperations: nil mesPreferences: a Dictionary('gdoActionDefaut'->'Initialisation' 'gdoClassement...etc... equipe: an Equipe collectOpRecherchees: nil msgStatus: nil dicoForms: a Dictionary(#bandeau->a GdoHeader #barreOutils->a GdoHeaderToolsBar...etc... dicoBools: a Dictionary(#boolIdent->false #chainesARechercher->nil #selAffectat...etc... dicoIdent: a Dictionary(#chaineIdent->nil #identifiant->'Cassou' #initiales->'J...etc... GdoMain(WAPresenter)>>renderWithContext: Receiver: a GdoMain Arguments and temporary variables: aRenderingContext: a WARenderingContext html: a WARenderCanvas callbacks: a WACallbackRegistry Receiver's instance variables: decoration: a WAValueHolder contents: a GdoMain gdo: a Gdo chainesEnCours: nil collectOperations: nil mesPreferences: a Dictionary('gdoActionDefaut'->'Initialisation' 'gdoClassement...etc... equipe: an Equipe collectOpRecherchees: nil msgStatus: nil dicoForms: a Dictionary(#bandeau->a GdoHeader #barreOutils->a GdoHeaderToolsBar...etc... dicoBools: a Dictionary(#boolIdent->false #chainesARechercher->nil #selAffectat...etc... dicoIdent: a Dictionary(#chaineIdent->nil #identifiant->'Cassou' #initiales->'J...etc... [] in GdoMain(WAComponent)>>renderOn: Receiver: a GdoMain Arguments and temporary variables: aRenderer: a GdoMain each: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoMain gdo: a Gdo chainesEnCours: nil collectOperations: nil mesPreferences: a Dictionary('gdoActionDefaut'->'Initialisation' 'gdoClassement...etc... equipe: an Equipe collectOpRecherchees: nil msgStatus: nil dicoForms: a Dictionary(#bandeau->a GdoHeader #barreOutils->a GdoHeaderToolsBar...etc... dicoBools: a Dictionary(#boolIdent->false #chainesARechercher->nil #selAffectat...etc... dicoIdent: a Dictionary(#chaineIdent->nil #identifiant->'Cassou' #initiales->'J...etc... GdoMain(WAComponent)>>decorationChainDo: Receiver: a GdoMain Arguments and temporary variables: aBlock: [closure] in GdoMain(WAComponent)>>renderOn: Receiver's instance variables: decoration: a WAValueHolder contents: a GdoMain gdo: a Gdo chainesEnCours: nil collectOperations: nil mesPreferences: a Dictionary('gdoActionDefaut'->'Initialisation' 'gdoClassement...etc... equipe: an Equipe collectOpRecherchees: nil msgStatus: nil dicoForms: a Dictionary(#bandeau->a GdoHeader #barreOutils->a GdoHeaderToolsBar...etc... dicoBools: a Dictionary(#boolIdent->false #chainesARechercher->nil #selAffectat...etc... dicoIdent: a Dictionary(#chaineIdent->nil #identifiant->'Cassou' #initiales->'J...etc... GdoMain(WAComponent)>>renderOn: Receiver: a GdoMain Arguments and temporary variables: aRenderer: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a GdoMain gdo: a Gdo chainesEnCours: nil collectOperations: nil mesPreferences: a Dictionary('gdoActionDefaut'->'Initialisation' 'gdoClassement...etc... equipe: an Equipe collectOpRecherchees: nil msgStatus: nil dicoForms: a Dictionary(#bandeau->a GdoHeader #barreOutils->a GdoHeaderToolsBar...etc... dicoBools: a Dictionary(#boolIdent->false #chainesARechercher->nil #selAffectat...etc... dicoIdent: a Dictionary(#chaineIdent->nil #identifiant->'Cassou' #initiales->'J...etc... WARenderCanvas(WACanvas)>>render: Receiver: a WARenderCanvas Arguments and temporary variables: anObject: a GdoMain Receiver's instance variables: currentBrush: nil parentBrush: nil context: a WARenderingContext callbacks: a WACallbackRegistry [] in [] in WAToolFrame>>renderChildOn: Receiver: a WAToolFrame Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() BlockClosure>>on:do: Receiver: [closure] in [] in WAToolFrame>>renderChildOn: Arguments and temporary variables: exception: WADeprecatedApi handlerAction: [closure] in WAToolFrame>>withDeprecatedHandlerDo: handlerActive: true Receiver's instance variables: outerContext: [] in WAToolFrame>>renderChildOn: startpc: 86 numArgs: 0 WAToolFrame>>withDeprecatedHandlerDo: Receiver: a WAToolFrame Arguments and temporary variables: aBlock: [closure] in [] in WAToolFrame>>renderChildOn: Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() [] in WAToolFrame>>renderChildOn: Receiver: a WAToolFrame Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() Time class>>millisecondsToRun: Receiver: Time Arguments and temporary variables: timedBlock: [closure] in WAToolFrame>>renderChildOn: initialMilliseconds: 17986803 Receiver's instance variables: superclass: Magnitude methodDict: a MethodDictionary(#<->a CompiledMethod (2992) #=->a CompiledMethod...etc... format: 134 instanceVariables: #('seconds' 'nanos') organization: ('ansi protocol' < = duration hash hour hour12 hour24 meridianAbb...etc... subclasses: nil name: #Time classPool: nil sharedPools: an OrderedCollection(ChronologyConstants) environment: Smalltalk category: #'Kernel-Chronology' traitComposition: nil localSelectors: nil WAToolFrame>>renderChildOn: Receiver: a WAToolFrame Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() WAToolFrame>>renderContentOn: Receiver: a WAToolFrame Arguments and temporary variables: html: a WARenderCanvas Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() WAToolFrame(WAPresenter)>>renderWithContext: Receiver: a WAToolFrame Arguments and temporary variables: aRenderingContext: a WARenderingContext html: a WARenderCanvas callbacks: a WACallbackRegistry Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() [] in WARenderContinuation>>processRendering: Receiver: a WARenderContinuation Arguments and temporary variables: <<error during printing> Receiver's instance variables: root: a WAToolFrame states: a WASnapshot context: a WARenderingContext WAToolFrame(WAComponent)>>decorationChainDo: Receiver: a WAToolFrame Arguments and temporary variables: aBlock: [closure] in WARenderContinuation>>processRendering: Receiver's instance variables: decoration: a WAValueHolder contents: a WAToolFrame root: a GdoMain plugins: a SortedCollection(a WANewSessionToolPlugin a WAConfigureToolPlugin a ...etc... showHalos: a WAValueHolder contents: false processTime: nil renderTime: 344 deprecated: a Set() WARenderContinuation>>processRendering: Receiver: a WARenderContinuation Arguments and temporary variables: aResponse: a WAResponse 200 document: a WAHtmlStreamDocument htmlRoot: a WAHtmlRoot Receiver's instance variables: root: a WAToolFrame states: a WASnapshot context: a WARenderingContext [] in WARenderContinuation>>render Receiver: a WARenderContinuation Arguments and temporary variables: response: a WAResponse 200 Receiver's instance variables: root: a WAToolFrame states: a WASnapshot context: a WARenderingContext WARenderContinuation(WASessionContinuation)>>respond: Receiver: a WARenderContinuation Arguments and temporary variables: aBlock: [closure] in WARenderContinuation>>render response: a WAResponse 200 Receiver's instance variables: root: a WAToolFrame states: a WASnapshot context: a WARenderingContext WARenderContinuation>>render Receiver: a WARenderContinuation Arguments and temporary variables: Receiver's instance variables: root: a WAToolFrame states: a WASnapshot context: a WARenderingContext [] in WARenderContinuation>>run Receiver: a WARenderContinuation Arguments and temporary variables: Receiver's instance variables: root: a WAToolFrame states: a WASnapshot context: a WARenderingContext BlockClosure>>on:do: Receiver: [closure] in WARenderContinuation>>run Arguments and temporary variables: exception: an ExceptionSet handlerAction: [closure] in WARenderContinuation>>withNotificationHandler: handlerActive: true Receiver's instance variables: outerContext: WARenderContinuation>>run startpc: 26 numArgs: 0 --- The full stack --- UndefinedObject(Object)>>doesNotUnderstand: #openTag:attributes:closed: WADivTag(WATagBrush)>>openTag WADivTag(WATagBrush)>>with: GdoHeader>>renderContentOn: GdoHeader(WAPresenter)>>renderWithContext: [] in GdoHeader(WAComponent)>>renderOn: GdoHeader(WAComponent)>>decorationChainDo: GdoHeader(WAComponent)>>renderOn: WARenderCanvas(WACanvas)>>render: [] in GdoMain>>renderContentOn: BlockClosure>>renderOn: [] in WAFormTag(WATagBrush)>>with: BlockClosure>>renderOn: WARenderCanvas(WACanvas)>>nest: WAFormTag(WABrush)>>with: WAFormTag(WATagBrush)>>with: WARenderCanvas(WAHtmlCanvas)>>form: GdoMain>>renderContentOn: GdoMain(WAPresenter)>>renderWithContext: [] in GdoMain(WAComponent)>>renderOn: GdoMain(WAComponent)>>decorationChainDo: GdoMain(WAComponent)>>renderOn: WARenderCanvas(WACanvas)>>render: [] in [] in WAToolFrame>>renderChildOn: BlockClosure>>on:do: WAToolFrame>>withDeprecatedHandlerDo: [] in WAToolFrame>>renderChildOn: Time class>>millisecondsToRun: WAToolFrame>>renderChildOn: WAToolFrame>>renderContentOn: WAToolFrame(WAPresenter)>>renderWithContext: [] in WARenderContinuation>>processRendering: WAToolFrame(WAComponent)>>decorationChainDo: WARenderContinuation>>processRendering: [] in WARenderContinuation>>render WARenderContinuation(WASessionContinuation)>>respond: WARenderContinuation>>render [] in WARenderContinuation>>run BlockClosure>>on:do: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WARenderContinuation>>withNotificationHandler: WARenderContinuation>>run WARenderLoop>>run WARenderLoopMain>>start: WASession>>start: [] in WASession>>performRequest: Dictionary>>at:ifAbsent: WASession>>performRequest: [] in [] in [] in WASession>>responseForRequest: BlockClosure>>on:do: [] in WASession>>withErrorHandler: BlockClosure>>on:do: WASession>>withErrorHandler: [] in [] in WASession>>responseForRequest: BlockClosure>>on:do: WACurrentSession class(WADynamicVariable class)>>use:during: [] in WASession>>responseForRequest: [] in WASession>>withEscapeContinuation: EscapeContinuation class(Continuation class)>>currentDo: WASession>>withEscapeContinuation: WASession>>responseForRequest: [] in WASession>>incomingRequest: BlockClosure>>on:do: [] in [] in [] in WAProcessMonitor>>critical:ifError: BlockClosure>>ensure: [] in [] in WAProcessMonitor>>critical:ifError: [] in BlockClosure>>newProcess -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Can you show GdoHeader>>renderContentOn: ?
Can you define "sometimes"? Do you mean certain pages do it and certain pages don't or, on any given page, sometimes it happens and sometimes not? Julian On Sun, Aug 2, 2009 at 4:20 AM, Damien Cassou<[hidden email]> wrote: > Hi, > > sometimes, when I hit the refresh button of my web browser, I get the > following stack trace from Seaside. It seems the WARenderingContext > has a document which is nil. I'm using > pharo1.0beta-10401web09.07.5.image which contains Seaside > 2.8a1-pmm.593. > > Can somebody help me please? > > Thank you seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Julian,
On Mon, Aug 3, 2009 at 3:04 AM, Julian Fitzell<[hidden email]> wrote: > Can you show GdoHeader>>renderContentOn: ? renderContentOn: html html div id: 'bdGlobal'; with: [ html div id: 'bdTitre'; with: [ html heading with: titre ]. self renderRecherche: html. self renderLogo: html ] renderLogo: html html div id: 'bdIdentLogoGlobal'; with: [ html div id: 'bdLogo'; with: [ html image url: (GdoFileLibrary urlOf: #logoLP390x80Png); altText: 'LaPoste' ]] renderRecherche: html html div id: 'bdRechGlobal'; with: [ html div id: 'bdNomRechGlobal'; with: [ html render: self recherches ] ] recherches chainesARechercher = '#none#' ifTrue: [^ nil]. ^ search ifNil: [ search := GdoHeaderRecherches new chainesARechercher: chainesARechercher; gdoMain: gdoMain; yourself ] children ^ {self recherches} > Can you define "sometimes"? Do you mean certain pages do it and > certain pages don't or, on any given page, sometimes it happens and > sometimes not? 1) The first page displays correctly the first time 2) If I hit refresh then I get the error message 3) If instead I go to another page, I never get the message again when clicking on refresh, even if I go back to the first page and hit refresh Does that help? -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
if i remember correctly this might have something to do with ajax callbacks but i just can't remember the details. The RenderContext's document is nil, probably because it was released. Maybe that info helps. Karsten Damien Cassou wrote: Hi Julian, On Mon, Aug 3, 2009 at 3:04 AM, Julian Fitzell[hidden email] wrote:Can you show GdoHeader>>renderContentOn: ?renderContentOn: html html div id: 'bdGlobal'; with: [ html div id: 'bdTitre'; with: [ html heading with: titre ]. self renderRecherche: html. self renderLogo: html ] renderLogo: html html div id: 'bdIdentLogoGlobal'; with: [ html div id: 'bdLogo'; with: [ html image url: (GdoFileLibrary urlOf: #logoLP390x80Png); altText: 'LaPoste' ]] renderRecherche: html html div id: 'bdRechGlobal'; with: [ html div id: 'bdNomRechGlobal'; with: [ html render: self recherches ] ] recherches chainesARechercher = '#none#' ifTrue: [^ nil]. ^ search ifNil: [ search := GdoHeaderRecherches new chainesARechercher: chainesARechercher; gdoMain: gdoMain; yourself ] children ^ {self recherches}Can you define "sometimes"? Do you mean certain pages do it and certain pages don't or, on any given page, sometimes it happens and sometimes not?1) The first page displays correctly the first time 2) If I hit refresh then I get the error message 3) If instead I go to another page, I never get the message again when clicking on refresh, even if I go back to the first page and hit refresh Does that help? --
Karsten Kusche - Dipl.Inf. - [hidden email] Tel: +49 3496 21 43 29 Georg Heeg eK - Köthen Handelsregister: Amtsgericht Dortmund A 12812 _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Damien Cassou-3
Hi Damien,
I don't see an obvious problem, I'm afraid. As Karsten mentions, a RequestContext has its variables nil'ed out when it is finished and its response is returned, and that's the most likely cause of the document being nil, but I certainly don't see anything in the code you posted that would explain that. Usually that is caused by somebody storing the canvas and using it again in another request (like, an ajax rendering callback). So make sure you're not storing the canvas or request context anywhere and that any ajax callbacks are using the rendering that is passed to the block, and not the one in the rendering method (Slime checks for the latter). If neither of those is your problem, try stripping your code down to the simplest example that demonstrates the problem and someone will take a look at it. Julian On Mon, Aug 3, 2009 at 2:00 AM, Damien Cassou<[hidden email]> wrote: > Hi Julian, > > On Mon, Aug 3, 2009 at 3:04 AM, Julian Fitzell<[hidden email]> wrote: >> Can you show GdoHeader>>renderContentOn: ? > > renderContentOn: html > html div > id: 'bdGlobal'; > with: > [ html div > id: 'bdTitre'; > with: [ html heading with: titre ]. > self renderRecherche: html. > self renderLogo: html ] > > renderLogo: html > html div > id: 'bdIdentLogoGlobal'; > with: > [ html div > id: 'bdLogo'; > with: > [ html image > url: (GdoFileLibrary > urlOf: #logoLP390x80Png); > altText: 'LaPoste' ]] > > renderRecherche: html > html div > id: 'bdRechGlobal'; > with: > [ html div > id: 'bdNomRechGlobal'; > with: [ html render: self recherches ] ] > > > recherches > chainesARechercher = '#none#' ifTrue: [^ nil]. > ^ search ifNil: > [ search := GdoHeaderRecherches new > chainesARechercher: chainesARechercher; > gdoMain: gdoMain; > yourself ] > > children > ^ {self recherches} > >> Can you define "sometimes"? Do you mean certain pages do it and >> certain pages don't or, on any given page, sometimes it happens and >> sometimes not? > > 1) The first page displays correctly the first time > 2) If I hit refresh then I get the error message > 3) If instead I go to another page, I never get the message again when > clicking on refresh, even if I go back to the first page and hit > refresh > > Does that help? > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi,
On Mon, Aug 3, 2009 at 6:34 PM, Julian Fitzell<[hidden email]> wrote: > I don't see an obvious problem, I'm afraid. As Karsten mentions, a > RequestContext has its variables nil'ed out when it is finished and > its response is returned, and that's the most likely cause of the > document being nil, but I certainly don't see anything in the code you > posted that would explain that. Usually that is caused by somebody > storing the canvas and using it again in another request (like, an > ajax rendering callback). Thank you and Karsten for you explanations. I will come back to you later with the solution or a small piece of code. Thank you -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi,
On Tue, Aug 4, 2009 at 11:03 AM, Damien Cassou<[hidden email]> wrote: > On Mon, Aug 3, 2009 at 6:34 PM, Julian Fitzell<[hidden email]> wrote: >> I don't see an obvious problem, I'm afraid. As Karsten mentions, a >> RequestContext has its variables nil'ed out when it is finished and >> its response is returned, and that's the most likely cause of the >> document being nil, but I certainly don't see anything in the code you >> posted that would explain that. Usually that is caused by somebody >> storing the canvas and using it again in another request (like, an >> ajax rendering callback). > > Thank you and Karsten for you explanations. I will come back to you > later with the solution or a small piece of code. I finally found the problem: part of my code was changing state and manipulating cookies outside callbacks. Thank you very much -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On Fri, Aug 7, 2009 at 1:49 AM, Damien Cassou<[hidden email]> wrote:
> Hi, > > On Tue, Aug 4, 2009 at 11:03 AM, Damien Cassou<[hidden email]> wrote: >> On Mon, Aug 3, 2009 at 6:34 PM, Julian Fitzell<[hidden email]> wrote: >>> I don't see an obvious problem, I'm afraid. As Karsten mentions, a >>> RequestContext has its variables nil'ed out when it is finished and >>> its response is returned, and that's the most likely cause of the >>> document being nil, but I certainly don't see anything in the code you >>> posted that would explain that. Usually that is caused by somebody >>> storing the canvas and using it again in another request (like, an >>> ajax rendering callback). >> >> Thank you and Karsten for you explanations. I will come back to you >> later with the solution or a small piece of code. > > I finally found the problem: part of my code was changing state and > manipulating cookies outside callbacks. > > Thank you very much Aha - good, glad you found it. Julian _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |