This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes ArrayIndexOutOfBoundsException in Chat#main method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayIndexOutOfBoundsException in Chat#main method" Watch "ArrayIndexOutOfBoundsException in Chat#main method" New topic

ArrayIndexOutOfBoundsException in Chat#main method

Paulo Cassiano

Joined: Sep 02, 2006
Posts: 10
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

how can i setup my eclipse properly, in order to follow book's samples?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37941
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

Joined: Sep 02, 2006
Posts: 10
i'm trying to follow o'reilly java message service's book (2nd edition)...
I agree. Here's the link:
subject: ArrayIndexOutOfBoundsException in Chat#main method
Similar Threads
Facebook chat for android
Refactoring to Patterns - book questions
Closures in Java
Doubt !
Struts Design and Programming - preview chapter