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 96686 - IOException when adding import
Summary: IOException when adding import
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-27 13:31 UTC by cezariusz
Modified: 2007-06-27 09:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (157.29 KB, text/plain)
2007-02-28 10:34 UTC, cezariusz
Details
messages.log (25.53 KB, text/plain)
2007-02-28 10:35 UTC, cezariusz
Details
messages.log (4.71 KB, text/plain)
2007-02-28 10:36 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2007-02-27 13:31:44 UTC
DON'T DELETE THIS TEXT:
http://anna.nbextras.org/exceptions/detail.do?id=439
Build: NetBeans IDE Dev (Build 200702131900)
VM: Java HotSpot(TM) Client VM, 1.5.0_11-b03
OS: Windows XP, 5.1, x86


Note: anna.nbextras suggests subcomponent=retouche, but it's not here.
Comment 1 Jan Lahoda 2007-02-28 08:12:30 UTC
I am afraid that the reported stack trace is not very useful (it is missing an
enclosed exception, see issue #96740). Could you please attach your
messages.log? Also more information on how you got this exception would be useful.

Please see issue #96741 for the subcomponent=retouche problem.

Thank you very much.
Comment 2 cezariusz 2007-02-28 10:34:25 UTC
Created attachment 38968 [details]
messages.log
Comment 3 cezariusz 2007-02-28 10:35:25 UTC
Created attachment 38969 [details]
messages.log
Comment 4 cezariusz 2007-02-28 10:36:18 UTC
Created attachment 38970 [details]
messages.log
Comment 5 cezariusz 2007-02-28 10:41:22 UTC
I get this exception very often when trying to add import using suggestions 
(orange bulb). The import is being actually added to the file (I'm not sure if 
always), so the exception is raised after inserting the import.

Interesting thing - when adding import and the exception doesn't occur, all 
unicode characters are converted to unicode escape sequences (see bug #95574), 
but when the exception raises, unicode characters are left intouch.
Comment 6 cezariusz 2007-03-13 13:05:27 UTC
Raising priority due to the number of reports in
http://anna.nbextras.org/exceptions/detail.do?id=439
Comment 7 Pavel Flaska 2007-03-19 11:21:18 UTC
I see several problems there. First of all, there were abstract method error. It
is perhaps caused by incorrect build, could you, please, rebuild your sources?
Or did you download the build?

Second, there is an attempt to modify guarded block which is illegal and it is a
bug in code generator. I want to ask you for some extra information, particularly:

1) did you added import to form or other source with guarded block?,
2) can you provide the source and describe your steps, i.e. what did you do
before the exception?
Comment 8 cezariusz 2007-03-19 11:56:02 UTC
1. I've downloaded the build from netbeans.info
2. It happened with several next daily builds as well
3. Yes, it was a form with guarded blocks, I'm not sure if it happens only 
with forms (next time I'll pay more attentions on that)
4. Note I'm using UTF-8 for the whole IDE if it matters.
5. Do you have access to logs from all the duplicates at anna.nbextras or 
shall I attach messages.log here each time?
Comment 9 Pavel Flaska 2007-03-19 13:27:45 UTC
Thanks for the addition info.

> 5. Do you have access to logs from all the duplicates at anna.nbextras or 
> shall I attach messages.log here each time?

No, I don't. I'll ask how to obtain duplicates. I do not need another
messages.log, but it would be fine if you'll find a scenario how to reproduce,
i.e. create a form, do a something, then invoke the hint and exception will occur.
Comment 10 Pavel Flaska 2007-05-08 17:57:27 UTC
Any additional information? -- Is it still reproducible with current trunk build?
Comment 11 Pavel Flaska 2007-06-25 14:49:34 UTC
Anything new? I haven't seen any bug report similar to this for a long time. If you agree, I will close it as a WORKSFORME.
Comment 12 Pavel Flaska 2007-06-27 09:39:50 UTC
Because we did not additional info and there is no duplicate, considering this as fixed. Perhaps it was related to some
specific build and there has been many changes in code responsible for imports handling. If you are able to provide
additional info or reproduce the issue, please reopen. Thanks for the report.