Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2004
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
NoSuchMethodErrror: com.sleepycat.db.Db.close(I)I

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
Reply With Quote
  #2 (permalink)  
Old 03-24-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Brian,

What version of BerkeleyDB are you using? And which platform and Java version?

If you're not sure about the BerkeleyDB version, you can call com.sleepycat.db.DbEnv.get_version_string().

- Mark
Reply With Quote
  #3 (permalink)  
Old 03-24-2004
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Brian,

For connection.close(), it is optional in C++ (as the destructor does the cleanup), but not in Java. In Java, you have to close your connections.

Cheers,
Bernard
Reply With Quote
  #4 (permalink)  
Old 03-24-2004
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
Wow. Two responses. I feel special. Seriously though, thanks for the quick responses.

Mark, I made that call and got:

"Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)"

The Java version is 1.4.2_01-b06

The platform is SunOS 5.8.

Brian
Reply With Quote
  #5 (permalink)  
Old 03-24-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
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,
- Mark
Reply With Quote
  #6 (permalink)  
Old 03-25-2004
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
Mark,

Thanks! That appears to have fixed the problem.

Brian
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens if Oracle buys Sleepycat? FrankM Comments 4 02-14-2006 10:03 PM
ZeroC Chooses Sleepycat Software for Communications Middleware marc Announcements 0 06-09-2003 12:33 PM


All times are GMT -4. The time now is 08:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.