ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

UIMAPI calls to 'groups' are returning HTTP Status 500

book

Article ID: 187309

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

In using the API, the 'groups' call is returning HTTP Status 500.  Any change to parameters do no change behavior.  All other calls appear to work without issue.

Example of a call:
http://<PrimaryHUB>/uimapi/groups?groupid=all&sort=by_id&showelements=true

Results:
<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com&#47;ca&#47;grouping&#47;service&#47;LocalGroupService</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b></p><pre>javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com&#47;ca&#47;grouping&#47;service&#47;LocalGroupService org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:485) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221) com.ca.uimapi.config.FrontDoorFilter.doFilter(FrontDoorFilter.java:45) </pre><p><b>Root Cause</b></p><pre>org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com&#47;ca&#47;grouping&#47;service&#47;LocalGroupService org.glassfish.jersey.servlet.internal.ResponseWriter.rethrow(ResponseWriter.java:256) org.glassfish.jersey.servlet.internal.ResponseWriter.failure(ResponseWriter.java:238) org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:486) org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:317) org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) org.glassfish.jersey.internal.Errors.process(Errors.java:315) org.glassfish.jersey.internal.Errors.process(Errors.java:297) org.glassfish.jersey.internal.Errors.process(Errors.java:267) org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292) org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221) com.ca.uimapi.config.FrontDoorFilter.doFilter(FrontDoorFilter.java:45) </pre><p><b>Root Cause</b></p><pre>java.lang.NoClassDefFoundError: com&#47;ca&#47;grouping&#47;service&#47;LocalGroupService com.nimsoft.nisapi.core.grouping.UGS.&lt;init&gt;(UGS.java:44) com.nimsoft.nisapi.core.grouping.UGS.instance(UGS.java:33) com.nimsoft.nisapi.core.services.group.GroupServiceImpl.getGroupsImpl(GroupServiceImpl.java:85) com.ca.uimapi.services.GroupResource.getGroupsImpl(GroupResource.java:182) com.ca.uimapi.services.GroupResource.getGroups(GroupResource.java:118) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309) org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) org.glassfish.jersey.internal.Errors.process(Errors.java:315) org.glassfish.jersey.internal.Errors.process(Errors.java:297) org.glassfish.jersey.internal.Errors.process(Errors.java:267) org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292) org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139) org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334) org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221) com.ca.uimapi.config.FrontDoorFilter.doFilter(FrontDoorFilter.java:45) </pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /></body></html>

 
Response code 500

Cause

Defect found in UIMAPI 9.10

Environment

Release : 9.2.0

Component : UIM - API

Resolution

Download from the hotfix index: uimapi_910_HF2.zip

1. Deactivate the WASP Probe on Primary Server 
2. In the Primary HUB Robot, move <UIM>/probes/service/wasp/webapps/uimapi folder to any other folder for backup.
3. In the Primary HUB Robot, backup <UIM>/archive/uimapi.zip
4. Drag and Drop the uimapi_910_HF2.zip file into the archive using IM/Adminconsole.
5. Deploy the patch on primary hub robot.
6. Activate the wasp probe 
7. Clear Browser Cache
8. Test the patch.