Can't close session in Java

91 views
Skip to first unread message

María Aragón

unread,
Oct 15, 2014, 1:54:38 PM10/15/14
to
Hi,

I am developing a Sparksee code in java, running on Windows7 64bits.

I'm creating all the graph correctly, and it seems to work fine, but when I try to close the session it fails.
The error I get is this:
Exception in thread "main" java.lang.RuntimeException: Session data still active when closing
    at com.sparsity.sparkseejavawrapJNI.delete_sparksee_gdb_Session(Native Method)
    at com.sparsity.sparksee.gdb.Session.delete(Session.java:32)
    at com.sparsity.sparksee.gdb.Session.close(Session.java:40)

I was looking for similar errors and I see that in this old post Troubles using TraversalDFS (DEX Java) the error was the same but I'm not using TraversalDFS.

What can I do? Any idea?

Best regards,

María.

c3po.ac

unread,
Oct 16, 2014, 2:43:51 AM10/16/14
to spar...@googlegroups.com

Hi,

All the Objects, Iterators and TextStreams of the session must be closed before trying to close the session.
That was the problem of the traversals that was resolved in the release 4.8.2 and it's most likely what's happening in your code.

Please check that you properly close all of them.

Best regards.


El dimecres 15 d’octubre de 2014 19:54:38 UTC+2, María Aragón va escriure:
Reply all
Reply to author
Forward
0 new messages