You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 22:39:30 UTC

[GitHub] [beam] damccorm opened a new issue, #21311: [Playground] Error output indicates to the wrong line number

damccorm opened a new issue, #21311:
URL: https://github.com/apache/beam/issues/21311

   Run the following code via Playground:
   
    
   ```
   
   import org.apache.beam.sdk.Pipeline;
   import org.apache.beam.sdk.PipelineResult;
   import org.apache.beam.sdk.io.TextIO;
   import
   org.apache.beam.sdk.options.PipelineOptions;
   import org.apache.beam.sdk.options.PipelineOptionsFactory;
   
   public
   class Class {  
   
       public static void main(String[] args) {
           PipelineOptions options = PipelineOptionsFactory.create();
    
         Pipeline p = Pipeline.create(options);
           p.run().waitUntilFinish();
           int a = 1
   / 0; // 13 line
       }
   }
   
   ```
   
    
   
    
   
   __Expected result__:
   output contains next error:
   _error: exit status 1_
   _output: Exception in thread "main" java.lang.ArithmeticException: / by zero_
     _at Class.main(fa2f3143-01cd-439f-9b23-51f3647313d9.java:13)_
   
   __Actual result__:
   output contains next error:
   _error: exit status 1_
   _output: Exception in thread "main" java.lang.ArithmeticException: / by zero_
     _at Class.main(fa2f3143-01cd-439f-9b23-51f3647313d9.java:20)_
   
   Imported from Jira [BEAM-13943](https://issues.apache.org/jira/browse/BEAM-13943). Original Jira may contain additional context.
   Reported by: Aydar Zaynutdinov.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org