We're updating the issue view to help you get more done. 

Fix error that closes a database statement twice

Description

2006.10.27 04:01:56 org.jivesoftware.wildfire.roster.RosterItemProvider.getItems(RosterItemProvider.java:330)
java.sql.SQLException: JZ0S2: Statement object has already been closed.
at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(ErrorMessage.java:572)
at com.sybase.jdbc3.jdbc.SybStatement.checkDead(SybStatement.java:2058)
at com.sybase.jdbc3.jdbc.SybStatement.close(SybStatement.java:494)
at com.sybase.jdbc3.jdbc.SybStatement.close(SybStatement.java:482)
at org.jivesoftware.wildfire.roster.RosterItemProvider.getItems(RosterItemProvider.java:329)
at org.jivesoftware.wildfire.roster.Roster.<init>(Roster.java:94)
at org.jivesoftware.wildfire.roster.RosterManager.getRoster(RosterManager.java:94)
at org.jivesoftware.wildfire.user.User.getRoster(User.java:289)
at org.jivesoftware.wildfire.handler.IQRosterHandler.manageRoster(IQRosterHandler.java:187)
at org.jivesoftware.wildfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:104)
at org.jivesoftware.wildfire.handler.IQHandler.process(IQHandler.java:48)
at org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:268)
at org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96)
at org.jivesoftware.wildfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67)
at org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:250)
at org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.java:51)
at org.jivesoftware.wildfire.net.SocketReader.process(SocketReader.java:216)
at org.jivesoftware.wildfire.net.BlockingReadingMode.readStream(BlockingReadingMode.java:156)
at org.jivesoftware.wildfire.net.BlockingReadingMode.run(BlockingReadingMode.java:62)
at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:123)
at java.lang.Thread.run(Unknown Source)

Environment

None

Acceptance Test - Entry

None

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure