15 duplicates so far ...
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86
User comments: Abrindo diagrama UML construído com NetBeans 6.1
STACKTRACE: (first 10 lines)
com.sun.xml.stream.XMLStreamException2: ParseError at [row,col]:[125,45]
Message: Invalid byte 2 of 3-byte UTF-8 sequence.
can anybody attach 6.1 project with the problem? what is system locale?
*** Issue 150800 has been marked as a duplicate of this issue. ***
It appends for diagam files written in not utf-8 or default en encoding.
old diagram files use system encoding and do not contain encoding information, so either option to ask encoding should
be added for importing or try to find system encoding firt (but may fails for importingon another system).
as a workaround it's possible to open diagram files as text in text editor and save as (with the same names/extensions)
with UTF-8 encoding used in 6.5 for diagram files and supposed for importing. as workaround exist and fix is relatively
complex with ui changes it may require extra time and may not be available in 7.0.
will try to implement importing assuming system encoding first.
Can anybody attach 6.1 uml project with the problem?
set incomplete back, see 2nd comment, no necessary details yet.
*** Issue 159261 has been marked as a duplicate of this issue. ***
will try to create myself
ok, even it looks like utf-8 file in 6.1 accoring to heared (i.e. contain encoding information) in real it's system
encoding file so cause some problems, need to try to handle this case by attempt to read in system encoding and in utf,
it still may be a problem if one local encoding was changed to another not utf but should cover most cases.
issue is cased by bug in 6.1 but still good to handle in 6.5.
afa6a3647dcb - part fix
only part fix is relatively easy to implement.
WORKAROUND: now (after 6.7m3 or nearest daily) it will be easy to open etld/etlp files in for exaple notepad and replace
misleading "UTF-8" in encoding with correct one (in most cases your system encoding).
see official IANA name used in XML, for example windows-1251 instead of cp1251 in some other cases etc.
I was able to open my diagram with russian names after this relatively easy manipulation with applied part fix to uml.
TODO: add to uml faq.
added to http://wiki.netbeans.org/FaqUML61To65Issues
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: fix #156792 use default encoding for 6.1 importing