You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Cordenier Christophe <Ch...@atosorigin.com> on 2008/07/23 17:15:55 UTC

T5 : IOCModule and Wrong manifest file / Error detection

Hello All,

Tapestry fails to load the application if a Jar contains a corrupted Manifest file.

Here is the stacktrace :

java.lang.RuntimeException: invalid header field
      at org.apache.tapestry.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:86)
      at org.apache.tapestry.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:75)
      at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:72)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.io.IOException: invalid header field
      at java.util.jar.Attributes.read(Attributes.java:389)
      at java.util.jar.Manifest.read(Manifest.java:167)
      at java.util.jar.Manifest.<init>(Manifest.java:52)
      at org.apache.tapestry.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:98)
      at org.apache.tapestry.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:78)
      ... 20 more

In fact, it's better not to load the application because the corrupted Jar may be a Tapestry Module.
But, would it be possible to specify an explicit message that tells which Jar file is corrupted ?

Christophe.

________________________________

Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

Re: T5 : IOCModule and Wrong manifest file / Error detection

Posted by Howard Lewis Ship <hl...@gmail.com>.
Please add this as a bug in JIRA, we should be able to, at least,
include the URL of the Manifest file being read, which will likely
identify the JAR in question pretty clearly.

On Wed, Jul 23, 2008 at 8:15 AM, Cordenier Christophe
<Ch...@atosorigin.com> wrote:
> Hello All,
>
> Tapestry fails to load the application if a Jar contains a corrupted Manifest file.
>
> Here is the stacktrace :
>
> java.lang.RuntimeException: invalid header field
>      at org.apache.tapestry.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:86)
>      at org.apache.tapestry.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:75)
>      at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:72)
>      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
>      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
>      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
>      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
>      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      at java.lang.reflect.Method.invoke(Method.java:585)
>      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: java.io.IOException: invalid header field
>      at java.util.jar.Attributes.read(Attributes.java:389)
>      at java.util.jar.Manifest.read(Manifest.java:167)
>      at java.util.jar.Manifest.<init>(Manifest.java:52)
>      at org.apache.tapestry.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:98)
>      at org.apache.tapestry.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:78)
>      ... 20 more
>
> In fact, it's better not to load the application because the corrupted Jar may be a Tapestry Module.
> But, would it be possible to specify an explicit message that tells which Jar file is corrupted ?
>
> Christophe.
>
> ________________________________
>
> Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
>
> This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org