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.
java.lang.AssertionError at org.netbeans.modules.php.project.ui.customizer.RunAsValidator.validateUploadDirectory(RunAsValidator.java:98) at org.netbeans.modules.php.project.ProjectPropertiesSupport.validateActiveConfig(ProjectPropertiesSupport.java:177) at org.netbeans.modules.php.project.ProjectPropertiesSupport.isActiveConfigValid(ProjectPropertiesSupport.java:145) at org.netbeans.modules.php.project.ui.actions.Command.isRunConfigurationValid(Command.java:272) at org.netbeans.modules.php.project.ui.actions.FtpCommand.invokeAction(FtpCommand.java:91) at org.netbeans.modules.php.project.PhpActionProvider.invokeAction(PhpActionProvider.java:102) at org.netbeans.modules.project.ui.actions.ProjectAction.actionPerformed(ProjectAction.java:129) at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161) 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:1225) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266) at java.awt.Component.processMouseEvent(Component.java:6134) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5899) at java.awt.Container.processEvent(Container.java:2023) at java.awt.Component.dispatchEventImpl(Component.java:4501) at java.awt.Container.dispatchEventImpl(Container.java:2081) at java.awt.Component.dispatchEvent(Component.java:4331) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895) at java.awt.Container.dispatchEventImpl(Container.java:2067) at java.awt.Window.dispatchEventImpl(Window.java:2458) at java.awt.Component.dispatchEvent(Component.java:4331) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
This happens if Upload Directory in project customizer is not defined. (Probably a good candidate for patch for NB 6.5.)
Fixed. http://hg.netbeans.org/main/rev/c425394afa87
Integrated into 'main-golden', will be available in build *200810161401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c425394afa87 User: Tomas Mysik <tmysik@netbeans.org> Log: #149958: AssertionError in RunAsValidator.validateUploadDirectory(RunAsValidator.java:98)
*** Issue 151024 has been marked as a duplicate of this issue. ***
*** Issue 152565 has been marked as a duplicate of this issue. ***
Verified
The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/fb73e8c74d1b
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811131701) http://statistics.netbeans.org/exceptions/detail.do?id=140615
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001) http://statistics.netbeans.org/exceptions/detail.do?id=140617
In 6.5, this can be fixed for my PHP projects by deleting and recreating the project. The error occurs when working with any project created under several 6.5 beta releases, but not under projects created with the final release.
Fixed in trunk; exception report was from FCS, revision http://hg.netbeans.org/release65/rev/76d51071af8a. (No such revision exists in trunk.)
this issue should not be reopened
> In 6.5, this can be fixed for my PHP projects by deleting and recreating the project. The error occurs when working > with any project created under several 6.5 beta releases, but not under projects created with the final release. Even easier work around is to set Project Upload Directory to "/".
I had the last 6.5 Release, opened a new PHP project with exciting source, then chooses "upload" and I got this issue, though; when creating a NEW PHP project [only], and choose upload it works perfectly... -> the FTP defaults to "www", there are FTP's without "www" folder in them ... -> there should be a shortcut key to upload the current file ...
amahdy, have you also applied 65patch1? The info about the patch is available at http://wiki.netbeans.org/NetBeans6.5PatchesInfo . Steps how to update your IDE are at http://hg.netbeans.org/main/raw-file/63c0534adb36/usersguide/javahelp/org/netbeans/modules/usersguide/configure/modules/autoupdate.html . The correct version of PHP plugin in your IDE after successful update should be 1.2.2 . Could you please check it?
No response for a long time, so closing as FIXED again. Feel free to reopen and provide information we asked for. Thanks a lot for reporting.
Oh yea the issue was fixed after updating the PHP-plugin, even the version now is 1.2.3 ... Thanks! [ as feature request only: a shortcut to upload current file ]