# Exception thrown

**URL:** <https://forum.cloverdx.com/t/exception-thrown/398>\
**Category:** CloverDX Platform\
**Created:** [September 29, 2008, 12:00am UTC](https://forum.cloverdx.com/t/exception-thrown/398 "2008-09-29T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveybob](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@daveybob](https://forum.cloverdx.com/u/daveybob)\
**Post date:** [September 29, 2008, 12:00am UTC](https://forum.cloverdx.com/t/exception-thrown/398/1 "2008-09-29T00:00:00Z")

</div>

I’m running a graph that has been working against SQL Server, but now fails against Sybase. I’m reading from a file and inserting rows into a table that don’t already exist, using a sequence to create the unique ID for inserted entries.

Each time I run it, it actually works (correct data in the table), but I get this exception data:

Exception in thread “main” java.lang.RuntimeException: JZ0C0: Connection is already closed.  
at org.jetel.lookup.DBLookupTable.free(DBLookupTable.java:611)  
at org.jetel.component.DBJoin.free(DBJoin.java:250)  
at org.jetel.graph.Phase.free(Phase.java:325)  
at org.jetel.graph.TransformationGraph.freeResources(TransformationGraph.java:548)  
at org.jetel.graph.TransformationGraph.free(TransformationGraph.java:766)  
at org.jetel.main.runGraph.runGraph(runGraph.java:360)  
at org.jetel.main.runGraph.main(runGraph.java:288)

I don’t understand why it runs without errors, but shows an error at the end during cleanup…

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [September 30, 2008, 7:16am UTC](https://forum.cloverdx.com/t/exception-thrown/398/2 "2008-09-30T07:16:21Z")

</div>

Hello, this is the bug, which will be fixed in next release. It is caused by wrong order of resource freeing.
