Skip to main content
April 20, 2011
Question

Error #2046: The loaded file did not have a valid signature in flex 4

  • April 20, 2011
  • 3 replies
  • 53201 views

As part of our CI build, the ant script that builds the client side (flex 4) projects also runs a set of FlexUnit4 tests on the deployed project. Most of the tests work but a few fail with this error

RSL

http://local.foo.com/bar/com/blah/components/someComponent/framework_4.1.0.16076.swz failed to load.

Error #2046: The loaded file did not have a valid signature.

The build machine is running Ununtu 10.10 with Firefox 3.6 and Flashplayer 10.2. If I run  the exact same set of tasks, accessed from the same URL in windows everything passes with no problem. After some searching I did run across this thread: http://forums.adobe.com/message/2747415#2747415 but when I went looking for the libflashsupport.so file mentioned, the Ubuntu docs seemed to indicate that it was no longer needed.

I'm at my wits end here. Is libflashsupport.so actually needed in Ubuntu 10.10 and if so where would I find it? If not does anyone know of another issue that could be responsible for this?

    This topic has been closed for replies.

    3 replies

    April 25, 2011

    Something else I noticed. The error message was indicating that it was trying to load the swz file from the same directory as the module being tested which would fail since no such file exists in that directory. I created a custom version of flex-config.xml that looks for the swz in the frameworks/rsls directory instead and updated my ant build to load that as the config instead.

    Nothing... It still gives the same error, just with a different path to the offending .swz. This raises the question

    A) why is it failing to load the swc from the default url defined in the config file (http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/framework_4.1.0.16076.swz) and

    B) When it does fail, why isn't it able to load the swz from the local directory the second rsl-url points to?

    Inspiring
    April 26, 2011

    We did some testing and could not reproduce the problem. We tried with Flex 4.1 and Flex 4.5 with this configuration:

    Ubuntu 10.04 (VMware)

    Firefox 3.6.3

    Flash Player 10,2,159,1

    If you tried to load a signed RSL that does not exist, you should not get an invalid signature error. You should get an Error #2032: Stream Error. This tells me the Flash Player cache was not cleared.

    A. Does a browser tool such as Charles show the RSL is actually downloaded from the server?

    B. Security errors stop the load process.

    -Darrell

    April 26, 2011

    I installed charles, but I'm not sure what exactly to look for in that mountian of output. If the download of the rsls from adobe is working correctly is there a particula GET or POST I should be seeing?

    April 21, 2011

    Anyone? I really need to get this worked out soon. I'm currently looking at the dump-config output to see if something isn't set correctly in my ant build but I'm flying blind right now. Even a place to start looking would help.

    Inspiring
    April 21, 2011

    I think you'll need to build libflashsupport.so. The instructions are in the 07/29/08 comment in http://bugs.adobe.com/jira/browse/SDK-15282.

    -Darrell

    April 25, 2011

    I don't think that's going to work unless there is a version of flash support for flashplayer 10 out there somewhere.

    Inspiring
    April 20, 2011

    Another issue to what out for is to make sure your system clock is set correctly. If the system clock is too far in the past or future it can cause this problem.

    -Darrell

    UbuntuPenguin
    Participating Frequently
    April 20, 2011

    I'm "Loverin" that last name.