[keycloak-user] NullPointerException while adding userFederationMappers

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[keycloak-user] NullPointerException while adding userFederationMappers

Nabeel Ahmed
Hi Everyone,

I am using keycloak 2.4.0.Final and creating ldap user federation provider.
Getting the following error when creating UserFederationMappers.



14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
Exception handling request to
/auth/admin/realms/DecisionSpace_Integration_Server/user-federation/instances/79a731e1-6d8d-499e-a62f-73cb38af72e2/mappers:
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
        at
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
        at
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
        at
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:168)
        at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:411)
        at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)
        at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
        at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
        at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
        at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
        at
org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:90)
        at
io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
        at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at
io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
        at
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        at
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
        at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
        at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
        at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
        at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
        at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
        at
io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
        at
io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
        at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
        at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
        at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
        at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
        at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
        at
io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
        at
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at
org.keycloak.services.resources.admin.UserFederationProviderResource.validateModel(UserFederationProviderResource.java:450)
        at
org.keycloak.services.resources.admin.UserFederationProviderResource.addMapper(UserFederationProviderResource.java:321)
        at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139)
        at
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)
        at
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:138)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:107)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:133)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:107)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:133)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:107)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:133)
        at
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:101)
        at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:395)
        ... 37 more



Regards,

Nabeel Ahmed
Cell # +92 333 540 5542
_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

Nabeel Ahmed
+ Using REST API

Regards,

Nabeel Ahmed
Cell # +92 333 540 5542

On Tue, Apr 18, 2017 at 2:53 PM, Nabeel Ahmed <[hidden email]> wrote:

> Hi Everyone,
>
> I am using keycloak 2.4.0.Final and creating ldap user federation
> provider.
> Getting the following error when creating UserFederationMappers.
>
>
>
> 14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
> Exception handling request to /auth/admin/realms/
> DecisionSpace_Integration_Server/user-federation/
> instances/79a731e1-6d8d-499e-a62f-73cb38af72e2/mappers:
> org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
>         at org.jboss.resteasy.core.ExceptionHandler.
> handleApplicationException(ExceptionHandler.java:76)
>         at org.jboss.resteasy.core.ExceptionHandler.handleException(
> ExceptionHandler.java:212)
>         at org.jboss.resteasy.core.SynchronousDispatcher.writeException(
> SynchronousDispatcher.java:168)
>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
> SynchronousDispatcher.java:411)
>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
> SynchronousDispatcher.java:202)
>         at org.jboss.resteasy.plugins.server.servlet.
> ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
>         at org.jboss.resteasy.plugins.server.servlet.
> HttpServletDispatcher.service(HttpServletDispatcher.java:56)
>         at org.jboss.resteasy.plugins.server.servlet.
> HttpServletDispatcher.service(HttpServletDispatcher.java:51)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>         at io.undertow.servlet.handlers.ServletHandler.handleRequest(
> ServletHandler.java:85)
>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
> doFilter(FilterHandler.java:129)
>         at org.keycloak.services.filters.KeycloakSessionServletFilter.
> doFilter(KeycloakSessionServletFilter.java:90)
>         at io.undertow.servlet.core.ManagedFilter.doFilter(
> ManagedFilter.java:60)
>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
> doFilter(FilterHandler.java:131)
>         at io.undertow.servlet.handlers.FilterHandler.handleRequest(
> FilterHandler.java:84)
>         at io.undertow.servlet.handlers.security.
> ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.
> java:62)
>         at io.undertow.servlet.handlers.ServletDispatchingHandler.
> handleRequest(ServletDispatchingHandler.java:36)
>         at org.wildfly.extension.undertow.security.
> SecurityContextAssociationHandler.handleRequest(
> SecurityContextAssociationHandler.java:78)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(
> PredicateHandler.java:43)
>         at io.undertow.servlet.handlers.security.
> SSLInformationAssociationHandler.handleRequest(
> SSLInformationAssociationHandler.java:131)
>         at io.undertow.servlet.handlers.security.
> ServletAuthenticationCallHandler.handleRequest(
> ServletAuthenticationCallHandler.java:57)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(
> PredicateHandler.java:43)
>         at io.undertow.security.handlers.AbstractConfidentialityHandler
> .handleRequest(AbstractConfidentialityHandler.java:46)
>         at io.undertow.servlet.handlers.security.
> ServletConfidentialityConstraintHandler.handleRequest(
> ServletConfidentialityConstraintHandler.java:64)
>         at io.undertow.security.handlers.AuthenticationMechanismsHandle
> r.handleRequest(AuthenticationMechanismsHandler.java:60)
>         at io.undertow.servlet.handlers.security.
> CachedAuthenticatedSessionHandler.handleRequest(
> CachedAuthenticatedSessionHandler.java:77)
>         at io.undertow.security.handlers.NotificationReceiverHandler.
> handleRequest(NotificationReceiverHandler.java:50)
>         at io.undertow.security.handlers.AbstractSecurityContextAssocia
> tionHandler.handleRequest(AbstractSecurityContextAssocia
> tionHandler.java:43)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(
> PredicateHandler.java:43)
>         at org.wildfly.extension.undertow.security.jacc.
> JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(
> PredicateHandler.java:43)
>         at io.undertow.server.handlers.PredicateHandler.handleRequest(
> PredicateHandler.java:43)
>         at io.undertow.servlet.handlers.ServletInitialHandler.
> handleFirstRequest(ServletInitialHandler.java:284)
>         at io.undertow.servlet.handlers.ServletInitialHandler.
> dispatchRequest(ServletInitialHandler.java:263)
>         at io.undertow.servlet.handlers.ServletInitialHandler.access$
> 000(ServletInitialHandler.java:81)
>         at io.undertow.servlet.handlers.ServletInitialHandler$1.
> handleRequest(ServletInitialHandler.java:174)
>         at io.undertow.server.Connectors.executeRootHandler(Connectors.
> java:202)
>         at io.undertow.server.HttpServerExchange$1.run(
> HttpServerExchange.java:793)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
>         at org.keycloak.services.resources.admin.
> UserFederationProviderResource.validateModel(
> UserFederationProviderResource.java:450)
>         at org.keycloak.services.resources.admin.
> UserFederationProviderResource.addMapper(UserFederationProviderResource
> .java:321)
>         at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
> MethodInjectorImpl.java:139)
>         at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(
> ResourceMethodInvoker.java:295)
>         at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(
> ResourceMethodInvoker.java:249)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
> invokeOnTargetObject(ResourceLocatorInvoker.java:138)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
> ResourceLocatorInvoker.java:107)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
> invokeOnTargetObject(ResourceLocatorInvoker.java:133)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
> ResourceLocatorInvoker.java:107)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
> invokeOnTargetObject(ResourceLocatorInvoker.java:133)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
> ResourceLocatorInvoker.java:107)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
> invokeOnTargetObject(ResourceLocatorInvoker.java:133)
>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
> ResourceLocatorInvoker.java:101)
>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
> SynchronousDispatcher.java:395)
>         ... 37 more
>
>
>
> Regards,
>
> Nabeel Ahmed
> Cell # +92 333 540 5542
>
_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

Nabeel Ahmed
URL: /auth/admin/realms/DecisionSpace_Integration_Server/user-federation/instances/845968bd-499e-4cd2-ad52-69bbe258c56c/mappers

POST Request JSON :

{"name":"email","federationProviderDisplayName":"dsis-ldap","federationMapperType":"user-attribute-ldap-mapper","config":{"ldap.attribute":"mail","is.mandatory.in.ldap":"false","read.only":"true","always.read.value.from.ldap":"false","user.model.attribute":"email"}}

Regards,

Nabeel Ahmed
Cell # +92 333 540 5542

On Tue, Apr 18, 2017 at 2:55 PM, Nabeel Ahmed <[hidden email]> wrote:

> + Using REST API
>
> Regards,
>
> Nabeel Ahmed
> Cell # +92 333 540 5542
>
> On Tue, Apr 18, 2017 at 2:53 PM, Nabeel Ahmed <[hidden email]> wrote:
>
>> Hi Everyone,
>>
>> I am using keycloak 2.4.0.Final and creating ldap user federation
>> provider.
>> Getting the following error when creating UserFederationMappers.
>>
>>
>>
>> 14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
>> Exception handling request to /auth/admin/realms/DecisionSpa
>> ce_Integration_Server/user-federation/instances/79a731e1-
>> 6d8d-499e-a62f-73cb38af72e2/mappers: org.jboss.resteasy.spi.UnhandledException:
>> java.lang.NullPointerException
>>         at org.jboss.resteasy.core.ExceptionHandler.handleApplicationEx
>> ception(ExceptionHandler.java:76)
>>         at org.jboss.resteasy.core.ExceptionHandler.handleException(Exc
>> eptionHandler.java:212)
>>         at org.jboss.resteasy.core.SynchronousDispatcher.writeException
>> (SynchronousDispatcher.java:168)
>>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
>> nousDispatcher.java:411)
>>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
>> nousDispatcher.java:202)
>>         at org.jboss.resteasy.plugins.server.servlet.ServletContainerDi
>> spatcher.service(ServletContainerDispatcher.java:221)
>>         at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatc
>> her.service(HttpServletDispatcher.java:56)
>>         at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatc
>> her.service(HttpServletDispatcher.java:51)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>         at io.undertow.servlet.handlers.ServletHandler.handleRequest(Se
>> rvletHandler.java:85)
>>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d
>> oFilter(FilterHandler.java:129)
>>         at org.keycloak.services.filters.KeycloakSessionServletFilter.d
>> oFilter(KeycloakSessionServletFilter.java:90)
>>         at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilte
>> r.java:60)
>>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d
>> oFilter(FilterHandler.java:131)
>>         at io.undertow.servlet.handlers.FilterHandler.handleRequest(Fil
>> terHandler.java:84)
>>         at io.undertow.servlet.handlers.security.ServletSecurityRoleHan
>> dler.handleRequest(ServletSecurityRoleHandler.java:62)
>>         at io.undertow.servlet.handlers.ServletDispatchingHandler.handl
>> eRequest(ServletDispatchingHandler.java:36)
>>         at org.wildfly.extension.undertow.security.SecurityContextAssoc
>> iationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
>>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
>> redicateHandler.java:43)
>>         at io.undertow.servlet.handlers.security.SSLInformationAssociat
>> ionHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>>         at io.undertow.servlet.handlers.security.ServletAuthenticationC
>> allHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
>> redicateHandler.java:43)
>>         at io.undertow.security.handlers.AbstractConfidentialityHandler
>> .handleRequest(AbstractConfidentialityHandler.java:46)
>>         at io.undertow.servlet.handlers.security.ServletConfidentiality
>> ConstraintHandler.handleRequest(ServletConfident
>> ialityConstraintHandler.java:64)
>>         at io.undertow.security.handlers.AuthenticationMechanismsHandle
>> r.handleRequest(AuthenticationMechanismsHandler.java:60)
>>         at io.undertow.servlet.handlers.security.CachedAuthenticatedSes
>> sionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>>         at io.undertow.security.handlers.NotificationReceiverHandler.ha
>> ndleRequest(NotificationReceiverHandler.java:50)
>>         at io.undertow.security.handlers.AbstractSecurityContextAssocia
>> tionHandler.handleRequest(AbstractSecurityContextAssociation
>> Handler.java:43)
>>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
>> redicateHandler.java:43)
>>         at org.wildfly.extension.undertow.security.jacc.JACCContextIdHa
>> ndler.handleRequest(JACCContextIdHandler.java:61)
>>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
>> redicateHandler.java:43)
>>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
>> redicateHandler.java:43)
>>         at io.undertow.servlet.handlers.ServletInitialHandler.handleFir
>> stRequest(ServletInitialHandler.java:284)
>>         at io.undertow.servlet.handlers.ServletInitialHandler.dispatchR
>> equest(ServletInitialHandler.java:263)
>>         at io.undertow.servlet.handlers.ServletInitialHandler.access$00
>> 0(ServletInitialHandler.java:81)
>>         at io.undertow.servlet.handlers.ServletInitialHandler$1.handleR
>> equest(ServletInitialHandler.java:174)
>>         at io.undertow.server.Connectors.executeRootHandler(Connectors.
>> java:202)
>>         at io.undertow.server.HttpServerExchange$1.run(HttpServerExchan
>> ge.java:793)
>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>>         at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.NullPointerException
>>         at org.keycloak.services.resources.admin.UserFederationProvider
>> Resource.validateModel(UserFederationProviderResource.java:450)
>>         at org.keycloak.services.resources.admin.UserFederationProvider
>> Resource.addMapper(UserFederationProviderResource.java:321)
>>         at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>         at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInje
>> ctorImpl.java:139)
>>         at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget
>> (ResourceMethodInvoker.java:295)
>>         at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(Resourc
>> eMethodInvoker.java:249)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
>> tObject(ResourceLocatorInvoker.java:138)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
>> ceLocatorInvoker.java:107)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
>> tObject(ResourceLocatorInvoker.java:133)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
>> ceLocatorInvoker.java:107)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
>> tObject(ResourceLocatorInvoker.java:133)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
>> ceLocatorInvoker.java:107)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
>> tObject(ResourceLocatorInvoker.java:133)
>>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
>> ceLocatorInvoker.java:101)
>>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
>> nousDispatcher.java:395)
>>         ... 37 more
>>
>>
>>
>> Regards,
>>
>> Nabeel Ahmed
>> Cell # +92 333 540 5542
>>
>
>
_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

Bruno Oliveira
Is the same happening with 3.0.0.Final?

On Tue, Apr 18, 2017 at 7:01 AM Nabeel Ahmed <[hidden email]> wrote:

> URL:
> /auth/admin/realms/DecisionSpace_Integration_Server/user-federation/instances/845968bd-499e-4cd2-ad52-69bbe258c56c/mappers
>
> POST Request JSON :
>
>
> {"name":"email","federationProviderDisplayName":"dsis-ldap","federationMapperType":"user-attribute-ldap-mapper","config":{"ldap.attribute":"mail","is.mandatory.in.ldap":"false","read.only":"true","always.read.value.from.ldap":"false","user.model.attribute":"email"}}
>
> Regards,
>
> Nabeel Ahmed
> Cell # +92 333 540 5542
>
> On Tue, Apr 18, 2017 at 2:55 PM, Nabeel Ahmed <[hidden email]> wrote:
>
> > + Using REST API
> >
> > Regards,
> >
> > Nabeel Ahmed
> > Cell # +92 333 540 5542
> >
> > On Tue, Apr 18, 2017 at 2:53 PM, Nabeel Ahmed <[hidden email]> wrote:
> >
> >> Hi Everyone,
> >>
> >> I am using keycloak 2.4.0.Final and creating ldap user federation
> >> provider.
> >> Getting the following error when creating UserFederationMappers.
> >>
> >>
> >>
> >> 14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
> >> Exception handling request to /auth/admin/realms/DecisionSpa
> >> ce_Integration_Server/user-federation/instances/79a731e1-
> >> 6d8d-499e-a62f-73cb38af72e2/mappers:
> org.jboss.resteasy.spi.UnhandledException:
> >> java.lang.NullPointerException
> >>         at org.jboss.resteasy.core.ExceptionHandler.handleApplicationEx
> >> ception(ExceptionHandler.java:76)
> >>         at org.jboss.resteasy.core.ExceptionHandler.handleException(Exc
> >> eptionHandler.java:212)
> >>         at org.jboss.resteasy.core.SynchronousDispatcher.writeException
> >> (SynchronousDispatcher.java:168)
> >>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
> >> nousDispatcher.java:411)
> >>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
> >> nousDispatcher.java:202)
> >>         at org.jboss.resteasy.plugins.server.servlet.ServletContainerDi
> >> spatcher.service(ServletContainerDispatcher.java:221)
> >>         at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatc
> >> her.service(HttpServletDispatcher.java:56)
> >>         at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatc
> >> her.service(HttpServletDispatcher.java:51)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> >>         at io.undertow.servlet.handlers.ServletHandler.handleRequest(Se
> >> rvletHandler.java:85)
> >>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d
> >> oFilter(FilterHandler.java:129)
> >>         at org.keycloak.services.filters.KeycloakSessionServletFilter.d
> >> oFilter(KeycloakSessionServletFilter.java:90)
> >>         at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilte
> >> r.java:60)
> >>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d
> >> oFilter(FilterHandler.java:131)
> >>         at io.undertow.servlet.handlers.FilterHandler.handleRequest(Fil
> >> terHandler.java:84)
> >>         at io.undertow.servlet.handlers.security.ServletSecurityRoleHan
> >> dler.handleRequest(ServletSecurityRoleHandler.java:62)
> >>         at io.undertow.servlet.handlers.ServletDispatchingHandler.handl
> >> eRequest(ServletDispatchingHandler.java:36)
> >>         at org.wildfly.extension.undertow.security.SecurityContextAssoc
> >> iationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> >>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
> >> redicateHandler.java:43)
> >>         at io.undertow.servlet.handlers.security.SSLInformationAssociat
> >> ionHandler.handleRequest(SSLInformationAssociationHandler.java:131)
> >>         at io.undertow.servlet.handlers.security.ServletAuthenticationC
> >> allHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> >>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
> >> redicateHandler.java:43)
> >>         at io.undertow.security.handlers.AbstractConfidentialityHandler
> >> .handleRequest(AbstractConfidentialityHandler.java:46)
> >>         at io.undertow.servlet.handlers.security.ServletConfidentiality
> >> ConstraintHandler.handleRequest(ServletConfident
> >> ialityConstraintHandler.java:64)
> >>         at io.undertow.security.handlers.AuthenticationMechanismsHandle
> >> r.handleRequest(AuthenticationMechanismsHandler.java:60)
> >>         at io.undertow.servlet.handlers.security.CachedAuthenticatedSes
> >> sionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> >>         at io.undertow.security.handlers.NotificationReceiverHandler.ha
> >> ndleRequest(NotificationReceiverHandler.java:50)
> >>         at io.undertow.security.handlers.AbstractSecurityContextAssocia
> >> tionHandler.handleRequest(AbstractSecurityContextAssociation
> >> Handler.java:43)
> >>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
> >> redicateHandler.java:43)
> >>         at org.wildfly.extension.undertow.security.jacc.JACCContextIdHa
> >> ndler.handleRequest(JACCContextIdHandler.java:61)
> >>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
> >> redicateHandler.java:43)
> >>         at io.undertow.server.handlers.PredicateHandler.handleRequest(P
> >> redicateHandler.java:43)
> >>         at io.undertow.servlet.handlers.ServletInitialHandler.handleFir
> >> stRequest(ServletInitialHandler.java:284)
> >>         at io.undertow.servlet.handlers.ServletInitialHandler.dispatchR
> >> equest(ServletInitialHandler.java:263)
> >>         at io.undertow.servlet.handlers.ServletInitialHandler.access$00
> >> 0(ServletInitialHandler.java:81)
> >>         at io.undertow.servlet.handlers.ServletInitialHandler$1.handleR
> >> equest(ServletInitialHandler.java:174)
> >>         at io.undertow.server.Connectors.executeRootHandler(Connectors.
> >> java:202)
> >>         at io.undertow.server.HttpServerExchange$1.run(HttpServerExchan
> >> ge.java:793)
> >>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> >> Executor.java:1142)
> >>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> >> lExecutor.java:617)
> >>         at java.lang.Thread.run(Thread.java:745)
> >> Caused by: java.lang.NullPointerException
> >>         at org.keycloak.services.resources.admin.UserFederationProvider
> >> Resource.validateModel(UserFederationProviderResource.java:450)
> >>         at org.keycloak.services.resources.admin.UserFederationProvider
> >> Resource.addMapper(UserFederationProviderResource.java:321)
> >>         at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown Source)
> >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> >> thodAccessorImpl.java:43)
> >>         at java.lang.reflect.Method.invoke(Method.java:498)
> >>         at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInje
> >> ctorImpl.java:139)
> >>         at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget
> >> (ResourceMethodInvoker.java:295)
> >>         at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(Resourc
> >> eMethodInvoker.java:249)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> >> tObject(ResourceLocatorInvoker.java:138)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> >> ceLocatorInvoker.java:107)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> >> tObject(ResourceLocatorInvoker.java:133)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> >> ceLocatorInvoker.java:107)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> >> tObject(ResourceLocatorInvoker.java:133)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> >> ceLocatorInvoker.java:107)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTarge
> >> tObject(ResourceLocatorInvoker.java:133)
> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(Resour
> >> ceLocatorInvoker.java:101)
> >>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(Synchro
> >> nousDispatcher.java:395)
> >>         ... 37 more
> >>
> >>
> >>
> >> Regards,
> >>
> >> Nabeel Ahmed
> >> Cell # +92 333 540 5542
> >>
> >
> >
> _______________________________________________
> keycloak-user mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

Nabeel Ahmed
Didn't tried 3.x. as we cannot upgrade from 2.4.0.Final for now.



Regards,

Nabeel Ahmed
Cell # +92 333 540 5542

On Tue, Apr 18, 2017 at 5:29 PM, Bruno Oliveira <[hidden email]> wrote:

> Is the same happening with 3.0.0.Final?
>
> On Tue, Apr 18, 2017 at 7:01 AM Nabeel Ahmed <[hidden email]> wrote:
>
>> URL: /auth/admin/realms/DecisionSpace_Integration_Server/user-federation/
>> instances/845968bd-499e-4cd2-ad52-69bbe258c56c/mappers
>>
>> POST Request JSON :
>>
>> {"name":"email","federationProviderDisplayName":"dsis-ldap","
>> federationMapperType":"user-attribute-ldap-mapper","
>> config":{"ldap.attribute":"mail","is.mandatory.in.ldap":"
>> false","read.only":"true","always.read.value.from.ldap":"
>> false","user.model.attribute":"email"}}
>>
>> Regards,
>>
>> Nabeel Ahmed
>> Cell # +92 333 540 5542
>>
>> On Tue, Apr 18, 2017 at 2:55 PM, Nabeel Ahmed <[hidden email]> wrote:
>>
>> > + Using REST API
>> >
>> > Regards,
>> >
>> > Nabeel Ahmed
>> > Cell # +92 333 540 5542
>> >
>> > On Tue, Apr 18, 2017 at 2:53 PM, Nabeel Ahmed <[hidden email]>
>> wrote:
>> >
>> >> Hi Everyone,
>> >>
>> >> I am using keycloak 2.4.0.Final and creating ldap user federation
>> >> provider.
>> >> Getting the following error when creating UserFederationMappers.
>> >>
>> >>
>> >>
>> >> 14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
>> >> Exception handling request to /auth/admin/realms/DecisionSpa
>> >> ce_Integration_Server/user-federation/instances/79a731e1-
>> >> 6d8d-499e-a62f-73cb38af72e2/mappers: org.jboss.resteasy.spi.
>> UnhandledException:
>> >> java.lang.NullPointerException
>> >>         at org.jboss.resteasy.core.ExceptionHandler.
>> handleApplicationEx
>> >> ception(ExceptionHandler.java:76)
>> >>         at org.jboss.resteasy.core.ExceptionHandler.
>> handleException(Exc
>> >> eptionHandler.java:212)
>> >>         at org.jboss.resteasy.core.SynchronousDispatcher.
>> writeException
>> >> (SynchronousDispatcher.java:168)
>> >>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
>> Synchro
>> >> nousDispatcher.java:411)
>> >>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
>> Synchro
>> >> nousDispatcher.java:202)
>> >>         at org.jboss.resteasy.plugins.server.servlet.
>> ServletContainerDi
>> >> spatcher.service(ServletContainerDispatcher.java:221)
>> >>         at org.jboss.resteasy.plugins.server.servlet.
>> HttpServletDispatc
>> >> her.service(HttpServletDispatcher.java:56)
>> >>         at org.jboss.resteasy.plugins.server.servlet.
>> HttpServletDispatc
>> >> her.service(HttpServletDispatcher.java:51)
>> >>         at javax.servlet.http.HttpServlet.service(
>> HttpServlet.java:790)
>> >>         at io.undertow.servlet.handlers.ServletHandler.handleRequest(
>> Se
>> >> rvletHandler.java:85)
>> >>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
>> d
>> >> oFilter(FilterHandler.java:129)
>> >>         at org.keycloak.services.filters.
>> KeycloakSessionServletFilter.d
>> >> oFilter(KeycloakSessionServletFilter.java:90)
>> >>         at io.undertow.servlet.core.ManagedFilter.doFilter(
>> ManagedFilte
>> >> r.java:60)
>> >>         at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
>> d
>> >> oFilter(FilterHandler.java:131)
>> >>         at io.undertow.servlet.handlers.FilterHandler.handleRequest(
>> Fil
>> >> terHandler.java:84)
>> >>         at io.undertow.servlet.handlers.security.
>> ServletSecurityRoleHan
>> >> dler.handleRequest(ServletSecurityRoleHandler.java:62)
>> >>         at io.undertow.servlet.handlers.ServletDispatchingHandler.
>> handl
>> >> eRequest(ServletDispatchingHandler.java:36)
>> >>         at org.wildfly.extension.undertow.security.
>> SecurityContextAssoc
>> >> iationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
>> >>         at io.undertow.server.handlers.PredicateHandler.
>> handleRequest(P
>> >> redicateHandler.java:43)
>> >>         at io.undertow.servlet.handlers.security.
>> SSLInformationAssociat
>> >> ionHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>> >>         at io.undertow.servlet.handlers.security.
>> ServletAuthenticationC
>> >> allHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>> >>         at io.undertow.server.handlers.PredicateHandler.
>> handleRequest(P
>> >> redicateHandler.java:43)
>> >>         at io.undertow.security.handlers.
>> AbstractConfidentialityHandler
>> >> .handleRequest(AbstractConfidentialityHandler.java:46)
>> >>         at io.undertow.servlet.handlers.security.
>> ServletConfidentiality
>> >> ConstraintHandler.handleRequest(ServletConfident
>> >> ialityConstraintHandler.java:64)
>> >>         at io.undertow.security.handlers.
>> AuthenticationMechanismsHandle
>> >> r.handleRequest(AuthenticationMechanismsHandler.java:60)
>> >>         at io.undertow.servlet.handlers.security.
>> CachedAuthenticatedSes
>> >> sionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>> >>         at io.undertow.security.handlers.
>> NotificationReceiverHandler.ha
>> >> ndleRequest(NotificationReceiverHandler.java:50)
>> >>         at io.undertow.security.handlers.
>> AbstractSecurityContextAssocia
>> >> tionHandler.handleRequest(AbstractSecurityContextAssociation
>> >> Handler.java:43)
>> >>         at io.undertow.server.handlers.PredicateHandler.
>> handleRequest(P
>> >> redicateHandler.java:43)
>> >>         at org.wildfly.extension.undertow.security.jacc.
>> JACCContextIdHa
>> >> ndler.handleRequest(JACCContextIdHandler.java:61)
>> >>         at io.undertow.server.handlers.PredicateHandler.
>> handleRequest(P
>> >> redicateHandler.java:43)
>> >>         at io.undertow.server.handlers.PredicateHandler.
>> handleRequest(P
>> >> redicateHandler.java:43)
>> >>         at io.undertow.servlet.handlers.ServletInitialHandler.
>> handleFir
>> >> stRequest(ServletInitialHandler.java:284)
>> >>         at io.undertow.servlet.handlers.ServletInitialHandler.
>> dispatchR
>> >> equest(ServletInitialHandler.java:263)
>> >>         at io.undertow.servlet.handlers.ServletInitialHandler.access$
>> 00
>> >> 0(ServletInitialHandler.java:81)
>> >>         at io.undertow.servlet.handlers.ServletInitialHandler$1.
>> handleR
>> >> equest(ServletInitialHandler.java:174)
>> >>         at io.undertow.server.Connectors.
>> executeRootHandler(Connectors.
>> >> java:202)
>> >>         at io.undertow.server.HttpServerExchange$1.run(
>> HttpServerExchan
>> >> ge.java:793)
>> >>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>> ThreadPool
>> >> Executor.java:1142)
>> >>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
>> ThreadPoo
>> >> lExecutor.java:617)
>> >>         at java.lang.Thread.run(Thread.java:745)
>> >> Caused by: java.lang.NullPointerException
>> >>         at org.keycloak.services.resources.admin.
>> UserFederationProvider
>> >> Resource.validateModel(UserFederationProviderResource.java:450)
>> >>         at org.keycloak.services.resources.admin.
>> UserFederationProvider
>> >> Resource.addMapper(UserFederationProviderResource.java:321)
>> >>         at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown
>> Source)
>> >>         at sun.reflect.DelegatingMethodAccessorImpl.
>> invoke(DelegatingMe
>> >> thodAccessorImpl.java:43)
>> >>         at java.lang.reflect.Method.invoke(Method.java:498)
>> >>         at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
>> MethodInje
>> >> ctorImpl.java:139)
>> >>         at org.jboss.resteasy.core.ResourceMethodInvoker.
>> invokeOnTarget
>> >> (ResourceMethodInvoker.java:295)
>> >>         at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(
>> Resourc
>> >> eMethodInvoker.java:249)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
>> invokeOnTarge
>> >> tObject(ResourceLocatorInvoker.java:138)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
>> Resour
>> >> ceLocatorInvoker.java:107)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
>> invokeOnTarge
>> >> tObject(ResourceLocatorInvoker.java:133)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
>> Resour
>> >> ceLocatorInvoker.java:107)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
>> invokeOnTarge
>> >> tObject(ResourceLocatorInvoker.java:133)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
>> Resour
>> >> ceLocatorInvoker.java:107)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.
>> invokeOnTarge
>> >> tObject(ResourceLocatorInvoker.java:133)
>> >>         at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
>> Resour
>> >> ceLocatorInvoker.java:101)
>> >>         at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
>> Synchro
>> >> nousDispatcher.java:395)
>> >>         ... 37 more
>> >>
>> >>
>> >>
>> >> Regards,
>> >>
>> >> Nabeel Ahmed
>> >> Cell # +92 333 540 5542
>> >>
>> >
>> >
>> _______________________________________________
>> keycloak-user mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

Nabeel Ahmed
Guys,
Any help on it?

Regards,

Nabeel Ahmed
Cell # +92 333 540 5542

On Tue, Apr 18, 2017 at 5:32 PM, Nabeel Ahmed <[hidden email]> wrote:

> Didn't tried 3.x. as we cannot upgrade from 2.4.0.Final for now.
>
>
>
> Regards,
>
> Nabeel Ahmed
> Cell # +92 333 540 5542
>
> On Tue, Apr 18, 2017 at 5:29 PM, Bruno Oliveira <[hidden email]>
> wrote:
>
>> Is the same happening with 3.0.0.Final?
>>
>> On Tue, Apr 18, 2017 at 7:01 AM Nabeel Ahmed <[hidden email]> wrote:
>>
>>> URL: /auth/admin/realms/DecisionSpace_Integration_Server/user-
>>> federation/instances/845968bd-499e-4cd2-ad52-69bbe258c56c/mappers
>>>
>>> POST Request JSON :
>>>
>>> {"name":"email","federationProviderDisplayName":"dsis-ldap",
>>> "federationMapperType":"user-attribute-ldap-mapper","config"
>>> :{"ldap.attribute":"mail","is.mandatory.in.ldap":"false","
>>> read.only":"true","always.read.value.from.ldap":"false",
>>> "user.model.attribute":"email"}}
>>>
>>> Regards,
>>>
>>> Nabeel Ahmed
>>> Cell # +92 333 540 5542
>>>
>>> On Tue, Apr 18, 2017 at 2:55 PM, Nabeel Ahmed <[hidden email]> wrote:
>>>
>>> > + Using REST API
>>> >
>>> > Regards,
>>> >
>>> > Nabeel Ahmed
>>> > Cell # +92 333 540 5542
>>> >
>>> > On Tue, Apr 18, 2017 at 2:53 PM, Nabeel Ahmed <[hidden email]>
>>> wrote:
>>> >
>>> >> Hi Everyone,
>>> >>
>>> >> I am using keycloak 2.4.0.Final and creating ldap user federation
>>> >> provider.
>>> >> Getting the following error when creating UserFederationMappers.
>>> >>
>>> >>
>>> >>
>>> >> 14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
>>> >> Exception handling request to /auth/admin/realms/DecisionSpa
>>> >> ce_Integration_Server/user-federation/instances/79a731e1-
>>> >> 6d8d-499e-a62f-73cb38af72e2/mappers: org.jboss.resteasy.spi.Unhandl
>>> edException:
>>> >> java.lang.NullPointerException
>>> >>         at org.jboss.resteasy.core.Except
>>> ionHandler.handleApplicationEx
>>> >> ception(ExceptionHandler.java:76)
>>> >>         at org.jboss.resteasy.core.Except
>>> ionHandler.handleException(Exc
>>> >> eptionHandler.java:212)
>>> >>         at org.jboss.resteasy.core.Synchr
>>> onousDispatcher.writeException
>>> >> (SynchronousDispatcher.java:168)
>>> >>         at org.jboss.resteasy.core.Synchr
>>> onousDispatcher.invoke(Synchro
>>> >> nousDispatcher.java:411)
>>> >>         at org.jboss.resteasy.core.Synchr
>>> onousDispatcher.invoke(Synchro
>>> >> nousDispatcher.java:202)
>>> >>         at org.jboss.resteasy.plugins.ser
>>> ver.servlet.ServletContainerDi
>>> >> spatcher.service(ServletContainerDispatcher.java:221)
>>> >>         at org.jboss.resteasy.plugins.ser
>>> ver.servlet.HttpServletDispatc
>>> >> her.service(HttpServletDispatcher.java:56)
>>> >>         at org.jboss.resteasy.plugins.ser
>>> ver.servlet.HttpServletDispatc
>>> >> her.service(HttpServletDispatcher.java:51)
>>> >>         at javax.servlet.http.HttpServlet
>>> .service(HttpServlet.java:790)
>>> >>         at io.undertow.servlet.handlers.S
>>> ervletHandler.handleRequest(Se
>>> >> rvletHandler.java:85)
>>> >>         at io.undertow.servlet.handlers.F
>>> ilterHandler$FilterChainImpl.d
>>> >> oFilter(FilterHandler.java:129)
>>> >>         at org.keycloak.services.filters.
>>> KeycloakSessionServletFilter.d
>>> >> oFilter(KeycloakSessionServletFilter.java:90)
>>> >>         at io.undertow.servlet.core.Manag
>>> edFilter.doFilter(ManagedFilte
>>> >> r.java:60)
>>> >>         at io.undertow.servlet.handlers.F
>>> ilterHandler$FilterChainImpl.d
>>> >> oFilter(FilterHandler.java:131)
>>> >>         at io.undertow.servlet.handlers.F
>>> ilterHandler.handleRequest(Fil
>>> >> terHandler.java:84)
>>> >>         at io.undertow.servlet.handlers.s
>>> ecurity.ServletSecurityRoleHan
>>> >> dler.handleRequest(ServletSecurityRoleHandler.java:62)
>>> >>         at io.undertow.servlet.handlers.S
>>> ervletDispatchingHandler.handl
>>> >> eRequest(ServletDispatchingHandler.java:36)
>>> >>         at org.wildfly.extension.undertow
>>> .security.SecurityContextAssoc
>>> >> iationHandler.handleRequest(SecurityContextAssociationHandle
>>> r.java:78)
>>> >>         at io.undertow.server.handlers.Pr
>>> edicateHandler.handleRequest(P
>>> >> redicateHandler.java:43)
>>> >>         at io.undertow.servlet.handlers.s
>>> ecurity.SSLInformationAssociat
>>> >> ionHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>>> >>         at io.undertow.servlet.handlers.s
>>> ecurity.ServletAuthenticationC
>>> >> allHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>>> >>         at io.undertow.server.handlers.Pr
>>> edicateHandler.handleRequest(P
>>> >> redicateHandler.java:43)
>>> >>         at io.undertow.security.handlers.
>>> AbstractConfidentialityHandler
>>> >> .handleRequest(AbstractConfidentialityHandler.java:46)
>>> >>         at io.undertow.servlet.handlers.s
>>> ecurity.ServletConfidentiality
>>> >> ConstraintHandler.handleRequest(ServletConfident
>>> >> ialityConstraintHandler.java:64)
>>> >>         at io.undertow.security.handlers.
>>> AuthenticationMechanismsHandle
>>> >> r.handleRequest(AuthenticationMechanismsHandler.java:60)
>>> >>         at io.undertow.servlet.handlers.s
>>> ecurity.CachedAuthenticatedSes
>>> >> sionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>>> >>         at io.undertow.security.handlers.
>>> NotificationReceiverHandler.ha
>>> >> ndleRequest(NotificationReceiverHandler.java:50)
>>> >>         at io.undertow.security.handlers.
>>> AbstractSecurityContextAssocia
>>> >> tionHandler.handleRequest(AbstractSecurityContextAssociation
>>> >> Handler.java:43)
>>> >>         at io.undertow.server.handlers.Pr
>>> edicateHandler.handleRequest(P
>>> >> redicateHandler.java:43)
>>> >>         at org.wildfly.extension.undertow
>>> .security.jacc.JACCContextIdHa
>>> >> ndler.handleRequest(JACCContextIdHandler.java:61)
>>> >>         at io.undertow.server.handlers.Pr
>>> edicateHandler.handleRequest(P
>>> >> redicateHandler.java:43)
>>> >>         at io.undertow.server.handlers.Pr
>>> edicateHandler.handleRequest(P
>>> >> redicateHandler.java:43)
>>> >>         at io.undertow.servlet.handlers.S
>>> ervletInitialHandler.handleFir
>>> >> stRequest(ServletInitialHandler.java:284)
>>> >>         at io.undertow.servlet.handlers.S
>>> ervletInitialHandler.dispatchR
>>> >> equest(ServletInitialHandler.java:263)
>>> >>         at io.undertow.servlet.handlers.S
>>> ervletInitialHandler.access$00
>>> >> 0(ServletInitialHandler.java:81)
>>> >>         at io.undertow.servlet.handlers.S
>>> ervletInitialHandler$1.handleR
>>> >> equest(ServletInitialHandler.java:174)
>>> >>         at io.undertow.server.Connectors.
>>> executeRootHandler(Connectors.
>>> >> java:202)
>>> >>         at io.undertow.server.HttpServerE
>>> xchange$1.run(HttpServerExchan
>>> >> ge.java:793)
>>> >>         at java.util.concurrent.ThreadPoo
>>> lExecutor.runWorker(ThreadPool
>>> >> Executor.java:1142)
>>> >>         at java.util.concurrent.ThreadPoo
>>> lExecutor$Worker.run(ThreadPoo
>>> >> lExecutor.java:617)
>>> >>         at java.lang.Thread.run(Thread.java:745)
>>> >> Caused by: java.lang.NullPointerException
>>> >>         at org.keycloak.services.resource
>>> s.admin.UserFederationProvider
>>> >> Resource.validateModel(UserFederationProviderResource.java:450)
>>> >>         at org.keycloak.services.resource
>>> s.admin.UserFederationProvider
>>> >> Resource.addMapper(UserFederationProviderResource.java:321)
>>> >>         at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown
>>> Source)
>>> >>         at sun.reflect.DelegatingMethodAc
>>> cessorImpl.invoke(DelegatingMe
>>> >> thodAccessorImpl.java:43)
>>> >>         at java.lang.reflect.Method.invoke(Method.java:498)
>>> >>         at org.jboss.resteasy.core.Method
>>> InjectorImpl.invoke(MethodInje
>>> >> ctorImpl.java:139)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceMethodInvoker.invokeOnTarget
>>> >> (ResourceMethodInvoker.java:295)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceMethodInvoker.invoke(Resourc
>>> >> eMethodInvoker.java:249)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invokeOnTarge
>>> >> tObject(ResourceLocatorInvoker.java:138)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invoke(Resour
>>> >> ceLocatorInvoker.java:107)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invokeOnTarge
>>> >> tObject(ResourceLocatorInvoker.java:133)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invoke(Resour
>>> >> ceLocatorInvoker.java:107)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invokeOnTarge
>>> >> tObject(ResourceLocatorInvoker.java:133)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invoke(Resour
>>> >> ceLocatorInvoker.java:107)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invokeOnTarge
>>> >> tObject(ResourceLocatorInvoker.java:133)
>>> >>         at org.jboss.resteasy.core.Resour
>>> ceLocatorInvoker.invoke(Resour
>>> >> ceLocatorInvoker.java:101)
>>> >>         at org.jboss.resteasy.core.Synchr
>>> onousDispatcher.invoke(Synchro
>>> >> nousDispatcher.java:395)
>>> >>         ... 37 more
>>> >>
>>> >>
>>> >>
>>> >> Regards,
>>> >>
>>> >> Nabeel Ahmed
>>> >> Cell # +92 333 540 5542
>>> >>
>>> >
>>> >
>>> _______________________________________________
>>> keycloak-user mailing list
>>> [hidden email]
>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>
>>
>
_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

