<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      I think it should be fixed in latest master - or at least we will
      see the "real" exception instead of the exception thrown during
      reporting "real" exception :)<br>
      <br>
      Among LDAP fixes, I've also added the example application showing
      integration with LDAP. It's here: <a
        class="moz-txt-link-freetext"
        href="https://github.com/keycloak/keycloak/tree/master/examples/ldap">https://github.com/keycloak/keycloak/tree/master/examples/ldap</a><br>
      <br>
      If you have opportunity to try it you can build latest master with
      the commands like this (you need java7, maven 3.1 or later and
      git):<br>
      <br>
      $ git clone <a class="moz-txt-link-freetext"
        href="https://github.com/keycloak/keycloak.git">https://github.com/keycloak/keycloak.git</a><br>
      $ cd keycloak<br>
      $ mvn clean install -DskipTests=true<br>
      $ cd distribution<br>
      $ mvn clean install<br>
      <br>
      then in
      $KEYCLOAK_HOME/distribution/demo-dist/target/keycloak-demo-1.4.0.Final-SNAPSHOT.zip

      is latest demo distribution (which contains the example) and in
      $KEYCLOAK_HOME/distribution/server-dist/target/keycloak-1.4.0.Final-SNAPSHOT.zip

      is latest server distribution .<br>
      <br>
      Marek<br>
      <br>
      On 6.7.2015 16:16, Marcelo Arthur Sampaio wrote:<br>
    </div>
    <blockquote
      cite="mid:05831e30366b19834d2d55e0bde3c23983cee78d@serpro.gov.br"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <title></title>
      <style type="text/css">.expressomail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style><br>
      <blockquote class="expressomail-body-blockquote">Hi,<br>
        <br>
        I'm try to add user using LDAP federation, but get this error:<br>
        <br>
        11:08:40,891 ERROR
        [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/auth].[Keycloak
        REST Interface]] (http-localhost/127.0.0.1:8080-6) JBWEB000236:
        Servlet.service() for servlet Keycloak REST Interface threw
        exception: java.lang.RuntimeException: request path:
        /auth/admin/realms/demo/users<br>
            at
        org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:54)
        [keycloak-services-1.3.1.Final.jar:1.3.1.Final]<br>
            at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
        [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>
            at
        org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]<br>
        <b>Caused by: java.lang.IllegalArgumentException: can't parse
          argument number</b>: cn=teste<br>
            at
        java.text.MessageFormat.makeFormat(MessageFormat.java:1429)
        [rt.jar:1.8.0_45]<br>
            at
        java.text.MessageFormat.applyPattern(MessageFormat.java:479)
        [rt.jar:1.8.0_45]<br>
            at
        java.text.MessageFormat.&lt;init&gt;(MessageFormat.java:380)
        [rt.jar:1.8.0_45]<br>
            at
        org.keycloak.services.messages.AdminMessagesProvider.getMessage(AdminMessagesProvider.java:32)
        [keycloak-services-1.3.1.Final.jar:1.3.1.Final]<br>
            at
        org.keycloak.services.resources.ModelExceptionMapper.toResponse(ModelExceptionMapper.java:27)
        [keycloak-services-1.3.1.Final.jar:1.3.1.Final]<br>
            at
        org.keycloak.services.resources.ModelExceptionMapper.toResponse(ModelExceptionMapper.java:17)
        [keycloak-services-1.3.1.Final.jar:1.3.1.Final]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.executeExceptionMapper(SynchronousDispatcher.java:343)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:372)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:361)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:232)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:208)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:556)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
        [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
            at
        javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]<br>
            at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41)
        [keycloak-services-1.3.1.Final.jar:1.3.1.Final]<br>
            at
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
            at
        org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40)
        [keycloak-services-1.3.1.Final.jar:1.3.1.Final]<br>
            ... 13 more<br>
        <b>Caused by: java.lang.NumberFormatException: For input string:
        </b>"cn=teste"<br>
            at
        java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        [rt.jar:1.8.0_45]<br>
            at java.lang.Integer.parseInt(Integer.java:580)
        [rt.jar:1.8.0_45]<br>
            at java.lang.Integer.parseInt(Integer.java:615)
        [rt.jar:1.8.0_45]<br>
            at
        java.text.MessageFormat.makeFormat(MessageFormat.java:1427)
        [rt.jar:1.8.0_45]<br>
            ... 36 more<br>
      </blockquote>
      <br>
      <div>
        -<br>
        <br>
        <br>
        "Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS
        (SERPRO), empresa pública federal regida pelo disposto na Lei
        Federal nº 5.615, é enviada exclusivamente a seu destinatário e
        pode conter informações confidenciais, protegidas por sigilo
        profissional. Sua utilização desautorizada é ilegal e sujeita o
        infrator às penas da lei. Se você a recebeu indevidamente,
        queira, por gentileza, reenviá-la ao emitente, esclarecendo o
        equívoco."<br>
        <br>
        "This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS
        (SERPRO) -- a government company established under Brazilian law
        (5.615/70) -- is directed exclusively to its addressee and may
        contain confidential data, protected under professional secrecy
        rules. Its unauthorized use is illegal and may subject the
        transgressor to the law's penalties. If you're not the
        addressee, please send it back, elucidating the failure."<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>