I'll start off by saying this is not a path issue :)  Flex Mojos has
no trouble finding the Flash Player.

I believe this issue is caused by our recent upgrade to Flex Mojos 3.3
as things worked before that.  We used xvnc and that entire setup
worked great.  It seems that 3.3 defaults to xvfb now, though, and I
don't even know how to tell it to not use xvfb.  We would prefer to
use xvnc, so if I can find the option to go back that, that would be
perfect

What is happening now is that the build is failing when run through
Hudson.  It works on my Ubunutu Linux development box (i.e. with a
GUI) and it even works when I manually run mvn on the command line on
the build server (which is headless).  It only fails when run through
Hudson.  The output on a normal build is:
------------
[INFO] [flexmojos:test-run {execution: default-test-run}]
[INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
[INFO] Running tests /opt/tomcat/hudson_work/jobs/intouch-devel/
workspace/intouch-devel/flexV3/intouch-flex-core-lib/target/test-
classes/TestRunner.swf
[WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
------------
And then it just hangs there.  If I look at the process list I can see
it running the xvfb command
----------------
\_ /bin/sh /usr/bin/xvfb-run -a -e /tmp/
xvfbrun2113825775593935247flashplayer flashplayer /opt/tomcat/
hudson_work/jobs/intouch-devel/workspace/intouch-devel/flexV3
   \_ Xvfb :99 -screen 0 640x480x8 -nolisten tcp
    \_ flashplayer /opt/tomcat/hudson_work/jobs/intouch-devel/
workspace/intouch-devel/flexV3/intouch-flex-core-lib/target/test-
classes/TestRunner.swf
------------------

The verbose out (-X option) shows that the classes are compiled and
attempted to run through the flash player but it results in the
message:
[DEBUG] [SYSOUT]: Error #2044: Unhandled securityError:. text=Error
#2048: Security sandbox violation:
file:///opt/tomcat/hudson_work/jobs/intouch-devel/workspace/intouch-devel/flexV3/intouch-flex-core-lib/target/test-classes/TestRunner.swf
cannot load data from 127.0.0.1:13540.
[DEBUG] [SYSOUT]:   at
org.sonatype.flexmojos.unitestingsupport::ControlSocket/connect()[/
home/nexus/flexmojos/trunk/target/checkout/flexmojos-testing/flexmojos-
unittest-support/src/main/flex/org/sonatype/flexmojos/
unitestingsupport/ControlSocket.as:33]
[DEBUG] [SYSOUT]:   at
org.sonatype.flexmojos.unitestingsupport::TestApplication/runTests()[/
home/nexus/flexmojos/trunk/target/checkout/flexmojos-testing/flexmojos-
unittest-support/src/main/flex/org/sonatype/flexmojos/
unitestingsupport/TestApplication.as:39]
[DEBUG] [SYSOUT]:   at flash.events::EventDispatcher/
dispatchEventFunction()
[DEBUG] [SYSOUT]:   at flash.events::EventDispatcher/dispatchEvent()
[DEBUG] [SYSOUT]:   at mx.core::UIComponent/dispatchEvent()[C:
\autobuild\3.3.0\frameworks\projects\framework\src\mx\core
\UIComponent.as:9308]
[DEBUG] [SYSOUT]:   at mx.core::UIComponent/set initialized()[C:
\autobuild\3.3.0\frameworks\projects\framework\src\mx\core
\UIComponent.as:1169]
[DEBUG] [SYSOUT]:   at mx.managers::LayoutManager/doPhasedInstantiation
()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers
\LayoutManager.as:718]
[DEBUG] [SYSOUT]:   at Function/http://adobe.com/AS3/2006/
builtin::apply()
[DEBUG] [SYSOUT]:   at mx.core::UIComponent/callLaterDispatcher2()[C:
\autobuild\3.3.0\frameworks\projects\framework\src\mx\core
\UIComponent.as:8633]
[DEBUG] [SYSOUT]:   at mx.core::UIComponent/callLaterDispatcher()[C:
\autobuild\3.3.0\frameworks\projects\framework\src\mx\core
\UIComponent.as:8573]

Here is the full output for both the Hudson build, and the command
line build
http://office.intouchtechnology.com/~collin/hudson.txt
http://office.intouchtechnology.com/~collin/command_line.txt


So going back to xvnc is preferable.  But a solution for xvfb would be
nice as well.

Regards,
Collin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to