With that program I get this error below in the browser. So I think there is something else wrong with the compiler installation or config on your system.
Can you try running from the command line like I do below and tell me what it outputs to the shell? ==== (from browser, fetching http://localhost:8080/trunk-clean/test/hello.lzx?lzr=swf9 ) The application could not be compiled due to the following errors: Compilation Errorsorg.openlaszlo.sc.CompilerError: hello.lzx: 5: Error: Access of undefined property hib, in line: hib.currentroomid = roomId_$2 And this error if I run from command line lzc --runtime=swf9 test/hello.lzx Compiling: test/hello.lzx to test/hello.swf9.swf Executing compiler: (cd /tmp/lzswf9/test/build/hello; /Users/hqm/openlaszlo/trunk-clean/WEB-INF/bin/mxmlc -load-config=/Users/hqm/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml -compiler.show-actionscript-warnings=false -compiler.source-path+=/tmp/lzswf9/test/build/hello -debug=true -compiler.headless-server=true -compiler.fonts.advanced-anti-aliasing=true -output /tmp/lzswf9/test/build/hello/app.swf -default-size 500 400 -compiler.library-path+=/Users/hqm/openlaszlo/trunk-clean/lps/includes/lfc/LFC9-debug.swc -compiler.library-path+=/Users/hqm/openlaszlo/trunk-clean/WEB-INF/flexlib -includes \$debug \$profile \$backtrace \$runtime \$swf7 \$swf8 \$as2 \$swf9 \$swf10 \$as3 \$dhtml \$j2me \$svg \$js1 -target-player=9.0.0 -frame two LzSpriteApplication -file-specs=/tmp/lzswf9/test/build/hello/LzPreloader.as) compiler output is Loading configuration file /Users/hqm/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml compiler output: Loading configuration file /Users/hqm/openlaszlo/trunk-clean/WEB-INF/frameworks/flex-config.xml ERRORS: [/tmp/lzswf9/test/build/hello/$lzc$class_$2Fcanvas.as: 7] hello.lzx: 5: Error: Access of undefined property hib. FAIL: compiler returned 1 Done executing compiler Intermediate file /tmp/lzswf9/test/build/hello/app.swf: does not exist Compilation errors occurred: org.openlaszlo.sc.CompilerError: hello.lzx: 5: Error: Access of undefined property hib, in line: hib.currentroomid = roomId_$2 badtzmaru:trunk-clean hqm$ On Fri, Jul 24, 2009 at 2:46 PM, Sebastian Wagner <[email protected]>wrote: > for example: > <?xml version="1.0" encoding="UTF-8" ?> > <canvas debug="true" width="100%" height="100%" > > > <method name="setRoomValues" args="roomTypeId,roomId,roomObj"> > hib.currentroomid = roomId; > </method> > > </canvas> > > results in: > org.openlaszlo.sc.CompilerError: Errors from compiler, output file not > created > > thanks, > sebastian > > 2009/7/24 Henry Minsky <[email protected]> > > Are you talking about compile time errors or runtime errors? >> >> Can you give an example of a compile time error that stops the compiler? >> >> I tried a simple example like this with a method that the compiler knows >> does not exist at compile time: >> >> <canvas> >> <text bgcolor="#ccffcc" text="${canvas.runtime}"> >> <handler name="oninit"> >> LzView.nosuchmethod(); >> </handler> >> </text> >> </canvas> >> >> The error reported does localize properly to the lzx file source code line >> number >> >> >> The application could not be compiled due to the following errors: >> Compilation Errorsorg.openlaszlo.sc.CompilerError: hello.lzx: 4: Error: >> Call to a possibly undefined method nosuchmethod through a reference with >> static type Class, in line: LzView.nosuchmethod() >> >> It may be however that your example is doing something that confuses the >> LPS compiler in a way that it is unable to parse out the flex compiler error >> message and transform it back to LZX source code filename and line numbers, >> so it would help to see you specific example. >> >> >> For a runtime error, like below, the compiler does not know whether the >> method exists, because 'canvas' in this example is declared as a dynamic >> variable which may have properties added at runtime: >> >> <canvas> >> <text bgcolor="#ccffcc" text="${canvas.runtime}"> >> <handler name="oninit"> >> canvas.nosuchmethod(); >> </handler> >> </text> >> </canvas> >> >> >> But when it runs, it gives a runtime error in the Flash debug player. >> >> TypeError: Error #1006: nosuchmethod is not a function. >> at $lzc$class_$2Fcanvas$2Ftext/$m4() >> at >> Function/http://adobe.com/AS3/2006/builtin::call()<http://adobe.com/AS3/2006/builtin::call%28%29> >> at LzEvent/sendEvent() >> at LzNode/__LZcallInit() >> at LzCanvas/__LZcallInit() >> at LzCanvas/__LZinstantiationDone() >> at LzInstantiatorService/makeSomeViews() >> at LzInstantiatorService/checkQ() >> at >> Function/http://adobe.com/AS3/2006/builtin::call()<http://adobe.com/AS3/2006/builtin::call%28%29> >> at LzEvent/sendEvent() >> at LzIdleKernel$/__update() >> >> >> If runtime errors, are you running with the Flash Debug player? >> >> On Fri, Jul 24, 2009 at 2:24 PM, Sebastian Wagner >> <[email protected]>wrote: >> >>> I think you can quite easy make a compiler issue like that cause every >>> time you write in your code a call to a method or attribute that does not >>> exist, that hole Compiler does stop and quite. >>> >>> thanks, >>> sebastian >>> >>> 2009/7/24 P T Withington <[email protected]> >>> >>> Henry and Raju have given lots of hints. I'll just add that when you find >>>> out the cause, please file a bug if you can. Clearly we would like this not >>>> to happen. >>>> >>>> >>>> On Jul 24, 2009, at 7:28, Sebastian Wagner <[email protected]> >>>> wrote: >>>> >>>> hi, >>>> >>>> actually you run into a lot of compilation issues when you run a >>>> previous application into SWF9. >>>> I followed the SWF9 Migration Guide of course, the code has zero >>>> problems to be compiled to SWF8. >>>> I guess in most cases its something very tiny tricky in the code that >>>> needs to be changed but actually you don't get anything except >>>> *org.openlaszlo.sc.CompilerError: Errors from compiler, output file not >>>> created* >>>> The console does also only pring: >>>> FAIL: compiler returned 1 ... or another number >>>> >>>> So how do you get those Compile Errors? >>>> I guess they are not really that handy as they will show you only errors >>>> in the resulting ActionScript that is going to be compiled by the Flex >>>> compiler. >>>> So you will not see which LZX-Codeline has the error. >>>> But without any notice at which code-block to look at its almost >>>> impossible to migrate more then a bunch of code lines with every >>>> compilation. >>>> >>>> I've seen that there are some properties in the configuration: >>>> compiler.swf9.warnings=false >>>> compiler.swf9.execflex=true >>>> # Tell compiler to catch errors in debug mode >>>> compiler.catcherrors=true >>>> >>>> changing them does seem to have an effect. >>>> >>>> Is there a clue that is hidden somewhere or how do you judge what needs >>>> to be done when you run into this? >>>> >>>> thanks, >>>> sebastian >>>> >>>> -- >>>> Sebastian Wagner >>>> <http://www.webbase-design.de>http://www.webbase-design.de >>>> <http://openmeetings.googlecode.com>http://openmeetings.googlecode.com >>>> <http://www.laszlo-forum.de>http://www.laszlo-forum.de >>>> <[email protected]>[email protected] >>>> >>>> >>> >>> >>> -- >>> Sebastian Wagner >>> http://www.webbase-design.de >>> http://openmeetings.googlecode.com >>> http://www.laszlo-forum.de >>> [email protected] >>> >> >> >> >> -- >> Henry Minsky >> Software Architect >> [email protected] >> >> >> > > > -- > Sebastian Wagner > http://www.webbase-design.de > http://openmeetings.googlecode.com > http://www.laszlo-forum.de > [email protected] > -- Henry Minsky Software Architect [email protected]
