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 198411 - Corrupted URI from CssPreviewPanel: URI has an authority component
Summary: Corrupted URI from CssPreviewPanel: URI has an authority component
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 198382 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-07 10:06 UTC by revathskumar
Modified: 2011-09-27 07:28 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177816


Attachments
stacktrace (5.83 KB, text/plain)
2011-05-07 10:07 UTC, revathskumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description revathskumar 2011-05-07 10:06:57 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows Vista

User Comments:
revathskumar: On click on the CSS preview




Stacktrace: 
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.<init>(File.java:368)
   at org.netbeans.modules.masterfs.filebasedfs.FileBasedURLMapper.getFileObjects(FileBasedURLMapper.java:124)
   at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:65)
   at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:216)
   at org.netbeans.modules.web.flyingsaucer.CssPreviewPanel$PreviewUserAgent.resolveURI(CssPreviewPanel.java:372)
   at org.xhtmlrenderer.swing.NaiveUserAgent.getImageResource(NaiveUserAgent.java:155)
Comment 1 revathskumar 2011-05-07 10:07:01 UTC
Created attachment 108160 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-05-24 06:00:08 UTC
ALL [null]: URL=file://UBUNTU64MANGERE/webroot/HEROLD_IchBinDerHerold/dummy-4.5.0/fileadmin/templates/css/sliderkit-core.css
SEVERE [org.openide.util.Exceptions]
URL=file://UBUNTU64MANGERE/webroot/HEROLD_IchBinDerHerold/dummy-4.5.0/fileadmin/templates/css/sliderkit-core.css
URL=file://UBUNTU64MANGERE/webroot/HEROLD_IchBinDerHerold/dummy-4.5.0/fileadmin/templates/css/sliderkit-core.css
Caused: java.lang.IllegalArgumentException: URI has an authority component
Comment 3 Marek Fukala 2011-06-07 08:16:05 UTC
*** Bug 198382 has been marked as a duplicate of this bug. ***
Comment 4 Marek Fukala 2011-06-07 08:35:22 UTC
why Jardo the URLMapper.findFileObject(...) is not throwing some reasonable exceptions instead of logging them and returning null????
Comment 5 Exceptions Reporter 2011-06-14 12:09:41 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=177816
Comment 6 Petr Jiricka 2011-06-15 11:54:10 UTC
Not a part of the 7.0.1 release -> NO701 keyword.
Comment 7 Marek Fukala 2011-09-20 09:08:40 UTC
fixed in web-main/contrib#e453aec9de47 - the exception is just logged with INFO level.

btw the module is not a part of standard distribution anymore.
Comment 8 Vladimir Riha 2011-09-27 07:28:42 UTC
verified

Product Version: NetBeans IDE Dev (Build 201109260601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)