java.net.URL: method getPath()Ljava/lang/String; not found at TestServlet.doGet(Compiled Code)

Oracle Community | 807567 | 2 decades ago
  1. 0

    Following code fails to work in iPlanet VM: String path=new URL(address).getPath(); what should I do?

    Oracle Community | 2 decades ago | 807567
    java.net.URL: method getPath()Ljava/lang/String; not found at TestServlet.doGet(Compiled Code)

    Root Cause Analysis

    1. java.net.URL

      method getPath()Ljava/lang/String; not found at TestServlet.doGet(Compiled Code)

      at javax.servlet.http.HttpServlet.service()
    2. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2 frames
    3. com.iplanet.server
      NSServletRunner.Service
      1. com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:891)
      2. com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:458)
      2 frames