Received error while adding Symantec Protection Engine (SPE) server to the SPE Console
2024-05-16 00:06:10,489 [Main UI Thread] WARN Symantec.Cmaf.UI.CustomControls.AddServerPane - Unable to resolve the specified server name or IP.
Please verify that the specified server name or IP is valid.
Internal Error : {0}
Time : Thursday, May 16, 2024 12:06:10 AM
Outer Exception Type: System.Net.Sockets.SocketException
Outer Exception Message: No such host is known
Outer Exception Source: System
---Outer Exception Stack Trace---
at System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at Symantec.Cmaf.UI.CustomControls.AddServerPane.GetResolvedName(String originalAssetName, List`1 aliases)
2024-05-16 00:06:10,489 [Main UI Thread] WARN Symantec.Cmaf.UI.CustomControls.AddServerPane - Unable to resolve the specified server name or IP. Proceeding with IP address: <SPEServerIP>
2024-05-16 00:06:10,489 [Main UI Thread] INFO Symantec.Cmaf.UI.CustomControls.AddServerPane - Authenticating scanner. Scanner Name: <SPEServerIP>
2024-05-16 00:06:10,489 [Main UI Thread] INFO Symantec.Cmaf.Security.AuthManagerHelper - Authenticate payload successfully created
2024-05-16 00:06:10,489 [Main UI Thread] INFO Symantec.Cmaf.RestClient.RestApiClient - PostRequestAsync. API: authentication
2024-05-16 00:06:10,505 [Main UI Thread] INFO Symantec.Cmaf.Security.AuthManagerHelper - Response status code: InternalServerError
2024-05-16 00:06:10,505 [Main UI Thread] INFO Symantec.Cmaf.Security.RestResponseErrorHelper - Parsing the error Response string:<Map><timestamp>2024-05-16T07:06:10.497+00:00</timestamp><status>500</status><error>Internal Server Error</error><message>Could not initialize class javax.crypto.JceSecurity</message><path>/v1/authentication</path></Map>
2024-05-16 00:06:10,505 [Main UI Thread] INFO Symantec.Cmaf.Security.RestResponseErrorHelper - Successfully parsed the error response
2024-05-16 00:06:10,505 [Main UI Thread] ERROR Symantec.Cmaf.Security.AuthManagerHelper - Could not initialize class javax.crypto.JceSecurity
2024-05-16 00:06:10,505 [Main UI Thread] ERROR Symantec.Cmaf.Security.AuthManagerHelper -
Time : Thursday, May 16, 2024 12:06:10 AM
Outer Exception Type: Symantec.Cmaf.Common.Exceptions.SMSException
Outer Exception Message: Could not initialize class javax.crypto.JceSecurity
Outer Exception Source: Symantec.Cmaf.Security
---Outer Exception Stack Trace---
at Symantec.Cmaf.Security.AuthManagerHelper.ExecuteAuthenticateRestApi(RestApiClient autheticationClient, UserInfo user)
2024-05-16 00:06:10,505 [Main UI Thread] ERROR Symantec.Cmaf.Security.AuthManagerHelper - Exception is caught while executing ExecuteAuthenticateRestApi. Reason: Unable to execute authentication rest api.. Reason: Could not initialize class javax.crypto.JceSecurity
2024-05-16 00:06:10,505 [Main UI Thread] ERROR Symantec.Cmaf.Security.AuthManager -
Time : Thursday, May 16, 2024 12:06:10 AM
Outer Exception Type: Symantec.Cmaf.Common.Exceptions.SMSException
Outer Exception Message: Could not initialize class javax.crypto.JceSecurity
Outer Exception Source: Symantec.Cmaf.Security
---Outer Exception Stack Trace---
at Symantec.Cmaf.Security.AuthManagerHelper.ExecuteAuthenticateRestApi(RestApiClient autheticationClient, UserInfo user)
at Symantec.Cmaf.Security.BasicAuthManager.ExecuteAuthenticationRestAPIWithUser(RestApiClient AutheticationClient, UserInfo userInfoAdmin)
at Symantec.Cmaf.Security.BasicAuthManager.GenerateToken(ServerInfo serverInfo, UserInfo userInfoAdmin)
at Symantec.Cmaf.Security.AuthManager.AddServer(ServerInfo serverInfo, UserInfo userInfo)
2024-05-16 00:06:10,497 [http-nio-8008-exec-1] INFO spe.authentication.model.BasicAuthenticationUserDetails:80 - BasicAuthenticationUserDetails::fetching password of username: Administrator ldap enabled: false
2024-05-16 00:06:10,497 [http-nio-8008-exec-1] INFO spe.authentication.repo.FetchUserInformationFromConfigurationFile:79 - speInstallPath for configuration: C:\Program Files\Symantec\Scan Engine\configuration.xml
2024-05-16 00:06:10,497 [http-nio-8008-exec-1] INFO spe.authentication.util.CustomPasswordEncoderForBasicAuthentication:50 - Password matches: true
2024-05-16 00:06:10,497 [http-nio-8008-exec-1] ERROR spe.authentication.filters.JwtRequestFilter:100 - Exception occurred: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity
2024-05-16 00:06:10,497 [http-nio-8008-exec-1] ERROR [Tomcat].[localhost].[/].[dispatcherServlet]:175 - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity] with root cause
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity
at javax.crypto.Mac.getInstance(Mac.java:176) ~[?:1.8.0_351]
at io.jsonwebtoken.impl.crypto.MacSigner.doGetMacInstance(MacSigner.java:64) ~[jjwt-impl-0.11.5.jar!/:0.11.5]
at io.jsonwebtoken.impl.crypto.MacSigner.getMacInstance(MacSigner.java:53) ~[jjwt-impl-0.11.5.jar!/:0.11.5]
at io.jsonwebtoken.impl.crypto.MacSigner.sign(MacSigner.java:47) ~[jjwt-impl-0.11.5.jar!/:0.11.5]
at io.jsonwebtoken.impl.crypto.DefaultJwtSigner.sign(DefaultJwtSigner.java:59) ~[jjwt-impl-0.11.5.jar!/:0.11.5]
at io.jsonwebtoken.impl.DefaultJwtBuilder.compact(DefaultJwtBuilder.java:344) ~[jjwt-impl-0.11.5.jar!/:0.11.5]
at spe.authentication.util.JwtUtil.createToken(JwtUtil.java:167) ~[spe-authentication-module-9.0.0.51.jar!/:9.0.0.51]
at spe.authentication.util.JwtUtil.generateAccessToken(JwtUtil.java:119) ~[spe-authentication-module-9.0.0.51.jar!/:9.0.0.51]
at spe.authentication.controller.SPEAuthenticationController.createAuthenticationToken(SPEAuthenticationController.java:106) ~[spe-authentication-module-9.0.0.51.jar!/:9.0.0.51]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_361]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_361]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_361]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_361]
SPE 9.x
Restart the Symantec Protection Engine REST API service on the SPE server and attempt to add the server again in SPE console.