2015-02-25 13:46:24.131 [in_0-message-archive] MessageArchiveComponent.getMessages() SEVERE: Error retrieving messages
tigase.db.TigaseDBException: Cound not retrieve items
at tigase.archive.db.JDBCMessageArchiveRepository.getItems(JDBCMessageArchiveRepository.java:564)
at tigase.archive.MessageArchiveComponent.getMessages(MessageArchiveComponent.java:425)
at tigase.archive.MessageArchiveComponent.processActionPacket(MessageArchiveComponent.java:270)
at tigase.archive.MessageArchiveComponent.processPacket(MessageArchiveComponent.java:111)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1424)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'limit'.
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.getItems(JDBCMessageArchiveRepository.java:714)
at tigase.archive.db.JDBCMessageArchiveRepository.getItems(JDBCMessageArchiveRepository.java:553)
at tigase.archive.MessageArchiveComponent.getMessages(MessageArchiveComponent.java:425)
at tigase.archive.MessageArchiveComponent.processActionPacket(MessageArchiveComponent.java:270)
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.