Guest User

Untitled

a guest
Dec 19th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. C:Usersa.subhashrao.pandeDownloadsapache-artemis-2.6.3-binapache-artemis-2.6.3bintmpmybrokerbin>artemis producer --url tcp://localhost:61616
  2. Connection failed::Failed to create session factory
  3.  
  4. --url: is a mandatory property!
  5. Type in the broker URL for a retry (e.g. tcp://localhost:61616)
  6. tcp://localhost:61616
  7.  
  8. --user: is a mandatory property!
  9. Type the username for a retry
  10. admin
  11.  
  12. --password: is mandatory with this configuration:
  13. Type the password for a retry (I have entered password as admin)
  14.  
  15. Exception in thread "main" javax.jms.JMSException: Failed to create session factory
  16. at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:837)
  17. at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:282)
  18. at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:277)
  19. at org.apache.activemq.artemis.cli.commands.messages.Producer.execute(Producer.java:70)
  20. at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149)
  21. at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:97)
  22. at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:124)
  23. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  25. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26. at java.lang.reflect.Method.invoke(Method.java:498)
  27. at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129)
  28. at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49)
  29. Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
  30. at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797)
  31. at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:835)
  32. ... 12 more
  33.  
  34. C:Usersa.subhashrao.pandeDownloadsapache-artemis-2.6.3-binapache-artemis-2.6.3bintmpmybrokerbin>
  35.  
  36. netstat -a | grep 61616
  37.  
  38. jps -v | grep Artemis
  39.  
  40. C:apache-artemis-2.6.3-binapache-artemis-2.6.3bin>artemis create --default-port
  41. 63636 /test/broker
  42. Creating ActiveMQ Artemis instance at: C:testbroker
  43.  
  44. --user: is a mandatory property!
  45. Please provide the default username:
  46. admin
  47.  
  48. --password: is mandatory with this configuration:
  49. Please provide the default password:
  50.  
  51.  
  52. --allow-anonymous | --require-login: is a mandatory property!
  53. Allow anonymous access?, valid values are Y,N,True,False
  54. y
  55.  
  56. Auto tuning journal ...
  57. done! Your system can make 0.54 writes per millisecond, your journal-buffer-timeout
  58. will be 1855999
  59.  
  60. C:testbrokerbin>artemis-service.exe install
  61.  
  62. C:testbrokerbin>artemis-service.exe start
  63.  
  64. C:testbrokerbin>artemis producer
  65. Connection failed::Failed to create session factory
  66.  
  67. --url: is a mandatory property!
  68. Type in the broker URL for a retry (e.g. tcp://localhost:61616)
  69. tcp://localhost:63636
  70.  
  71. --user: is a mandatory property!
  72. Type the username for a retry
  73. admin
  74.  
  75. --password: is mandatory with this configuration:
  76. Type the password for a retry
  77.  
  78. Producer ActiveMQQueue[TEST], thread=0 Started to calculate elapsed time ...
  79.  
  80. Producer ActiveMQQueue[TEST], thread=0 Produced: 1000 messages
  81. Producer ActiveMQQueue[TEST], thread=0 Elapsed time in second : 4 s
  82. Producer ActiveMQQueue[TEST], thread=0 Elapsed time in milli second : 4990 milli
  83. seconds
  84.  
  85. C:testbrokerbin>artemis consumer
  86. Consumer:: filter = null
  87. Connection failed::Failed to create session factory
  88.  
  89. --url: is a mandatory property!
  90. Type in the broker URL for a retry (e.g. tcp://localhost:61616)
  91. tcp://localhost:63636
  92.  
  93. --user: is a mandatory property!
  94. Type the username for a retry
  95. admin
  96.  
  97. --password: is mandatory with this configuration:
  98. Type the password for a retry
  99.  
  100. Consumer ActiveMQQueue[TEST], thread=0 wait until 1000 messages are consumed
  101. Received 1000
  102. Consumer ActiveMQQueue[TEST], thread=0 Consumed: 1000 messages
  103. Consumer ActiveMQQueue[TEST], thread=0 Consumer thread finished
  104.  
  105. artemis producer --url=tcp://localhost:61616 --user=xxxx --password=yyyy
Add Comment
Please, Sign In to add comment