• 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

Eclipse debug breaking on FileInputSteam.class

 
Ranch Hand
Posts: 67
1
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently my web app in Eclipse started breaking on a line in FileInputStream.class every time I run the app in debug mode.

It is breaking on line 106:



This happens as soon as I start the server. I have no idea what caused this to start happening, how can I fix it?
 
Rancher
Posts: 5008
38
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It is breaking

Can you explain what happens?
Are there any error messages you can copy and paste here?
 
Zahro Alfelpha
Ranch Hand
Posts: 67
1
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Norm Radder wrote:

It is breaking

Can you explain what happens?



I meant breaking as in a literal debug break point in the IDE
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe Zahro means that Eclipse is acting as if there were a breakpoint at that line.

Seems to me the first thing to do would be to look at how your breakpoints are configured. Not only can you configure specific lines to be breakpoints, you can configure them to be conditional breakpoints also. I'm guessing that neither of those two apply in this case. However I believe you can also configure Eclipse to break when exceptions are thrown -- maybe that's only specific exceptions, I don't recall and I haven't opened up Eclipse to poke through its configuration options. So maybe that was done in the past, and the guilty line of code you posted is throwing an exception in that category. Having a line of code in the standard API which throws an exception wouldn't be an abnormal thing, remember. Other standard API code would very likely catch it and deal with it as a normal happening.

If you press the "carry on" button in the debug options, do things continue in the normal way?
 
Zahro Alfelpha
Ranch Hand
Posts: 67
1
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:I believe Zahro means that Eclipse is acting as if there were a breakpoint at that line.

Seems to me the first thing to do would be to look at how your breakpoints are configured. Not only can you configure specific lines to be breakpoints, you can configure them to be conditional breakpoints also. I'm guessing that neither of those two apply in this case. However I believe you can also configure Eclipse to break when exceptions are thrown -- maybe that's only specific exceptions, I don't recall and I haven't opened up Eclipse to poke through its configuration options. So maybe that was done in the past, and the guilty line of code you posted is throwing an exception in that category. Having a line of code in the standard API which throws an exception wouldn't be an abnormal thing, remember. Other standard API code would very likely catch it and deal with it as a normal happening.

If you press the "carry on" button in the debug options, do things continue in the normal way?



Thank you! You are right, it turns out an exception was being raised at that line, and my Debug options in Eclipse were set to "Suspend execution on uncaught exceptions". I unchecked this and it no longer breaks there. Slightly annoying because I would like the option of having that in my own code, but I suppose I can live without it if it means not having to resume a breakpoint every time I start the app :)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic