Project

General

Profile

mongdb not running, can you help me ?

Jack Wang
Added about 3 years ago

my bug logcat:

2015-11-14 22:46:30.543 [main]             ThreadExceptionHandler.uncaughtException()  SEVERE: Uncaught thread: "main" exception
java.lang.AbstractMethodError: tigase.server.amp.MsgRepository.initRepository(Ljava/lang/String;Ljava/util/Map;)V
    at tigase.mongodb.MongoMsgRepository.initRepository(MongoMsgRepository.java:295)
    at tigase.server.amp.action.Store.setProperties(Store.java:190)
    at tigase.server.amp.AmpComponent.setProperties(AmpComponent.java:259)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
    at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
    at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
    at tigase.server.XMPPServer.start(XMPPServer.java:142)
    at tigase.server.XMPPServer.main(XMPPServer.java:112)

Replies (7)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

Same as in #3698

Method tigase.server.amp.MsgRepository.initRepository(Ljava/lang/String;Ljava/util/Map;)V is not abstract and it was introduced in commit from 2015-04-18. This method is part of Tigase XMPP Server.

What I think is that there is an issue with used versions of Tigase XMPP Server and Tigase MongoDB - versions do not match. Please make sure you use newest build of both projects as both projects are builded as SNAPSHOTs.

Added by Jack Wang about 3 years ago

The latest mongdb to Tigaseserver7.1.0, but you haven't released the latest version

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

We did not released 7.1.0 at all, right now we are preparing to release 7.1.0 version of Tigase XMPP Server - however we create daily builds of this version. Newest version of MongoDB 1.1.0-SNAPSHOT (which is also not released yet) will work only with this daily build of Tigase XMPP Server 7.1.0-SNAPSHOT.

Added by Jack Wang about 3 years ago

I know, thank you very much for your reply, I will try again, I will try to use the latest version, I am looking forward to your early release a new version

Added by Jack Wang about 3 years ago

I am using tigase-server7.2.0 , but not complie:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Tigase XMPP Server 7.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ tigase-server ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '8'.
[INFO] Executing: /bin/sh -c cd /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb && git rev-parse --verify --short=8 HEAD
[INFO] Working directory: /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb
[INFO] Storing buildNumber: 63cab1f6 at timestamp: 2015-11-16 12:27:28
[INFO] ShortRevision tag detected. The value is '8'.
[INFO] Executing: /bin/sh -c cd /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb && git rev-parse --verify --short=8 HEAD
[INFO] Working directory: /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- gmaven-plugin:1.5:execute (gitver) @ tigase-server ---
setting revision to: 4087
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ tigase-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ tigase-server ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ tigase-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ tigase-server ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ tigase-server ---
[INFO] Surefire report directory: /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb/target/surefire-reports
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
[INFO] parallel='methods', perCoreThreadCount=true, threadCount=10, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running tigase.auth.mechanisms.SaslANONYMOUSTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec - in tigase.auth.mechanisms.SaslANONYMOUSTest
Running tigase.auth.mechanisms.SaslPLAINTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec - in tigase.auth.mechanisms.SaslPLAINTest
Running tigase.auth.mechanisms.SaslSCRAMTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.455 sec - in tigase.auth.mechanisms.SaslSCRAMTest
Running tigase.cluster.api.ClusterElementTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec - in tigase.cluster.api.ClusterElementTest
Running tigase.server.websocket.WebSocketHixie76Test
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec - in tigase.server.websocket.WebSocketHixie76Test
Running tigase.server.websocket.WebSocketHybiTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in tigase.server.websocket.WebSocketHybiTest
Running tigase.server.xmppclient.StreamManagementIOProcessorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 sec - in tigase.server.xmppclient.StreamManagementIOProcessorTest
Running tigase.server.xmppserver.proc.DialbackTest
十一月 16, 2015 12:28:17 下午 tigase.util.DNSResolver <clinit>
警告: Resolving default host name: wgqdemacbook-air.local took: 42
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.173 sec - in tigase.server.xmppserver.proc.DialbackTest
Running tigase.server.xmppserver.S2SConnectionManagerDomainServerNameMapperTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in tigase.server.xmppserver.S2SConnectionManagerDomainServerNameMapperTest
Running tigase.vhosts.VHostItemTest
to property string: domain1:-tls-required:s2s-secret=951be302-9dcd-4984-bc91-760a84e59f70:domain-filter=CUSTOM=4|deny|all;1|allow|self;3|allow|jid|pubsub@test.com;2|allow|jid|admin@test2.com
十一月 16, 2015 12:28:17 下午 tigase.vhosts.VHostItem initFromElement
警告: Can not parse max users number: null
十一月 16, 2015 12:28:17 下午 tigase.vhosts.VHostItem initFromElement
警告: Can not parse max users number: null
十一月 16, 2015 12:28:17 下午 tigase.vhosts.VHostItem initFromElement
警告: Can not parse max users number: null
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec - in tigase.vhosts.VHostItemTest
Running tigase.vhosts.VHostJDBCRepositoryTest
十一月 16, 2015 12:28:17 下午 tigase.db.comp.ConfigRepository setProperties
警告: Items list is not set in the configuration file!!
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in tigase.vhosts.VHostJDBCRepositoryTest
Running tigase.xmpp.impl.JabberIqRegisterWhitelistTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec - in tigase.xmpp.impl.JabberIqRegisterWhitelistTest
十一月 16, 2015 12:28:17 下午 tigase.conf.dsl.ConfiguratorTest <init>
配置: Logger successfully initialized
Running tigase.component.PropertiesBeanConfiguratorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec - in tigase.component.PropertiesBeanConfiguratorTest
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
Running tigase.io.SSLContextContainerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in tigase.io.SSLContextContainerTest
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.KernelTest <init>
配置: Logger successfully initialized
十一月 16, 2015 12:28:17 下午 tigase.kernel.RegistrarKernelTest <init>
配置: Logger successfully initialized
Running tigase.kernel.KernelTest
Destroying Bean5 class
digraph Context {
label="<unknown>"
node[shape=record,style=filled,fillcolor=khaki1, color=brown]
edge[color=brown]
subgraph  {
"<unknown>.bean4"[label="{bean4\n(tigase.kernel.Bean4)}"];
"<unknown>.bean5"[label="{bean5\n(tigase.kernel.Bean5)}"];
"<unknown>.bean4_1"[label="{bean4_1\n(tigase.kernel.Bean4)}"];
"<unknown>.bean5#FACTORY"[label="{bean5#FACTORY\n(tigase.kernel.Bean5Factory)}"];
"<unknown>.bean1"[label="{bean1\n(tigase.kernel.Bean1)}"];
"<unknown>.bean2"[label="{bean2\n(tigase.kernel.Bean2)}"];
"<unknown>.bean3"[label="{bean3\n(tigase.kernel.Bean3)}"];
}
subgraph cluster_1007715526 {
label="<unknown>"
}
"<unknown>.bean2"->"<unknown>.bean3"
"<unknown>.bean2"->"<unknown>.bean4_1"
"<unknown>.bean5#FACTORY"->"<unknown>.bean1"
"<unknown>.bean3"->"<unknown>.bean4_1"
"<unknown>.bean3"->"<unknown>.bean4"
"<unknown>.bean1"->"<unknown>.bean2"
"<unknown>.bean5"->"<unknown>.bean5#FACTORY"[style="dashed"]
"<unknown>.bean1"->"<unknown>.bean4"
"<unknown>.bean1"->"<unknown>.bean3"
"<unknown>.bean1"->"<unknown>.bean4_1"
}

digraph Context {
label="<unknown>"
node[shape=record,style=filled,fillcolor=khaki1, color=brown]
edge[color=brown]
subgraph  {
"<unknown>.bean4"[label="{bean4\n(tigase.kernel.Bean4)}"];
"<unknown>.bean5"[label="{bean5\n(tigase.kernel.Bean5)}"];
"<unknown>.bean6"[label="{bean6\n(tigase.kernel.Bean6)}"];
"<unknown>.bean5#FACTORY"[label="{bean5#FACTORY\n(tigase.kernel.Bean5Factory)}"];
"<unknown>.bean1"[label="{bean1\n(tigase.kernel.Bean1)}"];
"<unknown>.bean2"[label="{bean2\n(tigase.kernel.Bean2)}"];
"<unknown>.bean3"[label="{bean3\n(tigase.kernel.Bean3)}"];
}
subgraph cluster_1007715526 {
label="<unknown>"
}
"<unknown>.bean2"->"<unknown>.bean3"
"<unknown>.bean2"->{UNKNOWN_7[label="bean:bean4_1", fillcolor=red, style=filled, shape=box]}
"<unknown>.bean3"->{UNKNOWN_8[label="bean:bean4_1", fillcolor=red, style=filled, shape=box]}
"<unknown>.bean5#FACTORY"->"<unknown>.bean1"
"<unknown>.bean3"->"<unknown>.bean4"
"<unknown>.bean1"->"<unknown>.bean2"
"<unknown>.bean5"->"<unknown>.bean5#FACTORY"[style="dashed"]
"<unknown>.bean1"->"<unknown>.bean4"
"<unknown>.bean1"->"<unknown>.bean3"
"<unknown>.bean1"->"<unknown>.bean6"
}

digraph Context {
label="Parent"
node[shape=record,style=filled,fillcolor=khaki1, color=brown]
edge[color=brown]
subgraph  {
"Parent.bean5"[label="{bean5\n(tigase.kernel.Bean5)}"];
"Parent.bean1"[label="{bean1\n(tigase.kernel.Bean1)}"];
"Parent.bean42"[label="{bean42\n(tigase.kernel.Bean4)}"];
"Parent.bean41"[label="{bean41\n(tigase.kernel.Bean4)}"];
"Parent.bean40"[label="{bean40\n(tigase.kernel.Bean4)}"];
"Parent.bean51"[label="{bean51\n(tigase.kernel.Bean5)}"];
}
subgraph cluster_85259465 {
label="Parent"
}
subgraph cluster_156756152 {
label="Child02"
subgraph  {
"Child02.bean1"[label="{bean1\n(tigase.kernel.Bean1)}"];
"Child02.bean43"[label="{bean43\n(tigase.kernel.Bean4)}"];
}
subgraph cluster_156756152 {
label="Child02"
}
}
subgraph cluster_40884438 {
label="Child01"
subgraph  {
"Child01.bean5"[label="{bean5\n(tigase.kernel.Bean5)}"];
"Child01.bean40"[label="{bean40\n(tigase.kernel.Bean4)}"];
}
subgraph cluster_40884438 {
label="Child01"
}
}
"Child02.bean1"->"Child02.bean43"
/* inne kernele */ "Child02.bean1"->"Parent.bean40"
/* inne kernele */ "Child02.bean1"->"Parent.bean42"
"Parent.bean1"->"Parent.bean41"
"Parent.bean1"->"Parent.bean42"
"Parent.bean1"->"Parent.bean40"
}

tigase.kernel.KernelException: Can't inject <null> to field tigase.kernel.Bean8.bean6   at tigase.kernel.core.Kernel.inject(Kernel.java:315)    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:384)    at tigase.kernel.core.Kernel.initBean(Kernel.java:273)  at tigase.kernel.core.Kernel.getInstance(Kernel.java:182)   at tigase.kernel.KernelTest.test5(KernelTest.java:203)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)  at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)   at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)  at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:318)   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  at java.lang.Thread.run(Thread.java:745)Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.126 sec - in tigase.kernel.KernelTest
Running tigase.kernel.RegistrarKernelTest
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel unregisterInt
较详细: [<unknown>] Found registred bean kernel. Unregistering...
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean module1
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel unregisterInt
较详细: [<unknown>] Found registred bean kernel. Unregistering...
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean module2
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel unregisterInt
较详细: [<unknown>] Found registred bean kernel. Unregistering...
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean bean1
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean bean4
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean bean4_1
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean bean3
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean4@a3e2be3] to bean3:tigase.kernel.Bean3#bean:bean4_1
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean4@a35ec9b] to bean3:tigase.kernel.Bean3#bean:bean4
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean4@a35ec9b, tigase.kernel.Bean4@a3e2be3, tigase.kernel.Bean3@50e00717] to bean1:tigase.kernel.Bean1#type:tigase.kernel.Special
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean3@50e00717] to bean1:tigase.kernel.Bean1#type:tigase.kernel.Bean3
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean4@a35ec9b, tigase.kernel.Bean4@a3e2be3, tigase.kernel.Bean3@50e00717] to bean1:tigase.kernel.Bean1#type:tigase.kernel.Special
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [root] Creating instance of bean bean2
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean3@50e00717] to bean2:tigase.kernel.Bean2#type:tigase.kernel.Bean3
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean4@a3e2be3] to bean2:tigase.kernel.Bean2#bean:bean4_1
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [root] Injecting [tigase.kernel.Bean2@683f030f] to bean1:tigase.kernel.Bean1#type:tigase.kernel.Bean2
tigase.kernel.Bean2@683f030fInitializing Module1
Initializing Module2
digraph Context {
label="root"
node[shape=record,style=filled,fillcolor=khaki1, color=brown]
edge[color=brown]
subgraph  {
"root.kernel"[label="{kernel\n(tigase.kernel.core.RegistrarKernel)}"];
"root.module1"[label="{module1\n(tigase.kernel.module1.Module1Registrar)}"];
"module2.Module2Service"[label="Module2Service"shape=oval];
"root.module2"[label="{module2\n(tigase.kernel.module2.Module2Registrar)}"];
"root.bean4"[label="{bean4\n(tigase.kernel.Bean4)}"];
"root.bean5"[label="{bean5\n(tigase.kernel.Bean5)}"];
"module1.Module1Service"[label="Module1Service"shape=oval];
"root.bean4_1"[label="{bean4_1\n(tigase.kernel.Bean4)}"];
"root.bean5#FACTORY"[label="{bean5#FACTORY\n(tigase.kernel.Bean5Factory)}"];
"root.bean1"[label="{bean1\n(tigase.kernel.Bean1)}"];
"root.bean2"[label="{bean2\n(tigase.kernel.Bean2)}"];
"root.bean3"[label="{bean3\n(tigase.kernel.Bean3)}"];
"root.module1#KERNEL"[label="{module1#KERNEL\n(tigase.kernel.core.RegistrarKernel)}"];
"root.module2#KERNEL"[label="{module2#KERNEL\n(tigase.kernel.core.RegistrarKernel)}"];
}
subgraph cluster_321215704 {
label="root"
}
subgraph cluster_919681811 {
label="module1"
subgraph  {
"module1.util"[label="{util\n(tigase.kernel.module1.Bean11)}"];
"module1.kernel"[label="{kernel\n(tigase.kernel.core.RegistrarKernel)}"];
"module1.service"[label="{service\n(tigase.kernel.module1.Module1Service)}"];
}
subgraph cluster_919681811 {
label="module1"
}
}
subgraph cluster_1725516385 {
label="module2"
subgraph  {
"module2.kernel"[label="{kernel\n(tigase.kernel.core.RegistrarKernel)}"];
"module2.service"[label="{service\n(tigase.kernel.module2.Module2Service)}"];
}
subgraph cluster_1725516385 {
label="module2"
}
}
"module1.service"->"module1.util"
/* inne kernele */ "module1.Module1Service"->"root.bean1"
"root.bean2"->"root.bean4_1"
"root.bean1"->"root.bean3"
/* inne kernele */ "module2.Module2Service"->"root.bean1"
"root.bean1"->"root.bean4"
"root.bean1"->"root.bean2"
"root.bean5"->"root.bean5#FACTORY"[style="dashed"]
"root.bean5#FACTORY"->"root.bean1"
"root.bean3"->"root.bean4"
"root.bean1"->"root.bean4_1"
"root.bean3"->"root.bean4_1"
"module2.service"->"module2.Module2Service"[style=dotted,arrowtail=none,arrowhead=none]
"root.bean2"->"root.bean3"
"module1.service"->"module1.Module1Service"[style=dotted,arrowtail=none,arrowhead=none]
}

