I believe there is a problem with the V2Stats plugin an the JTDS SQL Server driver.
When I first installed version 1.1.0 of the plugin it failed to automatically create all the nessicary tables. This wasn’'t a big deal because I still had the raw table creation script that you guys posted a few weeks ago.
However, now the stats plugin seems to be having some problems removing old entries out of the stats tables.
This was in my error log the other day:
2006.01.07 03:12:39 [com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statist icsDAO.java:706)
]
java.sql.SQLException: I/O Error: Connection reset by peer: socket write error
at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1049)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:478)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.execute(JtdsPreparedStatement.j ava:475)
at com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statisti csDAO.java:704)
at com.version2software.wildfire.plugins.database.StatisticsDAO.insertStatistic(St atisticsDAO.java:460)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.savePackets(PacketCountCollector.java:105)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.run(PacketCountCollector.java:125)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.DataOutputStream.write(Unknown Source)
at net.sourceforge.jtds.jdbc.SharedSocket.sendNetPacket(SharedSocket.java:656)
at net.sourceforge.jtds.jdbc.RequestStream.putPacket(RequestStream.java:560)
at net.sourceforge.jtds.jdbc.RequestStream.flush(RequestStream.java:508)
at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1036)
… 6 more
2006.01.07 03:12:39 [com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statist icsDAO.java:706)
]
java.sql.SQLException: Invalid state, the Connection object is closed.
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1494)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java :2177)
at org.jivesoftware.database.AbstractConnection.prepareStatement(AbstractConnectio n.java:36)
at com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statisti csDAO.java:702)
at com.version2software.wildfire.plugins.database.StatisticsDAO.insertStatistic(St atisticsDAO.java:461)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.savePackets(PacketCountCollector.java:105)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.run(PacketCountCollector.java:125)
2006.01.07 03:12:40 [com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statist icsDAO.java:706)
]
java.sql.SQLException: Invalid state, the Connection object is closed.
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1494)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java :2177)
at org.jivesoftware.database.AbstractConnection.prepareStatement(AbstractConnectio n.java:36)
at com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statisti csDAO.java:702)
at com.version2software.wildfire.plugins.database.StatisticsDAO.insertStatistic(St atisticsDAO.java:462)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.savePackets(PacketCountCollector.java:105)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.run(PacketCountCollector.java:125)
2006.01.07 03:12:40 [com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statist icsDAO.java:706)
]
java.sql.SQLException: Invalid state, the Connection object is closed.
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1494)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java :2177)
at org.jivesoftware.database.AbstractConnection.prepareStatement(AbstractConnectio n.java:36)
at com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statisti csDAO.java:702)
at com.version2software.wildfire.plugins.database.StatisticsDAO.insertStatistic(St atisticsDAO.java:463)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.savePackets(PacketCountCollector.java:105)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.run(PacketCountCollector.java:125)
2006.01.07 03:12:40 [com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statist icsDAO.java:706)
]
java.sql.SQLException: Invalid state, the Connection object is closed.
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1494)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java :2177)
at org.jivesoftware.database.AbstractConnection.prepareStatement(AbstractConnectio n.java:36)
at com.version2software.wildfire.plugins.database.StatisticsDAO.deleteOld(Statisti csDAO.java:702)
at com.version2software.wildfire.plugins.database.StatisticsDAO.insertStatistic(St atisticsDAO.java:464)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.savePackets(PacketCountCollector.java:105)
at com.version2software.wildfire.plugins.collector.PacketCountCollector$PacketCoun tThread.run(PacketCountCollector.java:125)
/code
Thanks for looking into this.