-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
The compilation is successful, but there is a warning, and after running, the api method accessing port 9000 returns empty data.
Compile time warning
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:145:26: non-variable type argument Int in type pattern slick.lifted.Rep[Int] (the underlying of org.tronscan.db.PgProfile.api.Rep[Int]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[Int], "asc") => col.asc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:146:26: non-variable type argument Int in type pattern slick.lifted.Rep[Int] (the underlying of org.tronscan.db.PgProfile.api.Rep[Int]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[Int], "desc") => col.desc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:147:26: non-variable type argument String in type pattern slick.lifted.Rep[String] (the underlying of org.tronscan.db.PgProfile.api.Rep[String]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[String], "asc") => col.asc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:148:26: non-variable type argument String in type pattern slick.lifted.Rep[String] (the underlying of org.tronscan.db.PgProfile.api.Rep[String]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[String], "desc") => col.desc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:149:26: non-variable type argument org.joda.time.DateTime in type pattern slick.lifted.Rep[org.joda.time.DateTime] (the underlying of org.tronscan.db.PgProfile.api.Rep[org.joda.time.DateTime]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[DateTime], "asc") => col.asc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:150:26: non-variable type argument org.joda.time.DateTime in type pattern slick.lifted.Rep[org.joda.time.DateTime] (the underlying of org.tronscan.db.PgProfile.api.Rep[org.joda.time.DateTime]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[DateTime], "desc") => col.desc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:151:26: non-variable type argument Boolean in type pattern slick.lifted.Rep[Boolean] (the underlying of org.tronscan.db.PgProfile.api.Rep[Boolean]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[Boolean], "asc") => col.asc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:152:26: non-variable type argument Boolean in type pattern slick.lifted.Rep[Boolean] (the underlying of org.tronscan.db.PgProfile.api.Rep[Boolean]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[Boolean], "desc") => col.desc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:153:26: non-variable type argument Long in type pattern slick.lifted.Rep[Long] (the underlying of org.tronscan.db.PgProfile.api.Rep[Long]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[Long], "asc") => col.asc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:154:26: non-variable type argument Long in type pattern slick.lifted.Rep[Long] (the underlying of org.tronscan.db.PgProfile.api.Rep[Long]) is unchecked since it is eliminated by erasure
[warn] case (col: Rep[Long], "desc") => col.desc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:147:53: unreachable code
[warn] case (col: Rep[String], "asc") => col.asc
[warn] ^
[warn] /root/tronscan-api/app/org/tronscan/db/Repository.scala:144:13: match may not be exhaustive.
[warn] It would fail on the following input: (Rep(), _)
[warn] (column, direction) match {
[warn] ^
Running Error
[error] application - CACHE WARMER ERROR
io.grpc.StatusRuntimeException: INTERNAL: http2 exception
at io.grpc.Status.asRuntimeException(Status.java:526)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:475)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:557)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:478)
Caused by: io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 485454502f
at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85)
at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.verifyFirstFrameIsSettings(Http2ConnectionHandler.java:350)
at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java:251)
at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:448)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
[error] a.a.OneForOneStrategy - empty.maxBy
java.lang.UnsupportedOperationException: empty.maxBy
at scala.collection.TraversableOnce.maxBy(TraversableOnce.scala:236)
at scala.collection.TraversableOnce.maxBy$(TraversableOnce.scala:234)
at scala.collection.AbstractTraversable.maxBy(Traversable.scala:104)
at org.tronscan.grpc.GrpcBalancer.optimizeNodes(GrpcBalancer.scala:89)
at org.tronscan.grpc.GrpcBalancer$$anonfun$receive$1.applyOrElse(GrpcBalancer.scala:130)
at akka.actor.Actor.aroundReceive(Actor.scala:517)
at akka.actor.Actor.aroundReceive$(Actor.scala:515)
at org.tronscan.grpc.GrpcBalancer.aroundReceive(GrpcBalancer.scala:47)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:588)
at akka.actor.ActorCell.invoke(ActorCell.scala:557)
Metadata
Metadata
Assignees
Labels
No labels