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

Unhandled IllegalArgumentException #95798

Open
jsql-robot opened this issue Dec 1, 2024 · 0 comments
Open

Unhandled IllegalArgumentException #95798

jsql-robot opened this issue Dec 1, 2024 · 0 comments

Comments

@jsql-robot
Copy link

jSQL: v0.101
Java: v23.0.1-amd64-en on OpenJDK Runtime Environment
OS: Linux (v6.11.2-cloud-amd64)
Desktop: undefined
Strategy: undefined
Db engine: MySQL
Exception on ThreadBeginInjection
java.lang.IllegalArgumentException: Server name value of host_name cannot have the trailing dot
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:946)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
	at com.jsql.util.HeaderUtil.checkResponseHeader(HeaderUtil.java:95)
	at com.jsql.util.ConnectionUtil.checkConnectionResponse(ConnectionUtil.java:197)
	at com.jsql.util.ConnectionUtil.testConnection(ConnectionUtil.java:205)
	at com.jsql.model.InjectionModel.beginInjection(InjectionModel.java:169)
	at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.IllegalArgumentException: Server name value of host_name cannot have the trailing dot
	at java.base/javax.net.ssl.SNIHostName.checkHostName(SNIHostName.java:319)
	at java.base/javax.net.ssl.SNIHostName.<init>(SNIHostName.java:109)
	at java.net.http/jdk.internal.net.http.AbstractAsyncSSLConnection.formSNIServerNames(AbstractAsyncSSLConnection.java:142)
	at java.net.http/jdk.internal.net.http.AbstractAsyncSSLConnection.<init>(AbstractAsyncSSLConnection.java:78)
	at java.net.http/jdk.internal.net.http.AsyncSSLConnection.<init>(AsyncSSLConnection.java:48)
	at java.net.http/jdk.internal.net.http.HttpConnection.getSSLConnection(HttpConnection.java:310)
	at java.net.http/jdk.internal.net.http.HttpConnection.getConnection(HttpConnection.java:296)
	at java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Http2Connection.java:524)
	at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:138)
	at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:94)
	at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:391)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:584)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:428)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:420)
	at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:445)
	at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:365)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1194)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:554)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1817)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(HttpClientImpl.java:178)
	at java.base/java.util.concurrent.CompletableFuture.completeAsync(CompletableFuture.java:2763)
	at java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(MultiExchange.java:318)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(HttpClientImpl.java:1054)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:934)
	... 6 more
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

1 participant