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 148675 - NPE from AbstractRefactoring.pluginsPrepare2
Summary: NPE from AbstractRefactoring.pluginsPrepare2
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM, TEST
: 149704 (view as bug list)
Depends on:
Blocks: 145789
  Show dependency tree
 
Reported: 2008-09-29 20:23 UTC by Jesse Glick
Modified: 2010-09-24 07:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (638 bytes, text/plain)
2009-03-07 21:59 UTC, Exceptions Reporter
Details
stacktrace (638 bytes, text/plain)
2009-04-16 12:30 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-09-29 20:23:31 UTC
########  testProjectsView  #######
java.lang.NullPointerException
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:397)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:390)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:207)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:785)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Jan Pokorsky 2008-09-30 09:40:00 UTC
Could you attach also stack trace of the test? It would help to know what refactoring operation breaks it in
testProjectsView.
There is a pretty complicated threading model in ParametersPanel which I would like to rewrite but not now before 6.5.
release.
Comment 2 Jan Pokorsky 2008-09-30 09:53:41 UTC
I guess I got it. I already fixed it with http://hg.netbeans.org/main/rev/e624b1492218 yesterday. And here is the stack
trace of the test:

org.netbeans.jemmy.TimeoutExpiredException: Wait "Closed window" state to be reached
	at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:169)
	at org.netbeans.jemmy.operators.Operator.waitState(Operator.java:693)
	at org.netbeans.jemmy.operators.WindowOperator.waitClosed(WindowOperator.java:400)
	at org.netbeans.test.ide.IDEValidation.testProjectsView(IDEValidation.java:329)
Comment 3 Jan Pokorsky 2008-10-13 19:00:28 UTC
*** Issue 149704 has been marked as a duplicate of this issue. ***
Comment 4 Exceptions Reporter 2008-11-11 13:03:05 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200811060201)
http://statistics.netbeans.org/exceptions/detail.do?id=138369
Comment 5 Exceptions Reporter 2009-02-10 02:42:47 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=125971
Comment 6 Exceptions Reporter 2009-03-07 21:59:45 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-13-generic, i386

User Comments: 
I tried to rename a servlet: right clicked in Projects window on a servlet selected Refactor->Rename. Provided new name and marked to change also comments. Then I hit OK and exception was thrown. Nothing changed, servlet name was the same, web.xml was not updated etc.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:397)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:390)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:207)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:787)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 7 Exceptions Reporter 2009-03-07 21:59:49 UTC
Created attachment 77868 [details]
stacktrace
Comment 8 Exceptions Reporter 2009-04-16 12:29:54 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-23-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:397)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:390)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:207)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:787)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 9 Exceptions Reporter 2009-04-16 12:30:05 UTC
Created attachment 80241 [details]
stacktrace
Comment 10 Jan Becicka 2010-09-24 07:25:26 UTC
No reports in 6.9. Probably fixed.