Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayIndexOutOfBoundsException in Chat#main method

 
Paulo Cassiano
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm trying to follow the book's chapter 2 chat sample, using eclipse indigo and activemq-5.5.0, but i cannot run the sample app...

my console (inside eclipse) shows:


Factory, Topic, or username missing
java.lang.ArrayIndexOutOfBoundsException: 0
at ch02.chat.RunChat.main(RunChat.java:x)

how can i setup my eclipse properly, in order to follow book's samples?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49789
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don’t add new questions to an old thread.

Where are you suffering that Exception? What are you passing as the command-line arguments? Where are you using args[0]?
 
Paulo Cassiano
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm trying to follow o'reilly java message service's book (2nd edition)...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic