Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wisp 不支持 SSLServerSocket ? #626

Open
ffchung opened this issue Mar 1, 2024 · 1 comment
Open

Wisp 不支持 SSLServerSocket ? #626

ffchung opened this issue Mar 1, 2024 · 1 comment

Comments

@ffchung
Copy link

ffchung commented Mar 1, 2024

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
Copy link
Contributor

oraluben commented Mar 1, 2024

你好,暂不支持 SSLServerSocket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants