Jump to content
We've recently updated our Privacy Statement, available here ×
  • LDAP external authentication failing with NullPointerException during user login


    vchiem
    • Features: JasperReports Server Version: v7.9 Product: JasperReports® Server

    Issue:

    After configuring LDAP authentication and restarting the TIBCO JasperReports® Server, the external user failed to login with a NullPointerException error displayed on the browser page.

     

    The WEB-INF/logs/jasperserver.log file captured the following stack trace :

     

     

    2021-11-17T13:51:14,865 DEBUG LdapUserDetailsMapper,http-nio-8080-exec-5:58 - Mapping user details from context with DN: cn=Peter Parker,ou=people,dc=maxcrc,dc=com
    2021-11-17T13:51:14,868 ERROR ExternalDataSynchronizerImpl,http-nio-8080-exec-5:145 - Error during synchronization java.lang.NullPointerException
        at com.jaspersoft.jasperserver.api.security.externalAuth.ExternalDataSynchronizerImpl.synchronize(ExternalDataSynchronizerImpl.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy188.synchronize(Unknown Source)
        at com.jaspersoft.jasperserver.war.util.ExternalRequestParameterAuthenticationFilter.onSuccessfulAuthentication(ExternalRequestParameterAuthenticationFilter.java:44)
        at com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:109)
    

     

     


     

     

    Solution:

    This issue can be resolved after applying the latest TIBCO JasperReports® Server 7.9 cumulative hotfix.

    The specific defect is addressed in hotfix build 20210909_1344 (hotfix_JRSPro7.9.0_cumulative_20210909_1344.zip)

    To obtain this hotfix, log into https://support.tibco.com/s/hotfixes  and locate the cumulative hotfix build 20210909_1344 (hotfix_JRSPro7.9.0_cumulative_20210909_1344.zip) or later.

    Follow the instructions to apply the hotfix. 

    Note: According to the defect this issue affects Token-based and CAS external authentication methods as well. 

     


     

     

    Related Articles:

    JS-63380 NullPointerException issue for external authentications (Except externalAuth-db and externalAuth-SSO)


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...