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

Array Index out of range issue

 
Les Zeb
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I have just started learning java to support our production applications...please bear with me if I ask basic questions.
I got an issue in one of our java processes. It failed with an error - Array index out of range: 1
It would be appreciated if you please provide some pointers. Below is the code snippet where its failing:

These are the arguments being passed thru command line - /Folder1/pssmmail/day1 /Folder2/pssmmmail/day1 ImpWebV4
Thanks for any help you could provide.

 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

From where is this method: processArguments() invoked? Please post complete code. Also post the Stacktrace(Exception details) which you are getting.

How are you launching your program? Are you providing some command line arguments when launching the program?
 
Les Zeb
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!! We are launching this thru shell script and yes we are providing command line arguments which I posted in earlier post.
Please find below the complete code:



Exception details:

 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is the line 186 in ClickFoxEmailScrubProcess.java? Check if getArguments() returns the correct array. Also see if your initialization() method is setting the array passed correctly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic