java.lang.IllegalStateException: No header accessor in GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT_ACK, X-B3-ParentSpanId=15cd31c931fbd527, X-Message-Sent=true, messageSent=true, spanName=message:ExecutorSubscribableChannel[clientOutboundChannel], spanTraceId=15cd31c931fbd527, spanId=9d5f5b993d96d7aa, spanParentSpanId=15cd31c931fbd527, X-Span-Name=message:ExecutorSubscribableChannel[clientOutboundChannel], X-B3-SpanId=9d5f5b993d96d7aa, simpConnectMessage=GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT, simpSessionAttributes={}, simpHeartbeat=[J@1abba77a, X-Message-Sent=true, messageSent=true, spanName=message:ExecutorSubscribableChannel[clientInboundChannel], spanTraceId=15cd31c931fbd527, spanId=15cd31c931fbd527, stompCommand=CONNECT, nativeHeaders={accept-version=[1.1,1.0], heart-beat=[10000,10000]}, X-Span-Name=message:ExecutorSubscribableChannel[clientInboundChannel], X-B3-SpanId=15cd31c931fbd527, currentSpan=[Trace: 15cd31c931fbd527, Span: 15cd31c931fbd527, Parent: null, 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=1476085675073}], currentSpan=[Trace: 15cd31c931fbd527, Span: 9d5f5b993d96d7aa, Parent: 15cd31c931fbd527, exportable:true], X-B3-Sampled=1, X-B3-TraceId=15cd31c931fbd527, id=efa4f587-d3f3-cdfd-4020-c7a33e10eff3, X-Current-Span=[Trace: 15cd31c931fbd527, Span: 9d5f5b993d96d7aa, Parent: 15cd31c931fbd527, exportable:true], spanSampled=1, simpSessionId=n4fit3fu, timestamp=1476085675076}]

