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

System.Net.Sockets.SocketException: 'A non-blocking socket operation could not be completed immediately' #30

Open
crossoft opened this issue Nov 25, 2017 · 5 comments

Comments

@crossoft
Copy link

I've had this code for 2+ years - with the most recent Windows 10 upgrade (thanks Microsoft) I was getting some odd IKVM errors, so I finally upgraded to the latest IKVM & NHtmlUnit, and now this line below throws the above error.

Task task = Task.Run(() => webClient.GetHtmlPage(uri.ToString()), cts.Token);

Is this a bug in NHtmlUnit?
Thanks!

@crossoft
Copy link
Author

Just a little more info; I tried stepping into GetHtmlPage ... a few subsequent errors before it bombs:

java.security.NoSuchAlgorithmException: 'SHA1withECDSA Signature not available'
then -
org.apache.xerces.xni.parser.XMLConfigurationException: 'http://xml.org/sax/features/allow-dtd-events-after-endDTD'
then -
java.net.SocketTimeoutException: 'Read timed out'

@BeeWarloc
Copy link
Member

Is this the case when trying to connect any site, or a specific one? Do see any warnings when trying to connect to that site using a recent browser?

I suspect this may have something to do with what versions of SSL/TLS is supported by IKVM or htmlunit, however I don't recall/know any details about this stuff.

I believe your best bet for figuring this out is searching for similar problems related to IKVM or HtmlUnit.

@crossoft
Copy link
Author

crossoft commented Nov 27, 2017

Hello, it's any site. I feel that something environmental is affected. But I can't drill down far enough to solve it. Occasionally I also get things like

'no sunec in java.library.path'

I just reinstalled the JDK 8 64-bit, just in case, but no change.

I should also mention that I am very unfamiliar with IKVM and Java as a whole, which is probably limiting my ability to diagnose this.

@crossoft
Copy link
Author

crossoft commented Dec 6, 2017

If this helps, I see these errors when firing up my application.

Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.security.PrivilegedActionException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.io.FileNotFoundException' in IKVM.OpenJDK.Core.dll
Exception thrown: 'java.lang.NoSuchMethodException' in IKVM.OpenJDK.Core.dll
'Agents.Browser.exe' (CLR v4.0.30319: RTMS.Agents.Browser.exe): Loaded 'Browser Agent\build\IKVM.OpenJDK.Text.dll'. Module was built without symbols.
Exception thrown: 'ClassNotFoundException' in IKVM.Runtime.dll
Exception thrown: 'java.lang.ClassNotFoundException' in IKVM.Runtime.dll
'Agents.Browser.exe' (CLR v4.0.30319: RTMS.Agents.Browser.exe): Loaded 'IKVM.OpenJDK.Core-ikvm-runtime-injected'.

@asbjornu
Copy link
Member

I wouldn't expect this project to receive an update before IKVM is ported to .NET Core. See #35 for details.

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

3 participants