question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method public default com.lightbend.lagom.javadsl.api.Descriptor is not described by the service client descriptor

See original GitHub issue

Using 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:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jropercommented, Jul 13, 2017

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.

0reactions
edouardKaisercommented, Jul 9, 2017

@ignasi35 could we cherry pick this fix on 1.3.x ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found