【问题】

龙芯3A5000与pas做认证报错方案

【解决】

服务器信息

Jdk信息

loongson_openjdk8.1.8-jdk8u292b10-linux-loongarch64.tar.gz

下载地址: http://ftp.loongnix.cn/Java/openjdk8/

操作过程

1.启动https报错,按照 http://doc.primeton.com/pages/viewpage.action?pageId=37620721 方案二进行操作。

2.新建domain1实例,启动报错报,错信息如下

报错信息

[2021-10-22T14:50:34.403+0800] [Primeton AppServer 6.5] [WARNING] [NCLS-JMX-00007] [javax.enterprise.system.jmx] [tid: _ThreadID=82 _ThreadName=Thread-23] [timeMillis: 1634885434403] [levelValue: 900] [[

  Cannot start JMX connector JmxConnector config: { name = system, Protocol = rmi_jrmp, Address = 10.10.57.29, Port = 28686, AcceptAll = false, AuthRealmName = admin-realm, SecurityEnabled = true} due to exception java.io.I

OException: Cannot bind to URL [rmi://10.10.57.29:28686/jmxrmi]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:         javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)]]]

[2021-10-22T14:50:34.410+0800] [Primeton AppServer 6.5] [SEVERE] [] [] [tid: _ThreadID=82 _ThreadName=Thread-9] [timeMillis: 1634885434410] [levelValue: 1000] [[

  java.io.IOException: Cannot bind to URL [rmi://10.10.57.29:28686/jmxrmi]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is

:         javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)]

        at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:827)

        at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:432)

        at com.primeton.appserver.admin.mbeanserver.RMIConnectorStarter.start(RMIConnectorStarter.java:296)

        at com.primeton.appserver.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.startConnector(JMXStartupService.java:278)

        at com.primeton.appserver.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.run(JMXStartupService.java:310)

Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)]

        at com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:177)

        at com.sun.jndi.toolkit.url.GenericURLContext.rebind(GenericURLContext.java:251)

        at javax.naming.InitialContext.rebind(InitialContext.java:433)

        at javax.naming.InitialContext.rebind(InitialContext.java:433)

        at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:642)

        at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)

        ... 3 more

Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:307)

        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)

        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:343)

        at sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:150)

        at com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:175)

        ... 8 more

Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

        at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)

        at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)

  at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)

        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:428)

        at sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:804)

        at sun.security.ssl.SSLSocketImpl.access$200(SSLSocketImpl.java:73)

        at sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1166)

        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)

        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)

        at java.io.DataOutputStream.flush(DataOutputStream.java:123)

        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)

        ... 12 more

]]

[2021-10-22T14:50:36.797+0800] [Primeton AppServer 6.5] [INFO] [] [javax.enterprise.resource.resourceadapter.com.primeton.appserver.enterprise.connectors.inbound] [tid: _ThreadID=32 _ThreadName=Recovery Helper Thread] [time

Millis: 1634885436797] [levelValue: 800] [[   Recovery of Inbound Transactions started.]]

[2021-10-22T14:50:37.336+0800] [Primeton AppServer 6.5] [INFO] [AS-JMS-CORE-00002] [javax.enterprise.resource.jms] [tid: _ThreadID=32 _ThreadName=Recovery Helper Thread] [timeMillis: 1634885437336] [levelValue: 800] [[

  ADDRESSLIST in setJmsServiceProvider : mq://localhost:27676/]]

[2021-10-22T14:50:37.336+0800] [Primeton AppServer 6.5] [INFO] [AS-JMS-CORE-00001] [javax.enterprise.resource.jms] [tid: _ThreadID=32 _ThreadName=Recovery Helper Thread] [timeMillis: 1634885437336] [levelValue: 800] [[

  JMS Service Connection URL is : mq://localhost:27676/]]

解决办法

打开JAVA_HOME/jre/lib/security/java.security,把SSLv3, TLSv1, TLSv1.1删掉。重启服务