### Motivation
Right now, with change in #1950, function-worker invokes java-instance process
with invalid argument with invalid proto-format therefore, java-instance
process fail with below exception
```
Exception in thread "main"
org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.InvalidProtocolBufferException:
Expect message object but got:
"{\"tenant\":\"test\",\"namespace\":\"test-namespace\",\"name\":\"example\",\"className\":\"org.apache.pulsar.functions.api.examples.ExclamationFunction\",\"userConfig\":\"{\"PublishTopic\":\"test_result\"}\",\"autoAck\":true,\"parallelism\":1,\"source\":{\"typeClassName\":\"java.lang.String\",\"inputSpecs\":{\"test_src\":{}}},\"sink\":{\"topic\":\"test_result\",\"typeClassName\":\"java.lang.String\"},\"resources\":{}}"
at
org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$ParserImpl.mergeMessage(JsonFormat.java:1296)
at
org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1273)
at
org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1155)
at
org.apache.pulsar.functions.runtime.shaded.com.google.protobuf.util.JsonFormat$Parser.merge(JsonFormat.java:338)
at
org.apache.pulsar.functions.runtime.JavaInstanceMain.start(JavaInstanceMain.java:114)
at
org.apache.pulsar.functions.runtime.JavaInstanceMain.main(JavaInstanceMain.java:186)
```
### Modifications
correct the java-args so, java-function-instance can start successfully.
[ Full content available at: https://github.com/apache/pulsar/pull/2704 ]
This message was relayed via gitbox.apache.org for [email protected]