Discussion:
[pmd-devel] An internal error occurred :"RenderReport"
siddharthg
2009-03-23 11:49:43 UTC
Permalink
Hi,

I am using PMD version 3.2.4.v200804111600 with eclipse IDE.I have created
customized .xml ruleset file containing the particular rules in it which are
critical for my project. There is option in PMD tool "Use the ruleset
configured in a project file" from where i load the .xml ruleset file.
Whenever i run the PMD with this file "Check Code with PMD ", it runs
absolutely fine. Also it shows packagewise violations with their count. But
whenever i try to generate the report from "Generate reports", PMD throws
following error message.

An internal error occurred during: "RenderReport".
java.lang.NullPointerException

Can anyone help me to find out the exact cause of this error?

Your help is highly appreciated.
--
View this message in context: http://www.nabble.com/An-internal-error-occurred-%3A%22RenderReport%22-tp22572696p22572696.html
Sent from the Java PMD - Dev mailing list archive at Nabble.com.
Xavier Le Vourch
2009-03-23 16:37:24 UTC
Permalink
Hi,
Post by siddharthg
Hi,
I am using PMD version 3.2.4.v200804111600 with eclipse IDE.I have created
customized .xml ruleset file containing the particular rules in it which are
critical for my project. There is option in PMD tool "Use the ruleset
configured in a project file" from where i load the .xml ruleset file.
Whenever i run the PMD with this file "Check Code with PMD ", it runs
absolutely fine. Also it shows packagewise violations with their count. But
whenever i try to generate the report from "Generate reports", PMD throws
following error message.
An internal error occurred during: "RenderReport".
java.lang.NullPointerException
Can anyone help me to find out the exact cause of this error?
Your help is highly appreciated.
Could you enable logging for the PMD plugin (and probably set it to ALL
to make sure to catch all messages) in the Windows->Preferences->PMD
settings page? Once that's done please post the log or send it to me
privately if you prefer.

This will allow us to see exactly where the problem is coming from.

I am going to work on the eclipse plugin in the next few days and
hopefully a fix for your problem will make it to the next version.


Best Regards,

Xavier Le Vourch

--
XLV Labs, publisher of "Enhanced Caller Id" for Android phones

http://www.xlv-labs.com/android/ecallerid/
avinashwable
2013-07-03 06:21:32 UTC
Permalink
I am using Eclipse ADT for android project. Build: v21.0.1-543035.
I have installed PMD plugin for source code analysis.
Plugin version: 4.0.0.v20130510-1000
PMD Version: 5.0.4

I can see violations in the ADT, but when I save changes to source files and
build the project, the editor becomes non-responsive. In the task manager
CPU usage, memory everything is normal. Even the mouse cursor also becomes
normal (from waiting) after some time. But I can't do anything. Killing the
ADT process is the only solution.

Then I thought of taking PMD reports so that I can remove PMD plugin and
refer to PMD report to remove violations. But I get the exact same error
initially mentioned in this post...
-----An internal error occurred during: "RenderReport".
-----java.lang.NullPointerException
I enabled PMD logs as suggested by you. Enabled ALL log levels from PMD
settings in the ADT.
I can't see any error in the logs...
-----------------------
2013/07/03 11:32:38,439 INFO GenerateReportAction Generation
Report action requested
2013/07/03 11:32:38,443 DEBUG JobCommandProcessor Begining job
command RenderReport
2013/07/03 11:32:38,443 DEBUG JobCommandProcessor Ending job
command RenderReport
2013/07/03 11:32:38,443 DEBUG RenderReportsCmd Starting
RenderReport command
2013/07/03 11:32:38,444 DEBUG RenderReportsCmd Create a
report object
2013/07/03 11:32:38,458 DEBUG RenderReportsCmd End of
RenderReport command
-----------------------



--
View this message in context: http://java-pmd.30631.n5.nabble.com/An-internal-error-occurred-RenderReport-tp39800p5710159.html
Sent from the Java PMD - Dev mailing list archive at Nabble.com.
avinashwable
2013-07-03 06:15:54 UTC
Permalink
I am using Eclipse ADT for android project. Build: v21.0.1-543035.
I have installed PMD plugin for source code analysis.
Plugin version: 4.0.0.v20130510-1000
PMD Version: 5.0.4

I can see violations in the ADT, but when I save changes to source files and
build the project, the editor becomes non-responsive. In the task manager
CPU usage, memory everything is normal. Even the mouse cursor also becomes
normal (from waiting) after some time. But I can't do anything. Killing the
ADT process is the only solution.

Then I thought of taking PMD reports so that I can remove PMD plugin and
refer to PMD report to remove violations. But I get the exact same error
initially mentioned in this post...
-----An internal error occurred during: "RenderReport".
-----java.lang.NullPointerException
I enabled PMD logs as suggested by you. Enabled ALL log levels from PMD
settings in the ADT.
I can't see any error in the logs...
-----------------------
2013/07/03 11:32:38,439 INFO GenerateReportAction Generation
Report action requested
2013/07/03 11:32:38,443 DEBUG JobCommandProcessor Begining job
command RenderReport
2013/07/03 11:32:38,443 DEBUG JobCommandProcessor Ending job
command RenderReport
2013/07/03 11:32:38,443 DEBUG RenderReportsCmd Starting
RenderReport command
2013/07/03 11:32:38,444 DEBUG RenderReportsCmd Create a
report object
2013/07/03 11:32:38,458 DEBUG RenderReportsCmd End of
RenderReport command
-----------------------




--
View this message in context: http://java-pmd.30631.n5.nabble.com/An-internal-error-occurred-RenderReport-tp39800p5710158.html
Sent from the Java PMD - Dev mailing list archive at Nabble.com.

Loading...