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
but the server side do not work(it compiles,but get runtime error when client tries to do rpc call)
objectautowireServerextends autowire.Server[ByteBuffer, Pickler, Pickler]{
overridedefread[R:Pickler](p: ByteBuffer) =Unpickle[R].fromBytes(p)
overridedefwrite[R:Pickler](r: R) =Pickle.intoBytes(r)
@inline
finaldefrun[t](apiImpl: t, // damn! this can not be made genericreqPathList: List[String],
reqBodyBytes: ByteString):Future[ByteBuffer] = {
lg("atw reqPathList:"+reqPathList)
this.route[t](apiImpl)( // the problem is route[t]
autowire.Core.Request(
reqPathList,
read[Map[String, ByteBuffer]](reqBodyBytes.asByteBuffer))
)
}
}
even if i inline it
the error is
scala.MatchError: Request(List(rpcAuthedOlogx, tst),Map()) (of class autowire.Core$Request)
at scala.PartialFunction$$anon$1.apply(PartialFunction.scala:254)
at scala.PartialFunction$$anon$1.apply(PartialFunction.scala:252)
at jvmUtils$akkaHttpUtil$rpc_server$autowireServerCls$$anonfun$run$1.applyOrElse(jvmUtils.scala:246)
The text was updated successfully, but these errors were encountered:
doofin
changed the title
Autowire does not support method overloading and type parameters on the interfaces/traits used for making the RPCs?Why
Can not assign server.route to a val and use that
Feb 21, 2018
Type parameters for client here worked
but the server side do not work(it compiles,but get runtime error when client tries to do rpc call)
even if i inline it
the error is
The text was updated successfully, but these errors were encountered: