Method public default com.lightbend.lagom.javadsl.api.Descriptor is not described by the service client descriptor
See original GitHub issueUsing Lagom 1.3.5
with Java
When binding a service using ServiceGuiceSupport
and bindClient
, if we try to call serviceInstance::descriptor()
we get this exception:
Caused by: java.lang.IllegalStateException: Method public default com.lightbend.lagom.javadsl.api.Descriptor com.test.MyService.descriptor() is not described by the service client descriptor
at com.lightbend.lagom.internal.javadsl.client.JavadslServiceClientImplementor$ServiceClientInvocationHandler.invoke(JavadslServiceClientImplementor.scala:77) ~[lagom-javadsl-client_2.11-1.3.4.jar:1.3.4]
at com.sun.proxy.$Proxy28.descriptor(Unknown Source) ~[na:na]
at com.myapp.impl.OneServiceImpl.testCall(OneServiceImpl.java:64) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
at com.lightbend.lagom.internal.javadsl.api.ServiceReader$$anon$1.create(ServiceReader.scala:243) ~[lagom-javadsl-api_2.11-1.3.4.jar:1.3.4]
at com.lightbend.lagom.internal.javadsl.server.JavadslServiceRouter$JavadslServiceRoute.createServiceCall(JavadslServerBuilder.scala:156) ~[lagom-javadsl-server_2.11-1.3.4.jar:1.3.4]
at com.lightbend.lagom.internal.javadsl.server.JavadslServiceRouter$JavadslServiceRoute.createServiceCall(JavadslServerBuilder.scala:138) ~[lagom-javadsl-server_2.11-1.3.4.jar:1.3.4]
Is there a particular reason the method descriptor
has not been mapped in the implementation of JavadslServiceClientImplementor::invoke
?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Descriptor (Lagom Services API)
Describes a service. A descriptor is a set of calls descriptors that the service provides, coupled with metadata about how the service and...
Read more >lagom/lagom - Gitter
0-RC1, I'm getting object creation impossible, since method circuitBreakerMetricsProvider in trait MetricsServiceComponents of type => com.lightbend.lagom.
Read more >No implementation for com.lightbend.lagom.javadsl.server ...
I restructured the whole project to reduce dependencies between services (which was necessary anyhow). Didn't help. So just for a test I duplicated...
Read more >Lagom framework / streamed response / websocket / pathCall ...
So firstly, namedCall should only be used if you don't care about the path. You are invoking the service call directly, which means...
Read more >Using REST API Descriptors for Your REST Application
A REST API descriptor provides a way of describing the operations provided by one or more REST resources together with information about how...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @edouardKaiser. It was always intended that it should be implemented, but in the very early days when I was just getting it working, I didn’t implement it, and then I never remembered to come back to it.
@ignasi35 could we cherry pick this fix on 1.3.x ?