• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception Error

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post the whole error stack, maybe we can pick it out from that.
Thomas
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What about StringTokenizer...nextToken()? That also throws the NoSuchElementException.
-Pat
reply
    Bookmark Topic Watch Topic
  • New Topic