java.lang.IllegalArgumentException: Illegal group reference

JIRA | Brad Tofel | 7 years ago
  1. 0

    Example stacktrace: SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalArgumentException: Illegal group reference at java.util.regex.Matcher.appendReplacement(Matcher.java:713) at org.archive.wayback.archivalurl.ArchivalUrlJSReplayRenderer.updatePage(ArchivalUrlJSReplayRenderer.java:83) at org.archive.wayback.replay.TextReplayRenderer.renderResource(TextReplayRenderer.java:87) at org.archive.wayback.webapp.AccessPoint.handleReplay(AccessPoint.java:438) at org.archive.wayback.webapp.AccessPoint.handleRequest(AccessPoint.java:398) at org.archive.wayback.webapp.RequestFilter.handle(RequestFilter.java:112) at org.archive.wayback.webapp.RequestFilter.doFilter(RequestFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) The problem seems to be with the http:// pattern. Now it assumes an http:// will be followed by a hostname and then another slash. This is not always the case.

    JIRA | 7 years ago | Brad Tofel
    java.lang.IllegalArgumentException: Illegal group reference
  2. 0

    Example stacktrace: SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalArgumentException: Illegal group reference at java.util.regex.Matcher.appendReplacement(Matcher.java:713) at org.archive.wayback.archivalurl.ArchivalUrlJSReplayRenderer.updatePage(ArchivalUrlJSReplayRenderer.java:83) at org.archive.wayback.replay.TextReplayRenderer.renderResource(TextReplayRenderer.java:87) at org.archive.wayback.webapp.AccessPoint.handleReplay(AccessPoint.java:438) at org.archive.wayback.webapp.AccessPoint.handleRequest(AccessPoint.java:398) at org.archive.wayback.webapp.RequestFilter.handle(RequestFilter.java:112) at org.archive.wayback.webapp.RequestFilter.doFilter(RequestFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) The problem seems to be with the http:// pattern. Now it assumes an http:// will be followed by a hostname and then another slash. This is not always the case.

    JIRA | 7 years ago | Brad Tofel
    java.lang.IllegalArgumentException: Illegal group reference
  3. 0

    Illegal group reference in PackageMojo

    GitHub | 4 years ago | yegor256
    java.lang.IllegalArgumentException: Illegal group reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with org.tuckey.web.filters.urlrewrite and tomcat 5.5

    Stack Overflow | 5 years ago | gvaldez
    java.lang.IllegalArgumentException: Illegal group reference
  6. 0

    Why is there an java.lang.IllegalArgumentException?

    Stack Overflow | 3 years ago | user2825125
    java.lang.IllegalArgumentException: Illegal group reference

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Illegal group reference

      at java.util.regex.Matcher.appendReplacement()
    2. Java RT
      Matcher.appendReplacement
      1. java.util.regex.Matcher.appendReplacement(Matcher.java:713)
      1 frame
    3. OpenWayback Core Java Classes
      RequestFilter.doFilter
      1. org.archive.wayback.archivalurl.ArchivalUrlJSReplayRenderer.updatePage(ArchivalUrlJSReplayRenderer.java:83)
      2. org.archive.wayback.replay.TextReplayRenderer.renderResource(TextReplayRenderer.java:87)
      3. org.archive.wayback.webapp.AccessPoint.handleReplay(AccessPoint.java:438)
      4. org.archive.wayback.webapp.AccessPoint.handleRequest(AccessPoint.java:398)
      5. org.archive.wayback.webapp.RequestFilter.handle(RequestFilter.java:112)
      6. org.archive.wayback.webapp.RequestFilter.doFilter(RequestFilter.java:88)
      6 frames
    4. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    5. org.netbeans.modules
      MonitorFilter.doFilter
      1. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
      1 frame
    6. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      8 frames
    7. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      3 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame