[ https://issues.apache.org/jira/browse/FLINK-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maximilian Michels closed FLINK-4236. ------------------------------------- Resolution: Fixed Fix Version/s: 1.2.0 master: 726d7c7ff25a4af681bf43abedfac452bceac5d9 release-1.1: f67cb89d4934d8ebb2d04d3a2c020c9702b99934 > Flink Dashboard stops showing list of uploaded jars if main method cannot be > looked up > -------------------------------------------------------------------------------------- > > Key: FLINK-4236 > URL: https://issues.apache.org/jira/browse/FLINK-4236 > Project: Flink > Issue Type: Bug > Components: Job-Submission > Affects Versions: 1.0.3 > Reporter: Gary Yao > Assignee: Maximilian Michels > Fix For: 1.2.0, 1.1.2 > > > The Flink Dashboard stops showing the list of uploaded jars on the job > submission page if a jar is uploaded for which the main method cannot be > looked up. The HTTP call returns with code 500. See the attached stacktrace: > {code} > java.lang.RuntimeException: Failed to fetch jar list: Could not look up the > main(String[]) method from the class de.zalando.[...]]: > org/shaded/apache/flink/streaming/api/functions/source/SourceFunction > at > org.apache.flink.runtime.webmonitor.handlers.JarListHandler.handleRequest(JarListHandler.java:122) > at > org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler.respondAsLeader(RuntimeMonitorHandler.java:135) > at > org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler.channelRead0(RuntimeMonitorHandler.java:112) > at > org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler.channelRead0(RuntimeMonitorHandler.java:60) > at > io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) > at io.netty.handler.codec.http.router.Handler.routed(Handler.java:62) > at > io.netty.handler.codec.http.router.DualAbstractHandler.channelRead0(DualAbstractHandler.java:57) > at > io.netty.handler.codec.http.router.DualAbstractHandler.channelRead0(DualAbstractHandler.java:20) > at > io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) > at > org.apache.flink.runtime.webmonitor.HttpRequestHandler.channelRead0(HttpRequestHandler.java:104) > at > org.apache.flink.runtime.webmonitor.HttpRequestHandler.channelRead0(HttpRequestHandler.java:65) > at > io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) > at > io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242) > at > io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:147) > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) > at > io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847) > at > io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) > at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) > at > io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) > at > io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) > at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) > at > io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) > at > io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.RuntimeException: Could not look up the main(String[]) > method from the class de.zalando.[...]]: > org/shaded/apache/flink/streaming/api/functions/source/SourceFunction > at > org.apache.flink.client.program.PackagedProgram.hasMainMethod(PackagedProgram.java:479) > at > org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:216) > at > org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:147) > at > org.apache.flink.runtime.webmonitor.handlers.JarListHandler.handleRequest(JarListHandler.java:103) > ... 30 more > Caused by: java.lang.NoClassDefFoundError: > org/shaded/apache/flink/streaming/api/functions/source/SourceFunction > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) > at java.lang.Class.privateGetMethodRecursive(Class.java:3048) > at java.lang.Class.getMethod0(Class.java:3018) > at java.lang.Class.getMethod(Class.java:1784) > at > org.apache.flink.client.program.PackagedProgram.hasMainMethod(PackagedProgram.java:473) > ... 33 more > Caused by: java.lang.ClassNotFoundException: > org.shaded.apache.flink.streaming.api.functions.source.SourceFunction > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 39 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)