Archived
This forum has been archived. Please start a new discussion on GitHub.
NoSuchMethodErrror: com.sleepycat.db.Db.close(I)I
brian
in Help Center
When we try to call Freeze.Connection.close() in Java, we get this exception:
java.lang.NoSuchMethodError: com.sleepycat.db.Db.close(I)I
at Freeze.SharedDb.close(SharedDb.java:82)
at Freeze.Map.close(Map.java:450)
at Freeze.ConnectionI.close(ConnectionI.java:91)
at Freeze.ConnectionI.close(ConnectionI.java:41)
Questions:
1) Is this a configuration error on our end?
2) The manual says it is not necessary to explicitly close a connection, yet it the example does it for "completeness". Should we just not close the connection and avoid this problem or is closing still a good idea?
Thanks again,
Brian
java.lang.NoSuchMethodError: com.sleepycat.db.Db.close(I)I
at Freeze.SharedDb.close(SharedDb.java:82)
at Freeze.Map.close(Map.java:450)
at Freeze.ConnectionI.close(ConnectionI.java:91)
at Freeze.ConnectionI.close(ConnectionI.java:41)
Questions:
1) Is this a configuration error on our end?
2) The manual says it is not necessary to explicitly close a connection, yet it the example does it for "completeness". Should we just not close the connection and avoid this problem or is closing still a good idea?
Thanks again,
Brian
0
Comments
-
Brian,
I believe you're getting this error because the Ice.jar file in the Ice for Java 1.3.0 distribution was compiled against BerkeleyDB 4.1.25. The signature for Db.close changed between 4.1.25 and 4.2.52. If you don't want to recompile Ice for Java yourself, you can download a new Ice.jar file from my post in the Patches forum.
I'm sure it goes without saying, but let us know if this doesn't solve the problem.
Take care,
- Mark0
