Symantec Access Management

 View Only

Tech Tip : CA Single Sign-On : java.lang.NullPointerException while enabling Authentication Webservices

  • 1.  Tech Tip : CA Single Sign-On : java.lang.NullPointerException while enabling Authentication Webservices

    Broadcom Employee
    Posted Aug 29, 2018 10:44 AM

    Issue:

     

    We're unning SPS, this one returns java.lang.NullPointerException while enabling Authentication Webservices.

    proxyui.log

     

    1. 2018-Aug-08 16:19:47,283 - ERROR -
    com.ca.sps.adminui.managedbean.AuthenticationAndAZSettingsManagedBean -
    Save Authentication/Authorization Details
    status...updateServerConfigFile: Server conf file is unwriteable:
    /opt/CA/secure-proxy/proxy-engine/conf/webservicesagent/WebAgent.conf

     

    2. 2018-Aug-08 16:19:47,283 - ERROR -
    com.ca.sps.adminui.dao.serverconfiguration.ServerConfigurationDAO -
    ServerConfigurationDAO: ProxyException occured: exception message:
    updateServerConfigFile: Server conf file is unwriteable:
    /opt/CA/secure-proxy/proxy-engine/conf/webservicesagent/WebAgent.conf

     

    3. 2018-Aug-08 16:21:47,934 - ERROR -
    com.ca.sps.adminui.managedbean.AuthenticationAndAZSettingsManagedBean -
    null
    java.lang.NullPointerException: null
    at com.ca.sps.adminui.dto.WebAgentConfigDTO.getString(Unknown Source) ~[classes/:?]
    at com.ca.sps.adminui.handler.DataHandlerHelper.saveWebAgentConfigData(Unknown Source) ~[classes/:?]
    at com.ca.sps.adminui.dao.serverconfiguration.ServerConfigurationDAO.saveServerConfiguration(Unknown Source) ~[classes/:?]
    at com.ca.sps.adminui.dao.serverconfiguration.ServerConfigurationDAO.saveServerConfiguration(Unknown Source) ~[classes/:?]
    at com.ca.sps.adminui.managedbean.AuthenticationAndAZSettingsManagedBean.saveAuthAndAZServiceSettings(Unknown Source) [classes/:?]

     

    How can we fix that ?

     

    Environment:

     

    Policy Server 12.8;
    CA Access Gateway (SPS) 12.8SP0CR00 on RedHat 7

     

    Cause:

     

    The file

    "/opt/CA/secure-proxy/proxy-engine/conf/webservicesagent/WebAgent.conf"

    was "-rwxrwxrwx" (which looks fine) but it was owned by

    "root:root".


    Resolution:

     

    Changing the ownership to "nobody:root" to the file

    "/opt/CA/secure-proxy/proxy-engine/conf/webservicesagent/WebAgent.conf"

    solved the problem

     

    KB : KB000112424