Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4569

ITSM plugin see comunication exception as fatal

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.2, 3.8
    • Component/s: None
    • Labels:
    • Subscription:
      Active subscription

      Description

      We are using following snippet in all our resources:

      		<connectorErrorCriticality>			
      			<network>false</network>
      			<schema>false</schema>			
      		</connectorErrorCriticality>
      

      In online resources this prevents mp from blocking user recompute in the event of timeout failure. In semi-manual resources (with ITSM plugin), this setting seems to be ineffective and turns socket timeouts in fatal errors. Pls fix.

      Subresult com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.refreshOperationStatus of operation com.evolveum.midpoint.provisioning.api.ProvisioningService.getObject is still UNKNOWN during cleanup; during handling of exception java.lang.IllegalStateException: com.evolveum.midpoint.util.exception.CommunicationException: Timeout
      Operation
      com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.refreshOperationStatus of operation com.evolveum.midpoint.provisioning.api.ProvisioningService.getObject is still UNKNOWN during cleanup; during handling of exception java.lang.IllegalStateException: com.evolveum.midpoint.util.exception.CommunicationException: Timeout
      Error
      Subresult com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.refreshOperationStatus of operation com.evolveum.midpoint.provisioning.api.ProvisioningService.getObject is still UNKNOWN during cleanup; during handling of exception java.lang.IllegalStateException: com.evolveum.midpoint.util.exception.CommunicationException: Timeout
      show
      java.lang.IllegalStateException: Subresult com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.refreshOperationStatus of operation com.evolveum.midpoint.provisioning.api.ProvisioningService.getObject is still UNKNOWN during cleanup; during handling of exception java.lang.IllegalStateException: com.evolveum.midpoint.util.exception.CommunicationException: Timeout
      at com.evolveum.midpoint.schema.result.OperationResult.cleanupResult(OperationResult.java:1515)
      at com.evolveum.midpoint.provisioning.util.ProvisioningUtil.recordFatalError(ProvisioningUtil.java:364)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.getObject(ProvisioningServiceImpl.java:250)
      at sun.reflect.GeneratedMethodAccessor841.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at com.evolveum.midpoint.util.aspect.MidpointInterceptor.wrapSubsystem(MidpointInterceptor.java:137)
      at com.evolveum.midpoint.util.aspect.MidpointInterceptor.invoke(MidpointInterceptor.java:53)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      at com.sun.proxy.$Proxy67.getObject(Unknown Source)
      at com.evolveum.midpoint.model.impl.lens.projector.ContextLoader.finishLoadOfProjectionContext(ContextLoader.java:1014)
      at com.evolveum.midpoint.model.impl.lens.projector.ContextLoader.load(ContextLoader.java:167)
      at com.evolveum.midpoint.model.impl.lens.projector.Projector.lambda$projectInternal$0(Projector.java:194)
      at com.evolveum.midpoint.model.impl.lens.LensUtil.partialExecute(LensUtil.java:954)
      at com.evolveum.midpoint.model.impl.lens.projector.Projector.projectInternal(Projector.java:192)
      at com.evolveum.midpoint.model.impl.lens.projector.Projector.projectAllWaves(Projector.java:146)
      at com.evolveum.midpoint.model.impl.controller.ModelInteractionServiceImpl.previewChanges(ModelInteractionServiceImpl.java:291)
      at sun.reflect.GeneratedMethodAccessor2797.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at com.evolveum.midpoint.util.aspect.MidpointInterceptor.wrapSubsystem(MidpointInterceptor.java:137)
      at com.evolveum.midpoint.util.aspect.MidpointInterceptor.invoke(MidpointInterceptor.java:53)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      at com.sun.proxy.$Proxy137.previewChanges(Unknown Source)
      at com.evolveum.midpoint.web.component.progress.ProgressPanel$14.callWithContextPrepared(ProgressPanel.java:602)
      at com.evolveum.midpoint.web.component.progress.ProgressPanel$14.callWithContextPrepared(ProgressPanel.java:591)
      at com.evolveum.midpoint.web.component.SecurityContextAwareCallable.call(SecurityContextAwareCallable.java:59)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalStateException: com.evolveum.midpoint.util.exception.CommunicationException: Timeout
      at com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm.ItsmManualConnector.queryOperationStatus(ItsmManualConnector.java:171)
      at com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.refreshOperationStatus(ResourceObjectConverter.java:2377)
      at com.evolveum.midpoint.provisioning.impl.ShadowCache.refreshShadow(ShadowCache.java:1135)
      at com.evolveum.midpoint.provisioning.impl.ShadowCache.getShadow(ShadowCache.java:201)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.getObject(ProvisioningServiceImpl.java:238)
      ... 36 more
      Caused by: com.evolveum.midpoint.util.exception.CommunicationException: Timeout
      at com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm.ws.ConfigurableServiceFactory.handleWebServiceException(ConfigurableServiceFactory.java:165)
      at com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm.ItsmManualConnector.ioCall(ItsmManualConnector.java:298)
      at com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm.ItsmManualConnector.queryOperationStatus(ItsmManualConnector.java:162)
      ... 40 more
      Caused by: javax.xml.ws.WebServiceException: Could not send Message.
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:150)
      at com.sun.proxy.$Proxy264.integrationOperation(Unknown Source)
      at com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm.ItsmManualConnector.ioCall(ItsmManualConnector.java:291)
      ... 41 more
      Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking https://czremavr.oskarmobil.cz:9443/integrator/IntegrationService: Read timed out
      at sun.reflect.GeneratedConstructorAccessor1070.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1387)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
      at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
      at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:216)
      at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
      at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
      ... 43 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
      at sun.security.ssl.InputRecord.read(InputRecord.java:503)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
      at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
      at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
      at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)
      at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)
      at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1584)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1612)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1557)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1358)
      ... 55 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              semancik Radovan Semancik
              Reporter:
              martin.lizner Martin Lizner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: