[JBoss JIRA] (ELY-2025) Resource leak in ElytronXmlParser.
by Ilia Vassilev (Jira)
[ https://issues.redhat.com/browse/ELY-2025?page=com.atlassian.jira.plugin.... ]
Ilia Vassilev updated ELY-2025:
-------------------------------
Description: Resource leak in ElytronXmlParser.UnknownTypeFileKeyStoreFactory.get() method. The resource FileInputStream is not closed on exception. (was: Resource leak in ElytronXmlParser.get() method. The resource FileInputStream is not closed on exception.)
> Resource leak in ElytronXmlParser.
> ----------------------------------
>
> Key: ELY-2025
> URL: https://issues.redhat.com/browse/ELY-2025
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Authentication Client
> Affects Versions: 1.13.0.Final
> Reporter: Ilia Vassilev
> Assignee: Ilia Vassilev
> Priority: Major
>
> Resource leak in ElytronXmlParser.UnknownTypeFileKeyStoreFactory.get() method. The resource FileInputStream is not closed on exception.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
3 years, 7 months
[JBoss JIRA] (ELY-2026) UnsupportedOperationException in SSLEngine using jdk 251+
by Ricardo Martin Camarero (Jira)
[ https://issues.redhat.com/browse/ELY-2026?page=com.atlassian.jira.plugin.... ]
Ricardo Martin Camarero commented on ELY-2026:
----------------------------------------------
I can pass the test doing some reflection in the JDKSpecific for 8 as I commented in teh related JIRA. See this [commit|https://github.com/rmartinc/wildfly-elytron/commit/56f48d602e6e168...], it was just a quick hack, but it pass the test. Hope it helps!
> UnsupportedOperationException in SSLEngine using jdk 251+
> ---------------------------------------------------------
>
> Key: ELY-2026
> URL: https://issues.redhat.com/browse/ELY-2026
> Project: WildFly Elytron
> Issue Type: Bug
> Components: SSL
> Affects Versions: 1.10.9.Final
> Reporter: Ricardo Martin Camarero
> Assignee: Darran Lofthouse
> Priority: Major
>
> Some SSLEngines provided by elytron does not implement the new TLS methods that jdk-8 251+ incorporated from jdk-11. That makes some tests in the wildfly-http-client to fail with the following exception:
> {code}
> 12:07:31,031 ERROR (XNIO-3 I/O-1) [org.xnio.listener] <ChannelListeners.java:94> XNIO001007: A channel event listener threw an exception: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:99)
> at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:81)
> at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:77)
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
> at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1211)
> at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1286)
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:94)
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:97)
> ... 8 more
> Caused by: java.lang.UnsupportedOperationException
> at org.wildfly.security.ssl.JDKSpecific.getApplicationProtocol(JDKSpecific.java:35)
> at org.wildfly.security.ssl.AbstractDelegatingSSLEngine.getApplicationProtocol(AbstractDelegatingSSLEngine.java:166)
> ... 13 more
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
3 years, 7 months
[JBoss JIRA] (ELY-2026) UnsupportedOperationException in SSLEngine using jdk 251+
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/ELY-2026?page=com.atlassian.jira.plugin.... ]
Darran Lofthouse commented on ELY-2026:
---------------------------------------
Thanks [~rhn-support-rmartinc] I will try some debugging, just wanted to eliminate if we already had a fix that just needed backporting but looks like there is still an issue.
> UnsupportedOperationException in SSLEngine using jdk 251+
> ---------------------------------------------------------
>
> Key: ELY-2026
> URL: https://issues.redhat.com/browse/ELY-2026
> Project: WildFly Elytron
> Issue Type: Bug
> Components: SSL
> Affects Versions: 1.10.9.Final
> Reporter: Ricardo Martin Camarero
> Assignee: Darran Lofthouse
> Priority: Major
>
> Some SSLEngines provided by elytron does not implement the new TLS methods that jdk-8 251+ incorporated from jdk-11. That makes some tests in the wildfly-http-client to fail with the following exception:
> {code}
> 12:07:31,031 ERROR (XNIO-3 I/O-1) [org.xnio.listener] <ChannelListeners.java:94> XNIO001007: A channel event listener threw an exception: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:99)
> at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:81)
> at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:77)
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
> at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1211)
> at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1286)
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:94)
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:97)
> ... 8 more
> Caused by: java.lang.UnsupportedOperationException
> at org.wildfly.security.ssl.JDKSpecific.getApplicationProtocol(JDKSpecific.java:35)
> at org.wildfly.security.ssl.AbstractDelegatingSSLEngine.getApplicationProtocol(AbstractDelegatingSSLEngine.java:166)
> ... 13 more
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
3 years, 7 months
[JBoss JIRA] (ELY-2026) UnsupportedOperationException in SSLEngine using jdk 251+
by Ricardo Martin Camarero (Jira)
[ https://issues.redhat.com/browse/ELY-2026?page=com.atlassian.jira.plugin.... ]
Ricardo Martin Camarero commented on ELY-2026:
----------------------------------------------
Yep, same result, the project uses elytron 1.12.1.Final but if you change it to current 1.x upstream the same exception is in the log.
> UnsupportedOperationException in SSLEngine using jdk 251+
> ---------------------------------------------------------
>
> Key: ELY-2026
> URL: https://issues.redhat.com/browse/ELY-2026
> Project: WildFly Elytron
> Issue Type: Bug
> Components: SSL
> Affects Versions: 1.10.9.Final
> Reporter: Ricardo Martin Camarero
> Assignee: Darran Lofthouse
> Priority: Major
>
> Some SSLEngines provided by elytron does not implement the new TLS methods that jdk-8 251+ incorporated from jdk-11. That makes some tests in the wildfly-http-client to fail with the following exception:
> {code}
> 12:07:31,031 ERROR (XNIO-3 I/O-1) [org.xnio.listener] <ChannelListeners.java:94> XNIO001007: A channel event listener threw an exception: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:99)
> at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:81)
> at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:77)
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
> at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1211)
> at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1286)
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:94)
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:97)
> ... 8 more
> Caused by: java.lang.UnsupportedOperationException
> at org.wildfly.security.ssl.JDKSpecific.getApplicationProtocol(JDKSpecific.java:35)
> at org.wildfly.security.ssl.AbstractDelegatingSSLEngine.getApplicationProtocol(AbstractDelegatingSSLEngine.java:166)
> ... 13 more
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
3 years, 7 months