Projects tigase _server server-core Issues #768
'Default' Data Repo Bean causes JRE (#768)
Closed
Daniel Wisnewski opened 8 years ago
Due Date
2017-04-12

Current builds of Tigase Server v7.2.0 come with the following default bean for data repository on new installations:

dataSource {
    default() {
        uri = 'memory://xmlRepo&autoCreateUser=true'
    }
}

However, a JRE occurs during startup with this:

INFO    2017-03-05 17:01:21.624 [WrapperSimpleAppMain]  Kernel.getInstance()          SEVERE:   Exception getting instance
INFO    java.lang.RuntimeException: Could not initialize bean 'default'
INFO    	at tigase.db.beans.MDRepositoryBean$MDRepositoryConfigBean.beanConfigurationChanged(MDRepositoryBean.java:255)
INFO    	at tigase.db.beans.MDRepositoryBean$MDRepositoryConfigBean.initialize(MDRepositoryBean.java:302)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:155)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.getInstance(Kernel.java:384)
INFO    	at tigase.server.Bootstrap.start(Bootstrap.java:108)
INFO    	at tigase.server.XMPPServer.start(XMPPServer.java:138)
INFO    	at tigase.server.XMPPServer.main(XMPPServer.java:119)
INFO    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO    	at java.lang.reflect.Method.invoke(Unknown Source)
INFO    	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
INFO    	at java.lang.Thread.run(Unknown Source)
INFO    Caused by: tigase.db.DBInitException: [DataSourceHelper] Not found class supporting uri = memory://xmlRepo&autoCreateUser=true
INFO    	at tigase.db.DataSourceHelper.getDefaultClass(DataSourceHelper.java:85)
INFO    	at tigase.db.DataSourceHelper.getDefaultClass(DataSourceHelper.java:55)
INFO    	at tigase.archive.db.MessageArchiveRepositoryPool.findClassForDataSource(MessageArchiveRepositoryPool.java:65)
INFO    	at tigase.db.beans.MDRepositoryBean$MDRepositoryConfigBean.getRepositoryClassName(MDRepositoryBean.java:229)
INFO    	at tigase.db.beans.MDRepositoryBean$MDRepositoryConfigBean.beanConfigurationChanged(MDRepositoryBean.java:251)
INFO    	at tigase.db.beans.MDRepositoryBean$MDRepositoryConfigBean.initialize(MDRepositoryBean.java:302)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:155)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
INFO    	at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
INFO    	at tigase.kernel.core.Kernel.getInstance(Kernel.java:384)
INFO    	at tigase.server.Bootstrap.start(Bootstrap.java:108)
INFO    	at tigase.server.XMPPServer.start(XMPPServer.java:138)
INFO    	at tigase.server.XMPPServer.main(XMPPServer.java:119)
INFO    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO    	at java.lang.reflect.Method.invoke(Unknown Source)
INFO    	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
INFO    	at java.lang.Thread.run(Unknown Source)

uri appears to be the culprit?

Andrzej Wójcik (Tigase) commented 8 years ago

Our default config file was updated and now it does not contain following lines:

dataSource {
    default() {
        uri = 'memory://xmlRepo&autoCreateUser=true'
    }
}

, so I assume that this issue is fixed? (Now default config file start Tigase XMPP Server in newly create setup mode).

Daniel Wisnewski commented 8 years ago

Yes, this issue is now fixed, closing.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
4991
Version
tigase-server-8.0.0
Spent time
5h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#768
Please wait...
Page is in error, reload to recover