Skip to main content
Participant
February 27, 2011
Question

FlexPMD View not displaying results Eclipse 3.6

  • February 27, 2011
  • 4 replies
  • 8343 views

Below are the relevant software installations. FlexPMD is configured as defined in the documentation.

When running FlexPMD, it appears to be churning away, however, there are no results that appear in the FlexPMD View window. Is this an issue only with Eclipse 3.6???

** Software versions ***

FlexPMD 1.0.0.v200912091712

flex-pmd-all-in-one-bundle-1.2

Eclipse 3.6

FlashBuilder 4.0.1

*** Eclipse Log File Entries ***

!ENTRY org.eclipse.ui 2 0 2011-02-27 10:49:20.167
!MESSAGE Warnings while parsing the key bindings from the 'org.eclipse.ui.commands' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2011-02-27 10:49:20.167
!MESSAGE Cannot bind to an undefined command: plug-in='com.adobe.ac.pmd.eclipse', id='com.adobe.ac.pmd.eclipse.flexpmd.runCommand.category'

!ENTRY org.eclipse.ui 4 4 2011-02-27 10:49:20.707
!MESSAGE Unable to create menu item "com.adobe.ac.pmd.eclipse.toolbar.runCommand", command "com.adobe.ac.pmd.eclipse.flexpmd.runCommand.category" not defined

This topic has been closed for replies.

4 replies

March 30, 2011

Hi,

Thanks for the update. Sadly this still isn't working. I uninstalled and updated using the site you posted. I get this same stack trace

java.io.FileNotFoundException: C:\cnojima1\temp\4\flexpmd2731671333939586734dir\pmd.xml (The system cannot find the file specified)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:106)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMDResultsParser.parse(FlexPMDResultsParser.java:112)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMD.processResultsFile(FlexPMD.java:180)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMD.process(FlexPMD.java:68)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMD.process(FlexPMD.java:1)

at com.adobe.ac.pmd.eclipse.flexpmd.actions.RunFlexPMDJob.run(RunFlexPMDJob.java:83)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I can run the commandline version (1.2) fine. This is a Windows Server 2003 sp2 x64 box. Let me know if there's any other info I can give you to debug.
thanks,
-c

March 30, 2011

Hi cnojima2,

can you open the errors log view in eclipse and check the messages in there?

Also there should be an entry printing the command line executed. Could you try to execute it directly from cmd and see what happens?

March 30, 2011

Yup, this works totally fine. I just transformed the [java -Xmx256m -jar ...etc]

into the raw

java -Xmx256m -jar ...

and it worked fine.

So 3 things happen in the event log:

1) the command runs

2) i get a warnings:

null

Info

Wed Mar 30 19:09:59 PKT 2011

Mar 30, 2011 10:09:59 AM com.adobe.ac.pmd.engines.AbstractFlexPmdEngine <init>WARNING: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method)

java.io.File.checkAndCreate(Unknown Source)

java.io.File.createTempFile(Unknown Source)

3) I get an error

null

Error

Wed Mar 30 19:09:59 PKT 2011

Error running FlexPMDC:\VENDEV~1\cnojima1\temp\4\flexpmd6740339094822211326dir\pmd.xml (The system cannot find the file specified)

java.io.FileNotFoundException: C:\VENDEV~1\cnojima1\temp\4\flexpmd6740339094822211326dir\pmd.xml (The system cannot find the file specified)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:106)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMDResultsParser.parse(FlexPMDResultsParser.java:112)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMD.processResultsFile(FlexPMD.java:180)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMD.process(FlexPMD.java:68)

at com.adobe.ac.pmd.eclipse.flexpmd.cmd.FlexPMD.process(FlexPMD.java:1)

at com.adobe.ac.pmd.eclipse.flexpmd.actions.RunFlexPMDJob.run(RunFlexPMDJob.java:83)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

The directory is created successfully, but it's completely empty (no pmd.xml file exists)

March 29, 2011

Hi,

I also have the same issue with it not being able to make the temp. file. I moved my temp folders around, still won't work. I'm using eclipse 3.4.1 w/ Flexbuilder 3. Any ideas?

March 30, 2011

Hi,

please can you unsintall your current FlexPMD eclipse plugin and install this yet-not-released version http://www.rialvalue.com/flexPmd/updateSite

This new version should fix this problem for you along with several improvements.

Xavi    

March 30, 2011

I think the file you posted is corrupt. I put it in the dropins folder but eclipse hasn't added flex PMD to preferences. The file is only 1..2 K in size which seems way too small.

March 14, 2011

I am also having a problem w/ FlexPMD not displaying any results in eclipse.  I am on Windows XP however. I am using FlashBuilder standalone Burrito I6. I tried adding a flag to point to a temp directory, using one that existed on my machine, but that didn't change anything.  PMD had been working on this machine w/ previous FlashBuilder versions.  CPD still works.  I've tried Versions 1.1 and 1.2 with identical results.

February 28, 2011

Can you try uninstalling the version you have and try installing from this temp update site? http://www.rialvalue.com/flexPmd/updateSite/ This is a version to be released

Participant
February 28, 2011

Thanks, I removed the old version and installed the new one using the url

provided. Initially, the same results. When I looked at the log, I could see

there was a permissions error when FlexPMD tries to access one of its temp

directories (see below)

!ENTRY com.adobe.ac.pmd.eclipse 1 0 2011-02-28 08:42:17.003

!MESSAGE [java, -Xmx256m, -jar,

C:/eclipse/configuration/org.eclipse.osgi/bundles/874/1/.cp/flexPmdRuntime//flex-pmd-command-line-1.1.jar,

-s,

C:\workspace\BlissClient\src\com\othenos\bliss\business\DocumentDelegate.as,

-o, C:\Users\Mike\AppData\Local\Temp\flexpmd5980952838914453410dir]

!ENTRY com.adobe.ac.pmd.eclipse 1 0 2011-02-28 08:42:22.112

!MESSAGE Feb 28, 2011 8:42:22 AM

com.adobe.ac.pmd.engines.AbstractFlexPmdEngine

WARNING: Access is denied at

java.io.WinNTFileSystem.createFileExclusively(Native Method)

java.io.File.checkAndCreate(Unknown Source)

java.io.File.createTempFile(Unknown Source)

So, I quite eclipse and ran it as administrator. This time there FlexPMD

was able to perform the operations and display the results.

I do not know if this problem is related to something I have done regarding

installation of eclipse or if it has something to do with the way FlexPMD is

installed. Normally, I do not have to run eclipse as administrator to get

plugins to work. I suspect it has to do with the FlexPMD's creation of the

temp directory. If there is anything else I can do to help you with this

issue please let me know.

Thanks for the fix. I am looking forward to using the capabilities of

FlexPMD.

-Mike Robinson

Adobe Employee
February 28, 2011

Any chance you are running on Windows 7?

It looks like it is actually not related to Eclipse 3.6:

http://www.javaprogrammingforums.com/file-i-o-other-i-o-streams/5230-file-c

reatetempfile-throws-exception-win7.html

Can you try to run this command line:

Java -Xmx256m -jar

C:/eclipse/configuration/org.eclipse.osgi/bundles/874/1/.cp/flexPmdRun

time/flex-pmd-command-line-1.1.jar -s

C:\workspace\BlissClient\src\com\othenos\bliss\business\DocumentDelegate.as

-o .

If this is the case, we will see what we can do.

Cheers,

Xavier