stankiewicz commented on PR #34514:
URL: https://github.com/apache/beam/pull/34514#issuecomment-2773178960

   hey Yi, 
   
   you are right, NPE is further down:
   ```
   Caused by: java.lang.NullPointerException: Cannot invoke "String.isEmpty()" 
because "segment" is null
        java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:271)
        java.base/java.nio.file.Path.of(Path.java:147)
        java.base/java.nio.file.Paths.get(Paths.java:69)
        
org.apache.beam.sdk.io.jdbc.JdbcUtil.lambda$saveFilesLocally$0(JdbcUtil.java:125)
        
java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
   ```
   when jarPath is empty string my guess is that
   `ResourceId sourceResourceId = FileSystems.matchNewResource(jarPath, 
false);` returns `"/" as CWD is root dir on worker and when this happens 
`Paths.get("/tmp", sourceResourceId.getFilename())` throws npe because 
sourceResourceId.getFilename() is null. 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to