Liuzilin-JS opened a new issue #9098:
URL: https://github.com/apache/pulsar/issues/9098


   **Pulsar Version**
   2.6.1
   
   **Describe the bug**
   When I tried to start the pulsar function using localrun, I found that I 
specified --jar as http://xxx.com/xxx.jar and 
file:///pulsar/connectors/functions/xxx.jar  in the startup script, and then I 
found an error ,
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Function start up script : --jar http://xxx.com/xxx.jar or 
file:///pulsar/connectors/xxx.jar 
   2. I found an error is 
    java.lang.RuntimeException: User class must be in class path
        at 
org.apache.pulsar.common.util.Reflections.createInstance(Reflections.java:112) 
~[org.apache.pulsar-pulsar-common-2.6.1.jar:2.6.1]
        at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.setup(JavaInstanceRunnable.java:208)
 ~[org.apache.pulsar-pulsar-functions-instance-2.6.1.jar:2.6.1]
        at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:246)
 ~[org.apache.pulsar-pulsar-functions-instance-2.6.1.jar:2.6.1]
        at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_252]
   3. But I modify the startup script to connector/function/xxxx.jar ,I found 
that function can work ... 
   4. The jar package used is downloaded from http://xxx.com/xxx.jar
   
   I think this may be a problem with classloader loading, I hope to check it 
out soon, Tks 


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


Reply via email to