You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Andrei Ivanov <an...@gmail.com> on 2016/07/01 08:46:20 UTC
Re: Fail to save stream
Hi,
I have a hunch that the http request just gets aborted/reset so the
output stream just gets closed.
But I still think it would be nice for the root exception to be
preserved, for future cases, to avoid guessing.
Maybe I can convince the devs to update that line to include it.
Thank you.
On Thu, Jun 30, 2016 at 9:05 PM, Dominik Stadler <do...@gmx.at> wrote:
> Hi,
>
> If you can debug the application in an IDE you can set a breakpoint and
> investigate the Exception or call "e.printStackTrace()" on it to get the
> full details printed to stdout.
>
> A nother option might be to try to narrow down into a unit test to get a
> better reproducer that shows the root cause more easily.
>
> If that is too much effort you might need to patch the class and add it to
> the classpath of your J2EE App so that it prints out full details.
>
> Dominik.
>
>
> On Thu, Jun 30, 2016 at 6:22 PM, Andrei Ivanov <an...@gmail.com>
> wrote:
>
>> Hi,
>> I'm getting some exceptions in the production logs of a web application:
>>
>> 30-Jun-2016 14:03:50.820 WARNING [http-apr-443-exec-12]
>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute Fail to save:
>> an error occurs while saving the package : The part /docProps/core.xml
>> fail to be saved in the stream with marshaller
>>
>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>> org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail
>> to save: an error occurs while saving the package : The part
>> /docProps/core.xml fail to be saved in the stream with marshaller
>>
>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>> at
>> org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:502)
>> at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1467)
>> at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:217)
>> at
>> org.primefaces.component.export.ExcelExporter.writeExcelToResponse(ExcelExporter.java:216)
>> ....
>> Caused by: org.apache.poi.openxml4j.exceptions.OpenXML4JException: The
>> part /docProps/core.xml fail to be saved in the stream with marshaller
>>
>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>> at
>> org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:482)
>> ... 90 more
>>
>>
>> I'm trying to investigate the issue, but as far as I see in
>>
>> https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java
>> ,
>> it swallows the root cause, on line 59 :-(
>>
>> Using POI 3.14 with Primefaces 6.0 on Tomcat 8.0.36 and JDK 1.8.0_92-b14
>>
>> Any clues on how to proceed?
>>
>> Thank you.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>> For additional commands, e-mail: user-help@poi.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Fail to save stream
Posted by Andrei Ivanov <an...@gmail.com>.
I'll probably wait for the next release to include it in our next
release and then I'll follow the logs.
Thank you very much :-)
On Fri, Jul 1, 2016 at 12:19 PM, Javen O'Neal <ja...@gmail.com> wrote:
> Andrei said:
>> But I still think it would be nice for the root exception to be
>> preserved, for future cases, to avoid guessing.
>> Maybe I can convince the devs to update that line to include it.
>
> A reasonable request.
>
> I opened bug 59776 [1] to get this fixed.
> I included the cause in the OpenXML4JException in r1750893 [2]. Let us
> know (either here or on the bug) if this solves the swallowing
> problem.
>
> [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=59776
> [2] https://svn.apache.org/viewvc?view=revision&revision=1750893
>
> On Fri, Jul 1, 2016 at 1:46 AM, Andrei Ivanov <an...@gmail.com> wrote:
>> Hi,
>> I have a hunch that the http request just gets aborted/reset so the
>> output stream just gets closed.
>>
>> But I still think it would be nice for the root exception to be
>> preserved, for future cases, to avoid guessing.
>>
>> Maybe I can convince the devs to update that line to include it.
>>
>> Thank you.
>>
>> On Thu, Jun 30, 2016 at 9:05 PM, Dominik Stadler <do...@gmx.at> wrote:
>>> Hi,
>>>
>>> If you can debug the application in an IDE you can set a breakpoint and
>>> investigate the Exception or call "e.printStackTrace()" on it to get the
>>> full details printed to stdout.
>>>
>>> A nother option might be to try to narrow down into a unit test to get a
>>> better reproducer that shows the root cause more easily.
>>>
>>> If that is too much effort you might need to patch the class and add it to
>>> the classpath of your J2EE App so that it prints out full details.
>>>
>>> Dominik.
>>>
>>>
>>> On Thu, Jun 30, 2016 at 6:22 PM, Andrei Ivanov <an...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I'm getting some exceptions in the production logs of a web application:
>>>>
>>>> 30-Jun-2016 14:03:50.820 WARNING [http-apr-443-exec-12]
>>>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute Fail to save:
>>>> an error occurs while saving the package : The part /docProps/core.xml
>>>> fail to be saved in the stream with marshaller
>>>>
>>>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>>>> org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail
>>>> to save: an error occurs while saving the package : The part
>>>> /docProps/core.xml fail to be saved in the stream with marshaller
>>>>
>>>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>>>> at
>>>> org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:502)
>>>> at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1467)
>>>> at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:217)
>>>> at
>>>> org.primefaces.component.export.ExcelExporter.writeExcelToResponse(ExcelExporter.java:216)
>>>> ....
>>>> Caused by: org.apache.poi.openxml4j.exceptions.OpenXML4JException: The
>>>> part /docProps/core.xml fail to be saved in the stream with marshaller
>>>>
>>>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>>>> at
>>>> org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:482)
>>>> ... 90 more
>>>>
>>>>
>>>> I'm trying to investigate the issue, but as far as I see in
>>>>
>>>> https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java
>>>> ,
>>>> it swallows the root cause, on line 59 :-(
>>>>
>>>> Using POI 3.14 with Primefaces 6.0 on Tomcat 8.0.36 and JDK 1.8.0_92-b14
>>>>
>>>> Any clues on how to proceed?
>>>>
>>>> Thank you.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>>>> For additional commands, e-mail: user-help@poi.apache.org
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>> For additional commands, e-mail: user-help@poi.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Fail to save stream
Posted by Javen O'Neal <ja...@gmail.com>.
Andrei said:
> But I still think it would be nice for the root exception to be
> preserved, for future cases, to avoid guessing.
> Maybe I can convince the devs to update that line to include it.
A reasonable request.
I opened bug 59776 [1] to get this fixed.
I included the cause in the OpenXML4JException in r1750893 [2]. Let us
know (either here or on the bug) if this solves the swallowing
problem.
[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=59776
[2] https://svn.apache.org/viewvc?view=revision&revision=1750893
On Fri, Jul 1, 2016 at 1:46 AM, Andrei Ivanov <an...@gmail.com> wrote:
> Hi,
> I have a hunch that the http request just gets aborted/reset so the
> output stream just gets closed.
>
> But I still think it would be nice for the root exception to be
> preserved, for future cases, to avoid guessing.
>
> Maybe I can convince the devs to update that line to include it.
>
> Thank you.
>
> On Thu, Jun 30, 2016 at 9:05 PM, Dominik Stadler <do...@gmx.at> wrote:
>> Hi,
>>
>> If you can debug the application in an IDE you can set a breakpoint and
>> investigate the Exception or call "e.printStackTrace()" on it to get the
>> full details printed to stdout.
>>
>> A nother option might be to try to narrow down into a unit test to get a
>> better reproducer that shows the root cause more easily.
>>
>> If that is too much effort you might need to patch the class and add it to
>> the classpath of your J2EE App so that it prints out full details.
>>
>> Dominik.
>>
>>
>> On Thu, Jun 30, 2016 at 6:22 PM, Andrei Ivanov <an...@gmail.com>
>> wrote:
>>
>>> Hi,
>>> I'm getting some exceptions in the production logs of a web application:
>>>
>>> 30-Jun-2016 14:03:50.820 WARNING [http-apr-443-exec-12]
>>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute Fail to save:
>>> an error occurs while saving the package : The part /docProps/core.xml
>>> fail to be saved in the stream with marshaller
>>>
>>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>>> org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail
>>> to save: an error occurs while saving the package : The part
>>> /docProps/core.xml fail to be saved in the stream with marshaller
>>>
>>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>>> at
>>> org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:502)
>>> at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1467)
>>> at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:217)
>>> at
>>> org.primefaces.component.export.ExcelExporter.writeExcelToResponse(ExcelExporter.java:216)
>>> ....
>>> Caused by: org.apache.poi.openxml4j.exceptions.OpenXML4JException: The
>>> part /docProps/core.xml fail to be saved in the stream with marshaller
>>>
>>> org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@526becbb
>>> at
>>> org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:482)
>>> ... 90 more
>>>
>>>
>>> I'm trying to investigate the issue, but as far as I see in
>>>
>>> https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java
>>> ,
>>> it swallows the root cause, on line 59 :-(
>>>
>>> Using POI 3.14 with Primefaces 6.0 on Tomcat 8.0.36 and JDK 1.8.0_92-b14
>>>
>>> Any clues on how to proceed?
>>>
>>> Thank you.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>>> For additional commands, e-mail: user-help@poi.apache.org
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org