[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6227) JMX Core Tests fails to find example project's .project file

Rob Stryker (JIRA) jira-events at lists.jboss.org
Mon May 3 02:10:05 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12528567#action_12528567 ] 

Rob Stryker commented on JBIDE-6227:
------------------------------------

Trying to execute the ant script yields the following:


get.maven:
      [get] Getting: http://mirror.csclub.uwaterloo.ca/apache/maven/binaries/apache-maven-3.0-beta-1-bin.tar.gz
      [get] To: /tmp/apache-maven-3.0-beta-1-bin.tar.gz
      [get] Not modified - so not downloaded
    [untar] Expanding: /tmp/apache-maven-3.0-beta-1-bin.tar.gz into /tmp

BUILD FAILED
/home/rob/code/build_jbt/build/build.xml:167: The following error occurred while executing this line:
/home/rob/code/build_jbt/build/build.xml:117: Error while expanding /tmp/apache-maven-3.0-beta-1-bin.tar.gz

In other news this test seems to work 100% in my workspace so I'm fairly sure this must be a problem in the build and not the unit test. I encourage *you* to investigate further. 

> JMX Core Tests fails to find example project's .project file
> ------------------------------------------------------------
>
>                 Key: JBIDE-6227
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6227
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jmx
>    Affects Versions: 3.2.next
>            Reporter: Nick Boldt
>            Assignee: Rob Stryker
>
> Running JMX tests on local or in Hudson, I get:
> [INFO] --- maven-osgi-test-plugin:0.9.0-SNAPSHOT:test (default-test) @ org.jboss.tools.jmx.core.test ---
> [INFO] Expected eclipse log file: /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/data/.metadata/.log
> [INFO] Command line:
> 	/bin/sh -c cd /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test && /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86 -jar /home/nboldt/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.0.201.R35x_v20090715/org.eclipse.equinox.launcher-1.0.201.R35x_v20090715.jar -data /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/data -dev file:/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/dev.properties -install /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work -configuration /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/configuration -application org.codehaus.tycho.surefire.osgibooter.uitest -testproperties /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/surefire.properties -testApplication org.eclipse.ui.ide.workbench -product org.eclipse.sdk.ide
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.jboss.tools.jmx.core.test.JMXCoreAllTests
> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.106 sec <<< FAILURE!
> testConnection(org.jboss.tools.jmx.core.test.DefaultProviderTest)  Time elapsed: 0.009 sec  <<< ERROR!
> org.eclipse.core.internal.resources.ResourceException()[567]: java.io.FileNotFoundException: /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/data/JMX_EXAMPLE/.project (No such file or directory)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:137)
> 	at org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:626)
> 	at org.eclipse.core.internal.resources.Workspace.loadProjectDescription(Workspace.java:1478)
> 	at org.jboss.tools.jmx.core.test.util.TestProjectProvider.importExistingProject(TestProjectProvider.java:109)
> 	at org.jboss.tools.jmx.core.test.util.TestProjectProvider.init(TestProjectProvider.java:97)
> 	at org.jboss.tools.jmx.core.test.util.TestProjectProvider.<init>(TestProjectProvider.java:65)
> 	at org.jboss.tools.jmx.core.test.DefaultProviderTest.testConnection(DefaultProviderTest.java:80)
> Results :
> Tests in error: 
>   testConnection(org.jboss.tools.jmx.core.test.DefaultProviderTest)
> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
> ------------
> Did some digging and it seems that the .../jmx/tests/org.jboss.tools.jmx.core.test/target/work/data/JMX_EXAMPLE/ folder is empty. However, the content that's supposed to be checked out into that dir is definitely in the target/org.jboss.tools.jmx.core.test-1.1.0-SNAPSHOT.jar jar, so I would think the problem is in how the test is doing its unpacking, rather than how the jar is being built.
> --------
> Same error in Hudson:
> http://hudson.qa.jboss.com/hudson/view/DevStudio/job/jbosstools-tycho-modular/lastCompletedBuild/testReport/org.jboss.tools.jmx.core.test/JMXCoreAllTests/testConnection/
> To run test in Hudson:
> http://hudson.qa.jboss.com/hudson/view/DevStudio/job/jbosstools-tycho-modular -> Build Now -> only need these components to be built: tests,common,jmx; may need to use -Dbuild.if.sources.unchanged=true flag too.
> To run test locally from a fresh checkout:
> cd /tmp; svn co http://anonsvn.jboss.org/repos/jbosstools/trunk/build/
>   or
> cd /tmp; svn co http://anonsvn.jboss.org/repos/jbosstools/branches/modular_build/build/
>   then
> cd /tmp/build; ant -DCOMPONENTS=tests,common,jmx

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list