PMD - plugin detail

Runs the PMD source code scanner tool.

This is the maintenance project of the original plugin : http://plugins.netbeans.org/plugin/47/pmd-for-netbeans.

To run PMD, you can :
- go to "Tools", "Run PMD"
- go to the Options panel, "PMD", and enable scan
Don't forget to manage PMD's rules (Options panel, "PMD", "Manage rules..." button).

NetBeans Plugin - PMD
Plugin owner: ent38
Website: http://pmd.sourceforge.net/
Added: 2012-06-29
License: freeware
Category: Programming Languages
Downloaded: 4,537 times
Rating:
 3.81, by 1 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.42 MB   Last Update: 2014-04-30

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Version 2.3.0
- Updated pmd to version 4.3
- Some code cleanup
- Removed unnecessary casts in source code
- Fixed a possible NullPointerException (hope it will fix bug http://netbeans.org/bugzilla/show_bug.cgi?id=215084)

Version 2.2.7.1 (based on the official 2.2.7 version : https://sourceforge.net/projects/pmd/files/pmd-netbeans/pmd-netbeans-2.2.7/, that integrates PMD 4.2.5)
- A NetBeans restart is needed after installation
- The plugin is now self-signed

Verifications for NetBeans versions

8.0 verification PASSED See verification details
Download plugin   Download size: 0.42 MB   Last Update: 2013-09-24

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Version 2.3.0
- Updated pmd to version 4.3
- Some code cleanup
- Removed unnecessary casts in source code
- Fixed a possible NullPointerException (hope it will fix bug http://netbeans.org/bugzilla/show_bug.cgi?id=215084)

Version 2.2.7.1 (based on the official 2.2.7 version : https://sourceforge.net/projects/pmd/files/pmd-netbeans/pmd-netbeans-2.2.7/, that integrates PMD 4.2.5)
- A NetBeans restart is needed after installation
- The plugin is now self-signed

Verifications for NetBeans versions

7.4 verification PASSED See verification details
Download plugin   Download size: 0.42 MB   Last Update: 2013-02-11

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Version 2.3.0
- Updated pmd to version 4.3
- Some code cleanup
- Removed unnecessary casts in source code
- Fixed a possible NullPointerException (hope it will fix bug http://netbeans.org/bugzilla/show_bug.cgi?id=215084)

Version 2.2.7.1 (based on the official 2.2.7 version : https://sourceforge.net/projects/pmd/files/pmd-netbeans/pmd-netbeans-2.2.7/, that integrates PMD 4.2.5)
- A NetBeans restart is needed after installation
- The plugin is now self-signed

Verifications for NetBeans versions

7.3 verification PASSED See verification details
Download plugin   Download size: 0.42 MB   Last Update: 2012-07-02

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Version 2.3.0
- Updated pmd to version 4.3
- Some code cleanup
- Removed unnecessary casts in source code
- Fixed a possible NullPointerException (hope it will fix bug http://netbeans.org/bugzilla/show_bug.cgi?id=215084)

Version 2.2.7.1 (based on the official 2.2.7 version : https://sourceforge.net/projects/pmd/files/pmd-netbeans/pmd-netbeans-2.2.7/, that integrates PMD 4.2.5)
- A NetBeans restart is needed after installation
- The plugin is now self-signed

Verifications for NetBeans versions

7.2 verification PASSED See verification details
Download plugin   Download size: 0.42 MB   Last Update: 2012-07-02

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Version 2.3.0
- Updated pmd to version 4.3
- Some code cleanup
- Removed unnecessary casts in source code
- Fixed a possible NullPointerException (hope it will fix bug http://netbeans.org/bugzilla/show_bug.cgi?id=215084)

Version 2.2.7.1 (based on the official 2.2.7 version : https://sourceforge.net/projects/pmd/files/pmd-netbeans/pmd-netbeans-2.2.7/, that integrates PMD 4.2.5)
- A NetBeans restart is needed after installation
- The plugin is now self-signed

Verifications for NetBeans versions

7.1 verification PASSED See verification details


Introduction

Runs the PMD source code scanner tool.
Finds various problems in your code and reports them to you in a tabular output window.
Project on GitHub: https://github.com/jonathanlermitage/netbeans-pmd

[ You have to be logged in to be able to comment. ]

User Comments

  

Re: Null Pointer Exception

Thx for the informations.

Did you test it on the latest version of NetBeans 7.2 ? (RC1 or build 201207020907)
In order to exclude the case of an unstable version of NB 7.2.

Do you experience the same problem on NetBeans 7.1 ?

Thx.


// personal reminder : http://netbeans.org/bugzilla/show_bug.cgi?id=215084
Posted by ent38 on Jul 02, 2012
  

Null Pointer Exception

java.lang.NullPointerException
at pmd.RunPMDAction.getDataObjects(RunPMDAction.java:359)
at pmd.RunPMDAction.performAction(RunPMDAction.java:268)
at org.openide.util.actions.NodeAction.performAction(NodeAction.java:295)
at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:129)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
at org.openide.util.actions.ActionInvoker$ActionRunnable.actionPerformed(ActionInvoker.java:162)
at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:109)
at org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:60)
at org.openide.util.actions.ActionInvoker$ActionRunnable.doRun(ActionInvoker.java:153)
at org.openide.util.actions.ActionInvoker$2.run(ActionInvoker.java:110)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
at org.openide.util.RequestProcessor.post(RequestProcessor.java:424)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:114)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:126)
at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:283)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
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)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I am getting this exception while running PMD and here are my platform details.
OS: Windows Vista
JDK. 1.6
Posted by senthilsource on Jul 02, 2012
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo