keenlabs / capillary

Storm Spout + Kafka State Inspector
MIT License
58 stars 18 forks source link

[question] validate error? #28

Closed jinleileiking closed 7 years ago

jinleileiking commented 7 years ago
! @71lh9d7m5 - Internal server error, for (GET) [/] ->

play.api.Application$$anon$1: Execution exception[[JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))]]
        at play.api.Application$class.handleError(Application.scala:296) ~[com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205) [com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202) [com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) [org.scala-lang.scala-library-2.10.4.jar:na]
Caused by: play.api.libs.json.JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))
        at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsResult$class.fold(JsResult.scala:77) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsError.fold(JsResult.scala:13) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsValue$class.as(JsValue.scala:65) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
terrhorn commented 7 years ago

Not much to work from here. Can you provide more information as to when/where you're seeing this?

jinleileiking commented 7 years ago

What info do your majesty need?

steps:

  1. bin/capillary -Dhttp.port=9001.
  2. open browerser: type xxxx:9001

Then:

Oops, an error occured
This exception has been logged with id 71me77l06.

logs:


āžœ  capillary-1.2 bin/capillary -Dhttp.port=9001
Play server process ID is 31971
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/jinlei1/tools/capillary/target/universal/capillary-1.2/lib/ch.qos.logback.logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/jinlei1/tools/capillary/target/universal/capillary-1.2/lib/org.slf4j.slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9001
[error] application -

! @71me77l06 - Internal server error, for (GET) [/] ->

play.api.Application$$anon$1: Execution exception[[JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))]]
        at play.api.Application$class.handleError(Application.scala:296) ~[com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205) [com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202) [com.typesafe.play.play_2.10-2.3.4.jar:2.3.4]
        at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) [org.scala-lang.scala-library-2.10.4.jar:na]
Caused by: play.api.libs.json.JsResultException: JsResultException(errors:List((,List(ValidationError(error.expected.jsstring,WrappedArray())))))
        at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsResult$class.fold(JsResult.scala:77) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsError.fold(JsResult.scala:13) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
        at play.api.libs.json.JsValue$class.as(JsValue.scala:65) ~[com.typesafe.play.play-json_2.10-2.3.4.jar:2.3.4]
jinleileiking commented 7 years ago

I comment application.secret="rZX^^c3H5mBD[f;]E<MpUy4ZGQK5Is0qSOU:?STePVv>BK1b4R0:QhKxEcjQGBA2"

terrhorn commented 7 years ago

I am not a wearer of the :crown:, I just contribute here šŸ˜„

Are you seeing anything at http://host:9001/metrics? You should be able to see basic metrics if capillary is running. As for http://host:9001/, the topology index will not load correctly without the Kafka/Zookeeper/Storm settings supplied. Here's an example of how to supply them.

jinleileiking commented 7 years ago

My lord,

I can see the 9001/metrics But nothing from 9001/. How to debug it ?

conf :

# Root logger:
logger.root=DEBUG

# Logger used by the framework:
logger.play=DEBUG

# Logger provided to your application:
logger.application=DEBUG

capillary.zookeepers="10.64.7.106:2181"
capillary.kafka.zkroot=""
capillary.storm.zkroot=""
capillary.kafkas="10.64.7.106:9092"

include "application-local.conf"
jinleileiking commented 7 years ago

And I only use kakfa, not using storm.

jinleileiking commented 7 years ago

seems this project must be used with storm ?

Not use with kakfa only ?

terrhorn commented 7 years ago

Correct, it requires Storm, Kafka and Zookeeper.

jinleileiking commented 7 years ago

Thanks, bro.