User 2347372188
10-11-2011 23:07:25
Hello. I an Exception when I pass a ConnectionHandler to a JChemSearch class when the ConnectionHandler itself was initialized with an option Connection object. It appears that JChemSearch is trying to make it's own database connection object instead of using the one I passed in. This is an undesireable behavior. Is there a way to for JChemSearch to use the passed Connection instead of trying to create its own? Here is a partial stack trace:
java.sql.SQLException: The url cannot be null
at java.sql.DriverManager.getConnection(DriverManager.java:554)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at chemaxon.jchem.db.CacheRegistrationUtil.registerCache(CacheRegistrationUtil.java:85)
at chemaxon.jchem.db.StructureCache.tryRegistration(StructureCache.java:1511)
at chemaxon.jchem.db.StructureCache.manageRegistration(StructureCache.java:1471)
at chemaxon.jchem.db.StructureCache.loadIfNeeded(StructureCache.java:957)
at chemaxon.jchem.db.JChemSearch.loadCacheIfNeeded(JChemSearch.java:2345)
at chemaxon.jchem.db.JChemSearch.search1(JChemSearch.java:2045)
at chemaxon.jchem.db.JChemSearch.search(JChemSearch.java:1879)
at chemaxon.jchem.db.JChemSearch.setRunning(JChemSearch.java:1722)
at chemaxon.jchem.db.JChemSearch.run(JChemSearch.java:1745)
Thanks.
-&