oxf:zip problems

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

oxf:zip problems

Mats Eklund-2

Hi,

I get an error when using the zip processor saying: "ZIP file must have at least one entry".

Below my code:

  <p:processor name="oxf:zip">
  <p:input name="data">
  <files>
  <file name="file1.txt" size="123" dateTime="2007-09-11T18:23:04">file:/C:/test.txt</file>
  </files>
  </p:input>
  <p:output name="data" id="zip"/>
  </p:processor>

Thanks for any help,

Mats




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: oxf:zip problems

Alessandro  Vernet
Administrator
Mats,

On Wed, Oct 14, 2009 at 2:19 PM, Mats Eklund <[hidden email]> wrote:

> I get an error when using the zip processor saying: "ZIP file must have at least one entry".
>
> Below my code:
>
>   <p:processor name="oxf:zip">
>   <p:input name="data">
>   <files>
>   <file name="file1.txt" size="123" dateTime="2007-09-11T18:23:04">file:/C:/test.txt</file>
>   </files>
>   </p:input>
>   <p:output name="data" id="zip"/>
>   </p:processor>
This seems correct to me. Could you paste here the first 10 or 20
lines of the corresponding exception your get in the orbeon.log?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: oxf:zip problems

Mats Eklund-2
Below the exception. I also would like to know what is the function of the "size" attribute on the file tag.
 

Orbeon Forms Error

Type class java.util.zip.ZipException
Message ZIP file must have at least one entry
Location oxf:/resources/registrants.xlsx.xpl
Line 64
Column 37
Stack Trace
java.util.zip.ZipException: ZIP file must have at least one entry
	at java.util.zip.ZipOutputStream.finish(Unknown Source)
	at java.util.zip.DeflaterOutputStream.close(Unknown Source)
	at java.util.zip.ZipOutputStream.close(Unknown Source)
	at org.orbeon.oxf.processor.zip.ZipProcessor$1.readImpl(ZipProcessor.java:87)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.serializer.HttpSerializer.readInput(HttpSerializer.java:42)
	at org.orbeon.oxf.processor.serializer.HttpSerializerBase$1.read(HttpSerializerBase.java:141)
	at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:459)
	at org.orbeon.oxf.processor.serializer.HttpSerializerBase.start(HttpSerializerBase.java:132)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.getInput(PipelineProcessor.java:138)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:87)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1$1.run(PipelineProcessor.java:94)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:92)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:126)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput$1.run(PipelineProcessor.java:567)
	at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java:544)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(PipelineProcessor.java:64)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.readImpl(PipelineProcessor.java:563)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
	at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:358)
	at org.orbeon.oxf.processor.NullSerializer.start(NullSerializer.java:31)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
	at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:245)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor$5.run(PipelineProcessor.java:647)
	at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:528)
	at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:644)
	at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:495)
	at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:90)
	at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96)
	at org.orbeon.oxf.servlet.OrbeonServletDelegate.service(OrbeonServletDelegate.java:138)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at moe.revproxyauthfilter.RPAFilter.doFilter(RPAFilter.java:48)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Unknown Source)


--- On Thu, 10/15/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: oxf:zip problems
To: [hidden email]
Date: Thursday, October 15, 2009, 10:01 AM

Mats,

On Wed, Oct 14, 2009 at 2:19 PM, Mats Eklund <mats.eklund@...> wrote:

> I get an error when using the zip processor saying: "ZIP file must have at least one entry".
>
> Below my code:
>
>   <p:processor name="oxf:zip">
>   <p:input name="data">
>   <files>
>   <file name="file1.txt" size="123" dateTime="2007-09-11T18:23:04">file:/C:/test.txt</file>
>   </files>
>   </p:input>
>   <p:output name="data" id="zip"/>
>   </p:processor>

This seems correct to me. Could you paste here the first 10 or 20
lines of the corresponding exception your get in the orbeon.log?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: oxf:zip problems

Alessandro  Vernet
Administrator
Mats,

On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <[hidden email]> wrote:
> Below the exception.

Thanks. Looking at the code, it is as if the ZipProcessor didn't find
any <file> element in the config, but I see you have one the "data"
input, and it looks fine. Could you share with us a simple "app" that
reproduces the problem and that I could run here?

