Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

Error parsing report

$
0
0

Hi all,

 

I'm having trouble getting the Ant task working in Linux.   The swf runs, but there seems to be an issue communicating back the test results.  I pasted a full dump of the ant output below.  I've tried it in both Fedora 8 and OpenSUSE 11.2, and with both the FlexUnit4SampleCIProject and my own project.   I also tried the updated .jar and .swc mentioned in this post.  I'm using Ant directly without Hudson or anything.

I'm also having a hard time running headlessly, but I'm assuming that's a separate issue.

 

Any help would be greatly appreciated.

 

- Shane

 

#########

 

shane@linux-idnf:~/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject> ant clean package

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm32/jre1.6.0_18/lib/tools.jar

Buildfile: build.xml

 

clean:

   [delete] Deleting directory /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target

 

init:

    [mkdir] Created dir: /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target

    [mkdir] Created dir: /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/bin

    [mkdir] Created dir: /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/report

    [mkdir] Created dir: /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/dist

 

compile:

    [mxmlc] Loading configuration file /usr/lib/flex_sdk/frameworks/flex-config.xml

    [mxmlc] /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/bin/Main.s wf (326989 bytes)

 

test:

    [mxmlc] Loading configuration file /usr/lib/flex_sdk/frameworks/flex-config.xml

    [mxmlc] /home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/bin/TestRu nner.swf (852432 bytes)

[flexunit] Validating task attributes ...

[flexunit] Generating default values ...

[flexunit] Using the following settings:

[flexunit] haltonfailure: [false]

[flexunit] headless: [false]

[flexunit] display: [99]

[flexunit] localTrusted: [true]

[flexunit] player: [flash]

[flexunit] port: [1024]

[flexunit] swf: [/home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/bin/TestR unner.swf]

[flexunit] timeout: [60000ms]

[flexunit] toDir: [/home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/report]

[flexunit] verbose: [true]

[flexunit] Setting up server process ...

[flexunit] Starting server ...

[flexunit] OS: [Linux]

[flexunit] Opening server socket on port [1024].

[flexunit] Waiting for client connection ...

[flexunit] Launching player:

[flexunit] Executing 'gflashplayer' with arguments:

[flexunit] '/home/shane/Download/flexunit-flexunit-91fcfdd/FlexUnit4SampleCIProject/target/bin/TestR unner.swf'

[flexunit]

[flexunit] The ' characters around the executable and arguments are

[flexunit] not part of the command.

[flexunit]

[flexunit] Client connected.

[flexunit] Setting inbound buffer size to [262144] bytes.

[flexunit] Receiving data ...

[flexunit] Sending acknowledgement to player to start sending test data ...

[flexunit]

[flexunit] <testcase classname="org.flexunit.demo::EchoPanelTest" name="testEventWasNotDispatchedWithoutClick" time="0" status="success" />

[flexunit]

[flexunit] Stopping server ...

[flexunit] End of test data reached, sending acknowledgement to player ...

[flexunit] Closing client connection ...

[flexunit] Closing server on port [1024] ...

 

BUILD FAILED

java.util.concurrent.ExecutionException: Error parsing report.

at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)

at java.util.concurrent.FutureTask.get(Unknown Source)

at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:357)

at org.apache.tools.ant.Target.performTasks(Target.java:385)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)

at org.apache.tools.ant.Project.executeTarget(Project.java:1306)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1189)

at org.apache.tools.ant.Main.runBuild(Main.java:758)

at org.apache.tools.ant.Main.startAnt(Main.java:217)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Caused by: Error parsing report.

at org.flexunit.ant.FlexUnitSocketThread.parseReport(Unknown Source)

at org.flexunit.ant.FlexUnitSocketThread.processTestReport(Unknown Source)

at org.flexunit.ant.FlexUnitSocketThread.parseInboundMessages(Unknown Source)

at org.flexunit.ant.FlexUnitSocketThread.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

at org.dom4j.io.SAXReader.read(SAXReader.java:484)

at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)

... 9 more

 

Total time: 15 seconds


Viewing all articles
Browse latest Browse all 25673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>