Bug 156792 - com.sun.xml.stream.XMLStreamException2: ParseError at [row,col]:[125,45] Message: Invalid byte 2 of 3-byte UTF-8 sequence.
com.sun.xml.stream.XMLStreamException2: ParseError at [row,col]:[125,45] Mess...
Status: NEW
Product: uml
Classification: Unclassified
Component: Diagram Activity
6.x
All All
: P3 (vote)
: 6.x
Assigned To: issues@uml
issues@uml
http://statistics.netbeans.org/except...
EXCEPTIONS_REPORT
: I18N
: 150800 159261 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-14 13:19 UTC by Marian Mirilovic
Modified: 2009-10-22 01:22 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2009-01-14 13:19:48 UTC
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.
        at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:571)
        at org.netbeans.modules.uml.drawingarea.persistence.TSDiagramConverter.handleNode(TSDiagramConverter.java:1589)
        at
org.netbeans.modules.uml.drawingarea.persistence.TSDiagramConverter.handleDataStartElement(TSDiagramConverter.java:1565)
        at org.netbeans.modules.uml.drawingarea.persistence.TSDiagramConverter.readXMLData(TSDiagramConverter.java:1538)
        at org.netbeans.modules.uml.drawingarea.persistence.TSDiagramConverter.convertDiagram(TSDiagramConverter.java:207)
        at org.netbeans.modules.uml.drawingarea.UMLDiagramManager.showDiagram(UMLDiagramManager.java:485)
        at org.netbeans.modules.uml.drawingarea.UMLDiagramManager.openDiagram(UMLDiagramManager.java:133)
        at
org.netbeans.modules.uml.ui.products.ad.projecttreedefaultengine.ADProjectTreeEngine.handleDoubleClick(ADProjectTreeEngine.java:3494)
        at
org.netbeans.modules.uml.ui.products.ad.projecttreedefaultengine.ADProjectTreeEngine.onNodeDoubleClick(ADProjectTreeEngine.java:3435)
        at
org.netbeans.modules.uml.ui.products.ad.projecttreedefaultengine.ADProjectTreeEngine$ProjectTreeListener.onDoubleClick(ADProjectTreeEngine.java:3751)
Comment 1 Sergey Petrov 2009-01-14 15:08:12 UTC
can anybody attach 6.1 project with the problem? what  is system locale?
Comment 2 Sergey Petrov 2009-01-28 11:44:39 UTC
*** Issue 150800 has been marked as a duplicate of this issue. ***
Comment 3 Sergey Petrov 2009-01-28 11:49:43 UTC
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.
Comment 4 Sergey Petrov 2009-02-05 19:25:28 UTC
will try to implement importing assuming system encoding first.
Comment 5 Sergey Petrov 2009-02-12 08:46:43 UTC
Can anybody attach 6.1 uml project with the problem?
Comment 6 Sergey Petrov 2009-02-12 11:15:58 UTC
set incomplete back, see 2nd comment, no necessary details yet.
Comment 7 Sergey Petrov 2009-02-27 10:44:20 UTC
*** Issue 159261 has been marked as a duplicate of this issue. ***
Comment 8 Sergey Petrov 2009-02-27 14:13:25 UTC
will try to create myself
Comment 9 Sergey Petrov 2009-02-27 14:46:00 UTC
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.
Comment 10 Sergey Petrov 2009-03-03 15:47:42 UTC
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.
Comment 11 Sergey Petrov 2009-03-03 15:48:17 UTC
TODO: add to uml faq.
Comment 12 Sergey Petrov 2009-03-03 17:49:58 UTC
added to http://wiki.netbeans.org/FaqUML61To65Issues
Comment 13 Quality Engineering 2009-03-18 22:35:30 UTC
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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo