dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 497 forks source link

Wisp 不支持 SSLServerSocket ? #626

Open ffchung opened 8 months ago

ffchung commented 8 months ago

Description

沒開 wisp 正常運作, 開wisp 後出現 java.lang.UnsupportedOperationException

Steps to Reproduce

SSLServerSocketFactory sslssf
                        = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
SSLServerSocket sslServerSocket
                        = (SSLServerSocket) sslssf.createServerSocket(port);

 sslServerSocket.setEnabledProtocols(new String[]{"TLSv1.2"});
sslServerSocket.setNeedClientAuth(false);
sslServerSocket.accept();
java -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 

java.lang.UnsupportedOperationException
        at java.net.ServerSocket.implAccept(ServerSocket.java:596)
        at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:199)
        at isurewin.mobile.server.Gateway$ServerSocketThread.run(Gateway.java:517)
        at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
        at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
        at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
        at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
        at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)
java.lang.UnsupportedOperationException
        at java.net.ServerSocket.implAccept(ServerSocket.java:596)
        at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:199)
        at isurewin.mobile.server.Gateway$ServerSocketThread.run(Gateway.java:517)
        at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
        at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
        at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
        at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
        at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)
java.lang.UnsupportedOperationException
        at java.net.ServerSocket.implAccept(ServerSocket.java:596)
        at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:199)
        at isurewin.mobile.server.Gateway$ServerSocketThread.run(Gateway.java:517)
        at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
        at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
        at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
        at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
        at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)
java -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -Dcom.alibaba.wisp.threadAsWisp.black=name:Gateway.ServerSocketThread* 

java.lang.UnsupportedOperationException
        at java.net.ServerSocket.implAccept(ServerSocket.java:596)
        at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:199)
        at isurewin.mobile.server.Gateway$ServerSocketThread.run(Gateway.java:517)
java.lang.UnsupportedOperationException
        at java.net.ServerSocket.implAccept(ServerSocket.java:596)
        at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:199)
        at isurewin.mobile.server.Gateway$ServerSocketThread.run(Gateway.java:517)
java.lang.UnsupportedOperationException
        at java.net.ServerSocket.implAccept(ServerSocket.java:596)
        at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:199)
        at isurewin.mobile.server.Gateway$ServerSocketThread.run(Gateway.java:517)

JDK version

java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Alibaba Dragonwell 8.11.12) (build 1.8.0_332-b01)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell 8.11.12) (build 25.332-b01, mixed mode)

Execution environment

Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
oraluben commented 8 months ago

你好,暂不支持 SSLServerSocket