test-data-generator icon indicating copy to clipboard operation
test-data-generator copied to clipboard

SQL Direct output Exception swallowed

Open garcimouche opened this issue 7 years ago • 0 comments

Description: SQLException are caught and re-throw as an IllegalStateException without keeping root cause

Environnement: Ubuntu Linux 16.04 Java 8 (Hotspot 1.8.0_101)

Reproduce :

Open an interactive session on hsqldb and use the following config file.

  Exception in thread "main" java.lang.IllegalStateException: 
	at com.presidentio.testdatagenerator.output.AbstractJdbcSink.init(AbstractJdbcSink.java:41)
	at com.presidentio.testdatagenerator.output.SqlDirectSink.init(SqlDirectSink.java:25)
	at com.presidentio.testdatagenerator.output.SinkFactory.getSink(SinkFactory.java:42)
	at com.presidentio.testdatagenerator.AbstractGenerator.buildContext(AbstractGenerator.java:69)
	at com.presidentio.testdatagenerator.AbstractGenerator.generate(AbstractGenerator.java:29)
	at com.presidentio.testdatagenerator.Starter.start(Starter.java:57)
	at com.presidentio.testdatagenerator.Starter.main(Starter.java:42)

In my case, it was simply that the interactive session locked the db, so the generation process could not access it...

garcimouche avatar Apr 16 '18 13:04 garcimouche