You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2018/01/24 11:02:00 UTC

[jira] [Closed] (FLINK-8187) Web client does not print errors

     [ https://issues.apache.org/jira/browse/FLINK-8187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler closed FLINK-8187.
-----------------------------------
    Resolution: Fixed

The UI now displays an error message.

> Web client does not print errors
> --------------------------------
>
>                 Key: FLINK-8187
>                 URL: https://issues.apache.org/jira/browse/FLINK-8187
>             Project: Flink
>          Issue Type: Bug
>          Components: Webfrontend
>            Reporter: Timo Walther
>            Priority: Major
>
> When submitting a jar with no defined Main class, the web client does not respond anymore instead of printing the REST error:
> {code:java}
> java.util.concurrent.CompletionException: org.apache.flink.util.FlinkException: Could not run the jar.
> 	at org.apache.flink.runtime.webmonitor.handlers.JarRunHandler.lambda$handleJsonRequest$0(JarRunHandler.java:90)
> 	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.flink.util.FlinkException: Could not run the jar.
> 	... 9 more
> Caused by: org.apache.flink.client.program.ProgramInvocationException: Neither a 'Main-Class', nor a 'program-class' entry was found in the jar file.
> 	at org.apache.flink.client.program.PackagedProgram.getEntryPointClassNameFromJar(PackagedProgram.java:592)
> 	at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:188)
> 	at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:147)
> 	at org.apache.flink.runtime.webmonitor.handlers.JarActionHandler.getJobGraphAndClassLoader(JarActionHandler.java:72)
> 	at org.apache.flink.runtime.webmonitor.handlers.JarRunHandler.lambda$handleJsonRequest$0(JarRunHandler.java:69)
> 	... 8 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)