Benjamin, Thanks alot for checking into this. I just sent an email prior to this, but it's awaiting moderator approval? So in a nutshell, my previous comment was that you do not need the CGI stuff - you can use the Production datasets in data.lzx and comment out the Development ones and that should work.
Thanks again for your help! I look forward to getting the DHTML target working. James Benjamin Shine <[EMAIL PROTECTED]> wrote: I've found a few things that are causing problems. Legals doesn't support audio, yet, so inclusion of mp3 resources and calls to playSound need to be removed. The stack trace happens on the inclusion of mp3 resources... This is filed as LPP-3340 http://www.openlaszlo.org/jira/browse/LPP-3340Commenting out the mp3 resources gets us further, and each of the calls to LzAudio.playSound need to be commented out. Next I found some issues in basecrollbar, a bunch of places where the code was accessing this.thumb without checking whether this.thumb exists. This is the don't-dereference-a-null-pointer problem; swf silently fails when you try to dereference a null pointer, but dhtml gives up. I've just patched lps/base/basecrollbar.lzx, and I'll go through the file-a-bug, suggest-a-patch process. Give me a couple of days, and I'll have a fix checked in for that. With those changes, we compile ok, and get as far as loading the splash. Then... the constraint on the "latLbl" button refers to orLbl, but orLbl is null; i think you meant vflds.orLbl but for simplicity and for now, i took out the constraint on y completely. Same for the longitude label, each time orLbl and latLbl appear in the code. And now I get as far as an error at startup on "Amsterdam is not defined". I can kind of see where that's going; "Amsterdam" needs to be interpreted as a string literal, not a javascript identifier. I'll try to isolate this. Can I test this usefully without running the cgi-bin's on my machine? Hope this helps; I'll try to look at it again, and send real diffs. Given that it already pointed out a bug in one of the base components, it seems like a very useful exercise :) -ben On Dec 16, 2006, at 6:53 AM, James Caple wrote: PT & Benjamin, The app I am trying port to DHTML runs at topoblog.com. The source is in subversion at: https://svn.sourceforge.net/svnroot/topoblog. All I have done with legals so far is to put my source in \openlaszlo-4x\Server\lps-4.0.x\topoblog and try compiling my main file (topoblog.lzx) using the three available targets (swf7, swf8 and dhtml). The dhtml target generates the stack trace previously supplied, while the other two at least compile (although there are evident porting changes that need to be made under those two targets - as expected). Based on what I have read thus far, I do have embedded fonts (which I don't think should cause a compile stack trace), and I probably do have poorly handled null pointers (there do seem to be indications that this could cause a compilation problem). So I will look at the null pointer situation first and let you know of my success. Thanks for your help! James P T Withington <[EMAIL PROTECTED]> wrote: James, this looks like a bug in the compiler. If you could give details on exactly what you did to provoke it, it would help us track the bug down. In general, you should _not_ expect to have to change your application a great deal to port to Legal's. There is some information on incompatibilities here: http://wiki.openlaszlo.org/Runtime_Differences and Ben has written up his experience porting one of the larger demos here: http://weblog.openlaszlo.org/archives/2006/10/developer-notes-on- porting-to-legals/ On 2006-12-15, at 21:50 EST, James Caple wrote: > Hi, > > I just started trying to port my app. to Legals using the latest > '3116 legals' in the nightly build. The compile for swf7 and swf8 > seems ok less some quirky font issues again. But the DHTML target > bombs horribly. Is it going to be the case that our LZX files will > need to be tweaked per targeted platform? Are there any porting > guidelines available anywhere? > > Thanks in advance for any help or ideas on how to get my lzx files > compiled into DHTML. > > James > > PS, here is the stack trace I get when compiling with DHTML. The > source I am compiling is also at http://sourceforge.net/projects/ > topoblog in subversion, not in the download. > > -- STACK TRACE -- > > > Error: org.openlaszlo.sc.parser.ParseException: Syntax error: the > token "}" was not expected at this position at line 46, column > 78.org.openlaszlo.utils.ChainedException: > org.openlaszlo.sc.parser.ParseException: Syntax error: the token > "}" was not expected at this position at line 46, column 78. > at org.openlaszlo.compiler.DHTMLWriter.close(DHTMLWriter.java:323) > at org.openlaszlo.compiler.Compiler.compile(Compiler.java:428) > at org.openlaszlo.compiler.Compiler.compile(Compiler.java:171) > at org.openlaszlo.cm.CompilationManager.compileItem > (CompilationManager.java:705) > at org.openlaszlo.cm.CompilationManager.getItem > (CompilationManager.java:442) > at org.openlaszlo.cm.CompilationManager.getLastModified > (CompilationManager.java:410) > at > org.openlaszlo.servlets.responders.ResponderCompile.getLastModified > (ResponderCompile.java:398) > at org.openlaszlo.servlets.responders.ResponderCompile.respondImpl > (ResponderCompile.java:178) > at org.openlaszlo.servlets.responders.Responder.respond > (Responder.java:265) > at org.openlaszlo.servlets.LZServlet._doGet(LZServlet.java:441) > at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:355) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:237) > at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:157) > at org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:214) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardContextValve.invokeInternal > (StandardContextValve.java:198) > at org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:152) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:137) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:117) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:102) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:109) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke > (ContainerBase.java:929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service > (CoyoteAdapter.java:160) > at org.apache.coyote.http11.Http11Processor.process > (Http11Processor.java:793) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.processConnection(Http11Protocol.java:702) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt > (PoolTcpEndpoint.java:571) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > (ThreadPool.java:644) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.openlaszlo.sc.parser.ParseException: Syntax error: > the token "}" was not expected at this position at line 46, column 78. > at org.openlaszlo.sc.parser.Parser.generateParseException > (Parser.java:8045) > at org.openlaszlo.sc.parser.Parser.jj_consume_token(Parser.java:7923) > at org.openlaszlo.sc.parser.Parser.ArrayLiteral(Parser.java:649) > at org.openlaszlo.sc.parser.Parser.PrimaryExpression(Parser.java:333) > at org.openlaszlo.sc.parser.Parser.CallExpression(Parser.java:784) > at org.openlaszlo.sc.parser.Parser.LeftHandSideExpression > (Parser.java:972) > at org.openlaszlo.sc.parser.Parser.PostfixExpression(Parser.java: > 1039) > at org.openlaszlo.sc.parser.Parser.UnaryExpression(Parser.java:1148) > at org.openlaszlo.sc.parser.Parser.MultiplicativeExpression > (Parser.java:1230) > at org.openlaszlo.sc.parser.Parser.AdditiveExpression(Parser.java: > 1306) > at org.openlaszlo.sc.parser.Parser.ShiftExpression(Parser.java:1384) > at org.openlaszlo.sc.parser.Parser.RelationalExpression > (Parser.java:1481) > at org.openlaszlo.sc.parser.Parser.EqualityExpression(Parser.java: > 1558) > at org.openlaszlo.sc.parser.Parser.BitwiseANDExpression > (Parser.java:1624) > at org.openlaszlo.sc.parser.Parser.BitwiseXORExpression > (Parser.java:1687) > at org.openlaszlo.sc.parser.Parser.BitwiseORExpression(Parser.java: > 1750) > at org.openlaszlo.sc.parser.Parser.LogicalANDExpression > (Parser.java:1793) > at org.openlaszlo.sc.parser.Parser.LogicalORExpression(Parser.java: > 1836) > at org.openlaszlo.sc.parser.Parser.ConditionalExpression > (Parser.java:1879) > at org.openlaszlo.sc.parser.Parser.AssignmentExpression > (Parser.java:2008) > at org.openlaszlo.sc.parser.Parser.PropertyNameAndValue > (Parser.java:758) > at org.openlaszlo.sc.parser.Parser.ObjectLiteral(Parser.java:707) > at org.openlaszlo.sc.parser.Parser.PrimaryExpression(Parser.java:336) > at org.openlaszlo.sc.parser.Parser.CallExpression(Parser.java:784) > at org.openlaszlo.sc.parser.Parser.LeftHandSideExpression > (Parser.java:972) > at org.openlaszlo.sc.parser.Parser.PostfixExpression(Parser.java: > 1039) > at org.openlaszlo.sc.parser.Parser.UnaryExpression(Parser.java:1148) > at org.openlaszlo.sc.parser.Parser.MultiplicativeExpression > (Parser.java:1230) > at org.openlaszlo.sc.parser.Parser.AdditiveExpression(Parser.java: > 1306) > at org.openlaszlo.sc.parser.Parser.ShiftExpression(Parser.java:1384) > at org.openlaszlo.sc.parser.Parser.RelationalExpression > (Parser.java:1481) > at org.openlaszlo.sc.parser.Parser.EqualityExpression(Parser.java: > 1558) > at org.openlaszlo.sc.parser.Parser.BitwiseANDExpression > (Parser.java:1624) > at org.openlaszlo.sc.parser.Parser.BitwiseXORExpression > (Parser.java:1687) > at org.openlaszlo.sc.parser.Parser.BitwiseORExpression(Parser.java: > 1750) > at org.openlaszlo.sc.parser.Parser.LogicalANDExpression > (Parser.java:1793) > at org.openlaszlo.sc.parser.Parser.LogicalORExpression(Parser.java: > 1836) > at org.openlaszlo.sc.parser.Parser.ConditionalExpression > (Parser.java:1879) > at org.openlaszlo.sc.parser.Parser.AssignmentExpression > (Parser.java:2008) > at org.openlaszlo.sc.parser.Parser.AssignmentExpression > (Parser.java:2023) > at org.openlaszlo.sc.parser.Parser.Expression(Parser.java:2070) > at org.openlaszlo.sc.parser.Parser.ExpressionStatement(Parser.java: > 2579) > at org.openlaszlo.sc.parser.Parser.ToplevelStatement(Parser.java: > 2147) > at org.openlaszlo.sc.parser.Parser.Directive(Parser.java:4140) > at org.openlaszlo.sc.parser.Parser.Program(Parser.java:4051) > at org.openlaszlo.sc.Compiler$Parser.parse0(Compiler.java:468) > at org.openlaszlo.sc.Compiler$Parser.parse(Compiler.java:490) > at org.openlaszlo.sc.Compiler.compile(Compiler.java:341) > at org.openlaszlo.sc.ScriptCompiler._compileToByteArray > (ScriptCompiler.java:109) > at org.openlaszlo.sc.ScriptCompiler.compileToByteArray > (ScriptCompiler.java:194) > at org.openlaszlo.compiler.DHTMLWriter.close(DHTMLWriter.java:317) > ... 36 more > Caused by: > org.openlaszlo.sc.parser.ParseException: Syntax error: the token > "}" was not expected at this position at line 46, column 78. > at org.openlaszlo.sc.parser.Parser.generateParseException > (Parser.java:8045) > at org.openlaszlo.sc.parser.Parser.jj_consume_token(Parser.java:7923) > at org.openlaszlo.sc.parser.Parser.ArrayLiteral(Parser.java:649) > at org.openlaszlo.sc.parser.Parser.PrimaryExpression(Parser.java:333) > at org.openlaszlo.sc.parser.Parser.CallExpression(Parser.java:784) > at org.openlaszlo.sc.parser.Parser.LeftHandSideExpression > (Parser.java:972) > at org.openlaszlo.sc.parser.Parser.PostfixExpression(Parser.java: > 1039) > at org.openlaszlo.sc.parser.Parser.UnaryExpression(Parser.java:1148) > at org.openlaszlo.sc.parser.Parser.MultiplicativeExpression > (Parser.java:1230) > at org.openlaszlo.sc.parser.Parser.AdditiveExpression(Parser.java: > 1306) > at org.openlaszlo.sc.parser.Parser.ShiftExpression(Parser.java:1384) > at org.openlaszlo.sc.parser.Parser.RelationalExpression > (Parser.java:1481) > at org.openlaszlo.sc.parser.Parser.EqualityExpression(Parser.java: > 1558) > at org.openlaszlo.sc.parser.Parser.BitwiseANDExpression > (Parser.java:1624) > at org.openlaszlo.sc.parser.Parser.BitwiseXORExpression > (Parser.java:1687) > at org.openlaszlo.sc.parser.Parser.BitwiseORExpression(Parser.java: > 1750) > at org.openlaszlo.sc.parser.Parser.LogicalANDExpression > (Parser.java:1793) > at org.openlaszlo.sc.parser.Parser.LogicalORExpression(Parser.java: > 1836) > at org.openlaszlo.sc.parser.Parser.ConditionalExpression > (Parser.java:1879) > at org.openlaszlo.sc.parser.Parser.AssignmentExpression > (Parser.java:2008) > at org.openlaszlo.sc.parser.Parser.PropertyNameAndValue > (Parser.java:758) > at org.openlaszlo.sc.parser.Parser.ObjectLiteral(Parser.java:707) > at org.openlaszlo.sc.parser.Parser.PrimaryExpression(Parser.java:336) > at org.openlaszlo.sc.parser.Parser.CallExpression(Parser.java:784) > at org.openlaszlo.sc.parser.Parser.LeftHandSideExpression > (Parser.java:972) > at org.openlaszlo.sc.parser.Parser.PostfixExpression(Parser.java: > 1039) > at org.openlaszlo.sc.parser.Parser.UnaryExpression(Parser.java:1148) > at org.openlaszlo.sc.parser.Parser.MultiplicativeExpression > (Parser.java:1230) > at org.openlaszlo.sc.parser.Parser.AdditiveExpression(Parser.java: > 1306) > at org.openlaszlo.sc.parser.Parser.ShiftExpression(Parser.java:1384) > at org.openlaszlo.sc.parser.Parser.RelationalExpression > (Parser.java:1481) > at org.openlaszlo.sc.parser.Parser.EqualityExpression(Parser.java: > 1558) > at org.openlaszlo.sc.parser.Parser.BitwiseANDExpression > (Parser.java:1624) > at org.openlaszlo.sc.parser.Parser.BitwiseXORExpression > (Parser.java:1687) > at org.openlaszlo.sc.parser.Parser.BitwiseORExpression(Parser.java: > 1750) > at org.openlaszlo.sc.parser.Parser.LogicalANDExpression > (Parser.java:1793) > at org.openlaszlo.sc.parser.Parser.LogicalORExpression(Parser.java: > 1836) > at org.openlaszlo.sc.parser.Parser.ConditionalExpression > (Parser.java:1879) > at org.openlaszlo.sc.parser.Parser.AssignmentExpression > (Parser.java:2008) > at org.openlaszlo.sc.parser.Parser.AssignmentExpression > (Parser.java:2023) > at org.openlaszlo.sc.parser.Parser.Expression(Parser.java:2070) > at org.openlaszlo.sc.parser.Parser.ExpressionStatement(Parser.java: > 2579) > at org.openlaszlo.sc.parser.Parser.ToplevelStatement(Parser.java: > 2147) > at org.openlaszlo.sc.parser.Parser.Directive(Parser.java:4140) > at org.openlaszlo.sc.parser.Parser.Program(Parser.java:4051) > at org.openlaszlo.sc.Compiler$Parser.parse0(Compiler.java:468) > at org.openlaszlo.sc.Compiler$Parser.parse(Compiler.java:490) > at org.openlaszlo.sc.Compiler.compile(Compiler.java:341) > at org.openlaszlo.sc.ScriptCompiler._compileToByteArray > (ScriptCompiler.java:109) > at org.openlaszlo.sc.ScriptCompiler.compileToByteArray > (ScriptCompiler.java:194) > at org.openlaszlo.compiler.DHTMLWriter.close(DHTMLWriter.java:317) > at org.openlaszlo.compiler.Compiler.compile(Compiler.java:428) > at org.openlaszlo.compiler.Compiler.compile(Compiler.java:171) > at org.openlaszlo.cm.CompilationManager.compileItem > (CompilationManager.java:705) > at org.openlaszlo.cm.CompilationManager.getItem > (CompilationManager.java:442) > at org.openlaszlo.cm.CompilationManager.getLastModified > (CompilationManager.java:410) > at > org.openlaszlo.servlets.responders.ResponderCompile.getLastModified > (ResponderCompile.java:398) > at org.openlaszlo.servlets.responders.ResponderCompile.respondImpl > (ResponderCompile.java:178) > at org.openlaszlo.servlets.responders.Responder.respond > (Responder.java:265) > at org.openlaszlo.servlets.LZServlet._doGet(LZServlet.java:441) > at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:355) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:237) > at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:157) > at org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:214) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardContextValve.invokeInternal > (StandardContextValve.java:198) > at org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:152) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:137) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:117) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:102) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:109) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke > (ContainerBase.java:929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service > (CoyoteAdapter.java:160) > at org.apache.coyote.http11.Http11Processor.process > (Http11Processor.java:793) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.processConnection(Http11Protocol.java:702) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt > (PoolTcpEndpoint.java:571) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > (ThreadPool.java:644) > at java.lang.Thread.run(Thread.java:595) > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