> I also would like to know what is the function of the "size" attribute on the file tag.

The "size" and "dataTime" attributes are only used by the
UnzipProcessor. Yes, the documentation was confusion or even
incorrect; I updated it for this:

http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: oxf:zip problems

Mats Eklund-2
Alex,
 
thanks for clarifying the "size" attribute etc.
 
Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them?
 
page-flow.xml
----------------------------------------
  <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/>
</config>
 
spreadsheet.xlsx.xpl
----------------------------------------
<p:config
  xmlns:p="http://www.orbeon.com/oxf/pipeline"
  xmlns:oxf="http://www.orbeon.com/oxf/processors">
   
  <p:processor name="oxf:zip">
    <p:input name="data">
      <files>
        <file name="file1.txt">page-flow.xml</file>
      </files>
    </p:input>
    <p:output name="data" id="zip"/>
  </p:processor>
 
  <p:processor name="oxf:http-serializer">
    <p:input name="config">
      <config>
        <content-type>application/zip</content-type>
        <header>
          <name>Content-Disposition</name>
          <value>attachment; filename=my.zip</value>
        </header>
      </config>
    </p:input>
    <p:input name="data" href="#zip"/>
  </p:processor>
 
</p:config>


--- On Thu, 10/15/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Thursday, October 15, 2009, 11:38 PM

Mats,

On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <mats.eklund@...> wrote:
> Below the exception.

Thanks. Looking at the code, it is as if the ZipProcessor didn't find
any <file> element in the config, but I see you have one the "data"
input, and it looks fine. Could you share with us a simple "app" that
reproduces the problem and that I could run here?

> I also would like to know what is the function of the "size" attribute on the file tag.

The "size" and "dataTime" attributes are only used by the
UnzipProcessor. Yes, the documentation was confusion or even
incorrect; I updated it for this:

http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: oxf:zip problems

Mats Eklund-2
Any progress on this one?

--- On Fri, 10/16/09, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Friday, October 16, 2009, 11:30 AM

Alex,
 
thanks for clarifying the "size" attribute etc.
 
Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them?
 
page-flow.xml
----------------------------------------
  <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/>
</config>
 
spreadsheet.xlsx.xpl
----------------------------------------
<p:config
  xmlns:p="http://www.orbeon.com/oxf/pipeline"
  xmlns:oxf="http://www.orbeon.com/oxf/processors">
   
  <p:processor name="oxf:zip">
    <p:input name="data">
      <files>
        <file name="file1.txt">page-flow.xml</file>
      </files>
    </p:input>
    <p:output name="data" id="zip"/>
  </p:processor>
 
  <p:processor name="oxf:http-serializer">
    <p:input name="config">
      <config>
        <content-type>application/zip</content-type>
        <header>
          <name>Content-Disposition</name>
          <value>attachment; filename=my.zip</value>
        </header>
      </config>
    </p:input>
    <p:input name="data" href="#zip"/>
  </p:processor>
 
</p:config>


--- On Thu, 10/15/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Thursday, October 15, 2009, 11:38 PM

Mats,

On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <mats.eklund@...> wrote:
> Below the exception.

Thanks. Looking at the code, it is as if the ZipProcessor didn't find
any <file> element in the config, but I see you have one the "data"
input, and it looks fine. Could you share with us a simple "app" that
reproduces the problem and that I could run here?

> I also would like to know what is the function of the "size" attribute on the file tag.

The "size" and "dataTime" attributes are only used by the
UnzipProcessor. Yes, the documentation was confusion or even
incorrect; I updated it for this:

http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: oxf:zip problems

Mats Eklund-2
In reply to this post by Mats Eklund-2

Alex,

I have attached a simple application that reproduces the error. 

Thanks for your help!

Mats


--- On Mon, 10/19/09, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] Re: Re: Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Monday, October 19, 2009, 9:22 AM

Any progress on this one?

--- On Fri, 10/16/09, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Friday, October 16, 2009, 11:30 AM

Alex,
 
thanks for clarifying the "size" attribute etc.
 
Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them?
 
page-flow.xml
----------------------------------------
  <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/>
</config>
 
spreadsheet.xlsx.xpl
----------------------------------------
<p:config
  xmlns:p="http://www.orbeon.com/oxf/pipeline"
  xmlns:oxf="http://www.orbeon.com/oxf/processors">
   
  <p:processor name="oxf:zip">
    <p:input name="data">
      <files>
        <file name="file1.txt">page-flow.xml</file>
      </files>
    </p:input>
    <p:output name="data" id="zip"/>
  </p:processor>
 
  <p:processor name="oxf:http-serializer">
    <p:input name="config">
      <config>
        <content-type>application/zip</content-type>
        <header>
          <name>Content-Disposition</name>
          <value>attachment; filename=my.zip</value>
        </header>
      </config>
    </p:input>
    <p:input name="data" href="#zip"/>
  </p:processor>
 
</p:config>


--- On Thu, 10/15/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Thursday, October 15, 2009, 11:38 PM

Mats,

On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <mats.eklund@...> wrote:
> Below the exception.

Thanks. Looking at the code, it is as if the ZipProcessor didn't find
any <file> element in the config, but I see you have one the "data"
input, and it looks fine. Could you share with us a simple "app" that
reproduces the problem and that I could run here?

> I also would like to know what is the function of the "size" attribute on the file tag.

The "size" and "dataTime" attributes are only used by the
UnzipProcessor. Yes, the documentation was confusion or even
incorrect; I updated it for this:

http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

