Skip to content

[Bug] Triple protocol echo test failed due to an error. #15128

@wuwen5

Description

@wuwen5

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo Java 3.2.16

Steps to reproduce this issue

An exception occurred while calling the Echo service

Exception in thread "main" java.lang.NullPointerException
	at org.apache.dubbo.rpc.protocol.tri.TripleInvoker.isSync(TripleInvoker.java:196)
	at org.apache.dubbo.rpc.protocol.tri.TripleInvoker.doInvoke(TripleInvoker.java:155)
	at org.apache.dubbo.rpc.protocol.AbstractInvoker.doInvokeAndReturn(AbstractInvoker.java:248)
	at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:191)
	at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:71)

Calling code

((EchoService)service).$echo("OK");

Unit Testing

EchoService echo = proxy.getProxy(protocol.refer(
                EchoService.class,
                consumerUrl));
assertEquals(echo.$echo("test"), "test");

What you expected to happen

EchoService function is normal

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions