I am running a simple procedure test, with a single integer parameter which returns a record set. When I run the test, I get the following info in the log file:
[sqlunit] *** Running SQLUnit file: E:\path\test.xml
[sqlunit] Getting connection(DEFAULT)
[sqlunit] Setting up test...
[sqlunit] (0ms)
[sqlunit] Java heap space
[sqlunit] Tearing down test...
[sqlunit] sqlunit-ant: SQLUnit Tests Failed: In file: E:\path\test.xml, tests: 1, failures: 1, errors = 0
[sqlunit] SQLUnit Tests Failed: In file: E:\path\test.xml, tests: 1, failures: 1, errors = 0
BUILD FAILED
C:\SQLUnit\build.xml:162: SQLUnit Tests Failed: In file: E:\path\test.xml, tests: 1, failures: 1, errors = 0
The test looks like this:
<?xml version="1.0" ?>
<!DOCTYPE sqlunit SYSTEM "file:docs/sqlunit.dtd"[]>
<sqlunit>
<connection extern="connection_file" />
One reason why an OOME would be triggered is when an infinite loop occurs. Turn on DEBUG to get the trace and see if there is a repeating group. As you mention, other similar cases, things work fine, so I suspect it could be something related to the input data, but it would be interesting to find out whats happening...
-sujit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am running a simple procedure test, with a single integer parameter which returns a record set. When I run the test, I get the following info in the log file:
[sqlunit] *** Running SQLUnit file: E:\path\test.xml
[sqlunit] Getting connection(DEFAULT)
[sqlunit] Setting up test...
[sqlunit] (0ms)
[sqlunit] Java heap space
[sqlunit] Tearing down test...
[sqlunit] sqlunit-ant: SQLUnit Tests Failed: In file: E:\path\test.xml, tests: 1, failures: 1, errors = 0
[sqlunit] SQLUnit Tests Failed: In file: E:\path\test.xml, tests: 1, failures: 1, errors = 0
BUILD FAILED
C:\SQLUnit\build.xml:162: SQLUnit Tests Failed: In file: E:\path\test.xml, tests: 1, failures: 1, errors = 0
The test looks like this:
<?xml version="1.0" ?>
<!DOCTYPE sqlunit SYSTEM "file:docs/sqlunit.dtd"[]>
<sqlunit>
<connection extern="connection_file" />
<setup>
</setup>
<test name="First procedure test">
<call>
<stmt> { call ProcedureToBeCalled(?)} </stmt>
<param id="1" type="INTEGER" inout="in" is-null="false" name="Param1">2396</param>
</call>
<result>
</result>
</test>
</sqlunit>
I am using SQLUnit 4.9. In other similar cases, everything worked fine.
Any ideeas on what's wrong here?
Hi Sebastian,
One reason why an OOME would be triggered is when an infinite loop occurs. Turn on DEBUG to get the trace and see if there is a repeating group. As you mention, other similar cases, things work fine, so I suspect it could be something related to the input data, but it would be interesting to find out whats happening...
-sujit