org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by magsol
, 1 year ago
The main method caused an error.
via Stack Overflow by inoubli
, 4 months ago
The main method caused an error.
via Stack Overflow by ggkekas
, 2 months ago
via incubator-beam-user by Bill McCarthy, 1 year ago
The main method caused an error.
org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.
at org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:104)
at org.apache.flink.api.java.operators.OperatorTranslation.translateBulkIteration(OperatorTranslation.java:196)
at org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:94)
at org.apache.flink.api.java.operators.OperatorTranslation.translateSingleInputOperator(OperatorTranslation.java:124)
at org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:88)
at org.apache.flink.api.java.operators.OperatorTranslation.translateSingleInputOperator(OperatorTranslation.java:124)
at org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:88)
at org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:63)
at org.apache.flink.api.java.operators.OperatorTranslation.translateToPlan(OperatorTranslation.java:51)
at org.apache.flink.api.java.ExecutionEnvironment.createProgramPlan(ExecutionEnvironment.java:1035)
at org.apache.flink.python.api.PythonPlanBinder.runPlan(PythonPlanBinder.java:150)
at org.apache.flink.python.api.PythonPlanBinder.main(PythonPlanBinder.java:115)
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:498)
at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:509)
at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:331)
at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:775)
at org.apache.flink.client.CliFrontend.run(CliFrontend.java:251)
at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1003)
at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1046)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.