2015-02-25 13:33:32.472 [in_0-message-archive] JDBCMessageArchiveRepository.archiveMessage() WARNING: Problem adding new entry to DB: <message from="user1_tovlp70206@x/1296724038-tigase-43" xmlns="jabber:client" to="user1_tovlp70206@x/1296724038-tigase-43" id="2xqrzp0211" type="chat"><body>d0kjzs0209</body></message>
2015-02-25 13:33:37.015 [in_0-message-archive] MessageArchiveComponent.listCollections() SEVERE: Error listing collections
tigase.db.TigaseDBException: Cound not retrieve collections
at tigase.archive.db.JDBCMessageArchiveRepository.getCollections(JDBCMessageArchiveRepository.java:504)
at tigase.archive.MessageArchiveComponent.listCollections(MessageArchiveComponent.java:307)
at tigase.archive.MessageArchiveComponent.processActionPacket(MessageArchiveComponent.java:257)
at tigase.archive.MessageArchiveComponent.processPacket(MessageArchiveComponent.java:111)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1424)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: No column name was specified for column 1 of 'x'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1515)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:404)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:350)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:285)
at tigase.archive.db.JDBCMessageArchiveRepository.getCollectionsCount(JDBCMessageArchiveRepository.java:676)
at tigase.archive.db.JDBCMessageArchiveRepository.getCollections(JDBCMessageArchiveRepository.java:471)
at tigase.archive.MessageArchiveComponent.listCollections(MessageArchiveComponent.java:307)
at tigase.archive.MessageArchiveComponent.processActionPacket(MessageArchiveComponent.java:257)
at tigase.archive.MessageArchiveComponent.processPacket(MessageArchiveComponent.java:111)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1424)
Andrzej Wójcik (Tigase) commented 10 years ago
Need more details about build of Message Archiving component as this stacktrace do not match latest source code (number of lines with method invocations from stacktrace are pointing to different places is source code than it should).
I suppose this is older version of Message Archiving and JDBC storage support was changes since then so this might be fixed already. I would suggest to update installation to newest version if possible.
wojciech.kapcia@tigase.net commented 10 years ago
Thank you, it looks like the mentioned installation wasn't correctly deployed/updated as there is a version mismatch between server and MA.