issue-2.zip (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: oxf:zip problems

Alessandro  Vernet
Administrator
Mats,

Thank you for the easily reproducible test case! This is now fixed and
will be in the next nightly build. You'll let me know if it works for
you.

http://forge.ow2.org/tracker/index.php?func=detail&aid=314413&group_id=168&atid=350207

Alex

On Thu, Oct 22, 2009 at 12:18 PM, Mats Eklund <[hidden email]> wrote:

>
> Alex,
>
> I have attached a simple application that reproduces the error.
>
> Thanks for your help!
>
> Mats
>
> --- On Mon, 10/19/09, Mats Eklund <[hidden email]> wrote:
>
> From: Mats Eklund <[hidden email]>
> Subject: [ops-users] Re: Re: Re: Re: Re: oxf:zip problems
> To: [hidden email]
> Date: Monday, October 19, 2009, 9:22 AM
>
> Any progress on this one?
>
> --- On Fri, 10/16/09, Mats Eklund <[hidden email]> wrote:
>
> From: Mats Eklund <[hidden email]>
> Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems
> To: [hidden email]
> Date: Friday, October 16, 2009, 11:30 AM
>
> Alex,
>
> thanks for clarifying the "size" attribute etc.
>
> Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them?
>
> page-flow.xml
> ----------------------------------------
> <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors">
>   <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/>
> </config>
>
> spreadsheet.xlsx.xpl
> ----------------------------------------
> <p:config
>   xmlns:p="http://www.orbeon.com/oxf/pipeline"
>   xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>   <p:processor name="oxf:zip">
>     <p:input name="data">
>       <files>
>         <file name="file1.txt">page-flow.xml</file>
>       </files>
>     </p:input>
>     <p:output name="data" id="zip"/>
>   </p:processor>
>
>   <p:processor name="oxf:http-serializer">
>     <p:input name="config">
>       <config>
>         <content-type>application/zip</content-type>
>         <header>
>           <name>Content-Disposition</name>
>           <value>attachment; filename=my.zip</value>
>         </header>
>       </config>
>     </p:input>
>     <p:input name="data" href="#zip"/>
>   </p:processor>
>
> </p:config>
>
> --- On Thu, 10/15/09, Alessandro Vernet <[hidden email]> wrote:
>
> From: Alessandro Vernet <[hidden email]>
> Subject: [ops-users] Re: Re: Re: oxf:zip problems
> To: [hidden email]
> Date: Thursday, October 15, 2009, 11:38 PM
>
> Mats,
>
> On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <[hidden email]> wrote:
> > Below the exception.
>
> Thanks. Looking at the code, it is as if the ZipProcessor didn't find
> any <file> element in the config, but I see you have one the "data"
> input, and it looks fine. Could you share with us a simple "app" that
> reproduces the problem and that I could run here?
>
> > I also would like to know what is the function of the "size" attribute on the file tag.
>
> The "size" and "dataTime" attributes are only used by the
> UnzipProcessor. Yes, the documentation was confusion or even
> incorrect; I updated it for this:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip
>
> Alex
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> My Twitter: http://twitter.com/avernet
>
> -----Inline Attachment Follows-----
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
> -----Inline Attachment Follows-----
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
> -----Inline Attachment Follows-----
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: oxf:zip problems

Mats Eklund-2

Excellent, thanks it works now!

/Mats


--- On Sat, 10/24/09, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: oxf:zip problems
To: [hidden email]
Date: Saturday, October 24, 2009, 2:19 AM

Mats,

Thank you for the easily reproducible test case! This is now fixed and
will be in the next nightly build. You'll let me know if it works for
you.

http://forge.ow2.org/tracker/index.php?func=detail&aid=314413&group_id=168&atid=350207

Alex

On Thu, Oct 22, 2009 at 12:18 PM, Mats Eklund <mats.eklund@...> wrote:

>
> Alex,
>
> I have attached a simple application that reproduces the error.
>
> Thanks for your help!
>
> Mats
>
> --- On Mon, 10/19/09, Mats Eklund <mats.eklund@...> wrote:
>
> From: Mats Eklund <mats.eklund@...>
> Subject: [ops-users] Re: Re: Re: Re: Re: oxf:zip problems
> To: ops-users@...
> Date: Monday, October 19, 2009, 9:22 AM
>
> Any progress on this one?
>
> --- On Fri, 10/16/09, Mats Eklund <mats.eklund@...> wrote:
>
> From: Mats Eklund <mats.eklund@...>
> Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems
> To: ops-users@...
> Date: Friday, October 16, 2009, 11:30 AM
>
> Alex,
>
> thanks for clarifying the "size" attribute etc.
>
> Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them?
>
> page-flow.xml
> ----------------------------------------
> <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors">
>   <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/>
> </config>
>
> spreadsheet.xlsx.xpl
> ----------------------------------------
> <p:config
>   xmlns:p="http://www.orbeon.com/oxf/pipeline"
>   xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>   <p:processor name="oxf:zip">
>     <p:input name="data">
>       <files>
>         <file name="file1.txt">page-flow.xml</file>
>       </files>
>     </p:input>
>     <p:output name="data" id="zip"/>
>   </p:processor>
>
>   <p:processor name="oxf:http-serializer">
>     <p:input name="config">
>       <config>
>         <content-type>application/zip</content-type>
>         <header>
>           <name>Content-Disposition</name>
>           <value>attachment; filename=my.zip</value>
>         </header>
>       </config>
>     </p:input>
>     <p:input name="data" href="#zip"/>
>   </p:processor>
>
> </p:config>
>
> --- On Thu, 10/15/09, Alessandro Vernet <avernet@...> wrote:
>
> From: Alessandro Vernet <avernet@...>
> Subject: [ops-users] Re: Re: Re: oxf:zip problems
> To: ops-users@...
> Date: Thursday, October 15, 2009, 11:38 PM
>
> Mats,
>
> On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <mats.eklund@...> wrote:
> > Below the exception.
>
> Thanks. Looking at the code, it is as if the ZipProcessor didn't find
> any <file> element in the config, but I see you have one the "data"
> input, and it looks fine. Could you share with us a simple "app" that
> reproduces the problem and that I could run here?
>
> > I also would like to know what is the function of the "size" attribute on the file tag.
>
> The "size" and "dataTime" attributes are only used by the
> UnzipProcessor. Yes, the documentation was confusion or even
> incorrect; I updated it for this:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/processors-zip-unzip
>
> Alex
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> My Twitter: http://twitter.com/avernet
>
> -----Inline Attachment Follows-----
>
>
> --
> You receive this message as a subscriber of the ops-users@... mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
> -----Inline Attachment Follows-----
>
>
> --
> You receive this message as a subscriber of the ops-users@... mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
> -----Inline Attachment Follows-----
>
>
> --
> You receive this message as a subscriber of the ops-users@... mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
>
> --
> You receive this message as a subscriber of the ops-users@... mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet

-----Inline Attachment Follows-----


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: oxf:zip problems

Alessandro  Vernet
Administrator
Mats,

My pleasure, and thank you for confirming this works for you.

Alex

On Saturday, October 31, 2009, Mats Eklund <[hidden email]> wrote:

> Excellent, thanks it works now! /Mats
>
> --- On Sat, 10/24/09, Alessandro Vernet <[hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>> wrote:
>
> From: Alessandro Vernet <[hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>>
> Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: oxf:zip problems
> To: [hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>
> Date: Saturday, October 24, 2009, 2:19 AM
>
> Mats,
>
> Thank you for the easily reproducible test case! This is now fixed and
> will be in the next nightly build. You'll let me know if it works for
> you.
>
> http://forge.ow2.org/tracker/index.php?func=detail&aid=314413&group_id=168&atid=350207
>
> Alex
>
> On Thu, Oct 22, 2009 at 12:18 PM, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote:
>>
>> Alex,
>>
>> I have attached a simple application that reproduces the error.
>>
>> Thanks for your help!
>>
>> Mats
>>
>> --- On Mon, 10/19/09, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote:
>>
>> From: Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>>
>> Subject: [ops-users] Re: Re: Re: Re: Re: oxf:zip problems
>> To: [hidden email] <http://mc/compose?to=ops-users@...>
>> Date: Monday, October 19, 2009, 9:22 AM
>>
>> Any progress on this one?
>>
>> --- On Fri, 10/16/09, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote:
>>
>> From: Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>>
>> Subject: [ops-users] Re: Re: Re: Re: oxf:zip problems
>> To: [hidden email] <http://mc/compose?to=ops-users@...>
>> Date: Friday, October 16, 2009, 11:30 AM
>>
>> Alex,
>>
>> thanks for clarifying the "size" attribute etc.
>>
>> Below the code for a simple app for reproducing the problem with the crashing zip processor. I have tried different URL's/paths, but can't get it to work. By
>  the way, in the end what I want to do is to zip a few xml documents which are generated on the fly (not necessarily residing on the file system). Do I need to save them to files first in order to zip them?
>>
>> page-flow.xml
>> ----------------------------------------
>> <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>   <page path-info="/spreadsheet.xlsx" model="spreadsheet.xlsx.xpl"/>
>> </config>
>>
>> spreadsheet.xlsx.xpl
>> ----------------------------------------
>> <p:config
>>   xmlns:p="http://www.orbeon.com/oxf/pipeline"
>>   xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>
>>   <p:processor name="oxf:zip">
>>     <p:input name="data">
>>       <files>
>>         <file name="file1.txt">page-flow.xml</file>
>>       </files>
>>     </p:input>
>>     <p:output name="data" id="zip"/>
>>   </p:processor>
>>
>>   <p:processor name="oxf:http-serializer">
>>     <p:input name="config">
>>       <config>
>>         <content-type>application/zip</content-type>
>>         <header>
>>           <name>Content-Disposition</name>
>>           <value>attachment; filename=my.zip</value>
>>         </header>
>>       </config>
>>     </p:input>
>>
>  <p:input name="data" href="#zip"/>
>>   </p:processor>
>>
>> </p:config>
>>
>> --- On Thu, 10/15/09, Alessandro Vernet <[hidden email] <http://mc/compose?to=avernet@...>> wrote:
>>
>> From: Alessandro Vernet <[hidden email] <http://mc/compose?to=avernet@...>>
>> Subject: [ops-users] Re: Re: Re: oxf:zip problems
>> To: [hidden email] <http://mc/compose?to=ops-users@...>
>> Date: Thursday, October 15, 2009, 11:38 PM
>>
>> Mats,
>>
>> On Thu, Oct 15, 2009 at 4:22 AM, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote:
>> > Below the exception.
>>
>> Thanks. Looking at the code, it is as if the
>  ZipProcessor didn't find
>> any <file> element in the config, but I see you have one the
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet