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 217208 - IllegalArgumentException: URI has an authority component
Summary: IllegalArgumentException: URI has an authority component
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 09:53 UTC by Exceptions Reporter
Modified: 2012-09-07 09:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 189746


Attachments
stacktrace (2.48 KB, text/plain)
2012-08-22 09:54 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-08-22 09:53:59 UTC
This issue was reported manually by mmirilovic.
It already has 46 duplicates 


Build: NetBeans IDE 7.2 (Build 201207301726)
VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Windows 7

User Comments:
GUEST: Just installed the 7.2 version and opened my php-project

GUEST: I was editting a PHP file and it stopped saving the file.

GUEST: I dont know anything, i just see the red icon and i clicked

GUEST: PHP - no sugestion

GUEST: ERROR - no suggestion

code template:

<?php
class KlasaA{
    public $test;
    
    public function __construct() {
        $this->test = 'test';
    }

    public function getTest(){
        return $this->test;
    }
}
$newObject = new KlasaA();
print $newObject->getTest();  //<- no suggestion
?>

GUEST: CTRL Space

GUEST: writing:
print_r($);

GUEST: I don't know exactly. I am a web developer and I am programming in php, javascript ,css in a local web server.

GUEST: scanning project in background

GUEST: Just programing a function in PHP, exactly writing the name of a variable.




Stacktrace: 
java.lang.IllegalArgumentException: URI has an authority component
   at java.io.File.<init>(File.java:0)
   at org.netbeans.modules.php.project.classpath.SourcePathImplementation$FilteringPathResource.includes(SourcePathImplementation.java:219)
   at org.netbeans.api.java.classpath.ClassPath.contains(ClassPath.java:562)
   at org.netbeans.modules.php.project.api.PhpSourcePath.getFileType(PhpSourcePath.java:102)
   at org.netbeans.modules.php.editor.elements.PhpElementImpl.isPlatform(PhpElementImpl.java:249)
   at org.netbeans.modules.php.editor.PHPCompletionItem.getRhsHtml(PHPCompletionItem.java:299)
Comment 1 Exceptions Reporter 2012-08-22 09:54:02 UTC
Created attachment 123387 [details]
stacktrace
Comment 2 Tomas Mysik 2012-08-23 03:29:49 UTC
Many duplicates...
Comment 3 Tomas Mysik 2012-08-23 03:31:07 UTC
Possible patch candidate.
Comment 4 Tomas Mysik 2012-08-27 10:28:56 UTC
Láďo, please try to reproduce this issue; it seems to me that it could happen if one uses UNC paths.

Thanks.
Comment 5 Vladimir Riha 2012-08-27 10:49:06 UTC
yes, you are right. Simple invoking cc for $ with project at UNC path throws

java.lang.IllegalArgumentException: URI has an authority component
	at java.io.File.<init>(File.java:397)
	at org.netbeans.modules.php.project.classpath.SourcePathImplementation$FilteringPathResource.includes(SourcePathImplementation.java:219)
	at org.netbeans.api.java.classpath.ClassPath.contains(ClassPath.java:562)
	at org.netbeans.modules.php.project.api.PhpSourcePath.getFileType(PhpSourcePath.java:102)
        ....



Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Comment 6 Tomas Mysik 2012-08-27 11:41:35 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/fcc4022363fb
Comment 7 Tomas Mysik 2012-08-27 11:42:49 UTC
BTW possible duplicate could be issue #216120. Please check it, thanks.
Comment 8 Quality Engineering 2012-08-28 02:38:24 UTC
Integrated into 'main-golden', will be available in build *201208280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fcc4022363fb
User: Tomas Mysik <tmysik@netbeans.org>
Log: #217208 - IllegalArgumentException: URI has an authority component
Comment 9 Vladimir Riha 2012-08-28 15:40:28 UTC
this one is verified but issue #216120 is still valid...


  Product Version         = NetBeans IDE Dev (Build 201208280001) (#b23327f7c98f)
  Operating System        = Windows 7 version 6.1 running on x86
  Java; VM; Vendor        = 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_04-b22
Comment 10 Tomas Mysik 2012-08-29 14:33:35 UTC
Backported to the releases clone.

http://hg.netbeans.org/releases/rev/b944014cc22b
Comment 11 Quality Engineering 2012-09-01 11:11:38 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/b944014cc22b
User: Tomas Mysik <tmysik@netbeans.org>
Log: #217208 - IllegalArgumentException: URI has an authority component
(transplanted from fcc4022363fb8ff30ad9233d3c6266f94627df82)
Comment 12 Vladimir Riha 2012-09-07 09:26:43 UTC
(In reply to comment #5)
> Simple invoking cc for $ with project at UNC path throws

verified in patch


Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)