Project

General

Profile

com.mysql.jdbc.PreparedStatement.isClosed()Z

Orange Yellow
Added over 4 years ago

I installed Tigase Server in my computer(Windows XP). And this server runs normally.

Then I downloaded the source code of Tigase Server, imported the source code into Eclipse, and ran the class tigase.server.XMPPServer. However, there was an error:

@

java.lang.AbstractMethodError: com.mysql.jdbc.PreparedStatement.isClosed()Z

at tigase.db.jdbc.DataRepositoryImpl.checkConnection(DataRepositoryImpl.java:417)

at tigase.db.jdbc.DataRepositoryImpl.createStatement(DataRepositoryImpl.java:188)

at tigase.db.DataRepositoryPool.createStatement(DataRepositoryPool.java:154)

at tigase.db.jdbc.JDBCRepository.checkDBSchema(JDBCRepository.java:1374)

at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:793)

at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:502)

at tigase.conf.ConfiguratorAbstract.addUserRepo(ConfiguratorAbstract.java:973)

at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:893)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:568)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:184)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:1)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)

at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)

at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)

at tigase.server.XMPPServer.start(XMPPServer.java:151)

at tigase.server.XMPPServer.main(XMPPServer.java:117)

@

I checked the file etc/init.properties and found nothing wrong. Why the error occured?


Replies (4)

Added by Khaleel Shaik over 4 years ago

Hi,

You need to configure the MySQL database in the init.properties file. Hope you have already created the required database schema and tables using the scripts under the TigaseRootDirectory/database folder.

Also make sure that you are adding all the JAR files from jars folder to Build class path in the eclipse.

Thanks

Khaleel

Added by Orange Yellow over 4 years ago

This was caused by an old version of mysql-connector-java jar file. After I replaced it with a new one, the error dissapeared.

Thank you.

Added by Wojciech Kapcia TigaseTeam over 4 years ago

Orange Yellow wrote:

This was caused by an old version of mysql-connector-java jar file. After I replaced it with a new one, the error dissapeared.

Thank you.

Which version did you used that caused the problem? The one bundled with Tigase?

Added by Orange Yellow over 4 years ago

It seems that it is mysql-connector-java-5.0.5-bin.jar.

    (1-4/4)