1

当我尝试在 linux 环境中构建我的代码时,我遇到了一个问题。

我收到这样的错误

org.openlaszlo.sc.CompilerError: tunit/line unknown: , in line: LzApplication___embed_lzasset_nogobacktotest_button_rsc_1_dataClass.as: Error: unable to read transcoding source '/home/iuser/Desktop/lps-5.0.x/Server/lps-5.0.x/test/src/screens/resources/test_on.swf'

知道为什么会出现这个问题吗?

我正在使用 ubuntu 9.0 和 openlaszlo 5.0.x 并在 Firefox 浏览器中进行测试

4

1 回答 1

1

That is a Flex compiler error which is shown, when the transcoding and embedding of binary resources into the SWF movie fails. I've never seen that error, but I can locate the spot where it is thrown in the Flex SDK source code: flex2.compiler.media.DataTranscoder . The exception is thrown inside the method public static void loadData(TranscodingResults asset).

Maybe the SWF you are using has been corrupted. Could you try with a different SWF and see if it works? How did you create that SWF file initially? With the Flash authoring tool?

Update: Someone reported the same error message in the Apache Flex Jira. Everything worked in Windows, but he got the problem on OS X. The ownership of the file was not set correctly in his case. You have to make sure that the user used to run the Tomcat process is allowed to read the SWF file causing the problem.

于 2012-12-20T05:07:09.260 回答