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 150073 - IllegalStateException: [Winsys] TopComponent org.netbeans.modules.java.JavaDataObject$JavaEditor throws exception/error from its componentOpened() method. Please repair it! Probable cause is at java.i
Summary: IllegalStateException: [Winsys] TopComponent org.netbeans.modules.java.JavaDa...
Status: CLOSED INCOMPLETE
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 11:28 UTC by Lukas Hasik
Modified: 2010-05-06 11:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 38855


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-10-14 11:28:55 UTC
Build: NetBeans IDE 6.1 Beta (Build 200803050202)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119
OS: Mac OS X, 10.5.2, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.IllegalStateException: [Winsys] TopComponent org.netbeans.modules.java.JavaDataObject$JavaEditor throws
exception/error from its componentOpened() method.
Please repair it! Probable cause is at java.io.File.<init>(File.java:344)
        at org.openide.windows.WindowManager.logThrowable(WindowManager.java:361)
        at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:300)
        at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:974)
        at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:753)
        at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:303)
        at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1082)
        at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1049)
        at org.openide.windows.TopComponent.open(TopComponent.java:382)
        at org.openide.text.CloneableEditor.open(CloneableEditor.java:328)
        at org.openide.windows.TopComponent.open(TopComponent.java:373)

java.lang.IllegalArgumentException: URI has a query component
        at java.io.File.(File.java:344)
        at org.netbeans.modules.masterfs.filebasedfs.FileBasedURLMapper.getFileObjects(FileBasedURLMapper.java:125)
        at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:61)
        at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:210)
        at org.netbeans.api.debugger.jpda.LineBreakpoint$LineBreakpointImpl.(LineBreakpoint.java:421)
        at org.netbeans.api.debugger.jpda.LineBreakpoint.create(LineBreakpoint.java:124)
        at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsReader.read(BreakpointsReader.java:108)
        at org.netbeans.api.debugger.Properties$PropertiesImpl.getObject(Properties.java:755)
Comment 1 Martin Entlicher 2008-10-14 12:49:45 UTC
Any steps to reproduce? Some non-standard characters in the file path?
Comment 2 Martin Entlicher 2008-10-14 12:55:05 UTC
Some question marks in the path?
Comment 3 Martin Entlicher 2008-10-14 13:03:30 UTC
Should have been submitted much sooner! It already have 15 duplicates.
Comment 4 Lukas Hasik 2008-10-14 13:42:57 UTC
I have no idea. Most of the reports is on Mac. All the reports are from GUESTs therefore there is nobody to contact :(

there are some comments: I wanted to add a breakpoint to my code by pressing doubleclick at the left side of the line
(the gray section)
Comment 5 Martin Entlicher 2008-10-14 13:46:24 UTC
We catch these exceptions and report them with the original URL String in changeset:   105896:513078ebd085
http://hg.netbeans.org/main/rev/513078ebd085
Comment 6 Martin Entlicher 2008-10-14 13:47:57 UTC
Since this occurs also on Windows, it's not about the question mark in the path. Anyway, all non-standard characters
should be escaped.
Comment 7 Martin Entlicher 2008-10-14 14:01:09 UTC
The URL is retrieved from FileObject.getURL().toString(), which should return the correct representation of the URL.
We need steps to reproduce.
Comment 8 Quality Engineering 2008-10-15 04:45:18 UTC
Integrated into 'main-golden', will be available in build *200810150201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/513078ebd085
User: mentlicher@netbeans.org
Log: #150073 - Catch exceptions thrown during searching for the FileObject and report the URL String.
Comment 9 mudice 2008-11-27 13:57:04 UTC
I am blocked by this issue, how to solve or workaround it
Comment 10 Martin Entlicher 2008-11-27 14:20:10 UTC
Can you please provide some steps how to reproduce this? Do you know where the problematic breakpoint can be and what is
the faulty URI?
In NetBeans 7.0 dev builds there's added logging of the bad URL. If you could try it there, it would be cool.
Comment 11 mudice 2008-11-28 06:36:27 UTC
I am not sure not to reproduce, after the problem occured I can not setbreak point anyway, in fact I see it's more 
because nb could not attached to debug process, that means I could not debug!
In my environment I have installed the Java ME SDK3.0 and also Moto Java ME V2.
For URI, where I can find the info?
Comment 12 Exceptions Reporter 2008-12-06 02:51:03 UTC
This issue has already 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=144519
Comment 13 Martin Entlicher 2008-12-08 13:17:05 UTC
http://statistics.netbeans.org/exceptions/detail.do?id=144519 shows "while processing your report." for several days.
Moving back to P3.
Comment 14 Martin Entlicher 2008-12-08 13:19:11 UTC
FYI: I've submitted http://www.netbeans.org/issues/show_bug.cgi?id=154930 for this.
Comment 15 Vojtech Sigler 2009-09-18 12:11:14 UTC
Without any additional information for long time, no more exception reports on this - INVALID. We can't do anything in
this case. Reporter, if this still persists in latest netbeans (6.7.1 or 6.8 dev), please add relevant information and
reopen issue. Thanks in advance.
Comment 16 Marian Mirilovic 2010-05-06 11:51:29 UTC
closing incomplete issues