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.
I'm trying use JS debugger in a simple php project. Unfortunately I can not open the source window due to attached exception. So I can't use the JS debugger. Why the source window is not opened by default, when the Cliend debug session is used?
Created attachment 64264 [details] The exception
Product Version: NetBeans IDE Dev (Build 080709) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb) Userdir: /space/ide/userdirs/trunk-php-11
I am able to reproduce this with php only build.
I was able to reproduce it using the following installer build: Product Version: NetBeans IDE Dev (Build 200807101204) Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04 System: Linux version 2.6.24-16-generic running on i386; UTF-8; en_US (nb) Userdir: /home/sc32560/.netbeans/dev However I am not able to reproduce it with the php only build (using -Dcluster.config=php) that I did in my workspace. Installer build is not available yet. Please reopen if the problem occurs again.
I have to reopen it. I'm able to reproduce it with my build and also in daily build from netbeans.org. I have downloaded file from http://bits.netbeans.org/download/trunk/nightly/latest/ the zip file (today it was netbeans-trunk-nightly-200807170007-php.zip) Just unzip the file, run netbeans with clean userdir and try to open Window->Debugging->Sources. I get exactly the same exception, which is attached. I tried to create a php project, call debug action and then open the Source window, but still I get only the exception.
I had never seen this before running the 'all' zip distribution, but I did just reproduce with the php only zip netbeans-hudson-trunk-2880-php. Got Illegal Argument Exception. java.lang.IllegalArgumentException: sources at org.netbeans.modules.debugger.ui.actions.ViewActions.openComponent(ViewActions.java:90) at org.netbeans.modules.debugger.ui.actions.ViewActions.actionPerformed(ViewActions.java:84) 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)
As I have written today, I saw it in Ruby distribution as well.
I was able to reproduce the exception now. I may have made a mistake in trying to reproduce it before. The source window use to be registered by debuggerjpda module. It has now been moved to debuggercore module so that debuggers for all languages can use it. See: http://www.netbeans.org/issues/show_bug.cgi?id=135940 There may still be some issue with that. Investigating.
I've reproduced the exception in PHP build.
There is an important message that precedes the exception and which explains what happend: WARNING [org.netbeans.modules.settings.convertors.XMLSettingsSupport]: Warning: unknown module code base: org.netbeans.modules.debugger.jpda.ui in MultiFileObject@7c76c6[Windows2Local/Components/sources.settings] INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'sources'. Reason: Top component sources could not be loaded, either owning module was disabled, has incompatible version or top components settings file format is broken. java.io.IOException: Top component sources could not be loaded, either owning module was disabled, has incompatible version or top components settings file format is broken.
Fixed in changeset: 90668:e1c3c4c44697 http://hg.netbeans.org/main/rev/e1c3c4c44697
FYI: for the fix to take effect, it's also necessary to delete the appropriate file in NetBeans' user directory: <user-dir>/config/Windows2Local/Components/sources.settings
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.