Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DBUnit : OutOfMemoryException

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have some very large xml files providing the test data for DBUnit to insert prior to unit test execution...Unfortunately I am getting outOfMemoryExceptions every time I execute the test. I am getting a NullPointerException in my test method cause by the OutOfMemoryException .... I have configured the sure-fire maven plugin with an arg-line parameter setting the heap space to 1024mb but this has not helped...What else can I do?
 
Junilu Lacar
Bartender
Pie
Posts: 7778
62
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you need all that data? Can you post the relevant code snippet from your tests where the exception happens? That might help give folks some ideas. Hard to tell if there's nothing to look at.
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I decided to construct the xml manually for the table that was giving me issues ....That solved my problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic