Scala 卡桑德拉尼特立即坠机

Scala 卡桑德拉尼特立即坠机,scala,unit-testing,cassandra,phantom-dsl,Scala,Unit Testing,Cassandra,Phantom Dsl,我试图在一台小型香草ubuntu 12机器上运行cassandra单元测试,但是测试或repl立即崩溃,没有给我任何信息。在repl中尝试时,我得到以下结果: scala> org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra() SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:

我试图在一台小型香草ubuntu 12机器上运行cassandra单元测试,但是测试或repl立即崩溃,没有给我任何信息。在repl中尝试时,我得到以下结果:

scala> org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra()
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
16:35:47,837 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
16:35:47,837 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
16:35:47,837 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/root/.ivy2/cache/com.typesafe.play/play_2.10/jars/play_2.10-2.3.6.jar!/logback.xml]
16:35:47,838 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
16:35:47,838 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/root/.ivy2/cache/com.typesafe.play/play_2.10/jars/play_2.10-2.3.6.jar!/logback.xml]
16:35:47,838 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/root/.ivy2/cache/com.websudos/phantom-test_2.10/jars/phantom-test_2.10-1.4.0.jar!/logback.xml]
16:35:47,854 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5fe21ec9 - URL [jar:file:/root/.ivy2/cache/com.typesafe.play/play_2.10/jars/play_2.10-2.3.6.jar!/logback.xml] is not of type file
16:35:47,974 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
16:35:47,981 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
16:35:47,989 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
16:35:48,015 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:35:48,247 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
16:35:48,247 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
16:35:48,247 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
16:35:48,248 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@76534f4c - Registering current configuration as safe fallback point

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
user@ubuntu:~/test$ 

乍一看,问题似乎是多重SLF4J绑定。您有多个装有slf4j记录器的JAR

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-    1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
请删除其中任何一个,然后重试


您可以参考:有关解释,乍一看问题似乎是多重SLF4J绑定。您有多个装有slf4j记录器的JAR

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-    1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
请删除其中任何一个,然后重试


您可以参考:有关解释,乍一看问题似乎是多重SLF4J绑定。您有多个装有slf4j记录器的JAR

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-    1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
请删除其中任何一个,然后重试


您可以参考:有关解释,乍一看问题似乎是多重SLF4J绑定。您有多个装有slf4j记录器的JAR

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-    1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
请删除其中任何一个,然后重试


您可以参考:有关解释,我需要大于4GB的ram用于单元测试。从
env JAVA_OPTS=“-Xmx5G”sbt测试开始
解决了它

结果表明,我需要>4GB的ram用于单元测试。从
env JAVA_OPTS=“-Xmx5G”sbt测试开始
解决了它

结果表明,我需要>4GB的ram用于单元测试。从
env JAVA_OPTS=“-Xmx5G”sbt测试开始
解决了它

结果表明,我需要>4GB的ram用于单元测试。从
env JAVA_OPTS=“-Xmx5G”sbt测试开始
解决了它