Catch Exceptions

Splash Forums Rewrite Users Catch Exceptions

This topic contains 0 replies, has 1 voice, and was last updated by  defuchs 8 years, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #25638

    defuchs
    Participant

    We get from time to time these exceptions:

    java.net.URISyntaxException: Illegal character in path at index 16: http://0.0.0.0//{{avatarUrl}}
    at java.net.URI$Parser.fail(URI.java:2829)
    at java.net.URI$Parser.checkChars(URI.java:3002)
    at java.net.URI$Parser.parseHierarchical(URI.java:3086)
    at java.net.URI$Parser.parse(URI.java:3034)
    at java.net.URI.<init>(URI.java:595)
    at org.ocpsoft.urlbuilder.util.Decoder.path(Decoder.java:14)
    at org.ocpsoft.urlbuilder.AddressBuilder.pathEncoded(AddressBuilder.java:147)
    at org.ocpsoft.urlbuilder.AddressBuilderPort.pathEncoded(AddressBuilderPort.java:54)
    at org.ocpsoft.rewrite.servlet.impl.BaseHttpRewrite.getInboundAddress(BaseHttpRewrite.java:81)
    at org.ocpsoft.rewrite.servlet.config.Path.evaluateHttp(Path.java:119)
    at org.ocpsoft.rewrite.servlet.config.HttpCondition.evaluate(HttpCondition.java:44)
    at org.ocpsoft.rewrite.servlet.config.rule.Join.evaluate(Join.java:198)
    at org.ocpsoft.rewrite.config.And.evaluate(And.java:77)
    at org.ocpsoft.rewrite.config.RuleBuilder.evaluate(RuleBuilder.java:129)
    at org.ocpsoft.rewrite.config.And.evaluate(And.java:77)
    at org.ocpsoft.rewrite.config.RuleBuilder.evaluate(RuleBuilder.java:129)
    at org.ocpsoft.rewrite.servlet.impl.DefaultHttpRewriteProvider.rewriteHttp(DefaultHttpRewriteProvider.java:165)
    at org.ocpsoft.rewrite.servlet.http.HttpRewriteProvider.rewrite(HttpRewriteProvider.java:43)
    at org.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(RewriteFilter.java:242)
    at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:188)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.doodle.np.rest.EnvironmentResetFilter.doFilter(EnvironmentResetFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.doodle.util.SuendenPfuhlFilter.doFilter(SuendenPfuhlFilter.java:74)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.doodle.mongodb.cache.DocumentsCacheFilter.doFilter(DocumentsCacheFilter.java:38)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

    I know that these URLs do not look good, but since reality is, that browsers do whatever they like there will always be some weird calls to our servers with weird header etc.

    This question is not about this one bug/weird behaviour, but more about: can I suppress exceptions or catch them at a certain place to not be thrown (and polluting our logs) ?

Viewing 1 post (of 1 total)

The forum ‘Rewrite Users’ is closed to new topics and replies.

Comments are closed.