directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lothar Haeger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSTUDIO-1205) Which platforms does Studio work with TLS?
Date Fri, 30 Nov 2018 14:20:00 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704790#comment-16704790
] 

Lothar Haeger commented on DIRSTUDIO-1205:
------------------------------------------

I see a similar issue when connecting to my Edirectory dev system using Apache LDAP API. Connections
work with StartTLS on :389 but not with SSL/TLS on :636.Using JNDI, both StartTLS and SSL/TLS
work.

I did not bother digging deeper yet since I have a workaround (actually two: switch to either
JNDI or StartTLS) and it was not reproducible on some other machines. Anywhere, here is what
I get in .log with -Ddebug.ssl for hitting the "Test Connection" button in connection properties:

{{!SESSION 2018-11-30 15:08:29.550 -----------------------------------------------}}
{{eclipse.buildId=unknown}}
{{java.version=1.8.0_192}}
{{java.vendor=Oracle Corporation}}
{{BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE}}
{{Framework arguments:  /studio-rcp/resources/icons/linux/studio.xpm -keyring /Users/lhaeger/.eclipse_keyring}}
{{Command-line arguments:  -os macosx -ws cocoa -arch x86_64 /studio-rcp/resources/icons/linux/studio.xpm
-keyring /Users/lhaeger/.eclipse_keyring}}

{{!ENTRY org.apache.directory.studio.slf4j-eclipselog 2 0 2018-11-30 15:08:49.309}}
{{!MESSAGE}}
{{!STACK 0}}
{{java.lang.NullPointerException}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.sessionClosed(LdapNetworkConnection.java:4556)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:960)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:49)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:1105)}}
{{    at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:391)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:49)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:1105)}}
{{    at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:98)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:599)}}
{{    at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:251)}}
{{    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.removeNow(AbstractPollingIoProcessor.java:1163)}}
{{    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.removeSessions(AbstractPollingIoProcessor.java:864)}}
{{    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:694)}}
{{    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)}}
{{    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
{{    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
{{    at java.lang.Thread.run(Thread.java:748)}}

{{!ENTRY org.apache.directory.studio.common.core.jobs 4 4 2018-11-30 15:08:51.875}}
{{!MESSAGE Die Verbindung schlug fehl}}
{{ - Verbindung nicht möglich}}
{{!SUBENTRY 1 org.apache.directory.studio.common.core.jobs 4 4 2018-11-30 15:08:51.875}}
{{!MESSAGE java.lang.Exception: Verbindung nicht möglich}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:251)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)}}
{{    at org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)}}
{{    at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)}}
{{    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)}}

{{!STACK 0}}
{{java.lang.Exception: Verbindung nicht möglich}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:251)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)}}
{{    at org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)}}
{{    at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)}}
{{    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)}}

{{!ENTRY org.apache.directory.studio.slf4j-eclipselog 4 0 2018-11-30 15:09:23.162}}
{{!MESSAGE ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context}}
{{!STACK 0}}
{{org.apache.directory.api.ldap.model.exception.LdapOperationException: ERR_04120_TLS_HANDSHAKE_ERROR
The TLS handshake failed}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:688)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:247)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)}}
{{    at org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)}}
{{    at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)}}
{{    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)}}

{{!ENTRY org.apache.directory.studio.slf4j-eclipselog 2 0 2018-11-30 15:09:23.200}}
{{!MESSAGE}}
{{!STACK 0}}
{{java.lang.NullPointerException}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.sessionClosed(LdapNetworkConnection.java:4556)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:960)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:49)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:1105)}}
{{    at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:391)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:49)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:1105)}}
{{    at org.apache.mina.filter.ssl.SslFilter.sessionClosed(SslFilter.java:488)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:49)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:1105)}}
{{    at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:98)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:606)}}
{{    at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:599)}}
{{    at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:251)}}
{{    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.removeNow(AbstractPollingIoProcessor.java:1163)}}
{{    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.removeSessions(AbstractPollingIoProcessor.java:864)}}
{{    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:694)}}
{{    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)}}
{{    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
{{    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
{{    at java.lang.Thread.run(Thread.java:748)}}

{{!ENTRY org.apache.directory.studio.common.core.jobs 4 4 2018-11-30 15:09:26.025}}
{{!MESSAGE Die Verbindung schlug fehl}}
{{ - ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context}}
{{!SUBENTRY 1 org.apache.directory.studio.common.core.jobs 4 4 2018-11-30 15:09:26.025}}
{{!MESSAGE org.apache.directory.api.ldap.model.exception.LdapException: ERR_04122_SSL_CONTEXT_INIT_FAILURE
Failed to initialize the SSL context}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:695)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:247)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)}}
{{    at org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)}}
{{    at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)}}
{{    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)}}
{{Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationException: ERR_04120_TLS_HANDSHAKE_ERROR
The TLS handshake failed}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:688)}}
{{    ... 7 more}}

{{!STACK 0}}
{{org.apache.directory.api.ldap.model.exception.LdapException: ERR_04122_SSL_CONTEXT_INIT_FAILURE
Failed to initialize the SSL context}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:695)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:247)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)}}
{{    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)}}
{{    at org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)}}
{{    at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)}}
{{    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)}}
{{Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationException: ERR_04120_TLS_HANDSHAKE_ERROR
The TLS handshake failed}}
{{    at org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:688)}}
{{    ... 7 more}}

Let me know if I can do any other testing to help you isolate the issue.

> Which platforms does Studio work with TLS?
> ------------------------------------------
>
>                 Key: DIRSTUDIO-1205
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1205
>             Project: Directory Studio
>          Issue Type: Bug
>            Reporter: Aigo
>            Priority: Major
>
> It sure does not work on the latest Ubuntu, as it fails the SSL handshake, and it does
the same on the latest CentOS as well. So which platforms does it work on?
> I wanted to setup docker container, but not sure if I want to waste any more of my time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message