OfficeAutomaticStyles cannot be null

72 views
Skip to first unread message

yambo

unread,
Sep 29, 2009, 2:21:08 AM9/29/09
to jOpenDocument
Hi,

when I run java org.jopendocument.sample.SpreadSheetCreation, this
creates a file temperature.ods.
running java org.jopendocument.sample.SimpleViewer and selecting
temperature.ods gives :

content.xml : ignoring :office:document
Dump attributes:
Exception in thread "main" java.lang.IllegalArgumentException:
OfficeAutomaticStyles cannot be null
at org.jopendocument.model.OpenDocument.init(Unknown Source)
at org.jopendocument.model.OpenDocument.loadFrom(Unknown Source)
at org.jopendocument.model.OpenDocument.loadFrom(Unknown Source)
at org.jopendocument.sample.SimpleViewer.main(Unknown Source)


Am I missing something ?

regards

willy

Guillaume Maillard

unread,
Sep 29, 2009, 11:01:04 AM9/29/09
to jopend...@googlegroups.com
Hi,

It seems that the viewer has some issue to retrieve some info.

Could you provide us your document?

Regards,
Guillaume

willy disc

unread,
Sep 29, 2009, 1:56:26 PM9/29/09
to jopend...@googlegroups.com
Hi,

just run :
 java org.jopendocument.sample.SpreadSheetCreation

and use the document created by the sample application

I will attach the doc create on my mac too.

kind regards

willy




2009/9/29 Guillaume Maillard <guillaume...@gmail.com>
temperature.ods

jOpenDocument, Guillaume

unread,
Sep 30, 2009, 6:38:10 AM9/30/09
to jopend...@googlegroups.com
Hi,

You are, it's a regression of the last version of the library.
It will be fixed soon.

Regards,
Guillaume


> Hi,
>
> just run :
> java org.jopendocument.sample.SpreadSheetCreation
>
> and use the document created by the sample application
>
> I will attach the doc create on my mac too.
>
> kind regards
>
> willy
>
>
>
>
> 2009/9/29 Guillaume Maillard <guillaume...@gmail.com

> <mailto:guillaume...@gmail.com>>


>
> Hi,
>
> It seems that the viewer has some issue to retrieve some info.
>
> Could you provide us your document?
>
> Regards,
> Guillaume
>

> 2009/9/29 yambo <wolly.be <http://wolly.be>@gmail.com
> <http://gmail.com>>

willy disc

unread,
Apr 15, 2010, 6:04:06 AM4/15/10
to jopend...@googlegroups.com
Hi,

I tested the version 1.2b3, but I am running into the same problem as described below.

kind regards

willy

2009/9/30 jOpenDocument, Guillaume <g...@jopendocument.org>

jOpenDocument, Guillaume

unread,
Apr 15, 2010, 7:00:19 AM4/15/10
to jopend...@googlegroups.com
Hi,

The issue is caused by the unified xml we generate (an ODSingleXMLDocument by SpreadSheet.createEmpty).
To split to a document with separated content.xml and style.xml is not a simple task.
We made the choice to implement it in the beta 4. 

There was too much time between the two last beta, that's why "beta 4" will mainly contain
this feature and some small enhancements (and bugfixes?).

The best way for now to fill and display (or print) a spreadsheet is to use a template (empty or not),
see http://www.jopendocument.org/start_spreadsheet_2.html

Regards,
Guillaume
Reply all
Reply to author
Forward
0 new messages