Menu

Java heap space

Sebastian
2006-09-13
2013-04-25
  • Sebastian

    Sebastian - 2006-09-13

    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?

     
    • Sujit Pal

      Sujit Pal - 2006-09-17

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.