This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224883 - NoGo for plugin phpMD / PHP CodeSniffer Plugin
Summary: NoGo for plugin phpMD / PHP CodeSniffer Plugin
Status: CLOSED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: jmglsn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-15 01:50 UTC by ent38
Modified: 2013-01-17 08:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2013-01-15 01:50:19 UTC
NPE when trying "Scan File" on a fresh NB install (and plugin not configured)

http://plugins.netbeans.org/plugin/40282
Comment 1 ent38 2013-01-15 01:54:17 UTC
On a fresh install of NetBeans, plugin not configured yet.
Try to use the "Scan File" button from the toolbar : I get a NPE

java.lang.NullPointerException
	at org.jmgl.php.Batch.escapePath(Batch.java:135)
	at org.jmgl.php.copypaste.BatchInterface.parse(BatchInterface.java:75)
	at org.jmgl.php.copypaste.BatchInterface.getTasks(BatchInterface.java:52)
	at org.jmgl.nb.php.InteractiveScannerManager$1.run(InteractiveScannerManager.java:111)
[catch] at java.lang.Thread.run(Thread.java:722)


Could you take a look at this ? (e.g. handle this exception with a regular warning/error message)
Thx.
Comment 2 jmglsn 2013-01-15 09:52:25 UTC
Thank you, I love those NPEs, looks like the first install / usage is not testet that good... Hopefully I got it now, it would be very embarrassing if I need another run :(
Comment 3 ent38 2013-01-15 17:25:31 UTC
Sorry, but now I get a NoSuchMethodEception ;)
I'll retry with a new clean profile in ~30min.
Comment 4 ent38 2013-01-15 18:13:38 UTC
Confirmed. I get the following exception:

java.lang.NoSuchMethodError: java.util.logging.Logger.getGlobal()Ljava/util/logging/Logger;
	at org.jmgl.php.TaskFinder.attachProvider(TaskFinder.java:83)
	at org.jmgl.nb.php.ScannerSetupHelper$3.run(ScannerSetupHelper.java:157)
[catch] at java.lang.Thread.run(Thread.java:662)


But this is strange : I have tested it on two fresh installations =>
- with JDK6u38: I get the NoSuchMethodError exception, plus the "Plugin not configured" warning message from PhpCS-MD
- with JDK7u11: no exception, I have the "Execution problem" warning message from PhpCS-MD only


Tested with the Full Distro of NetBeans 7.2.1. Win7.
Comment 5 jmglsn 2013-01-16 09:23:05 UTC
hm, no words left to say ^^

I didn't test it with JDK6, there was already a problem about one year ago with it. But at the given lines I see no possible reason for it. The last time it was only "version compare"... 
I'll try a run with jdk6 too, anxious what will happen next ^^
Comment 6 jmglsn 2013-01-16 09:56:10 UTC
Ok, got it. There is no Logger.getGlobal() in jdk 6 and even another usage of Integer.compare() is fixed. Time to spend a beer ^^

Is there another way to submit a new version without sending out a new request? It produces a lot of spam, or?

Thank you
Comment 7 Jiri Kovalsky 2013-01-16 16:56:02 UTC
If you don't insist on getting your plugin verified, remove the verification request and then upload new binary. However, if you want to have your plugin published in the Plugin Portal Update Center, you must generate that spam. Ideal state is to thoroughly test your plugin before uploading the new bits. BTW, thanks for your prompt resolution of the problem!
Comment 8 ent38 2013-01-16 18:14:30 UTC
New version works fine.
Thx!
Comment 9 jmglsn 2013-01-17 08:39:11 UTC
Cool, thanks for your support!