incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svante Schubert (JIRA)" <>
Subject [jira] [Commented] (ODFTOOLKIT-377) Error writing large .ods files (3 MB)
Date Thu, 12 Sep 2013 16:46:51 GMT


Svante Schubert commented on ODFTOOLKIT-377:

Finally I got an exception: As it seems RDFa related, I am curious if it helps if I change
the RDFa implementation back...

java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.jar.JarFile.getEntry(
	at java.util.jar.JarFile.getJarEntry(
	at sun.misc.URLClassPath$JarLoader.getResource(
	at sun.misc.URLClassPath$JarLoader.findResource(
	at sun.misc.URLClassPath.findResource(
	at Method)
	at java.lang.ClassLoader.getResource(
	at java.lang.ClassLoader.getSystemResource(
	at java.lang.ClassLoader.getSystemResourceAsStream(
	at java.lang.Class.getResourceAsStream(
	at Method)
	at net.rootdev.javardfa.Parser.<init>(
	at org.odftoolkit.odfdom.pkg.rdfa.RDFaParser.<init>(
	at org.odftoolkit.odfdom.pkg.rdfa.DOMRDFaParser.<init>(
	at org.odftoolkit.odfdom.pkg.rdfa.DOMRDFaParser.createInstance(
	at org.odftoolkit.odfdom.pkg.OdfFileDom.updateInContentMetadataCache(
	at org.odftoolkit.odfdom.dom.element.table.TableTableCellElementBase.onInsertNode(
	at org.odftoolkit.odfdom.pkg.OdfElement.onInsertNode(
	at org.odftoolkit.odfdom.pkg.OdfElement.insertBefore(
	at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)
	at org.odftoolkit.odfdom.pkg.OdfFileSaxHandler.startElement(
> Error writing large .ods files (3 MB)
> -------------------------------------
>                 Key: ODFTOOLKIT-377
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: java, odfdom, performance, simple api
>    Affects Versions: 0.5-incubating
>         Environment: Windows 7, java 1.7
>            Reporter: Jacinto Verdaguer
>              Labels: patch, performance
>             Fix For: 0.5-incubating
> I'm modifying file metadata .ods, the application works correctly for files under 3 MB
but in the case of files larger of 2,8 MB it creates a file 2 KB and get locked by the java
process. No java error display.
> My code is as follows:
> doc = OdfDocument.loadDocument(new File("C:\tmp\ficheroIn.ods"));
> OdfFileDom metadom = doc.getMetaDom();
> Meta metadata = new Meta(metadom);
> metadata.setTitle(plantilla.getTitulo());
> metadata.setSubject(plantilla.getAsunto());
> metadata.setCreator(plantilla.getModificadoPor());
> metadata.setDescription(plantilla.getComentarios());

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message