In fact, i deleted thin columns in the ODS file and it work.

Thank you very much.

On 21 juil, 19:19, "jOpenDocument, Guillaume" <[email protected]>
wrote:
> You need to look at your stacktrace, it will show you "where" the issue is.
> In your last email, you had:
>
> java.lang.IllegalStateException: unable to parse thin
>
> ....
>
> org.jopendocument.model.style.StyleTableCellProperties.setBorderLeft
>
> It means that one our your cell has a left border set to "thin".
>
> Now, your document define somewhere a length as "null".
>
> To avoid issues, create your document in OpenOffice
> and don't set border as "Aucune"/"None" is you want to hide them.
>
> Regards,
> Guillaume
>
>
>
> > Thank you for your respond, i now understand where is the problem.
> > For information, i create the ODS file in a mac openOffice but i code
> > in a pc. However, i has try to create an ODS file directly in the pc
> > (with a microsoft excel 2007 version) and a new error is appeared :
>
> > ----------------------------------------------------
> > java.lang.IllegalStateException: unknown unit null
> > at org.jopendocument.dom.LengthUnit.parseLength(Unknown Source)
> > ...
> > ----------------------------------------------------
>
> > Where can i do the quickfix for change the length of the file without
> > to have access to the source code ?
>
> > Thank you for your respond.
>
> > On 21 juil, 16:39, "jOpenDocument, Guillaume" <[email protected]>
> > wrote:
>
> >> Hi,
>
> >> it seems that your document contains a length defined with "thin"
> >> instead of mm or
> >> other units...
> >> We will see to add "thin" in the
> >> org.jopendocument.dom.LengthUnit.parseLength2String converter method.
>
> >> You can quickfix the source code or your document by returning a
> >> specified value (in mm for example).
>
> >> Regards,
> >> Guillaume
>
> >>> Hello, i just found jOpenDocument but when i create a new
> >>> OpenDocument :
>
> >>> OpenDocument doc = new OpenDocument();
> >>> doc.loadFrom("c:\\file.ods");
>
> >>> an error appears :
>
> >>> content.xml : ignoring :office:document-content
> >>> java.lang.IllegalStateException: unable to parse thin
> >>>    at org.jopendocument.dom.LengthUnit.parseLength2String(Unknown
> >>> Source)
> >>>    at org.jopendocument.dom.LengthUnit.parseLength(Unknown Source)
> >>>    at org.jopendocument.dom.LengthUnit.parseLength(Unknown Source)
> >>>    at org.jopendocument.dom.ODFrame.parseLengthDecimal(Unknown Source)
> >>>    at org.jopendocument.dom.ODFrame.parseLength(Unknown Source)
> >>>    at org.jopendocument.util.ValueHelper.getLength(Unknown Source)
> >>>    at
> >>> org.jopendocument.model.style.StyleTableCellProperties.setBorderLeft(Unknow
> >>>  n
> >>> Source)
> >>>    at
> >>> org.jopendocument.model.style.StyleTableCellProperties.setBorder(Unknown
> >>> Source)
> >>>    at org.jopendocument.io.SaxContentUnmarshaller.startElement(Unknown
> >>> Source)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(A
> >>>  bstractSAXParser.java:
> >>> 501)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyE
> >>>  lement(AbstractXMLDocumentParser.java:
> >>> 179)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE
> >>>  lement(XMLNSDocumentScannerImpl.java:
> >>> 377)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> >>> $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocu
> >>>  mentScannerImpl.java:
> >>> 648)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNS
> >>>  DocumentScannerImpl.java:
> >>> 140)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan
> >>>  Document(XMLDocumentFragmentScannerImpl.java:
> >>> 511)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
> >>>  nfiguration.java:
> >>> 808)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
> >>>  nfiguration.java:
> >>> 737)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
> >>> 119)
> >>>    at
> >>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract
> >>>  SAXParser.java:
> >>> 1205)
> >>>    at org.jopendocument.model.OpenDocument.loadFrom(Unknown Source)
> >>>    at org.jopendocument.model.OpenDocument.<init>(Unknown Source)
> >>>    at Test.main(Test.java:15)
> >>> Exception in thread "main" java.lang.IllegalArgumentException:
> >>> OfficeBody cannot be null
> >>>    at org.jopendocument.model.OpenDocument.init(Unknown Source)
> >>>    at org.jopendocument.model.OpenDocument.loadFrom(Unknown Source)
> >>>    at org.jopendocument.model.OpenDocument.<init>(Unknown Source)
> >>>    at Test.main(Test.java:15)
>
> >>> I use obviously a non-zero file. Do you have a solution for this
> >>> problem please ?
>
> >>> Thank you very much.

Reply via email to