You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Jolo,
I have got the following error while running your program.
sbt run
[info] Loading project definition from /home/aims/textteaser/project
[info] Set current project to textteaser (in build file:/home/aims/textteaser/)
[warn] Scala version was updated by one of library dependencies:
[warn] * org.scala-lang:scala-compiler:2.11.0 -> 2.11.1
[warn] To force scalaVersion, add the following:
[warn] ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }
[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * com.google.guava:guava:(17.0, 16.0.1) -> 18.0
[warn] Run 'evicted' to see detailed eviction warnings
Multiple main classes detected, select one to run:
[1] com.textteaser.summarizer.SimpleREPL
[2] com.textteaser.summarizer.Main
Enter number: 2
[info] Running com.textteaser.summarizer.Main
12:17:50.856 [run-main-0] INFO - Starting...
12:17:51.080 [run-main-0] INFO - App is now runnning.
[error] (run-main-0) com.foursquare.rogue.RogueException: Mongo query on ConnectionIdentifier(lift) [db.keywords.count({ "blog" : ""})] failed after 10035 ms
com.foursquare.rogue.RogueException: Mongo query on ConnectionIdentifier(lift) [db.keywords.count({ "blog" : ""})] failed after 10035 ms
at com.foursquare.rogue.MongoJavaDriverAdapter.runCommand(MongoJavaDriverAdapter.scala:32)
at com.foursquare.rogue.MongoJavaDriverAdapter.count(MongoJavaDriverAdapter.scala:46)
at com.foursquare.rogue.QueryExecutor$class.count(QueryExecutor.scala:31)
at com.foursquare.rogue.LiftQueryExecutor.count(LiftQueryExecutor.scala:36)
at com.foursquare.rogue.ExecutableQuery.count(ExecutableQuery.scala:20)
at com.textteaser.summarizer.MongoKeywordService.getBlogCount(MongoKeywordService.scala:11)
at com.textteaser.summarizer.Summarizer$$anonfun$getTopKeywords$1.apply(Summarizer.scala:45)
at com.textteaser.summarizer.Summarizer$$anonfun$getTopKeywords$1.apply(Summarizer.scala:44)
at scala.collection.immutable.List.map(List.scala:272)
at com.textteaser.summarizer.Summarizer.getTopKeywords(Summarizer.scala:44)
at com.textteaser.summarizer.Summarizer.summarize(Summarizer.scala:33)
at com.textteaser.summarizer.Main$.delayedEndpoint$com$textteaser$summarizer$Main$1(Main.scala:33)
at com.textteaser.summarizer.Main$delayedInit$body.apply(Main.scala:13)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at com.textteaser.summarizer.Main$.main(Main.scala:13)
at com.textteaser.summarizer.Main.main(Main.scala)
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:498)
Caused by: com.mongodb.MongoTimeoutException: Timed out while waiting to connect after 762 ms
at com.mongodb.BaseCluster.getDescription(BaseCluster.java:114)
at com.mongodb.DBTCPConnector.getClusterDescription(DBTCPConnector.java:396)
at com.mongodb.DBTCPConnector.getType(DBTCPConnector.java:569)
at com.mongodb.DBTCPConnector.getReplicaSetStatus(DBTCPConnector.java:364)
at com.mongodb.Mongo.getReplicaSetStatus(Mongo.java:465)
at com.mongodb.DB.getCommandReadPreference(DB.java:86)
at com.mongodb.DB.command(DB.java:314)
at com.mongodb.DB.command(DB.java:296)
at com.foursquare.rogue.MongoJavaDriverAdapter$$anonfun$count$1.apply$mcJ$sp(MongoJavaDriverAdapter.scala:59)
at com.foursquare.rogue.MongoJavaDriverAdapter$$anonfun$count$1.apply(MongoJavaDriverAdapter.scala:46)
at com.foursquare.rogue.MongoJavaDriverAdapter$$anonfun$count$1.apply(MongoJavaDriverAdapter.scala:46)
at com.foursquare.rogue.QueryHelpers$DefaultQueryLogger.onExecuteQuery(QueryHelpers.scala:43)
at com.foursquare.rogue.MongoJavaDriverAdapter.runCommand(MongoJavaDriverAdapter.scala:29)
at com.foursquare.rogue.MongoJavaDriverAdapter.count(MongoJavaDriverAdapter.scala:46)
at com.foursquare.rogue.QueryExecutor$class.count(QueryExecutor.scala:31)
at com.foursquare.rogue.LiftQueryExecutor.count(LiftQueryExecutor.scala:36)
at com.foursquare.rogue.ExecutableQuery.count(ExecutableQuery.scala:20)
at com.textteaser.summarizer.MongoKeywordService.getBlogCount(MongoKeywordService.scala:11)
at com.textteaser.summarizer.Summarizer$$anonfun$getTopKeywords$1.apply(Summarizer.scala:45)
at com.textteaser.summarizer.Summarizer$$anonfun$getTopKeywords$1.apply(Summarizer.scala:44)
at scala.collection.immutable.List.map(List.scala:272)
at com.textteaser.summarizer.Summarizer.getTopKeywords(Summarizer.scala:44)
at com.textteaser.summarizer.Summarizer.summarize(Summarizer.scala:33)
at com.textteaser.summarizer.Main$.delayedEndpoint$com$textteaser$summarizer$Main$1(Main.scala:33)
at com.textteaser.summarizer.Main$delayedInit$body.apply(Main.scala:13)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at com.textteaser.summarizer.Main$.main(Main.scala:13)
at com.textteaser.summarizer.Main.main(Main.scala)
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:498)
[trace] Stack trace suppressed: run last compile:run for the full output.
java.lang.RuntimeException: Nonzero exit code: 1
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) Nonzero exit code: 1
[error] Total time: 52 s, completed 24 Jul, 2017 12:18:01 PM
Kindly help me. It is a bit urgent
The text was updated successfully, but these errors were encountered:
Hello Jolo,
I have got the following error while running your program.
Kindly help me. It is a bit urgent
The text was updated successfully, but these errors were encountered: