Hi!

Glad to see that you are trying out StateFun!

The exception means that in your application you are missing a router
definition, this might happen if either:
1) indeed you did not bind any router
2) just forgot to include the stateful functions module. If you have copied
the code from an example, make sure also to include the file under
META-INF/services/org.apache.flink.statefun.sdk.spi.StatefulFunctionModule
[1] or annotate your Module with Autoservice (for example: [2])

[1] -
https://ci.apache.org/projects/flink/flink-statefun-docs-release-2.0/sdk/modules.html#embedded-module
[2] -
https://github.com/apache/flink-statefun/blob/master/statefun-examples/statefun-async-example/src/main/java/org/apache/flink/statefun/examples/async/Module.java#L26

Good luck,
Igal.

On Thu, Apr 23, 2020 at 2:40 PM Annemarie Burger <
annemarie.bur...@campus.tu-berlin.de> wrote:

> Hi,
> I'm getting to know Stateful Functions and was trying to run the Harness
> RunnerTest example. If I clone the  repository and open and execute the
> project from there it works fine, but when I copy the code into my own
> project, it keeps giving a "java.lang.IllegalStateException: There are no
> routers defined. " I changed nothing about the code, so the Module and the
> Router are both defined, and the dependencies are the same. Am I
> overlooking
> something?
> This is the full error:
>
> Exception in thread "main" java.lang.IllegalStateException: There are no
> routers defined.
>         at
>
> org.apache.flink.statefun.flink.core.StatefulFunctionsUniverseValidator.validate(StatefulFunctionsUniverseValidator.java:31)
>         at
>
> org.apache.flink.statefun.flink.core.StatefulFunctionsJob.main(StatefulFunctionsJob.java:66)
>         at
> org.apache.flink.statefun.flink.harness.Harness.start(Harness.java:128)
>         at gellyStreaming.gradoop.StatefulFunctions.Test.main(Test.java:17)
>
> Process finished with exit code 1
>
>
>
>
>
> --
> Sent from:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
>

Reply via email to