rdhabalia opened a new pull request #4090: [pulsar-function] Fix NPE and log 
error when java-instance jar path not set
URL: https://github.com/apache/pulsar/pull/4090
 
 
   ### Motivation
   
   When java-instance jar path is not set, function internally throws NPE 
without logging any root-cause.
   
   ```
   java.lang.NullPointerException: null
           at 
org.apache.pulsar.common.nar.NarClassLoader.<init>(NarClassLoader.java:175)
           at 
org.apache.pulsar.common.nar.NarClassLoader.getFromArchive(NarClassLoader.java:147)
           at 
org.apache.pulsar.functions.utils.functioncache.FunctionCacheEntry.<init>(FunctionCacheEntry.java:73)
           at 
org.apache.pulsar.functions.utils.functioncache.FunctionCacheManagerImpl.registerFunctionInstanceWithArchive(FunctionCacheManagerImpl.java:125)
           at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.loadJars(JavaInstanceRunnable.java:238)
           at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.setupJavaInstance(JavaInstanceRunnable.java:147)
           at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:188)
           at java.lang.Thread.run(Thread.java:748)
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to