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 90524 - Renaming throws AssertionError
Summary: Renaming throws AssertionError
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 91682
  Show dependency tree
 
Reported: 2006-12-04 15:34 UTC by Peter Pis
Modified: 2007-01-11 09:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
AssertionError (690 bytes, text/plain)
2006-12-04 15:57 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2006-12-04 15:34:10 UTC
NetBeans IDE Dev (Build 200612031900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Steps:
1. Open j2se project under version control. (CVS)
2. Select interface and invoke "Refactor | Rename..." on it. Proceed all
necessary for successful renaming of this interface.

Randomly AE is throws.

java.lang.AssertionError
	at
org.netbeans.modules.web.jsf.refactoring.Occurrences.getAllOccurrences(Occurrences.java:406)
	at
org.netbeans.modules.web.jsf.refactoring.JSFRenamePlugin.prepare(JSFRenamePlugin.java:122)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:301)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:166)
Comment 1 Peter Pis 2006-12-04 15:57:26 UTC
Created attachment 36455 [details]
AssertionError
Comment 2 Peter Pis 2007-01-09 16:04:17 UTC
Raising priority to "P1". Happens always from "Files" view and in the case that
project is under SVN instead of [Locally Copied] status it shows [Locally Modified]

NetBeans IDE Dev (Build 200701081900)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252
Comment 3 Peter Pis 2007-01-10 13:07:16 UTC
Same steps lead to NPE, I used this issue coz the symptoms are similar.

java.lang.NullPointerException
	at
org.netbeans.modules.web.jsf.refactoring.JSFRenamePlugin.prepare(JSFRenamePlugin.java:94)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:301)
	at
org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:166)
	at
org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:686)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 4 Petr Pisl 2007-01-10 13:29:33 UTC
The original bug is duplicate of issue #90511. The problem, which had ppis was
coused by NPE:
java.lang.NullPointerException
        at
org.netbeans.modules.web.jsf.refactoring.JSFRenamePlugin.prepare(JSFRenamePlugin.java:94)
        at
org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:301)
        at
org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:166)
     ...

I fixed the problem with NPE, which was caused renaming folder, which are part
of a package name. The original problem is Assertion Error is already fixed as a
issue #90511
Comment 5 Peter Pis 2007-01-11 09:07:51 UTC
Verified.

NetBeans IDE Dev (Build 200701101900)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252