hufeng commented on issue #246:
URL: https://github.com/apache/dubbo-js/issues/246#issuecomment-894980519
方法的参数使用 java.String包装下
import java from 'js-to-java' // 或者 import {java} from
'apache-dubbo-consumer'
dubbo.service.HelloService.sayHello(java.String('mmm'))
oeli ***@***.***> 于2021年8月6日周五 下午11:04写道:
> $ node provider.js
> (node:7568) UnhandledPromiseRejectionWarning: Error: -101 no node
> at callback ***@***.***
> @zookeeper\lib\zk_promise.js:207:28)
> (Use node --trace-warnings ... to show where the warning was created)
> (node:7568) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
> This error originated either by throwing inside of an async function
> without a catch block, or by rejecting a promise which was not handled with
> .catch(). To terminate the node process on unhandled promise rejection, use
> the CLI flag --unhandled-rejections=strict (see
> https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
> (rejection id: 1)
> (node:7568) [DEP0018] DeprecationWarning: Unhandled promise rejections are
> deprecated. In the future, promise rejections that are not handled will
> terminate the Node.js process with a non-zero exit code.
>
> 感觉很多错误,无法运行程序,而且DubboService.start也没有
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/dubbo-js/issues/246#issuecomment-894322943>,
> or unsubscribe
>
<https://github.com/notifications/unsubscribe-auth/AAECEEAXLP3BQUBBRLDQMR3T3P2WZANCNFSM5A5BP45A>
> .
>
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]