• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is wrong with my classes?  RSS feed

 
Lenny Peter
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
exception is java.io.IOException: Access is denied

exception is java.lang.NullPointerException

java.io.FileNotFoundException: c:\program.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at Frame1$2.actionPerformed(Frame1.java:110)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6114)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5879)
at java.awt.Container.processEvent(Container.java:2061)
at java.awt.Component.dispatchEventImpl(Component.java:4481)
at java.awt.Container.dispatchEventImpl(Container.java:2119)
at java.awt.Component.dispatchEvent(Component.java:4311)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4325)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3989)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3919)
at java.awt.Container.dispatchEventImpl(Container.java:2105)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4311)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)






Thanks
[ May 17, 2008: Message edited by: Leni Kravitskki ]
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leni, please remove the real sounding network locations from your post, replace with dummy placeholder identifiers.





 
Lenny Peter
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nicholas Jordan:
Leni, please remove the real sounding network locations from your post, replace with dummy placeholder identifiers.







I am not good to english...I will do that but how?
I do not understand what you mean
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at your stacktraces...



In your source file "Frame1.java" at around line 110, is a anonymous inner class (most likely the second one) of the Frame1 class.

At this source, it is trying to open a file (for reading as an input stream) named "c:\program.txt". An exception is thrown stating that this file doesn't exist.

Henry
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Leni Kravitskki:
I am not good to english...I will do that but how?
I do not understand what you mean.


I will let Henry work it, he knows more and can help you better. It would be a little clumsy for you right now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!