Menu

#898 FileNotFoundException running designer for the first time

open
pmd (543)
5
2012-10-07
2009-11-04
Nick Radov
No

I ran PMD rule designer (designer.bat) for the first time. It worked but the command prompt window showed the errors copied below. I don't have that ".pmd_designer" file, but even so I think the program should be able to handle that condition without throwing an exception.

java.io.FileNotFoundException: C:\Documents and Settings\nradov.pmd_designer (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at net.sourceforge.pmd.util.designer.CodeEditorTextPane.loadCode(CodeEditorTextPane.java:86)
at net.sourceforge.pmd.util.designer.CodeEditorTextPane.<init>(CodeEditorTextPane.java:23)
at net.sourceforge.pmd.util.designer.Designer.<init>(Designer.java:586)
at net.sourceforge.pmd.util.designer.Designer.main(Designer.java:816)
java.io.FileNotFoundException: C:\Documents and Settings\nradov.pmd_designer (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at net.sourceforge.pmd.util.designer.CodeEditorTextPane.loadCode(CodeEditorTextPane.java:86)
at net.sourceforge.pmd.util.designer.CodeEditorTextPane.<init>(CodeEditorTextPane.java:23)
at net.sourceforge.pmd.util.designer.CreateXMLRulePanel.<init>(CreateXMLRulePanel.java:28)
at net.sourceforge.pmd.util.designer.Designer.createRuleXML(Designer.java:694)
at net.sourceforge.pmd.util.designer.Designer.access$1300(Designer.java:114)
at net.sourceforge.pmd.util.designer.Designer$2.actionPerformed(Designer.java:684)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)</init></init></init></init></init></init></init></init>

Discussion


Log in to post a comment.