incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Weir <>
Subject Re: [jira] [Commented] (ODFTOOLKIT-327) java.lang.NullPointerException at org.odftoolkit.odfdom.pkg.OdfPackage.logValidationError(
Date Mon, 08 Oct 2012 16:39:46 GMT
On Mon, Oct 8, 2012 at 12:22 PM, Vicente Villegas Larios (JIRA)
<> wrote:
>     [
> Vicente Villegas Larios commented on ODFTOOLKIT-327:
> ----------------------------------------------------
> I fixed this issue, there was an issue related to the logValidationError as you commented
in the post, but there is more, seems like when we try to unzip the ODP file it is not finding
the manifest.xml.
> I would like to commit these changes, is there a easy way to do that? When I try to get
connected with SVN using eclipse pluging I'm getting some error messages.

Easiest thing is to attach a patch file to the JIRA issue.  Then a
Committer can review and apply the patch.

And note that contributors who provide good quality patches and work
well in the community may be voted in as a Committer.  And then you
would have direct access to check in fixes via SVN.



> thanks
>> java.lang.NullPointerException at org.odftoolkit.odfdom.pkg.OdfPackage.logValidationError(
>> ---------------------------------------------------------------------------------------------------------------
>>                 Key: ODFTOOLKIT-327
>>                 URL:
>>             Project: ODF Toolkit
>>          Issue Type: Bug
>>          Components: java, odfdom, simple api
>>    Affects Versions: 0.8.7, 0.8.8
>>            Reporter: Vicente Villegas Larios
>>         Attachments: 327-fix.diff, 327-test.diff
>> Hello guys I'm facing an issue when I try to load an odp file, researching in the
web seems like the only solution is to open those files and save it. But I cannot do that
I'm running a batch process which mean  that I will process many files.
>> I'm using the following code in my constructor and it is working with the majority
of odp files but for some reason there are some files that are throwing the following exception.
>> **** This is the constructor
>> public OdpTest(File documentToExtract) throws ExtractionException, Exception {
>>               org.odftoolkit.simple.Document document = PresentationDocument.loadDocument(documentToExtract);
>>       }
>> **** This is the exception
>> Throwable occurred: java.lang.NullPointerException
>>       at org.odftoolkit.odfdom.pkg.OdfPackage.logValidationError(
>>       at org.odftoolkit.odfdom.pkg.OdfPackage.parseManifest(
>>       at org.odftoolkit.odfdom.pkg.OdfPackage.readZip(
>>       at org.odftoolkit.odfdom.pkg.OdfPackage.initializeZip(
>>       at org.odftoolkit.odfdom.pkg.OdfPackage.<init>(
>>       at org.odftoolkit.odfdom.pkg.OdfPackage.loadPackage(
>>       at org.odftoolkit.simple.Document.loadDocument(
>>       at org.odftoolkit.simple.PresentationDocument.loadDocument(
>> why that line is throwing that exception for some files?
>> is there a version that is fixing that issue?
>> please help me
>> thanks in advance
> --
> 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