Sorry, flashplayer!!!
Just follow the instructions
https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests

BTW, don't do questions on wiki comments, they don't go to my inbox.


<https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests>VELO

On Tue, Apr 21, 2009 at 12:50 PM, Marvin Froeder <[email protected]> wrote:

> Ow, you always will get that if you try to run the swf manually....
> Flexmojos is missing on PATH.... this error is better handled on
> 3.2-SNAPSHOT.
>
>
> VELO
>
>
> On Tue, Apr 21, 2009 at 12:47 PM, dhoffer <[email protected]> wrote:
>
>>
>> That error log is what is displayed when I simply open the generated
>> swf in flash...something is not working.
>>
>> On the other hand, if I run a maven install I get this error:
>>
>> [INFO] Already trust on C:\iss_svn\CDF\trunk\cdf-sdk\cdf-as-client
>> \target\test-c
>> lasses\TestRunner.swf
>> [INFO] [flexmojos:test-run]
>> [INFO] flexmojos 3.1.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
>> file
>> [INFO] Starting tests
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] null
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NullPointerException
>>        at org.sonatype.flexmojos.test.threads.AsVmLauncher.stop
>> (AsVmLauncher.ja
>> va:181)
>>        at
>> org.sonatype.flexmojos.test.threads.ControlledThreadUtil.stop(Control
>> ledThreadUtil.java:34)
>>        at org.sonatype.flexmojos.test.FlexUnitMojo.run
>> (FlexUnitMojo.java:294)
>>        at org.sonatype.flexmojos.test.FlexUnitMojo.execute
>> (FlexUnitMojo.java:15
>> 2)
>>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
>> (DefaultPlugi
>> nManager.java:483)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:678)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:540)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:519)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:371)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:332)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
>> (DefaultLi
>> fecycleExecutor.java:181)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
>> 356)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
>> 137)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke
>> (NativeMethodAccessorImpl.
>> java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        at org.codehaus.classworlds.Launcher.launchEnhanced
>> (Launcher.java:315)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>        at org.codehaus.classworlds.Launcher.mainWithExitCode
>> (Launcher.java:430)
>>
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>
>> Something is wrong in both cases.  Not sure if its the same problem.
>>
>> -Dave
>>
>>
>> On Apr 21, 9:31 am, Marvin Froeder <[email protected]> wrote:
>> > For some reason your flashplayer was not able to communicate with java
>> > side.... there is a socket there to send results from flex to java....
>> > No idea what is the real reason of that not being working at your
>> place.....
>> >  but this works, so, something with your env....
>> >
>> > VELO
>> >
>> > On Tue, Apr 21, 2009 at 12:21 PM, dhoffer <[email protected]> wrote:
>> >
>> > > I had the same error...so I added the missing dependency like this:
>> >
>> > > <dependency>
>> > >             <groupId>org.sonatype.flexmojos</groupId>
>> > >             <artifactId>flexmojos-unittest-support</artifactId>
>> > >            <version>${flexmojosMmavenPluginVersion}</version>
>> > >            <type>swc</type>
>> > >            <scope>test</scope>
>> > > </dependency>
>> >
>> > > However now when the tests run, i.e. the swf is run the the flash
>> > > player I get the following error:
>> >
>> > > Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
>> > >        at org.sonatype.flexmojos.unitestingsupport::SocketReporter/
>> > > sendResults()[/home/nexus/flexmojos/trunk/target/checkout/flexmojos-
>> > > testing/flexmojos-unittest-support/src/main/flex/org/sonatype/
>> > > flexmojos/unitestingsupport/SocketReporter.as:135]
>> > >        at <anonymous>()[/home/nexus/flexmojos/trunk/target/checkout/
>> > > flexmojos-testing/flexmojos-unittest-support/src/main/flex/org/
>> > > sonatype/flexmojos/unitestingsupport/SocketReporter.as:238]
>> > >        at
>> > > <anonymous>()[C:\autobuild\3.3.0\frameworks\projects\framework\src
>> > > \mx\binding\utils\BindingUtils.as:145]
>> > >        at mx.binding.utils::ChangeWatcher/wrapHandler()[C:\autobuild
>> > > \3.3.0\frameworks\projects\framework\src\mx\binding\utils
>> > > \ChangeWatcher.as:423]
>> > >        at flash.events::EventDispatcher/dispatchEventFunction()
>> > >        at flash.events::EventDispatcher/dispatchEvent()
>> > >        at org.sonatype.flexmojos.unitestingsupport::SocketReporter/
>> > > dispatchEvent()[/home/nexus/flexmojos/trunk/target/checkout/flexmojos-
>> > > testing/flexmojos-unittest-support/src/main/flex/org/sonatype/
>> > > flexmojos/unitestingsupport/SocketReporter.as:47]
>> > >        at org.sonatype.flexmojos.unitestingsupport::SocketReporter/set
>> > >
>> totalTestCount()[/home/nexus/flexmojos/trunk/target/checkout/flexmojos-
>> > > testing/flexmojos-unittest-support/src/main/flex/org/sonatype/
>> > > flexmojos/unitestingsupport/SocketReporter.as:44]
>> > >        at
>> > > org.sonatype.flexmojos.unitestingsupport::SocketReporter/runTests()
>> > > [/home/nexus/flexmojos/trunk/target/checkout/flexmojos-testing/
>> > > flexmojos-unittest-support/src/main/flex/org/sonatype/flexmojos/
>> > > unitestingsupport/SocketReporter.as:198]
>> > >        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:40]
>> > >        at flash.events::EventDispatcher/dispatchEventFunction()
>> > >        at flash.events::EventDispatcher/dispatchEvent()
>> > >        at
>> > > mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.3.0\frameworks
>> > > \projects\framework\src\mx\core\UIComponent.as:9308]
>> > >        at mx.core::UIComponent/set initialized()[C:\autobuild
>> > > \3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
>> > >        at
>> mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild
>> > > \3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:
>> > > 718]
>> > >        at Function/http://adobe.com/AS3/2006/builtin::apply()
>> > >        at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild
>> > > \3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8633]
>> > >        at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild
>> > > \3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8573]
>> >
>> > > What's the cause and fix for this?
>> > > -Dave
>> >
>> > > On Mar 27, 11:08 am, Michael <[email protected]> wrote:
>> > > > It's the same error as I got - check that you don't still have a
>> 2.0.3
>> > > > testing-support dependency.
>> >
>> > > > On Mar 27, 3:31 pm, Marvin Froeder <[email protected]> wrote:
>> >
>> > > > > It is missing this dependency:
>> > >http://repository.sonatype.org/content/groups/public/org/sonatype/fle.
>> ..
>> >
>> > > > > But if you are coming from flexmojos 2.0.x you should have this
>> > > dependency
>> > > > > already....
>> >
>> > > > > VELO
>> >
>> > > > > On Fri, Mar 27, 2009 at 11:54 AM, charlie <
>> [email protected]
>> > > >wrote:
>> >
>> > > > > > Hi Just upgrading from 2.0.3 and I changed my POM to use the new
>> > > > > > compiler:
>> > > > > > <plugin>
>> > > > > >                <groupId>org.sonatype.flexmojos</groupId>
>> >
>> > >  <artifactId>flexmojos-maven-plugin</artifactId>
>> > > > > >                        <version>3.0.0</version>
>> > > > > >                        <extensions>true</extensions>
>> > > > > >                <configuration>
>> > > > > >                    <sourceFile>jibbajabba.mxml</sourceFile>
>> > > > > >                </configuration>
>> > > > > >                <!-- <version>1.0</version> -->
>> > > > > >            </plugin>
>> >
>> > > > > > But when I run it I an getting the following error. Please
>> advice?
>> >
>> > > > > > Unable to locate specified base class
>> > > > > > 'org.sonatype.flexmojos.unitestingsupport.TestApplication' for
>> > > > > > component class 'TestRunner'.
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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