Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. "SimpleAsyncTaskExecutor-1801" prio=10 tid=0x00007fa668413800 nid=0x376c waiting on condition [0x00007fa4fbaff000]
  2. java.lang.Thread.State: WAITING (parking)
  3. at sun.misc.Unsafe.park(Native Method)
  4. - parking to wait for <0x00000007777e2ba8> (a java.util.concurrent.CountDownLatch$Sync)
  5. at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
  6. at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
  7. at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
  8. at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
  9. at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
  10. at org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel.receive(MessagingTemplate.java:415)
  11. at org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel.receive(MessagingTemplate.java:409)
  12. at org.springframework.integration.core.MessagingTemplate.doReceive(MessagingTemplate.java:317)
  13. at org.springframework.integration.core.MessagingTemplate.doSendAndReceive(MessagingTemplate.java:341)
  14. at org.springframework.integration.core.MessagingTemplate.sendAndReceive(MessagingTemplate.java:255)
  15. at org.springframework.integration.core.MessagingTemplate.convertSendAndReceive(MessagingTemplate.java:290)
  16. at org.springframework.integration.gateway.MessagingGatewaySupport.doSendAndReceive(MessagingGatewaySupport.java:224)
  17. at org.springframework.integration.gateway.MessagingGatewaySupport.sendAndReceive(MessagingGatewaySupport.java:203)
  18. at org.springframework.integration.gateway.GatewayProxyFactoryBean.invokeGatewayMethod(GatewayProxyFactoryBean.java:306)
  19. at org.springframework.integration.gateway.GatewayProxyFactoryBean.doInvoke(GatewayProxyFactoryBean.java:269)
  20. at org.springframework.integration.gateway.GatewayProxyFactoryBean.access$200(GatewayProxyFactoryBean.java:71)
  21. at org.springframework.integration.gateway.GatewayProxyFactoryBean$AsyncInvocationTask.call(GatewayProxyFactoryBean.java:499)
  22. at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  23. at java.lang.Thread.run(Thread.java:745)
  24.  
  25. @Component
  26. public interface INotificationSender {
  27.  
  28. Future<Void> sendNotification(@Payload Object notification,
  29. @Header("routingKey") String routingKey,
  30. @Header("notificationType") String type);
  31. }
  32.  
  33. <!-- Spring Integration RabbitMQ adapter -->
  34. <rabbit:template
  35. id="amqpTemplate"
  36. connection-factory="notificationConnectionFactory" />
  37.  
  38. <rabbit:connection-factory
  39. id="notificationConnectionFactory"
  40. addresses="${notificationChannel.rabbitHost1}:${notificationChannel.rabbitPort}, ${notificationChannel.rabbitHost2}:${notificationChannel.rabbitPort}"
  41. username="${notificationChannel.rabbitUsername}"
  42. password="${notificationChannel.rabbitPassword}"
  43. virtual-host="${notificationChannel.rabbitVirtualHost}"/>
  44.  
  45. <rabbit:topic-exchange
  46. name="notificationExchange"/>
  47.  
  48.  
  49. <!-- Spring Integration AMQP -->
  50. <int-amqp:outbound-channel-adapter
  51. id="notificationChannelAdapter"
  52. channel="notificationChannelEnc"
  53. exchange-name="notificationExchange"
  54. routing-key-expression="headers['routingKey']"
  55. mapped-request-headers="STANDARD_REQUEST_HEADERS, notificationType"/>
  56.  
  57.  
  58. <!-- Spring Integration Core -->
  59. <int:channel
  60. id="notificationChannelEnc">
  61. <int:interceptors>
  62. <int:wire-tap channel="loggingChannel" />
  63. </int:interceptors>
  64. </int:channel>
  65.  
  66. <int:channel id="notificationChannel"/>
  67.  
  68. <int:object-to-json-transformer
  69. id="NotificationEncoder"
  70. content-type="text/x-json"
  71. input-channel="notificationChannel"
  72. output-channel="notificationChannelEnc"/>
  73.  
  74. <int:gateway
  75. id="notificationGateway"
  76. default-request-channel="notificationChannel"
  77. service-interface="com.ericsson.ericloud.commander.notification.sender.INotificationSender"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement