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 242137

Summary: IllegalArgumentException: The input text cannot contain carriage return char \r
Product: web Reporter: vidhyadharantechdays <vidhyadharantechdays>
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: normal CC: pjiricka, ppisl, vriha
Priority: P2 Keywords: 8.0_HR_FIX
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: html file with carriage return
log file
My webapp

Description vidhyadharantechdays 2014-02-20 10:33:16 UTC
Created attachment 145429 [details]
html file with carriage return

Getting exception while opening this file (find the attached html file)
Comment 1 vidhyadharantechdays 2014-02-20 10:34:03 UTC
Created attachment 145430 [details]
log file
Comment 2 vidhyadharantechdays 2014-02-21 13:05:57 UTC
Hi,
just now i updated latest development kit. This issue is killing me.

Each and every time i am getting exception popup
Regards,
vidhya
Comment 3 Vladimir Riha 2014-02-21 14:40:44 UTC
Could you perhaps try to zip the project and attach it here as zip archive? 

If I download the file, IDE shows error hint on line 21 ("Expected } but found EOL") - I think it is reported already, but no exception is thrown. If I display new line characters in attached file, it shows LF only. Even if I convert new lines to CRLF, then the false error hint goes away and again, no exception


Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on x86; GBK; en_US (nb)
Comment 4 vidhyadharantechdays 2014-02-22 05:39:57 UTC
Created attachment 145484 [details]
My webapp

Hi ,

I have attached the entire webapp. I am getting exception each and every time.

Please provide some solution.

Thanks,
Vidhya
Comment 5 vidhyadharantechdays 2014-02-22 05:45:11 UTC
please find this file in the attached webapp "\webapp\html\api_details.html"
Comment 6 Vladimir Riha 2014-02-24 12:43:27 UTC
Thank you for the sample, reproducible on Linux as well.


Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 7 Vladimir Riha 2014-02-24 12:45:53 UTC
*** Bug 242274 has been marked as a duplicate of this bug. ***
Comment 8 Vladimir Riha 2014-02-24 12:48:24 UTC
I don't think this is a stopper for RC1, but I think it should be fixed for FCS. This IAE pops out on file opening/modification. I cannot reproduce it in 7.4.
Comment 9 Petr Pisl 2014-02-24 16:32:16 UTC
The problem is in the org.netbeans.modules.html.angular.model.AngularWhenInterceptor, where is readed in some cases the content of a file directly in certain circumstances.
Comment 10 Petr Pisl 2014-02-24 16:39:52 UTC
Fixed in web-main:http://hg.netbeans.org/web-main/rev/6e84eb1e7ea0
Comment 11 Quality Engineering 2014-02-25 02:45:02 UTC
Integrated into 'main-silver', will be available in build *201402250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6e84eb1e7ea0
User: Petr Pisl <ppisl@netbeans.org>
Log: #242137 - IllegalArgumentException: The input text cannot contain carriage return char \r
Comment 12 Petr Pisl 2014-02-25 13:00:11 UTC
Transplanted to the releases / release80
Comment 13 Vladimir Riha 2014-02-25 16:06:22 UTC
Verified in trunk. Thank you

Product Version: NetBeans IDE Dev (Build 201402250001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 14 Quality Engineering 2014-03-03 00:47:36 UTC
Integrated into 'releases/release80', will be available in build *201403022200* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/95fdbc761787
User: Petr Pisl <ppisl@netbeans.org>
Log: #242137 - IllegalArgumentException: The input text cannot contain carriage return char \r
Comment 15 vidhyadharantechdays 2014-03-03 07:56:06 UTC
Hi,

Thanks for the fix, I have verified in Product Version: NetBeans IDE Dev (Build 201403020001)

Regards,
Vidhya
Comment 16 Vladimir Riha 2014-03-03 08:24:09 UTC
Verified in 8.0 build

Product Version: NetBeans IDE 8.0 (Build 201403022200)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)