java.lang.IllegalStateException

Tried to close span but it is not the current span: [Trace: 772e168c82d1ad59, Span: 1c2c1e8d198e1c4c, Parent: fe1bb22205811063, exportable:true]. You may have forgotten to close or detach null

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web31051

  • Tried to close span but it is not the current span: [Trace: 772e168c82d1ad59, Span: 1c2c1e8d198e1c4c, Parent: fe1bb22205811063, exportable:true]. You may have forgotten to close or detach null
  • via GitHub by ArthurasJ
    , 9 months ago
    , exportable:true], X-B3-Sampled=1, X-B3-TraceId=15cd31c931fbd527, id=62b199dc-8d65-c3ea-653b-5635a9a157d7, X-Current-Span=[Trace: 15cd31c931fbd527, Span: 15cd31c931fbd527, Parent: null, exportable:true], spanSampled=1, simpSessionId=n4fit3fu, timestamp
  • the settings.xml could not be supplied <span class="code-keyword" style="color: #000091">for</span> the current build: <span class="code-keyword" style="color: #000091">null</span>
  • Stack trace

    • java.lang.IllegalStateException: Tried to close span but it is not the current span: [Trace: 772e168c82d1ad59, Span: 1c2c1e8d198e1c4c, Parent: fe1bb22205811063, exportable:true]. You may have forgotten to close or detach null at org.springframework.cloud.sleuth.util.ExceptionUtils.warn(ExceptionUtils.java:44) at org.springframework.cloud.sleuth.trace.DefaultTracer.close(DefaultTracer.java:116) at org.springframework.cloud.sleuth.TraceRunnable.close(TraceRunnable.java:77) at org.springframework.cloud.sleuth.instrument.async.LocalComponentTraceRunnable.run(LocalComponentTraceRunnable.java:56)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.