Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [hono-dev] Error "client provided an empty list of SASL mechanisms" on Protocol Adapter to Hono connection

Looks ok so far.

Can you enable DEBUG logging in the Hono server and post the output of the server
log so that we can better see what's happening?
-- 
Mit freundlichen Grüßen / Best regards

Kai Hudalla
Chief Software Architect

Bosch Software Innovations GmbH
Schöneberger Ufer 89-91
10785 Berlin
GERMANY
www.bosch-si.com

Registered office: Berlin, Register court: Amtsgericht Charlottenburg,
HRB 148411 B;
Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn

On Thu, 2017-01-26 at 16:15 +0000, Lohmann Carsten (INST/ECS4) wrote:
> the Run configuration for the *Hono server* contains these options/parameters:
> [...]
>     <option name="SPRING_BOOT_MAIN_CLASS"
> value="org.eclipse.hono.application.Application" />
>     <option name="ACTIVE_PROFILES" value="default,dev" />
>     <option name="WORKING_DIRECTORY" value="file://$MODULE_DIR$" />
>     <option name="ALTERNATIVE_JRE_PATH" />
>     <additionalParameters>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.downstream.host" />
>         <option name="value" value="localhost" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.downstream.port" />
>         <option name="value" value="15673" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.downstream.keyStorePath" />
>         <option name="value" value="../config/demo-
> certs/certs/honoKeyStore.p12" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.downstream.keyStorePassword" />
>         <option name="value" value="honokeys" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.downstream.trustStorePath" />
>         <option name="value" value="../config/demo-certs/certs/trusted-
> certs.pem" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name"
> value="hono.downstream.hostnameVerificationRequired" />
>         <option name="value" value="false" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="logging.config" />
>         <option name="value" value="classpath:logback-spring.xml" />
>       </param>
>     </additionalParameters>
> [...]
> 
> 
> 
> The *REST adapter*:
> [...]
>     <option name="SPRING_BOOT_MAIN_CLASS"
> value="org.eclipse.hono.adapter.rest.Application" />
>     <option name="ACTIVE_PROFILES" value="dev" />
>     <option name="WORKING_DIRECTORY" value="file://$MODULE_DIR$" />
>     <option name="ALTERNATIVE_JRE_PATH" />
>     <additionalParameters>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.name" />
>         <option name="value" value="Hono REST Adapter" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.host" />
>         <option name="value" value="localhost" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.port" />
>         <option name="value" value="5672" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.username" />
>         <option name="value" value="rest-adapter" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.password" />
>         <option name="value" value="secret" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.trustStorePath" />
>         <option name="value" value="../../config/demo-
> certs/certs/trustStore.jks" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.client.trustStorePassword" />
>         <option name="value" value="honotrust" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.http.bindaddress" />
>         <option name="value" value="0.0.0.0" />
>       </param>
>       <param>
>         <option name="enabled" value="true" />
>         <option name="name" value="hono.maxInstances" />
>         <option name="value" value="1" />
>       </param>
>     </additionalParameters>
> [...]
> 
> The paths in the variable values have been adapted from the ones in the docker-
> compose.yml file (reading the corresponding files looks ok to me).
> The values "hono.downstream.host" and "hono.downstream.port" of Hono Server
> have been adapted to localhost:15673.
> 
> --
>  Mit freundlichen Grüßen / Best regards
> 
> Carsten Lohmann
> 
> Bosch Software Innovations GmbH
> Schöneberger Ufer 89-91
> 10785 Berlin
> GERMANY
> www.bosch-si.com
> 
> Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB
> 148411 B
> Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn
> 
> 
> 
> 
> 
> ________________________________________
> Von: hono-dev-bounces@xxxxxxxxxxx [hono-dev-bounces@xxxxxxxxxxx]&quot; im
> Auftrag von &quot;Hudalla Kai (INST/ESY1) [Kai.Hudalla@xxxxxxxxxxxx]
> Gesendet: Donnerstag, 26. Januar 2017 09:24
> An: hono-dev@xxxxxxxxxxx
> Betreff: Re: [hono-dev] Error "client provided an empty list of SASL
> mechanisms" on Protocol Adapter to Hono connection
> 
> Hi Carste,
> 
> can you provide a list of the environment variables or command line options you
> use for starting the Hono server and REST adapter from within IntelliJ?
> 
> I suspect this to be a case of a missing/wrong option/variable...
> --
> Mit freundlichen Grüßen / Best regards
> 
> Kai Hudalla
> Chief Software Architect
> 
> Bosch Software Innovations GmbH
> Schöneberger Ufer 89-91
> 10785 Berlin
> GERMANY
> www.bosch-si.com
> 
> Registered office: Berlin, Register court: Amtsgericht Charlottenburg,
> HRB 148411 B;
> Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn
> 
> On Wed, 2017-01-25 at 16:29 +0000, Lohmann Carsten (INST/ECS4) wrote:
> > Hi,
> > 
> > I have tried to run the Hono example, starting the Hono Server and Hono REST
> > Adapter directly via Spring Boot (without Docker). The Dispatch Router runs
> > in
> > the Docker container.
> > When the REST Adapter tries to connect to Hono, there is this log message in
> > the Hono Server:
> > ---
> > 15:01:16.557 [vert.x-eventloop-thread-7] DEBUG
> > o.e.h.server.HonoSaslAuthenticator - initializing SASL authenticator
> > 15:01:16.596 [vert.x-eventloop-thread-7] DEBUG
> > o.e.h.server.HonoSaslAuthenticator - client provided an empty list of SASL
> > mechanisms [hostname: null, state: PN_SASL_IDLE]
> > 15:01:26.452 [vert.x-eventloop-thread-7] DEBUG
> > o.e.h.server.HonoSaslAuthenticator - client provided an empty list of SASL
> > mechanisms [hostname: null, state: PN_SASL_STEP]
> > ---
> > 
> > This results in this error in the REST Adapter:
> > ---
> > 15:01:26.460 [vert.x-eventloop-thread-0] WARN  o.e.h.c.ConnectionFactoryImpl
> > -
> > can't connect to AMQP 1.0 container [localhost:5672]
> > javax.net.ssl.SSLException: handshake timed out
> >       at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source)
> > ~[netty-handler-4.1.5.Final.jar:4.1.5.Final]
> > ---
> > 
> > Can someone give a hint, what I am missing here?
> > 
> > I've taken the environment variables from the respective parts of the docker-
> > compose.yml and added them as parameters to the spring boot run
> > configurations
> > (starting from IDEA), with some adaptations (ports/paths).
> > 
> > --
> > Best regards
> > 
> > Carsten Lohmann
> > 
> > Bosch Software Innovations GmbH
> > Schöneberger Ufer 89-91
> > 10785 Berlin
> > GERMANY
> > www.bosch-si.com
> > 
> > Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB
> > 148411 B
> > Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn
> > _______________________________________________
> > hono-dev mailing list
> > hono-dev@xxxxxxxxxxx
> > To change your delivery options, retrieve your password, or unsubscribe from
> > this list, visit
> > https://dev.eclipse.org/mailman/listinfo/hono-dev
> 
> _______________________________________________
> hono-dev mailing list
> hono-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/hono-dev
> _______________________________________________
> hono-dev mailing list
> hono-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/hono-dev

Back to the top