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.
Summary: | com.sun.xml.stream.XMLStreamException2: ParseError at [row,col]:[125,45] Message: Invalid byte 2 of 3-byte UTF-8 sequence. | ||
---|---|---|---|
Product: | uml | Reporter: | Marian Mirilovic <mmirilovic> |
Component: | Diagram Activity | Assignee: | issues@uml <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | solo12zw74, wpequeno, zaiboot |
Priority: | P3 | Keywords: | I18N |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=139997 | ||
Issue Type: | DEFECT | Exception Reporter: | 139997 |
Description
Marian Mirilovic
2009-01-14 13:19:48 UTC
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. Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/afa6a3647dcb User: sergeyp@netbeans.org Log: fix #156792 use default encoding for 6.1 importing |