????????::::tigase.kernel.Bean1@4f945b47
Service1 STARTED!!! WOW!
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [module1] Creating instance of bean service
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [module1] Creating instance of bean util
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [module1] Injecting [tigase.kernel.module1.Bean11@766e1ace] to service:tigase.kernel.module1.Module1Service#type:tigase.kernel.module1.Bean11
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [module1] Injecting [tigase.kernel.Bean1@4f945b47] to service:tigase.kernel.module1.Module1Service#type:tigase.kernel.Bean1
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel createNewInstance
较详细: [module2] Creating instance of bean service
十一月 16, 2015 12:28:17 下午 tigase.kernel.core.Kernel injectDependencies
较详细: [module2] Injecting [tigase.kernel.Bean1@4f945b47] to service:tigase.kernel.module2.Module2Service#type:tigase.kernel.Bean1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec - in tigase.kernel.RegistrarKernelTest
Running tigase.kernel.TypesConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in tigase.kernel.TypesConverterTest
Running tigase.server.PacketTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in tigase.server.PacketTest
Running tigase.util.DataTypesTest
parseSizeInt
十一月 16, 2015 12:28:17 下午 tigase.util.DataTypes parseNum
警告: Error parsing value: fail as class java.lang.Integer, using default: 1
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in tigase.util.DataTypesTest
Running tigase.vhosts.filter.CustomDomainFilterTest
parseRules
parseRules
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in tigase.vhosts.filter.CustomDomainFilterTest
Running tigase.vhosts.filter.DomainFilterPolicyTest
isDomainListRequired
valuePoliciesWithDomainListStr
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.vhosts.filter.DomainFilterPolicyTest
Running tigase.xmpp.impl.annotation.AnnotatedXMPPProcessorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.829 sec - in tigase.xmpp.impl.annotation.AnnotatedXMPPProcessorTest
Running tigase.xmpp.impl.BindResourceTest
<message from="sender@example.com/res-1"/>
sender@example.com/res-1

<message from="sender@example.com"/>
sender@example.com/res-1

<message/>
sender@example.com/res-1

=====
<presence from="sender@example.com/res-1"/>
sender@example.com/res-1

<presence from="sender@example.com"/>
sender@example.com/res-1

<presence/>
sender@example.com/res-1

=====
<presence type="subscribe" from="sender@example.com/res-1"/>
sender@example.com

<presence type="subscribe" from="sender@example.com"/>
sender@example.com

<presence type="subscribe"/>
sender@example.com

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec - in tigase.xmpp.impl.BindResourceTest
Running tigase.xmpp.impl.C2SDeliveryErrorProcessorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in tigase.xmpp.impl.C2SDeliveryErrorProcessorTest
Running tigase.xmpp.impl.DomainFilterTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.061 sec - in tigase.xmpp.impl.DomainFilterTest
Running tigase.xmpp.impl.JabberIqPrivacyTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec - in tigase.xmpp.impl.JabberIqPrivacyTest
Running tigase.xmpp.impl.MessageAmpTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in tigase.xmpp.impl.MessageAmpTest
Running tigase.xmpp.impl.MessageCarbonsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in tigase.xmpp.impl.MessageCarbonsTest
Running tigase.xmpp.impl.MessageTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in tigase.xmpp.impl.MessageTest
Running tigase.xmpp.impl.MobileV3Test
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in tigase.xmpp.impl.MobileV3Test
Running tigase.xmpp.impl.OfflineMessagesTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec - in tigase.xmpp.impl.OfflineMessagesTest
Running tigase.xmpp.impl.roster.RosterElementTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.xmpp.impl.roster.RosterElementTest
Running tigase.db.jdbc.JDBCRepositoryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.034 sec - in tigase.db.jdbc.JDBCRepositoryTest
Running tigase.xmpp.impl.VCardHelperTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec - in tigase.xmpp.impl.VCardHelperTest
Running tigase.conf.dsl.ConfiguratorTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE! - in tigase.conf.dsl.ConfiguratorTest
test(tigase.conf.dsl.ConfiguratorTest)  Time elapsed: 0.01 sec  <<< ERROR!
java.lang.NoClassDefFoundError: groovy/lang/Binding
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at tigase.conf.dsl.ConfiguratorTest.setUp(ConfiguratorTest.java:50)


Results :

Tests in error: 
  ConfiguratorTest.setUp:50 NoClassDefFound groovy/lang/Binding

Tests run: 129, Failures: 0, Errors: 1, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52.668 s
[INFO] Finished at: 2015-11-16T12:28:18+08:00
[INFO] Final Memory: 21M/209M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project tigase-server: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/wgq/Documents/workspace-sts-RELEASE/tigase-server7.2.0_mongodb/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

You need to user Tigase XMPP Server 7.1.0 from our daily SNAPSHOT builds or from release branch of Tigase XMPP Server project. Version 7.2.0 is in early stage of development.

Added by Wojciech Kapcia TigaseTeam about 3 years ago

There was missing dependency which prevented Tigase Server 7.2.0-SNAPSHOT from building correctly (I've added it so it builds now correctly). However, as Andrzej pointed out - you should build from release branch (and if there a such branches in dependend projects - use them as well).

    (1-7/7)