However there is now an exception while using MySQL:
2013-04-26 13:53:02 MessageArchiveDB.initRepository() WARNING: MessageArchiveDB initialization exception
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create index tig_ma_msgs_owner_id_index on tig_ma_msgs ( owner_id); create index' at line 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2618)
at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1749)
at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1666)
at tigase.db.jdbc.DataRepositoryImpl.checkTable(DataRepositoryImpl.java:147)
at tigase.db.DataRepositoryPool.checkTable(DataRepositoryPool.java:134)
at tigase.archive.MessageArchiveDB.initRepository(MessageArchiveDB.java:254)
at tigase.archive.MessageArchiveComponent.setProperties(MessageArchiveComponent.java:233)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:863)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:273)
at tigase.conf.Configurator.componentAdded(Configurator.java:51)
at tigase.conf.Configurator.componentAdded(Configurator.java:34)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
at tigase.server.MessageRouter.addComponent(MessageRouter.java:121)
at tigase.server.MessageRouter.addRouter(MessageRouter.java:182)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:724)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:863)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:273)
at tigase.conf.Configurator.componentAdded(Configurator.java:51)
at tigase.conf.Configurator.componentAdded(Configurator.java:34)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:168)
at tigase.server.MessageRouter.setConfig(MessageRouter.java:623)
at tigase.server.XMPPServer.start(XMPPServer.java:157)
at tigase.server.XMPPServer.main(XMPPServer.java:126)
Andrzej Wójcik (Tigase) commented 1 decade ago
While adding support for Derby, I added creation of indexes for MySQL. I fixed it now by moving creation of indexes from separate sql commands to command creating table.