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 125640 - renaming a file
Summary: renaming a file
Status: RESOLVED INCOMPLETE
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-21 06:31 UTC by prashantdubey
Modified: 2008-01-22 21:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans error log (110.20 KB, text/plain)
2008-01-21 08:19 UTC, prashantdubey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description prashantdubey 2008-01-21 06:31:57 UTC
Editor does not allow me to rename the file. I select refactor and rename.. nothing happens.. I select a file in project
heirarchy and press "f2" for renaming, nothing happens again.
Comment 1 Jiri Prox 2008-01-21 07:56:17 UTC
Are there any exception in the log? Have you the write permission for that file?
Comment 2 prashantdubey 2008-01-21 08:19:41 UTC
Created attachment 55300 [details]
Netbeans error log
Comment 3 prashantdubey 2008-01-21 08:31:51 UTC
This is the exception, I get in pop up window after clicking the red error circle on right bottom corner.

java.lang.NoClassDefFoundError: org/ajax4jsf/application/ViewHandlerWrapper
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at com.sun.faces.util.Util.loadClass(Util.java:227)
	at com.sun.faces.util.Util.createInstance(Util.java:447)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:671)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
	at
org.netbeans.modules.visualweb.jsfsupport.container.RaveConfigureListener.contextInitialized(RaveConfigureListener.java:93)
	at org.netbeans.modules.visualweb.jsfsupport.container.FacesContainer.initialize(FacesContainer.java:182)
	at org.netbeans.modules.visualweb.jsfsupport.container.FacesContainer.<init>(FacesContainer.java:130)
	at org.netbeans.modules.visualweb.insync.models.FacesModelSet.getFacesContainer(FacesModelSet.java:497)
	at org.netbeans.modules.visualweb.insync.models.FacesModelSet.<init>(FacesModelSet.java:403)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.netbeans.modules.visualweb.insync.ModelSet.createInstance(ModelSet.java:257)
Caused: java.lang.RuntimeException
	at org.netbeans.modules.visualweb.insync.ModelSet.createInstance(ModelSet.java:261)
	at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:242)
	at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:226)
	at org.netbeans.modules.visualweb.insync.models.FacesModelSet.getInstance(FacesModelSet.java:376)
	at
org.netbeans.modules.visualweb.insync.faces.refactoring.FacesRefactoringsPluginFactory.createInstance(FacesRefactoringsPluginFactory.java:140)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.getPlugins(AbstractRefactoring.java:131)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.addProgressListener(AbstractRefactoring.java:257)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel.showDialog(ParametersPanel.java:448)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.refresh(RefactoringPanel.java:605)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:139)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel.<init>(RefactoringPanel.java:131)
	at org.netbeans.modules.refactoring.spi.ui.UI.openRefactoringUI(UI.java:72)
	at
org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider$NodeToFileObjectTask.run(RefactoringActionsProvider.java:684)
	at org.netbeans.modules.refactoring.java.RetoucheUtils.invokeAfterScanFinished(RetoucheUtils.java:900)
	at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider.doRename(RefactoringActionsProvider.java:156)
	at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.doRename(ActionsImplementationFactory.java:69)
	at org.netbeans.modules.refactoring.spi.impl.RenameAction.performAction(RenameAction.java:62)
	at org.netbeans.modules.refactoring.spi.impl.RefactoringGlobalAction.performAction(RefactoringGlobalAction.java:131)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:289)
	at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:118)
	at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:77)
	at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:114)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:277)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Comment 4 Vitezslav Stejskal 2008-01-21 10:06:02 UTC
My guess is that at some point in time you installed the org.ajax4jf.* plugin, it installed something to your userdir,
then you uninstalled or disabled it, but it didn't unregister everything from your userdir. So, there are hooks to the
refactoring infrastructure that can't be accessed, because the module classes are gone. I would suggest launching the
IDE with a fresh userdir (ie. use --userdir /tmp/fresh-userdir) and see if the problem remains.
Comment 5 prashantdubey 2008-01-21 10:20:47 UTC
Can you please explain in detail what should I do. I am using Vista Ultimate and below is the user directory structure.
C:\Users\PLAMSPAN\.netbeans\5.5
C:\Users\PLAMSPAN\.netbeans\6.0
C:\Users\PLAMSPAN\.netbeans\6.0beta1
C:\Users\PLAMSPAN\.netbeans\6.0rc1

C:\Users\PLAMSPAN\.netbeans-derby

I am currently using 6.0 version.
Comment 6 prashantdubey 2008-01-21 10:22:06 UTC
One more information if it would help you. I have only Netbeans 6.0rc1 and 6.0 on my machine now. I uninstalled other in
the morning today.
Comment 7 Jayashri Visvanathan 2008-01-22 20:27:01 UTC
From the stack trace, it looks like the libraries jar files are not being found by the IDE. I would do/check the following:


1. steps mentioned in comment no. 5. 
2. please make sure that you didn't accidentally delete the required libraries.
3. do you have the required ajax4jsf libraries added to the classpath. Otherwise you will run into issues.