Announcement Announcement Module
Collapse
No announcement yet.
How can i make "hello-integration-test" run? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can i make "hello-integration-test" run?

    Recently i download a sample from https://anonsvn.springsource.org/svn...ration-testing.
    But when i build the project with ant&ivy, i got some errors.
    First, I got a problem about clover's license.

    error message:
    clover.pre:
    [mkdir] Created dir: D:\hello-integration-testing\build-hello\target\clover

    clover.do:
    [clover-setup] Clover Version 2.3.1, built on May 22 2008 (build-721)
    [clover-setup] Loaded from: D:\hello-integration-testing\ivy-cache\repository\com.atlassian.clover\com.springso urce.com.cenqua.clover\2.3.1\com.springsource.com. cenqua.clover-2.3.1.jar
    [clover-setup] No license file found.

    BUILD FAILED
    D:\hello-integration-testing\spring-build\multi-bundle\quality.xml:50: java.lang.RuntimeException: Invalid or missing License.. Please visit http://my.atlassian.com to obtain a valid license.


    Then i visit the url-http://my.atlassian.com and generate an license,copy to D:\hello-integration-testing\ivy-cache\repository\com.atlassian.clover\com.springso urce.com.cenqua.clover\2.3.1\.
    After doing this I try command ant again under D:\hello-integration-testing\build-hello,this time i got another error message:

    clover.do:
    [mkdir] Created dir: D:\hello-integration-testing\build-hello\target\test-results\xml
    [junit] Could not create the Java virtual machine.
    [junit] Error occurred during initialization of VM
    [junit] Could not reserve enough space for object heap
    [junit] java.io.FileNotFoundException: D:\hello-integration-testing\com.springsource.test.apps.osgi.hello.serv ice.im
    l\junitvmwatcher2055215288.properties (system can't find this file.)
    [junit] at java.io.FileInputStream.open(Native Method)
    [junit] at java.io.FileInputStream.<init>(FileInputStream.jav a:106)
    [junit] at java.io.FileReader.<init>(FileReader.java:55)
    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.executeAsForked(JUnitTask.java:1028)
    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:817)
    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:780)
    [junit] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:597)
    [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
    [junit] at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:62)
    [junit] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:597)
    [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
    [junit] at org.apache.tools.ant.taskdefs.MacroInstance.execut e(MacroInstance.java:391)
    [junit] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:597)
    [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
    [junit] at org.apache.tools.ant.Target.execute(Target.java:35 7)
    [junit] at org.apache.tools.ant.Target.performTasks(Target.ja va:385)
    [junit] at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1329)
    [junit] at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)
    [junit] at org.apache.tools.ant.Project.executeTargets(Projec t.java:1181)
    [junit] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :416)
    [junit] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAn t.java:289)
    [junit] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAn t.java:208)
    [junit] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:597)
    [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
    [junit] at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:62)
    [junit] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:597)
    [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
    [junit] at org.apache.tools.ant.taskdefs.MacroInstance.execut e(MacroInstance.java:391)
    [junit] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    [junit] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:597)
    [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:105)
    [junit] at org.apache.tools.ant.Task.perform(Task.java:348)
    [junit] at org.apache.tools.ant.Target.execute(Target.java:35 7)
    [junit] at org.apache.tools.ant.Target.performTasks(Target.ja va:385)
    [junit] at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1329)
    [junit] at org.apache.tools.ant.Project.executeTarget(Project .java:1298)
    [junit] at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
    [junit] at org.apache.tools.ant.Project.executeTargets(Projec t.java:1181)
    [junit] at org.apache.tools.ant.Main.runBuild(Main.java:698)
    [junit] at org.apache.tools.ant.Main.startAnt(Main.java:199)
    [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher. java:257)
    [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher .java:104)
    [subant] Leaving directory: D:\hello-integration-testing\com.springsource.test.apps.osgi.hello.serv ice.impl

    BUILD FAILED
    D:\hello-integration-testing\spring-build\multi-bundle\quality.xml:51: The following error occurred while executing this
    line:
    D:\hello-integration-testing\spring-build\multi-bundle\common.xml:71: The following error occurred while executing this
    ine:
    D:\hello-integration-testing\spring-build\common\quality.xml:76: The following error occurred while executing this line:
    D:\hello-integration-testing\spring-build\common\quality.xml:167: Test com.springsource.test.apps.osgi.hello.service.imp
    .HelloServiceIntegrationTests failed (crashed)




    Btw, where can i get com.springsource.server.test.xxx(versioin).jar

  • #2
    I have solved the problem.
    I found that the target clover cause build failed, so i delete the clover target in build.xml. Then i type ant in cmd line. Everything is ok.

    where can i get com.springsource.server.test.xxx(versioin).jar?
    #cd D:\hello-testing\com.springsource.test.apps.osgi.hello.test
    #ant test.do
    ant+ivy will download the dependencies on line.

    Comment


    • #3
      Originally posted by tony.huangj View Post
      Recently i download a sample from https://anonsvn.springsource.org/svn...ration-testing.
      But when i build the project with ant&ivy, i got some errors.
      First, I got a problem about clover's license.
      If you don't have a clover licence, you can run the test target to run the tests, without gathering coverage statistics.


      After doing this I try command ant again under D:\hello-integration-testing\build-hello,this time i got another error message:

      [COLOR="SeaGreen"]clover.do:
      [mkdir] Created dir: D:\hello-integration-testing\build-hello\target\test-results\xml
      [junit] Could not create the Java virtual machine.
      [junit] Error occurred during initialization of VM
      [junit] Could not reserve enough space for object heap
      Looking at this error message, it would appear that the test VM couldn't be launched as it requested more memory for the heap than your OS could give it.

      This is configured in spring-build/common/quality.xml on line 168:

      Code:
      <jvmarg line="-Xmx1024M -XX:MaxPermSize=1024M"/>
      The tests should run fine with lower values, so you may like to try reducing these settings.

      Thanks for trying out the integration testing sample. It hasn't actually been released yet, so it's great to get some early feedback, but you are working right on the bleeding edge!

      Comment

      Working...
      X