• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception Error

 
Tex Abrey
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EXCEPTION: java.util.NoSuchElementException : FILENAME: 02-09-16_05ab.pdf
I am getting this error which i would take as its not finding hte file but it has to be cause it has the filename in the error. I am totally lost as to how to fix this error??
Please Help
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to java.util.NoSuchElementException documentation this is thrown when you try to use the nextElement() method an Enumeration and there is no element.
Where are you using an Enumeration?
Bill
 
Tex Abrey
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i can tell I am not using it. I am making a change in someone elses program but I searched for the nextElement(), and couldn't find it. I am pretty sure I am not using it.
I am gonna keep looking. Is there anything else it could be??
 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the whole error stack, maybe we can pick it out from that.
Thomas
 
Pat Wallwork
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about StringTokenizer...nextToken()? That also throws the NoSuchElementException.
-Pat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!