简体   繁体   English

WSO2 Identity Server和WSO2 API Manager集成-java.rmi.server.ExportException:端口已在使用中:9999;

[英]WSO2 Identity Server and WSO2 API Manager integration - java.rmi.server.ExportException: Port already in use: 9999;

I have integrated WSO2 Identity server and WSO2 API Manager. 我已经集成了WSO2身份服务器和WSO2 API管理器。 While starting the WSO2 Id Server , I am getting the below error in console.. 启动WSO2 Id Server时,控制台出现以下错误。

 ERROR {org.wso2.carbon.core.init.JMXServerManager} -  Could not create the RMI local registry
java.rmi.server.ExportException: Port already in use: 9999; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:341)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:249)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:208)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:152)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:137)

Can anyone help? 有人可以帮忙吗?

But its starting successfully with the following message 但是它成功开始与以下消息

INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server           :  WSO2 Identity Server-5.2.0
[2016-12-27 15:31:13,744]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2 Carbon started in 57 sec
[2016-12-27 15:31:14,909]  INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL  : https://localhost:9443/carbon/
[2016-12-27 15:31:14,948]  INFO {org.wso2.carbon.identity.authenticator.x509Certificate.internal.X509CertificateServiceComponent} -  X509 Certificate Servlet activated successfully..

Before i started wso2server.bat , there is nothing in the port.. 在我启动wso2server.bat之前,端口中没有任何内容。

My machine's JAVA_OPTS was being set to debug mode and this was causing WSO2 to start in debug mode . 我的机器的JAVA_OPTS被设置为调试模式,这导致WSO2以调试模式启动。 Thus it was listening to 9999 port. 因此,它正在监听9999端口。 I have removed the JAVA_OPTS and now able to start it properly. 我已经删除了JAVA_OPTS,现在可以正常启动它了。

related issue WSO2 Identity Server listening to port 9999 相关问题WSO2 Identity Server侦听端口9999

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM