title: Apache pulsar - function execution not effecting the output
body: <p>I followed the manual here: <a href="https://pulsar.apache.org/docs/en/functions-package/" rel="nofollow noreferrer">pulsar functions</a></p>
  <p>I have this function declaration in Java:</p>
  <pre><code>package org.example.test;
  
  import java.util.function.Function;
  
  public class ExclamationFunction implements Function&lt;String, String&gt; {
     @Override
     public String apply(String input) {
         return String.format(&quot;%s!&quot;, input);
     }
  }
  </code></pre>
  <p>I built the jar. Copied it to my pulsar stanalone docker and ran the following commands:</p>
  <pre><code>./bin/pulsar-admin functions create --classname org.example.test.ExclamationFunction --jar java-function-1.0-SNAPSHOT.jar --inputs my-topic-1 --namespace default --name JavaFunction
  </code></pre>
  <p>And then:</p>
  <pre><code>./bin/pulsar-admin functions trigger --tenant public --namespace default --name JavaFunction --triggerValue &quot;test&quot;
  </code></pre>
  <p>Now i use some client in C# to consume the queue and when i read the message i see &quot;test&quot; instead of &quot;test!&quot;.</p>
  <p>So seems the function trigger worked but the function itselft doesnt take effect.</p>