Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-247

APPC receiving the trustAnchors parameter must be non-empty error in aai client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Beijing Release
    • Beijing Release
    • sli/adaptors
    • APPC WindRiver Lab

      Description: 

      During an LCM Restart VNF test the below and attached errors were encountered within the aai-client. 

       

      Notes:

      • SDNC_CONFIG_DIR=/opt/onap/appc/data/properties
        • The aaiclient.properties file is located in this directory (File attached).
      • The trustore files tried by APPC are also attached.
      • The team also tried adding the /opt/bvc/tls-client/truststore.client.jks file in case CCSDK A&AI Client was picking up the directory listed in the aaiclient code.  However, we received the same error.

      Error:

      2018-04-19 01:47:21,179 | WARN  | ider-lcm:restart | AAIService                       | 340 - org.onap.ccsdk.sli.adaptors.aai-service-provider - 0.2.1.SNAPSHOT -  -  |
      javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
              at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)[:1.8.0_162]
              at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)[:1.8.0_162]
              at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1921)[:1.8.0_162]
              at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1904)[:1.8.0_162]
              at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1420)[:1.8.0_162]
              at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)[:1.8.0_162]
              at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)[:1.8.0_162]
              at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)[:1.8.0_162]
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)[:1.8.0_162]
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)[:1.8.0_162]
              at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)[:1.8.0_162]
              at java.net.HttpURLConnection.getResponseMessage(HttpURLConnection.java:546)[:1.8.0_162]
              at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseMessage(HttpsURLConnectionImpl.java:391)[:1.8.0_162]
              at org.onap.ccsdk.sli.adaptors.aai.AAIClientRESTExecutor.get(AAIClientRESTExecutor.java:252)
              at org.onap.ccsdk.sli.adaptors.aai.AAIDeclarations.newModelQuery(AAIDeclarations.java:785)
              at org.onap.ccsdk.sli.adaptors.aai.AAIDeclarations.query(AAIDeclarations.java:182)
              at org.onap.ccsdk.sli.adaptors.aai.AAIService.query(AAIService.java:1399)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_162]

      Full stack trace attached.

            richtabedzki richtabedzki
            sseabolt sseabolt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: