我在项目中使用 Marklogic 7.0-5 以及 Play 2.2.6 。 我在sbt控制台上运行运行9002 命令,我的项目repo路径指向我的机器。它提示我以下消息
无法加载JNotify本机库(在java.library.path中没有jnotify) Play将检查每个请求的文件更改,因此预计重新加载性能会降低。
然后显示以下信息
[info] play - 在/ 0上侦听HTTP:0:0:0:0:0:0:0:9002 (服务器启动,使用Ctrl + D停止并返回控制台...)
在此之后,我在浏览器中点击localhost:9002 意外的异常 XQueryException:当前正在使用端口
,堆栈跟踪如下
No source available, here is the exception stack trace:
->com.marklogic.xcc.exceptions.XQueryException: Port is currently in use
com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:34)
com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:83)
com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:86)
com.marklogic.xcc.impl.SessionImpl.submitRequestInternal(SessionImpl.java:388)
com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:371)
com.springer.adis.ingest.marklogic.XccManager.execute(XccManager.scala:12)
com.springer.adis.ingest.marklogic.XccManager.executeToSingleString(XccManager.scala:16)
com.springer.adis.ingest.service.MarklogicService.execXquery(MarklogicService.scala:33)
com.springer.adis.ingest.service.MarklogicService$$anonfun$1.apply(MarklogicService.scala:59)
com.springer.adis.ingest.service.MarklogicService$$anonfun$1.apply(MarklogicService.scala:59)
scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
com.springer.adis.ingest.service.MarklogicService.exec(MarklogicService.scala:64)
Global$.runDBSetup(Global.scala:53)
Global$.onStart(Global.scala:24)
play.api.GlobalPlugin.onStart(GlobalSettings.scala:203)
play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88)
play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88)
scala.collection.immutable.List.foreach(List.scala:318)
play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:88)
play.api.Play$$anonfun$start$1.apply(Play.scala:88)
play.api.Play$$anonfun$start$1.apply(Play.scala:88)
play.utils.Threads$.withContextClassLoader(Threads.scala:18)
play.api.Play$.start(Play.scala:87)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:139)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:112)
scala.Option.map(Option.scala:145)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:112)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:110)
scala.util.Success.flatMap(Try.scala:200)
play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110)
play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:102)
scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361)
scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
我尝试使用相同端口的查杀过程,但它仍然给我同样的错误。
非常感谢您的帮助,谢谢。