|
The fix is easy, just not calling parent.width from
classroot width attribute.
Change:
width="${parent.width}"
To:
width="${this.parent.width}"
if you really want to your class by default, taking
the width of its lexical parent. This will bypass the bug.
Thanks Henry for the pointer,
Ran
----- Original Message -----
Sent: Thursday, July 27, 2006 11:55
Subject: Re: [Laszlo-user] 3.3.3
crash
Can you try the test case they give, and tell me if it gets the
error for you:
http://localhost:8080/trunk/test/bugs/lpp-1561.lzx
<?xml
version=" 1.0" ?> <canvas> <class name="mylist"
extends="list"> <attribute name="width"
value="${parent.width}" /> </class>
<view width="150" height="150"> <mylist
id="theList"> <textlistitem>here's
an item</textlistitem>
<textlistitem>here's an item</textlistitem>
</mylist> </view> </canvas>
On 7/27/06, Henry
Minsky <[EMAIL PROTECTED]>
wrote:
On 7/27/06, Ran
< [EMAIL PROTECTED]>
wrote:
Hi Henry:
I am going through my app right now, trying
to figure out what was wrong.
I am not able to give you a small portion of
the code, since I dont know which portion :-(
Well, thanks for the headup that informing me
this is fixable :-) I will keep on going through this ~20,000 liner app,
certainly component by component, thx laszlo made this
possible.
Thanks
-----
Original Message -----
Sent:
Wednesday, July 26, 2006 18:37
Subject:
Re: [Laszlo-user] 3.3.3 crash
Can you send me a small test case that triggers the bug?
I fixed a similar bug a while ago, not sure whether it made it to the
release...
On 7/26/06, Ran <[EMAIL PROTECTED]>
wrote:
Hi, all
I have posted this on the Community
Forums on openlaszlo.org, but
haven't received any comments, I have also tried to comment out source
code part by part - brutal force isn't a good way this
time.
Here is the stacktrace when I try to run
a app built with 3.1, on 3.3.3 server
It looks like the compiler isn't quite
happy with some width values ?
I can't wait to try out 3.3.3 and
continue developing with new syntax and features, this has been a
bugger to me.
Thanks for any directions,
Ran
Error: No match foundjava.lang.IllegalStateException: No match found at java.util.regex.Matcher.group(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.evalWidth(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.mergeWidth
(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.mergeClassFontInfo(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.mergeClassFontInfo(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.mapTextMetricsCompilation
(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.mapTextMetricsCompilation(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.mapTextMetricsCompilation(Unknown Source) at org.openlaszlo.compiler.ViewCompiler.compile
(Unknown Source) at org.openlaszlo.compiler.Compiler.compileElement(Unknown Source) at org.openlaszlo.compiler.CanvasCompiler.compile(Unknown Source) at org.openlaszlo.compiler.Compiler.compileElement(Unknown Source)
at org.openlaszlo.compiler.Compiler.compile(Unknown Source) at org.openlaszlo.compiler.Compiler.compile(Unknown Source) at org.openlaszlo.cm.CompilationManager.compileItem(Unknown Source) at org.openlaszlo.cm.CompilationManager.getItem
(Unknown Source) at org.openlaszlo.cm.CompilationManager.getLastModified(Unknown Source) at org.openlaszlo.servlets.responders.ResponderCompile.getLastModified(Unknown Source) at org.openlaszlo.servlets.responders.ResponderCompile.respondImpl
(Unknown Source) at org.openlaszlo.servlets.responders.Responder.respond(Unknown Source) at org.openlaszlo.servlets.LZServlet._doGet(Unknown Source) at org.openlaszlo.servlets.LZServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) _______________________________________________
Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
-- Henry Minsky Software Architect [EMAIL PROTECTED]
-- Henry
Minsky Software Architect [EMAIL PROTECTED]
-- Henry Minsky Software Architect [EMAIL PROTECTED]
|