Re: _wowrapper not terminated (solved)
On 15 dec 2008, at 19:58, Chuck Hill wrote: On Dec 15, 2008, at 8:26 AM, Johan Henselmans wrote: After I found out that my components would not want to read because of some mysterious, untraceable problems with character encodings, I thought I had tackled most of the problems. Alas, now WebObjects 5.4.3 came back to with a vengeance. Somehow, loading a specific page lead to the error on the bottom of the page. In 5.3.3 this does not happen, and the project merrily proceeds without errors. I assume it has something to do with the parser not understanding how I am combining different tags, but I do not know. All I can think of that might cause the problem is a conditional that creates another body tag depending on a condition: webobject name=ConditionalToPaymentbody onload=init('lnk0','sectionbetalen')/webobject webobject name=ConditionalNotToPaymentbody onload=init('lnk0','sectionverkoop')/webobject If somebody knows another reason why this happens... No idea, you could try moving the conditional to Java and the body tag to a WOGenericContainer: Did that, cleaned up a syntax error in the the wo, but did not solve the problem. However, you got me thinking (as usual). I finally noticed the Footer comment in the error message, and in this Footer.wo had a HTML file which contained (for future purposes) Footer.html: /body Footer.wod: That was unacceptable. This had to be: Footer.html: webobject name = EndBodyContainer/ Footer.wod EndBodyContainer : WOGenericContainer { elementName = /body; } Should I file this as a bug, or what? Body: WOGenericContainer { elementName = body; // Just guessing here, check with content assist onload = onLoadScript; } If that fixes it, submit a bug report. Chuck } [2008-12-15 17:6:30 CET] WorkerThread0 WOMLDefaultErrorHandler.fatalError(org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_.) [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:347) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653) at com .webobjects .appserver .parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40) at com .webobjects .appserver .parser .WOComponentTemplateParser .templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) at com .webobjects .appserver ._private.WOComponentDefinition.template(WOComponentDefinition.java: 364) at com.webobjects.appserver.WOComponent.template(WOComponent.java: 499) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1112) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java:135) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1122) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java: 1385) at com .webobjects .appserver.WOApplication.appendToResponse(WOApplication.java:1794) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:242) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369) at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442) at com .webobjects .appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com .webobjects .appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613) Caused by: org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag / _wowrapper_. at
Re: _wowrapper not terminated (solved)
On Dec 16, 2008, at 8:37 AM, Johan Henselmans wrote: On 15 dec 2008, at 19:58, Chuck Hill wrote: On Dec 15, 2008, at 8:26 AM, Johan Henselmans wrote: After I found out that my components would not want to read because of some mysterious, untraceable problems with character encodings, I thought I had tackled most of the problems. Alas, now WebObjects 5.4.3 came back to with a vengeance. Somehow, loading a specific page lead to the error on the bottom of the page. In 5.3.3 this does not happen, and the project merrily proceeds without errors. I assume it has something to do with the parser not understanding how I am combining different tags, but I do not know. All I can think of that might cause the problem is a conditional that creates another body tag depending on a condition: webobject name=ConditionalToPaymentbody onload=init('lnk0','sectionbetalen')/webobject webobject name=ConditionalNotToPaymentbody onload=init('lnk0','sectionverkoop')/webobject If somebody knows another reason why this happens... No idea, you could try moving the conditional to Java and the body tag to a WOGenericContainer: Did that, cleaned up a syntax error in the the wo, but did not solve the problem. However, you got me thinking (as usual). I finally noticed the Footer comment in the error message, and in this Footer.wo had a HTML file which contained (for future purposes) Footer.html: /body Footer.wod: That was unacceptable. This had to be: Footer.html: webobject name = EndBodyContainer/ Footer.wod EndBodyContainer : WOGenericContainer { elementName = /body; } Should I file this as a bug, or what? I'd file it as a bug. At least ask for a better error message. Found closing tag in '/body' (Footer.html) with no opening tag would have let you fix this much more quickly. Chuck Body: WOGenericContainer { elementName = body; // Just guessing here, check with content assist onload = onLoadScript; } If that fixes it, submit a bug report. Chuck } [2008-12-15 17:6:30 CET] WorkerThread0 WOMLDefaultErrorHandler.fatalError(org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_.) [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:347) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653) at com .webobjects .appserver .parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40) at com .webobjects .appserver .parser .WOComponentTemplateParser .templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) at com .webobjects .appserver ._private .WOComponentDefinition.template(WOComponentDefinition.java:364) at com.webobjects.appserver.WOComponent.template(WOComponent.java: 499) at com .webobjects .appserver.WOComponent.appendToResponse(WOComponent.java:1112) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java: 135) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects .appserver.WOComponent.appendToResponse(WOComponent.java:1122) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java: 1385) at com .webobjects .appserver.WOApplication.appendToResponse(WOApplication.java:1794) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:242) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java: 332) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369) at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442) at com .webobjects .appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com .webobjects