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 139626 - Is not possible to open Source window in PHP project
Summary: Is not possible to open Source window in PHP project
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 17:27 UTC by Petr Pisl
Modified: 2010-04-29 09:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The exception (2.17 KB, text/plain)
2008-07-10 17:28 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-07-10 17:27:19 UTC
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?
Comment 1 Petr Pisl 2008-07-10 17:28:26 UTC
Created attachment 64264 [details]
The exception
Comment 2 Petr Pisl 2008-07-10 17:32:15 UTC
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
Comment 3 _ sandipchitale 2008-07-14 20:37:49 UTC
I am able to reproduce this with php only build.
Comment 4 _ sandipchitale 2008-07-14 21:02:18 UTC
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.
Comment 5 Petr Pisl 2008-07-17 15:40:58 UTC
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.
Comment 6 _ krystyna 2008-07-17 17:08:10 UTC
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)
Comment 7 Petr Pisl 2008-07-17 17:17:01 UTC
As I have written today, I saw it in Ruby distribution as well.
Comment 8 _ sandipchitale 2008-07-17 18:11:22 UTC
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.
Comment 9 Martin Entlicher 2008-07-18 07:17:55 UTC
I've reproduced the exception in PHP build.
Comment 10 Martin Entlicher 2008-07-18 07:20:39 UTC
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.
Comment 11 Martin Entlicher 2008-07-18 07:47:46 UTC
Fixed in changeset:   90668:e1c3c4c44697
http://hg.netbeans.org/main/rev/e1c3c4c44697
Comment 12 Martin Entlicher 2008-07-18 17:41:05 UTC
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
Comment 13 Quality Engineering 2010-04-29 09:41:01 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.