Hi @sukreet @mdubey @angshuonline ,
We are getting error while calling Subscription API -:
https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/cm/init
Hi @sukreet @mdubey @angshuonline ,
We are getting error while calling Subscription API -:
https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/cm/init
Hi @mdubey,
requestId -: c81f532a-637c-49c9-89d9-084901142d56
We are successfully call the init API -:
https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/cm/init
But we are getting error response on call back API from gateway -:
/v0.5/subscription-requests/hiu/on-init
/v0.5/subscription-requests/hiu/on-init API Response from Gateway -:
{
"requestId":"9357cbbf-e48d-4c61-848c-c9fd19acbbc6",
"timestamp":null,
"subscriptionRequest":null,
"error":{
"cause":null,
"stackTrace":[
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"newInstance0",
"fileName":"NativeConstructorAccessorImpl.java",
"lineNumber":-2,
"className":"jdk.internal.reflect.NativeConstructorAccessorImpl",
"nativeMethod":true
},
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"newInstance",
"fileName":"NativeConstructorAccessorImpl.java",
"lineNumber":62,
"className":"jdk.internal.reflect.NativeConstructorAccessorImpl",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"newInstance",
"fileName":"DelegatingConstructorAccessorImpl.java",
"lineNumber":45,
"className":"jdk.internal.reflect.DelegatingConstructorAccessorImpl",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"newInstance",
"fileName":"Constructor.java",
"lineNumber":490,
"className":"java.lang.reflect.Constructor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"call1",
"fileName":"AnnotatedConstructor.java",
"lineNumber":129,
"className":"com.fasterxml.jackson.databind.introspect.AnnotatedConstructor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"createFromString",
"fileName":"StdValueInstantiator.java",
"lineNumber":326,
"className":"com.fasterxml.jackson.databind.deser.std.StdValueInstantiator",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"deserializeFromObject",
"fileName":"ThrowableDeserializer.java",
"lineNumber":111,
"className":"com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"deserialize",
"fileName":"BeanDeserializer.java",
"lineNumber":164,
"className":"com.fasterxml.jackson.databind.deser.BeanDeserializer",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"deserializeAndSet",
"fileName":"MethodProperty.java",
"lineNumber":129,
"className":"com.fasterxml.jackson.databind.deser.impl.MethodProperty",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"deserializeFromObject",
"fileName":"BeanDeserializer.java",
"lineNumber":371,
"className":"com.fasterxml.jackson.databind.deser.BeanDeserializer",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"deserialize",
"fileName":"BeanDeserializer.java",
"lineNumber":164,
"className":"com.fasterxml.jackson.databind.deser.BeanDeserializer",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"_readMapAndClose",
"fileName":"ObjectMapper.java",
"lineNumber":4524,
"className":"com.fasterxml.jackson.databind.ObjectMapper",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"readValue",
"fileName":"ObjectMapper.java",
"lineNumber":3519,
"className":"com.fasterxml.jackson.databind.ObjectMapper",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"readJavaType",
"fileName":"AbstractJackson2HttpMessageConverter.java",
"lineNumber":273,
"className":"org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"read",
"fileName":"AbstractJackson2HttpMessageConverter.java",
"lineNumber":250,
"className":"org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"readWithMessageConverters",
"fileName":"AbstractMessageConverterMethodArgumentResolver.java",
"lineNumber":205,
"className":"org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"readWithMessageConverters",
"fileName":"RequestResponseBodyMethodProcessor.java",
"lineNumber":158,
"className":"org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"resolveArgument",
"fileName":"RequestResponseBodyMethodProcessor.java",
"lineNumber":131,
"className":"org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"resolveArgument",
"fileName":"HandlerMethodArgumentResolverComposite.java",
"lineNumber":121,
"className":"org.springframework.web.method.support.HandlerMethodArgumentResolverComposite",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"getMethodArgumentValues",
"fileName":"InvocableHandlerMethod.java",
"lineNumber":167,
"className":"org.springframework.web.method.support.InvocableHandlerMethod",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invokeForRequest",
"fileName":"InvocableHandlerMethod.java",
"lineNumber":134,
"className":"org.springframework.web.method.support.InvocableHandlerMethod",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invokeAndHandle",
"fileName":"ServletInvocableHandlerMethod.java",
"lineNumber":105,
"className":"org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invokeHandlerMethod",
"fileName":"RequestMappingHandlerAdapter.java",
"lineNumber":878,
"className":"org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"handleInternal",
"fileName":"RequestMappingHandlerAdapter.java",
"lineNumber":792,
"className":"org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"handle",
"fileName":"AbstractHandlerMethodAdapter.java",
"lineNumber":87,
"className":"org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doDispatch",
"fileName":"DispatcherServlet.java",
"lineNumber":1040,
"className":"org.springframework.web.servlet.DispatcherServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doService",
"fileName":"DispatcherServlet.java",
"lineNumber":943,
"className":"org.springframework.web.servlet.DispatcherServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"processRequest",
"fileName":"FrameworkServlet.java",
"lineNumber":1006,
"className":"org.springframework.web.servlet.FrameworkServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doPost",
"fileName":"FrameworkServlet.java",
"lineNumber":909,
"className":"org.springframework.web.servlet.FrameworkServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"service",
"fileName":"HttpServlet.java",
"lineNumber":660,
"className":"javax.servlet.http.HttpServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"service",
"fileName":"FrameworkServlet.java",
"lineNumber":883,
"className":"org.springframework.web.servlet.FrameworkServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"service",
"fileName":"HttpServlet.java",
"lineNumber":741,
"className":"javax.servlet.http.HttpServlet",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"internalDoFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":231,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":166,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"WsFilter.java",
"lineNumber":53,
"className":"org.apache.tomcat.websocket.server.WsFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"internalDoFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":193,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":166,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ErrorPageFilter.java",
"lineNumber":128,
"className":"org.springframework.boot.web.servlet.support.ErrorPageFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"access$000",
"fileName":"ErrorPageFilter.java",
"lineNumber":66,
"className":"org.springframework.boot.web.servlet.support.ErrorPageFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilterInternal",
"fileName":"ErrorPageFilter.java",
"lineNumber":103,
"className":"org.springframework.boot.web.servlet.support.ErrorPageFilter$1",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"OncePerRequestFilter.java",
"lineNumber":119,
"className":"org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ErrorPageFilter.java",
"lineNumber":121,
"className":"org.springframework.boot.web.servlet.support.ErrorPageFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"internalDoFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":193,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":166,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilterInternal",
"fileName":"RequestContextFilter.java",
"lineNumber":100,
"className":"org.springframework.web.filter.RequestContextFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"OncePerRequestFilter.java",
"lineNumber":119,
"className":"org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"internalDoFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":193,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":166,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilterInternal",
"fileName":"FormContentFilter.java",
"lineNumber":93,
"className":"org.springframework.web.filter.FormContentFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"OncePerRequestFilter.java",
"lineNumber":119,
"className":"org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"internalDoFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":193,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":166,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilterInternal",
"fileName":"CharacterEncodingFilter.java",
"lineNumber":201,
"className":"org.springframework.web.filter.CharacterEncodingFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"OncePerRequestFilter.java",
"lineNumber":119,
"className":"org.springframework.web.filter.OncePerRequestFilter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"internalDoFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":193,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doFilter",
"fileName":"ApplicationFilterChain.java",
"lineNumber":166,
"className":"org.apache.catalina.core.ApplicationFilterChain",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"StandardWrapperValve.java",
"lineNumber":199,
"className":"org.apache.catalina.core.StandardWrapperValve",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"StandardContextValve.java",
"lineNumber":96,
"className":"org.apache.catalina.core.StandardContextValve",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"AuthenticatorBase.java",
"lineNumber":475,
"className":"org.apache.catalina.authenticator.AuthenticatorBase",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"StandardHostValve.java",
"lineNumber":140,
"className":"org.apache.catalina.core.StandardHostValve",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"ErrorReportValve.java",
"lineNumber":81,
"className":"org.apache.catalina.valves.ErrorReportValve",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"AbstractAccessLogValve.java",
"lineNumber":651,
"className":"org.apache.catalina.valves.AbstractAccessLogValve",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"invoke",
"fileName":"StandardEngineValve.java",
"lineNumber":87,
"className":"org.apache.catalina.core.StandardEngineValve",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"service",
"fileName":"CoyoteAdapter.java",
"lineNumber":342,
"className":"org.apache.catalina.connector.CoyoteAdapter",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"service",
"fileName":"Http11Processor.java",
"lineNumber":500,
"className":"org.apache.coyote.http11.Http11Processor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"process",
"fileName":"AbstractProcessorLight.java",
"lineNumber":66,
"className":"org.apache.coyote.AbstractProcessorLight",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"process",
"fileName":"AbstractProtocol.java",
"lineNumber":754,
"className":"org.apache.coyote.AbstractProtocol$ConnectionHandler",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"doRun",
"fileName":"NioEndpoint.java",
"lineNumber":1376,
"className":"org.apache.tomcat.util.net.NioEndpoint$SocketProcessor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"run",
"fileName":"SocketProcessorBase.java",
"lineNumber":49,
"className":"org.apache.tomcat.util.net.SocketProcessorBase",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"runWorker",
"fileName":"ThreadPoolExecutor.java",
"lineNumber":1128,
"className":"java.util.concurrent.ThreadPoolExecutor",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"run",
"fileName":"ThreadPoolExecutor.java",
"lineNumber":628,
"className":"java.util.concurrent.ThreadPoolExecutor$Worker",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":null,
"moduleVersion":null,
"methodName":"run",
"fileName":"TaskThread.java",
"lineNumber":61,
"className":"org.apache.tomcat.util.threads.TaskThread$WrappingRunnable",
"nativeMethod":false
},
{
"classLoaderName":null,
"moduleName":"java.base",
"moduleVersion":"11.0.9",
"methodName":"run",
"fileName":"Thread.java",
"lineNumber":834,
"className":"java.lang.Thread",
"nativeMethod":false
}
],
"message":"Cannot process the request at the moment,please try later.",
"suppressed":[
],
"localizedMessage":"Cannot process the request at the moment,please try later."
},
"resp":{
"requestId":"c81f532a-637c-49c9-89d9-084901142d56"
}
}
Hi,
Are you getting this error consistently? Also can you please pass the request data which you have passed?
Thank you
Hi, @mdubey @chitendra Iām facing the same issue for last two days. Can you tell me, how you have resolved the issue.
{
"requestId": "803c8f1c-2282-467c-93cd-512928426130",
"error": {
"code": 2500,
"message": "Cannot process the request at the moment,please try later."
},
"resp": {
"requestId": "3354c477-e26b-4bf2-9b22-e4bec7f9b789"
}
}
Hi @DileepMokana,
This is happening because you registered this service as HEALTH_LOCKER only. The healthlockers also needs to be registered as HIP and HIU as well.
Please call the same API with same id to register locker as HIP and HIU as well.
Thank you