Github user rmetzger commented on the pull request:

    https://github.com/apache/flink/pull/1338#issuecomment-156432901
  
    I think we need to improve a bit on the error messages.
    
    This is what I got for submitting a job without arguments on the web 
interface:
    ```
    Error in invoking the program:
        
org.apache.flink.api.java.ExecutionEnvironment.createProgramPlan(ExecutionEnvironment.java:929)
        
org.apache.flink.api.java.ExecutionEnvironment.createProgramPlan(ExecutionEnvironment.java:908)
        
org.apache.flink.client.program.OptimizerPlanEnvironment.execute(OptimizerPlanEnvironment.java:47)
        
org.apache.flink.api.scala.ExecutionEnvironment.execute(ExecutionEnvironment.scala:627)
        com.dataartisans.Job$.main(Job.scala:69)
        com.dataartisans.Job.main(Job.scala)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.lang.reflect.Method.invoke(Method.java:606)
        
org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:497)
        
org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:395)
        
org.apache.flink.client.program.OptimizerPlanEnvironment.getOptimizedPlan(OptimizerPlanEnvironment.java:80)
        org.apache.flink.client.program.Client.getOptimizedPlan(Client.java:218)
        
org.apache.flink.runtime.webmonitor.handlers.JarActionHandler.handleRequest(JarActionHandler.java:117)
    
    ```
    
    Starting the same in the IDE will lead to:
    
    ```
    Exception in thread "main" java.lang.RuntimeException: No data for required 
key 'input'
        at 
org.apache.flink.api.java.utils.ParameterTool.getRequired(ParameterTool.java:236)
        at com.dataartisans.JobWithoutTrigger$.main(JobWithoutTrigger.scala:36)
        at com.dataartisans.JobWithoutTrigger.main(JobWithoutTrigger.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    
    Process finished with exit code 1
    ```
    
    It seems you are cutting away the wrong part of the stack trace 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to