dcsimg
Netbeans problem while creating a project with existing sources
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vikram_Bhatwadekar
Posted On:   Friday, April 6, 2007 01:28 PM

Hi, I have my source code in a folder under C drive. I am trying to create a new project in Netbeans 5.0 using the "Create project with existing sources" option. After specifying the location where the source code is located, and the folder where I want the project to be created, I get an error and Netbeans says it is unable to create the project. The stack trace is as follows: java.lang.reflect.UndeclaredThrowableException at $Proxy13.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(Default   More>>

Hi,

I have my source code in a folder under C drive. I am trying to create a new project in Netbeans 5.0 using the "Create project with existing sources" option.

After specifying the location where the source code is located, and the folder where I want the project to be created, I get an error and Netbeans says it is unable to create the project. The stack trace is as follows:


java.lang.reflect.UndeclaredThrowableException
at $Proxy13.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:517)
at java.awt.Dialog$2.run(Dialog.java:545)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:543)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:810)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:853)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:841)
at org.openide.util.Mutex$1.run(Mutex.java:1188)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:410)
... 38 more
Caused by: java.lang.NullPointerException
at org.netbeans.modules.tomcat5.WebappConfiguration.modifyContext(WebappConfiguration.java:436)
at org.netbeans.modules.tomcat5.WebappConfiguration.setContextPath(WebappConfiguration.java:163)
at org.netbeans.modules.tomcat5.ide.ConfigurationSupportImpl.setWebContextRoot(ConfigurationSupportImpl.java:52)
at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.setWebContextRoot(ConfigSupportImpl.java:238)
at org.netbeans.modules.web.project.ProjectWebModule.setContextPath(ProjectWebModule.java:99)
at org.netbeans.modules.web.project.ui.wizards.ImportWebProjectWizardIterator.instantiate(ImportWebProjectWizardIterator.java:151)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:537)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:376)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1197)
at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:70)
at org.openide.WizardDescriptor$9.run(WizardDescriptor.java:1676)
at org.openide.WizardDescriptor$8.run(WizardDescriptor.java:1716)
at org.openide.WizardDescriptor$5.run(WizardDescriptor.java:1119)
at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1158)
at org.openide.WizardDescriptor.access$1100(WizardDescriptor.java:70)
at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1723)

   <<Less
About | Sitemap | Contact