websphere官方提供的adminClint证书方式获取JVM的信息,是否只能由IBM的jdk来编译?

websphere官方提供的adminClint证书方式获取JVM的信息,是否只能由IBM的jdk来编译,由sun的jdk编译会报,如下:
Exception in thread "main" com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: 系统无法创建 SOAP 连接器以连接到端口 8880 上的主机 127.0.0.1。
at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:635)
at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:127)
at com.ibm.websphere.management.AdminClientFactory$1.run(AdminClientFactory.java:210)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:206)
at test.WebsphereTest.initia(WebsphereTest.java:94)
at test.WebsphereTest.start(WebsphereTest.java:46)
at test.Test.main(Test.java:45)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:457)
... 7 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLException: SSLSocketFactory is null. This can occur if javax.net.ssl.SSLSocketFactory.getDefault() is called to create a socket and javax.net.ssl.* properties are not set.; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLException: SSLSocketFactory is null. This can occur if javax.net.ssl.SSLSocketFactory.getDefault() is called to create a socket and javax.net.ssl.* properties are not set.]
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:422)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:222)
... 12 more
请问怎么解决呢?

1回答

杨建旭杨建旭  技术经理 , 中国人民银行清算总中心
wuwenpinyinxin赞同了此回答
两个SDK肯定不一样,先用原生的编译一下试试 显示全部

两个SDK肯定不一样,先用原生的编译一下试试

收起
 2019-05-10
  • 原生的是成功的,但我只能用sun的jdk做环境变量,有没有什么配置方式可以让两者兼容的
    2019-05-10

提问者

小星星亮晶晶软件开发工程师, 123

问题状态

  • 发布时间:2019-05-10
  • 关注会员:2 人
  • 问题浏览:555
  • 最近回答:2019-05-10
  • 关于TWT  使用指南  社区专家合作  厂商入驻社区  企业招聘  投诉建议  版权与免责声明  联系我们
    © 2019  talkwithtrend — talk with trend,talk with technologist 京ICP备09031017号-30