archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Véret" <antoine.ve...@gmail.com>
Subject Re: Missing Files results in a "HTTP ERROR: 500" instead of a 404
Date Thu, 08 Feb 2007 15:49:31 GMT
Hi, i met the same problem, you will find a patch in attatchment which
resolve this issue.
The patch catch all ResourceDoesNotExistException in the ProxiedDavServer
class.

Bye

On 2/8/07, Marc Wilhelm <marc.wilhelm@futureaspects.org> wrote:
>
>
> Hi All,
>
> I've installed the latest version of archiva from svn trunk. Further i
> have
> setup a local repo "releases" and a proxy "central" which works fine as
> long
> as all request files are available at ibiblio (central). But when i try to
> retrieve a non existing file a got a HTTP 500 error instead of a HTTP 404
> (regardless the settings of "Cache Failures" and "Fail Whole Group" from
> the
> proxy repo).
>
> I've tried this via "mvn jetty:run" and via plexus runtime, but both cases
> results in a HTTP 500 (see output below).
>
> What must i do or which version of archiva could i use to fix this
> problem?
>
> Marc
>
> _____________________________
> Marc Wilhelm
> FutureAspects - make the IT-future yours!
> Westwall 41
> 41379 Brüggen
> Tel: +49 (2157) 128 737
> Fax: +49 (2157) 128 739
> Mobil: +49 (170) 2906 334
> eMail:Marc.Wilhelm@FutureAspects.de
> ______________________________
>
>
> HTTP ERROR: 500
>
> Could not find
> /org/jacorb/jacorb-idl-compiler/2.2.4/jacorb-idl-compiler-2.2.4.pom in any
> of the repositories.
>
>
> RequestURI=/archiva/repository/releases/org/jacorb/jacorb-idl-compiler/2.2.4
> /jacorb-idl-compiler-2.2.4.pom
> Caused by:
>
> org.apache.maven.wagon.ResourceDoesNotExistException: Could not find
> /org/jacorb/jacorb-idl-compiler/2.2.4/jacorb-idl-compiler-2.2.4.pom in any
> of the repositories.
>         at
> org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get
> (DefaultProxyRe
> questHandler.java:215)
>         at
> org.apache.maven.archiva.proxy.DefaultProxyRequestHandler.get
> (DefaultProxyRe
> questHandler.java:116)
>         at
>
> org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromPro
> xies(ProxiedDavServer.java:165)
>         at
> org.apache.maven.archiva.web.repository.ProxiedDavServer.process
> (ProxiedDavS
> erver.java:153)
>         at
>
> org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.serv
> ice(MultiplexedWebDavServlet.java:111)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
>         at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler
> .java:1074)
>         at
> com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter
> (FilterDispatch
> er.java:189)
>         at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler
> .java:1065)
>         at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> PageFilter.java:
> 39)
>         at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler
> .java:1065)
>         at
> com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter
> (ActionCont
> extCleanUp.java:88)
>         at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler
> .java:1065)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :185)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle
> (ContextHandlerColl
> ection.java:146)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java
> :11
> 4)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
> (HttpConnectio
> n.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java
> :209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
> :357)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java
> :329)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
> :4
> 75)
>
>
>

-- 
Antoine Véret

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message