Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1373

[ASF BZ 62263] NPE when using RemoteIpValve

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.2.0.DR1
    • 5.0.2.GA, 5.1.0.GA
    • tomcat
    • None
    • 8
    • +
      • Add RemoteIpValve in server.xml
      • Delete ROOT webapp
      • Start JWS
      • Make a request to context root or any other not present context

      JWS with RemoteIpValve enabled throws NPE:

      SEVERE [http-nio-8080-exec-1] org.apache.coyote.http11.Http11Processor.service Error processing request
       java.lang.NullPointerException
      	at org.apache.catalina.connector.Request.notifyAttributeAssigned(Request.java:1525)
      	at org.apache.catalina.connector.Request.setAttribute(Request.java:1511)
      	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:665)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:414)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

        1. server.xml
          7 kB
          Àngel Ollé Blázquez

              rhn-support-csutherl Coty Sutherland
              aollebla@redhat.com Àngel Ollé Blázquez
              Adam Krajcik Adam Krajcik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: