| Rami, I tried to recreate the best I could so I could use (almost) the exact same command line, I created the same directories you have, but I have a different LPS_HOME: $ pwd /opt/dev/+apps/exodus/#work/laszlo $ echo $LPS_HOME /Users/clients/laszlo/src/svn/openlaszlo/trunk-d $ $LPS_HOME/WEB-INF/lps/server/bin/lzc -g2 --runtime=swf10 --dir '/opt/dev/+apps/exodus/#work/laszlo' --output index2.lzx.swf /opt/dev/+apps/exodus/src/laszlo/index2.lzx Compiling: /opt/dev/+apps/exodus/src/laszlo/index2.lzx to index2.lzx.swf compiler output is Loading configuration file /Users/clients/laszlo/src/svn/openlaszlo/trunk-d/WEB-INF/frameworks/flex-config.xml /private/var/folders/ZT/ZTXs92LlFNeA1M6v8k3KhU+++TI/-Tmp-/lzswf9/opt/dev/+apps/exodus/src/laszlo/build/index2/app.swf (1412313 bytes) $ ls index2.lzx.swf $ ls /opt/dev/+apps/exodus/src/laszlo index2.lzx $ ls '/opt/dev/+apps/exodus/#work/laszlo' index2.lzx.swf $ pwd /opt/dev/+apps/exodus/#work/laszlo The only things different that I see: - I'm not using the servlet release - I probably have a more current release than you do (but nothing has changed in this area for at least months) - I have a different app than you do. - I quoted the '#' copied from your command line (since that is a shell comment for bash). I still think we can crack this. If you're game, here's a series of steps to get there: 1) wherever the errant index2.lzx.swf10.swf appears (next to index2.lzx, right?), do this: rm -f index2.lzx.swf10.swf mkdir index2.lzx.swf10.swf and then rerun. When it tries to create that file name, it will fail and give us an exception. All good, except that the stack trace part of the exception is lost. 2) Use the attached version of lzc -- I've called it lzc.jdb, since it runs the jdb debugger. (I'm assuming jdb is in your path -- if java is, it probably is too). Then run your command line as before (with the bogus directory from step 1 in place), but change lzc to lzc.jdb You should see: Initializing jdb ... > 3) Assuming you have the jdb prompt at this point: > stop in org.openlaszlo.compiler.Main:422 Deferring breakpoint org.openlaszlo.compiler.Main:422. It will be set after the class is loaded. > run (it should run.... and hit the breakpoint) with a prompt something like: 'main[1]'. main[1] print e.printStackTrace() java.io.FileNotFoundException: /opt/dev/+apps/exodus/#work/laszlo/index2.lzx.swf (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:145) at org.openlaszlo.compiler.Compiler.compile(Compiler.java:203) at org.openlaszlo.compiler.Main.compile(Main.java:399) at org.openlaszlo.compiler.Main.lzc(Main.java:339) at org.openlaszlo.compiler.Main.main(Main.java:105) e.printStackTrace() = <void value> main[1] 4) send me the stack trace (or you're welcome to chase it yourself)! BTW, what system are you running on? Thanks! |
lzc.jdb
Description: Binary data
-- Don Anderson Java/C/C++, Berkeley DB, systems consultant voice: 617-306-2057 email: [email protected] www: http://www.ddanderson.com |
