Weird: DeploymentConfiguratorTst fails only with HSQLDB

From: Holger Hoffstätte (holge..izards.de)
Date: Fri Mar 14 2003 - 21:46:07 EST

  • Next message: Andrus Adamchik: "Re: Weird: DeploymentConfiguratorTst fails only with HSQLDB"

    I've been running unit tests against HSQLDB since it's so fast, but get
    the following error (also got it before I made any changes, so it's
    unrelated to anything I did). The weird thing is that this is repeatable,
    but passes OK when running against PostgreSQL or MySQL. The files in
    question were not opened by external editors etc. - Andrus, do you have
    any idea what might be causing this?

      <testcase name="testSameJar" time="0.032">
        <error message="Error generating classes."
    type="org.apache.tools.ant.BuildException">Error generating classes.
            at
    org.objectstyle.cayenne.tools.DeploymentConfigurator.execute(DeploymentConfigurator.java:102)
            at
    org.objectstyle.cayenne.tools.DeploymentConfiguratorTst.testSameJar(DeploymentConfiguratorTst.java:200)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Caused by: org.objectstyle.cayenne.project.ProjectException: Error
    performing reconfiguration.
            at
    org.objectstyle.cayenne.project.ProjectConfigurator.execute(ProjectConfigurator.java:117)
            at
    org.objectstyle.cayenne.tools.DeploymentConfigurator.processProject(DeploymentConfigurator.java:150)
            at
    org.objectstyle.cayenne.tools.DeploymentConfigurator.execute(DeploymentConfigurator.java:99)
            ... 25 more
    Caused by: java.io.IOException: Can&apos;t delete old jar file:
    C:\home\holger\Projects\eclipseWorkspace\cayenne\testrun\cdeploy\test4\test-out.jar
            at
    org.objectstyle.cayenne.project.ProjectConfigurator.execute(ProjectConfigurator.java:108)
            ... 27 more
    --- Nested Exception ---
    org.objectstyle.cayenne.project.ProjectException: Error performing
    reconfiguration.
            at
    org.objectstyle.cayenne.project.ProjectConfigurator.execute(ProjectConfigurator.java:117)
            at
    org.objectstyle.cayenne.tools.DeploymentConfigurator.processProject(DeploymentConfigurator.java:150)
            at
    org.objectstyle.cayenne.tools.DeploymentConfigurator.execute(DeploymentConfigurator.java:99)
            at
    org.objectstyle.cayenne.tools.DeploymentConfiguratorTst.testSameJar(DeploymentConfiguratorTst.java:200)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Caused by: java.io.IOException: Can&apos;t delete old jar file:
    C:\home\holger\Projects\eclipseWorkspace\cayenne\testrun\cdeploy\test4\test-out.jar
            at
    org.objectstyle.cayenne.project.ProjectConfigurator.execute(ProjectConfigurator.java:108)
            ... 27 more



    This archive was generated by hypermail 2.0.0 : Fri Mar 14 2003 - 21:49:50 EST