pointearth opened a new issue #9793:
URL: https://github.com/apache/pulsar/issues/9793
**Describe the bug**
I met an exception when I run a pulsar function, it seems that the class
loader in pulsar recognizes it as a nar file, but I don't use any nar.
**To Reproduce**
Steps to reproduce the behavior:
1. run a pulsar function
./pulsar-admin functions localrun \
--jar /path/to/xxx.jar \
--tenant xxxtenant --namespace xxxnamespace \
--classname com.xx.functions.xxxxtransformer.XxxxTransfer2xxx \
--inputs
persistent://xxxtenant/xxxnamespace/xxxtopic1,persistent://xxxtenant/xxxnamespace/xxxtopic2
\
--output persistent://xxxtenant/xxxnamespace/xxxtopic-target \
--logTopic persistent://xxxtenant/xxxnamespace/xxx-topic-logs \
--name xxx-transformer
I get the error.
2. when I delete a dependency about a module which includes a dependency
<dependency>
<groupId>com.facebook.presto</groupId>
<groupId>io.prestosql</groupId>
<artifactId>presto-jdbc</artifactId>
<version>${presto-jdbc.version}</version>
</dependency>
it works
**Expected behavior**
don't show the issue.
**Screenshots**

**Desktop (please complete the following information):**
- OS: macOS Big Sur, pulsar 2.7.0
**Additional context**
@david-streamlio : There appears to be an issue with your NAR file.
Specifically with the pulsar-common jar file. Perhaps you can try changing the
scope of that dependency to provided and retry?
follow david's advice, remove denpendency , it works, but I consider that
maybe the class loader recognizes wrongly the presto as a nar file?
cc @codelipenghui
----------------------------------------------------------------
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]