[Laszlo-user] bizarre error message -- more info

William Krick wkrick at eio-online.com
Fri Mar 31 11:59:23 EST 2006

I've looked into this a little further and it appears that a dataset must
have a default source of "/", so when doRequest is called, it queries apache
for the source relative to the app and gets the path that you see below.  Of
course, no file exists so it returns the tomcat 404 page.  Here's the source
of this page is below.  Notice the <HR> tag and the "noshade" attribute.
laszlo must be trying to parse the page as XML and chokes on "noshade".

I propose that code be added to the doRequest method so that it reports an
informational error when there is a missing/default "src" attribute alerting
you to that fact instead of trying to make a request from an obviously
invalid path.

<title>Apache Tomcat/5.0.24 - Error report</title>
  A {color : black;}
  A.name {color : black;}
  HR {color : #525D76;}
<h1>HTTP Status 404 - /lps-3.2/my-apps/test/</h1>
<HR size="1" noshade>
<b>type</b> Status report
<p><b>message</b> <u>/lps-3.2/my-apps/test/</u>
<b>description</b> <u>The requested resource (/lps-3.2/my-apps/test/) is not
<HR size="1" noshade>
<h3>Apache Tomcat/5.0.24</h3>

-----Original Message-----
From: William Krick [mailto:wkrick at eio-online.com]
Sent: Friday, March 31, 2006 10:52 AM
To: Laszlo-User
Subject: [Laszlo-user] bizarre error message

When I run the following example...

<canvas oninit="ds.doRequest()">
  <dataset name="ds"/>

...I get this error in the debugger...

ERROR: data conversion error for
http://localhost:8080/lps-3.2/my-apps/test/: Error on line 5: Attribute name
"noshade" associated with an element type "HR" must be followed by the ' = '

Now, I know that there should be an error when I call doRequest since I
didn't define a source, but I think the message it gives is just bizarre and
nonsensical especially considering that my source file only has 3 lines and
it's reporting an error on line 5.

It may be an indication of a bug somewhere.

Laszlo-user mailing list
Laszlo-user at openlaszlo.org

More information about the Laszlo-user mailing list