Bill Burke
You need to upgrade to the latest 2.5.x  We do not support or provide
patches for 2.4.x


On 4/18/17 10:35 AM, Nabeel Ahmed wrote:

> Guys,
> Any help on it?
>
> Regards,
>
> Nabeel Ahmed
> Cell # +92 333 540 5542
>
> On Tue, Apr 18, 2017 at 5:32 PM, Nabeel Ahmed <[hidden email]> wrote:
>
>> Didn't tried 3.x. as we cannot upgrade from 2.4.0.Final for now.
>>
>>
>>
>> Regards,
>>
>> Nabeel Ahmed
>> Cell # +92 333 540 5542
>>
>> On Tue, Apr 18, 2017 at 5:29 PM, Bruno Oliveira <[hidden email]>
>> wrote:
>>
>>> Is the same happening with 3.0.0.Final?
>>>
>>> On Tue, Apr 18, 2017 at 7:01 AM Nabeel Ahmed <[hidden email]> wrote:
>>>
>>>> URL: /auth/admin/realms/DecisionSpace_Integration_Server/user-
>>>> federation/instances/845968bd-499e-4cd2-ad52-69bbe258c56c/mappers
>>>>
>>>> POST Request JSON :
>>>>
>>>> {"name":"email","federationProviderDisplayName":"dsis-ldap",
>>>> "federationMapperType":"user-attribute-ldap-mapper","config"
>>>> :{"ldap.attribute":"mail","is.mandatory.in.ldap":"false","
>>>> read.only":"true","always.read.value.from.ldap":"false",
>>>> "user.model.attribute":"email"}}
>>>>
>>>> Regards,
>>>>
>>>> Nabeel Ahmed
>>>> Cell # +92 333 540 5542
>>>>
>>>> On Tue, Apr 18, 2017 at 2:55 PM, Nabeel Ahmed <[hidden email]> wrote:
>>>>
>>>>> + Using REST API
>>>>>
>>>>> Regards,
>>>>>
>>>>> Nabeel Ahmed
>>>>> Cell # +92 333 540 5542
>>>>>
>>>>> On Tue, Apr 18, 2017 at 2:53 PM, Nabeel Ahmed <[hidden email]>
>>>> wrote:
>>>>>> Hi Everyone,
>>>>>>
>>>>>> I am using keycloak 2.4.0.Final and creating ldap user federation
>>>>>> provider.
>>>>>> Getting the following error when creating UserFederationMappers.
>>>>>>
>>>>>>
>>>>>>
>>>>>> 14:09:27,255 ERROR [io.undertow.request] (default task-11) UT005023:
>>>>>> Exception handling request to /auth/admin/realms/DecisionSpa
>>>>>> ce_Integration_Server/user-federation/instances/79a731e1-
>>>>>> 6d8d-499e-a62f-73cb38af72e2/mappers: org.jboss.resteasy.spi.Unhandl
>>>> edException:
>>>>>> java.lang.NullPointerException
>>>>>>          at org.jboss.resteasy.core.Except
>>>> ionHandler.handleApplicationEx
>>>>>> ception(ExceptionHandler.java:76)
>>>>>>          at org.jboss.resteasy.core.Except
>>>> ionHandler.handleException(Exc
>>>>>> eptionHandler.java:212)
>>>>>>          at org.jboss.resteasy.core.Synchr
>>>> onousDispatcher.writeException
>>>>>> (SynchronousDispatcher.java:168)
>>>>>>          at org.jboss.resteasy.core.Synchr
>>>> onousDispatcher.invoke(Synchro
>>>>>> nousDispatcher.java:411)
>>>>>>          at org.jboss.resteasy.core.Synchr
>>>> onousDispatcher.invoke(Synchro
>>>>>> nousDispatcher.java:202)
>>>>>>          at org.jboss.resteasy.plugins.ser
>>>> ver.servlet.ServletContainerDi
>>>>>> spatcher.service(ServletContainerDispatcher.java:221)
>>>>>>          at org.jboss.resteasy.plugins.ser
>>>> ver.servlet.HttpServletDispatc
>>>>>> her.service(HttpServletDispatcher.java:56)
>>>>>>          at org.jboss.resteasy.plugins.ser
>>>> ver.servlet.HttpServletDispatc
>>>>>> her.service(HttpServletDispatcher.java:51)
>>>>>>          at javax.servlet.http.HttpServlet
>>>> .service(HttpServlet.java:790)
>>>>>>          at io.undertow.servlet.handlers.S
>>>> ervletHandler.handleRequest(Se
>>>>>> rvletHandler.java:85)
>>>>>>          at io.undertow.servlet.handlers.F
>>>> ilterHandler$FilterChainImpl.d
>>>>>> oFilter(FilterHandler.java:129)
>>>>>>          at org.keycloak.services.filters.
>>>> KeycloakSessionServletFilter.d
>>>>>> oFilter(KeycloakSessionServletFilter.java:90)
>>>>>>          at io.undertow.servlet.core.Manag
>>>> edFilter.doFilter(ManagedFilte
>>>>>> r.java:60)
>>>>>>          at io.undertow.servlet.handlers.F
>>>> ilterHandler$FilterChainImpl.d
>>>>>> oFilter(FilterHandler.java:131)
>>>>>>          at io.undertow.servlet.handlers.F
>>>> ilterHandler.handleRequest(Fil
>>>>>> terHandler.java:84)
>>>>>>          at io.undertow.servlet.handlers.s
>>>> ecurity.ServletSecurityRoleHan
>>>>>> dler.handleRequest(ServletSecurityRoleHandler.java:62)
>>>>>>          at io.undertow.servlet.handlers.S
>>>> ervletDispatchingHandler.handl
>>>>>> eRequest(ServletDispatchingHandler.java:36)
>>>>>>          at org.wildfly.extension.undertow
>>>> .security.SecurityContextAssoc
>>>>>> iationHandler.handleRequest(SecurityContextAssociationHandle
>>>> r.java:78)
>>>>>>          at io.undertow.server.handlers.Pr
>>>> edicateHandler.handleRequest(P
>>>>>> redicateHandler.java:43)
>>>>>>          at io.undertow.servlet.handlers.s
>>>> ecurity.SSLInformationAssociat
>>>>>> ionHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>>>>>>          at io.undertow.servlet.handlers.s
>>>> ecurity.ServletAuthenticationC
>>>>>> allHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>>>>>>          at io.undertow.server.handlers.Pr
>>>> edicateHandler.handleRequest(P
>>>>>> redicateHandler.java:43)
>>>>>>          at io.undertow.security.handlers.
>>>> AbstractConfidentialityHandler
>>>>>> .handleRequest(AbstractConfidentialityHandler.java:46)
>>>>>>          at io.undertow.servlet.handlers.s
>>>> ecurity.ServletConfidentiality
>>>>>> ConstraintHandler.handleRequest(ServletConfident
>>>>>> ialityConstraintHandler.java:64)
>>>>>>          at io.undertow.security.handlers.
>>>> AuthenticationMechanismsHandle
>>>>>> r.handleRequest(AuthenticationMechanismsHandler.java:60)
>>>>>>          at io.undertow.servlet.handlers.s
>>>> ecurity.CachedAuthenticatedSes
>>>>>> sionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>>>>>>          at io.undertow.security.handlers.
>>>> NotificationReceiverHandler.ha
>>>>>> ndleRequest(NotificationReceiverHandler.java:50)
>>>>>>          at io.undertow.security.handlers.
>>>> AbstractSecurityContextAssocia
>>>>>> tionHandler.handleRequest(AbstractSecurityContextAssociation
>>>>>> Handler.java:43)
>>>>>>          at io.undertow.server.handlers.Pr
>>>> edicateHandler.handleRequest(P
>>>>>> redicateHandler.java:43)
>>>>>>          at org.wildfly.extension.undertow
>>>> .security.jacc.JACCContextIdHa
>>>>>> ndler.handleRequest(JACCContextIdHandler.java:61)
>>>>>>          at io.undertow.server.handlers.Pr
>>>> edicateHandler.handleRequest(P
>>>>>> redicateHandler.java:43)
>>>>>>          at io.undertow.server.handlers.Pr
>>>> edicateHandler.handleRequest(P
>>>>>> redicateHandler.java:43)
>>>>>>          at io.undertow.servlet.handlers.S
>>>> ervletInitialHandler.handleFir
>>>>>> stRequest(ServletInitialHandler.java:284)
>>>>>>          at io.undertow.servlet.handlers.S
>>>> ervletInitialHandler.dispatchR
>>>>>> equest(ServletInitialHandler.java:263)
>>>>>>          at io.undertow.servlet.handlers.S
>>>> ervletInitialHandler.access$00
>>>>>> 0(ServletInitialHandler.java:81)
>>>>>>          at io.undertow.servlet.handlers.S
>>>> ervletInitialHandler$1.handleR
>>>>>> equest(ServletInitialHandler.java:174)
>>>>>>          at io.undertow.server.Connectors.
>>>> executeRootHandler(Connectors.
>>>>>> java:202)
>>>>>>          at io.undertow.server.HttpServerE
>>>> xchange$1.run(HttpServerExchan
>>>>>> ge.java:793)
>>>>>>          at java.util.concurrent.ThreadPoo
>>>> lExecutor.runWorker(ThreadPool
>>>>>> Executor.java:1142)
>>>>>>          at java.util.concurrent.ThreadPoo
>>>> lExecutor$Worker.run(ThreadPoo
>>>>>> lExecutor.java:617)
>>>>>>          at java.lang.Thread.run(Thread.java:745)
>>>>>> Caused by: java.lang.NullPointerException
>>>>>>          at org.keycloak.services.resource
>>>> s.admin.UserFederationProvider
>>>>>> Resource.validateModel(UserFederationProviderResource.java:450)
>>>>>>          at org.keycloak.services.resource
>>>> s.admin.UserFederationProvider
>>>>>> Resource.addMapper(UserFederationProviderResource.java:321)
>>>>>>          at sun.reflect.GeneratedMethodAccessor789.invoke(Unknown
>>>> Source)
>>>>>>          at sun.reflect.DelegatingMethodAc
>>>> cessorImpl.invoke(DelegatingMe
>>>>>> thodAccessorImpl.java:43)
>>>>>>          at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>          at org.jboss.resteasy.core.Method
>>>> InjectorImpl.invoke(MethodInje
>>>>>> ctorImpl.java:139)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceMethodInvoker.invokeOnTarget
>>>>>> (ResourceMethodInvoker.java:295)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceMethodInvoker.invoke(Resourc
>>>>>> eMethodInvoker.java:249)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invokeOnTarge
>>>>>> tObject(ResourceLocatorInvoker.java:138)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invoke(Resour
>>>>>> ceLocatorInvoker.java:107)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invokeOnTarge
>>>>>> tObject(ResourceLocatorInvoker.java:133)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invoke(Resour
>>>>>> ceLocatorInvoker.java:107)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invokeOnTarge
>>>>>> tObject(ResourceLocatorInvoker.java:133)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invoke(Resour
>>>>>> ceLocatorInvoker.java:107)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invokeOnTarge
>>>>>> tObject(ResourceLocatorInvoker.java:133)
>>>>>>          at org.jboss.resteasy.core.Resour
>>>> ceLocatorInvoker.invoke(Resour
>>>>>> ceLocatorInvoker.java:101)
>>>>>>          at org.jboss.resteasy.core.Synchr
>>>> onousDispatcher.invoke(Synchro
>>>>>> nousDispatcher.java:395)
>>>>>>          ... 37 more
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Nabeel Ahmed
>>>>>> Cell # +92 333 540 5542
>>>>>>
>>>>>
>>>> _______________________________________________
>>>> keycloak-user mailing list
>>>> [hidden email]
>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>
> _______________________________________________
> keycloak-user mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/keycloak-user

_______________________________________________
keycloak-user mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/keycloak-user
Reply | Threaded
Open this post in threaded view
|

Re: [keycloak-user] NullPointerException while adding userFederationMappers

ansarihaseb
This post has NOT been accepted by the mailing list yet.
I am trying with Keycloak 3.0.0......still not working. Also in documentation of Keycloak the REST API for creating user federation is missing. Can you have an update on that ?