GitHub | ArthurasJ | 4 months ago
  1. 0

    GitHub comment 276#252553879

    GitHub | 4 months ago | ArthurasJ
    java.lang.IllegalStateException: No header accessor in GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT_ACK, X-B3-ParentSpanId=15cd31c931fbd527, X-Message-Sent=true, messageSent=true, spanName=message:ExecutorSubscribableChannel[clientOutboundChannel], spanTraceId=15cd31c931fbd527, spanId=9d5f5b993d96d7aa, spanParentSpanId=15cd31c931fbd527, X-Span-Name=message:ExecutorSubscribableChannel[clientOutboundChannel], X-B3-SpanId=9d5f5b993d96d7aa, simpConnectMessage=GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT, simpSessionAttributes={}, simpHeartbeat=[J@1abba77a, X-Message-Sent=true, messageSent=true, spanName=message:ExecutorSubscribableChannel[clientInboundChannel], spanTraceId=15cd31c931fbd527, spanId=15cd31c931fbd527, stompCommand=CONNECT, nativeHeaders={accept-version=[1.1,1.0], heart-beat=[10000,10000]}, X-Span-Name=message:ExecutorSubscribableChannel[clientInboundChannel], X-B3-SpanId=15cd31c931fbd527, currentSpan=[Trace: 15cd31c931fbd527, Span: 15cd31c931fbd527, Parent: null, 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=1476085675073}], currentSpan=[Trace: 15cd31c931fbd527, Span: 9d5f5b993d96d7aa, Parent: 15cd31c931fbd527, exportable:true], X-B3-Sampled=1, X-B3-TraceId=15cd31c931fbd527, id=efa4f587-d3f3-cdfd-4020-c7a33e10eff3, X-Current-Span=[Trace: 15cd31c931fbd527, Span: 9d5f5b993d96d7aa, Parent: 15cd31c931fbd527, exportable:true], spanSampled=1, simpSessionId=n4fit3fu, timestamp=1476085675076}]
  2. 0

    Adding sleuth dependency breaking the websocket subscribe flow

    GitHub | 8 months ago | PreetamMyneni
    org.springframework.messaging.MessageDeliveryException: Failed to handle GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT, stompCommand=CONNECT, nativeHeaders={accept-version=[1.1,1.0], heart-beat=[10000,10000], X-B3-SpanId=[cb05e82b4a3fe89c], X-B3-Sampled=[0], X-B3-TraceId=[cb05e82b4a3fe89c]}, simpSessionAttributes={}, X-B3-SpanId=cb05e82b4a3fe89c, simpHeartbeat=[J@101cc820, X-B3-Sampled=0, X-B3-TraceId=cb05e82b4a3fe89c, id=4055ce24-b0c8-3340-e099-69c24d9d7d02, X-Current-Span=[Trace: cb05e82b4a3fe89c, Span: cb05e82b4a3fe89c, exportable=false], simpSessionId=m2kccjuq, timestamp=1463599267150}] to org.springframework.messaging.support.ExecutorSubscribableChannel$SendTask@1edb2453 in SimpleBrokerMessageHandler [DefaultSubscriptionRegistry[cache[0 destination(s)], registry[0 sessions]]]; nested exception is java.lang.IllegalStateException: No header accessor (not using the SimpMessagingTemplate?): GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT, stompCommand=CONNECT, nativeHeaders={accept-version=[1.1,1.0], heart-beat=[10000,10000], X-B3-SpanId=[cb05e82b4a3fe89c], X-B3-Sampled=[0], X-B3-TraceId=[cb05e82b4a3fe89c]}, simpSessionAttributes={}, X-B3-SpanId=cb05e82b4a3fe89c, simpHeartbeat=[J@101cc820, X-B3-Sampled=0, X-B3-TraceId=cb05e82b4a3fe89c, id=4055ce24-b0c8-3340-e099-69c24d9d7d02, X-Current-Span=[Trace: cb05e82b4a3fe89c, Span: cb05e82b4a3fe89c, exportable=false], simpSessionId=m2kccjuq, timestamp=1463599267150}]
  3. 0

    Spring websocket user message noSimpl

    Stack Overflow | 9 months ago | Rafik991
    org.springframework.messaging.MessageDeliveryException: Failed to handle GenericMessage [payload=byte[22], headers={simpMessageType=MESSAGE, nativeHeaders={destination=[/app/hello], content-length=[22]}, simpUser=org.springframework.security.authentication.UsernamePasswordAuthenticationToken@bbe3d74f: Principal: SessionUser{userId=123}; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 1w2b0r1yl8c90kdq8uwvut4pp; Granted Authorities: ROLE_USER, contentType=application/json;charset=UTF-8, simpSessionId=fd85da400d32427d941c113a191277da, simpDestination=/app/hello}] to org.springframework.messaging.support.ExecutorSubscribableChannel$SendTask@170caf41 in WebSocketAnnotationMethodMessageHandler[prefixes=[/app/, /user/]]; nested exception is java.lang.IllegalStateException: No session attributes in GenericMessage [payload=byte[22], headers={simpMessageType=MESSAGE, nativeHeaders={destination=[/app/hello], content-length=[22]}, simpUser=org.springframework.security.authentication.UsernamePasswordAuthenticationToken@bbe3d74f: Principal: SessionUser{userId=123}; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffed504: RemoteIpAddress: 127.0.0.1; SessionId: 1w2b0r1yl8c90kdq8uwvut4pp; Granted Authorities: ROLE_USER, contentType=application/json;charset=UTF-8, lookupDestination=/hello, simpSessionId=fd85da400d32427d941c113a191277da, simpDestination=/app/hello}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.
  6. 0
    samebug tip
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No header accessor in GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT_ACK, X-B3-ParentSpanId=15cd31c931fbd527, X-Message-Sent=true, messageSent=true, spanName=message:ExecutorSubscribableChannel[clientOutboundChannel], spanTraceId=15cd31c931fbd527, spanId=9d5f5b993d96d7aa, spanParentSpanId=15cd31c931fbd527, X-Span-Name=message:ExecutorSubscribableChannel[clientOutboundChannel], X-B3-SpanId=9d5f5b993d96d7aa, simpConnectMessage=GenericMessage [payload=byte[0], headers={simpMessageType=CONNECT, simpSessionAttributes={}, simpHeartbeat=[J@1abba77a, X-Message-Sent=true, messageSent=true, spanName=message:ExecutorSubscribableChannel[clientInboundChannel], spanTraceId=15cd31c931fbd527, spanId=15cd31c931fbd527, stompCommand=CONNECT, nativeHeaders={accept-version=[1.1,1.0], heart-beat=[10000,10000]}, X-Span-Name=message:ExecutorSubscribableChannel[clientInboundChannel], X-B3-SpanId=15cd31c931fbd527, currentSpan=[Trace: 15cd31c931fbd527, Span: 15cd31c931fbd527, Parent: null, 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=1476085675073}], currentSpan=[Trace: 15cd31c931fbd527, Span: 9d5f5b993d96d7aa, Parent: 15cd31c931fbd527, exportable:true], X-B3-Sampled=1, X-B3-TraceId=15cd31c931fbd527, id=efa4f587-d3f3-cdfd-4020-c7a33e10eff3, X-Current-Span=[Trace: 15cd31c931fbd527, Span: 9d5f5b993d96d7aa, Parent: 15cd31c931fbd527, exportable:true], spanSampled=1, simpSessionId=n4fit3fu, timestamp=1476085675076}]

      at org.springframework.web.socket.messaging.StompSubProtocolHandler.getStompHeaderAccessor()
    2. Spring WebSocket
      SubProtocolWebSocketHandler.handleMessage
      1. org.springframework.web.socket.messaging.StompSubProtocolHandler.getStompHeaderAccessor(StompSubProtocolHandler.java:465)[spring-websocket-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      2. org.springframework.web.socket.messaging.StompSubProtocolHandler.handleMessageToClient(StompSubProtocolHandler.java:383)[spring-websocket-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      3. org.springframework.web.socket.messaging.SubProtocolWebSocketHandler.handleMessage(SubProtocolWebSocketHandler.java:338)[spring-websocket-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      3 frames
    3. Spring Messaging
      ExecutorSubscribableChannel$SendTask.run
      1. org.springframework.messaging.support.ExecutorSubscribableChannel$SendTask.run(ExecutorSubscribableChannel.java:135)[spring-messaging-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_66]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_66]
      3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_66]
      3 frames