search cancel

Creating a restmon profile errors with An unknown error has occurred. Check the log for more information.

book

Article ID: 215157

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Looking at the C:\Program Files (x86)\Nimsoft\probes\service\wasp\mcs-ui-app.log we see the following error:

2021-05-14 09:30:49,013 ERROR com.ca.uim.mcs.logging.SimpleLogFactory$DefaultLogger:log:49 [http-nio-80-exec-13]   - ProfileController.rollbackSave:2686: Encountered error: [MCS-143] Profile name: 'TELE' does not match the profile variable field: 'profilename' value: 'TELE', Profile name: '{0}' does not match the profile variable field: '{1}' value: '{0}' [MCS-143], MCS-143 while saving profile name: 'TELE' with profile id: 'null' for cs_id: 2543.
com.nimsoft.selfservice.exceptions.InvalidProfileException: [MCS-143] Profile name: 'TELE' does not match the profile variable field: 'profilename' value: 'TELE', Profile name: '{0}' does not match the profile variable field: '{1}' value: '{0}' [MCS-143], MCS-143
 at com.nimsoft.selfservice.v2.model.Profile.throwInvalidProfileException(Profile.java:638)
 at com.nimsoft.selfservice.v2.model.Profile.validateFieldValue(Profile.java:571)
 at com.nimsoft.selfservice.v2.model.Profile.validateNewOrUpdatedProfile(Profile.java:553)
 at com.nimsoft.selfservice.v2.model.Profile.validateProfileName(Profile.java:541)
 at com.nimsoft.selfservice.v2.model.Profile.validateProfile(Profile.java:509)
 at com.nimsoft.selfservice.v2.controller.ProfileController.validateProfile(ProfileController.java:2641)
 at com.nimsoft.selfservice.v2.controller.ProfileController.saveOrUpdateProfile(ProfileController.java:2463)
 at com.nimsoft.selfservice.v2.controller.ProfileController.saveProfile(ProfileController.java:2398)
 at com.nimsoft.selfservice.v2.controller.ProfileController.saveAtomic(ProfileController.java:2269)
 at com.nimsoft.selfservice.v2.controller.RawProfileController.createRawDeviceProfile(RawProfileController.java:139)
 at com.ca.uim.mcs.api.facade.ProfileFacade.createRawDeviceProfile(ProfileFacade.java:98)
 at com.ca.uim.mcs.api.service.ProfileService.createOrUpdateDeviceOrGroupProfile(ProfileService.java:450)
 at com.ca.uim.mcs.api.service.ProfileService.createProfile(ProfileService.java:400)
 at com.ca.uim.mcs.api.service.ProfileService$$FastClassBySpringCGLIB$$f5e9aba2.invoke(<generated>)
 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:668)
 at com.ca.uim.mcs.api.service.ProfileService$$EnhancerBySpringCGLIB$$40c8ffe1.createProfile(<generated>)
 at com.ca.uim.mcs.api.controller.ProfileController.createProfile(ProfileController.java:199)
 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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
 at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
 at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
 at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:854)
 at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:765)
 at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
 at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:710)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
 at com.ca.uim.mcs.api.filter.SwaggerUIRedirectFilter.doFilter(SwaggerUIRedirectFilter.java:52)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at com.firehunter.ump.auth.JWTVerificationFilter.doFilter(JWTVerificationFilter.java:164)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:667)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707)
 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:748)

 

Environment

Release : 20.3

Component : UIM - MON_CONFIG_SERVICE

Resolution

When adding a JSON file via the RESTmon wizard in Operator Console you are asked for a Friendly Name. The expectation when you configure the profile is that the profile name will be the same as the Friendly Name given when uploading the JSON. In the error above, TELE was the Friendly Name used for the JSON file, but when deploying the Setup TELE package I chose to change the defaulted profile name which is not permitted and resulted in the above error.