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.
Build: NetBeans IDE Dev (Build 20120406-unknown-revn) VM: OpenJDK 64-Bit Server VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_03-icedtea-b147 OS: Linux User Comments: GUEST: All refactoring fails with this GUEST: press alt+r to rename class GUEST: Inline refactoring GUEST: Trying to use move refactoring GUEST: Started "Find usages" GUEST: Any refactoring fordfrog: tried to delete class in projects panel GUEST: Selected 'Insert Code...' from the right-button context menu. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.j2ee.web.AdditionalWebProvider.apiEjbJar(AdditionalWebProvider.java:75) at org.netbeans.modules.maven.j2ee.web.AdditionalWebProvider.findEjbJar(AdditionalWebProvider.java:90) at org.netbeans.modules.j2ee.ejbjar.ProjectEjbJarProvider.findEjbJar(ProjectEjbJarProvider.java:63) at org.netbeans.modules.j2ee.api.ejbjar.EjbJar.getEjbJar(EjbJar.java:109) at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.getRelevantEjbModules(EjbRefactoringFactory.java:161) at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.getEjbJars(EjbRefactoringFactory.java:144)
Created attachment 117967 [details] stacktrace
I'm a bit surprised this is P3. Pretty much all refactoring is broken for maven projects. Unless someone has a work around this should be P1?
Guys, does anyone have a reproducible scenario? I've tried to create Maven web project, create a new Java class inside of source packages and rename this class, but no exception occurs. What should I do to reproduce the issue? Or, could anyone attach problematic project?
hmm....tried to reproduce using a simple project but works ok. Interestingly this happens to me despite using only j2se projects. Would that give you a clue? Why would this logic be executed for non-j2ee projects?
Definitely! Thanks for pointing this out. The problem shows up when someone was trying to use refactoring in Maven OSGi bundle project type. I've fix it in revision web-main #0177bc71a936
Integrated into 'main-golden', will be available in build *201204110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0177bc71a936 User: Martin Janicek <mjanicek@netbeans.org> Log: #210852 - NullPointerException at org.netbeans.modules.maven.j2ee.web.AdditionalWebProvider.apiEjbJar
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0177bc71a936 User: Martin Janicek <mjanicek@netbeans.org> Log: #210852 - NullPointerException at org.netbeans.modules.maven.j2ee.web.AdditionalWebProvider.apiEjbJar