java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'

ICEsoft JIRA Issue Tracker | Carmen Cristurean | 2 years ago
  1. 0

    showcase-portlet: AutoComplete Custom Facet In IE11 and Firefox34, NPE and other errors are seen in server terminal window when typing a character in the autocomplete entry; also, in IE11 when the autoCompleteEntry component opens up, there are missing files, see screen shot. The server errors cannot be found in server logs. > In FF34, there is a browser console error: > "NetworkError: 404 Not Found - http://localhost:8080/web/guest/resources/css/images/house.png” Server errors: 20:02:04,188 ERROR [http-bio-8080-exec-29][LiferayMethodExceptionEventHandler:34] java.lang.NullPointerException java.lang.NullPointerException at java.io.Writer.write(Writer.java:157) at com.liferay.portal.kernel.util.StringBundler.writeTo(StringBundler.java:310) at org.apache.jsp.html.common.themes.top_005fhead_jsp._jspService(top_005fhead_jsp.java:2052) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57) at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78) at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53) at com.liferay.taglib.util.VelocityTaglibImpl.include(VelocityTaglibImpl.java:643) at sun.reflect.GeneratedMethodAccessor319.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) ……………… 16:55:51,016 ERROR [BaseURLEncodedStringImpl:57] URL path must start with a '/' or include '://' java.lang.IllegalArgumentException: URL path must start with a '/' or include '://' at com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314) at com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStri ngImpl.java:54) at com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:13 9) at com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImp l.java:138) at com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1407) at com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChi ldren(AutoCompleteEntryRenderer.java:606) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoC ompleteEntryRenderer.java:407) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCom pleteEntryRenderer.java:357) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoC ompleteEntryRenderer.java:347) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCo mpleteEntryRenderer.java:233) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:864) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.render.Renderer.encodeChildren(Renderer.java:176) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'
  2. 0

    showcase-portlet: AutoComplete Custom Facet In IE11 and Firefox34, NPE and other errors are seen in server terminal window when typing a character in the autocomplete entry; also, in IE11 when the autoCompleteEntry component opens up, there are missing files, see screen shot. The server errors cannot be found in server logs. > In FF34, there is a browser console error: > "NetworkError: 404 Not Found - http://localhost:8080/web/guest/resources/css/images/house.png” Server errors: 20:02:04,188 ERROR [http-bio-8080-exec-29][LiferayMethodExceptionEventHandler:34] java.lang.NullPointerException java.lang.NullPointerException at java.io.Writer.write(Writer.java:157) at com.liferay.portal.kernel.util.StringBundler.writeTo(StringBundler.java:310) at org.apache.jsp.html.common.themes.top_005fhead_jsp._jspService(top_005fhead_jsp.java:2052) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57) at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78) at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53) at com.liferay.taglib.util.VelocityTaglibImpl.include(VelocityTaglibImpl.java:643) at sun.reflect.GeneratedMethodAccessor319.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) ……………… 16:55:51,016 ERROR [BaseURLEncodedStringImpl:57] URL path must start with a '/' or include '://' java.lang.IllegalArgumentException: URL path must start with a '/' or include '://' at com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314) at com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStri ngImpl.java:54) at com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:13 9) at com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImp l.java:138) at com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1407) at com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChi ldren(AutoCompleteEntryRenderer.java:606) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoC ompleteEntryRenderer.java:407) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCom pleteEntryRenderer.java:357) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoC ompleteEntryRenderer.java:347) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCo mpleteEntryRenderer.java:233) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:864) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856) at javax.faces.render.Renderer.encodeChildren(Renderer.java:176) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'
  3. 0

    Showcase-portlet -> AutocompleteEntry > Custom Facet The demo is functional, however there are server errors when typing a letter in the component. Also, the images are missing on the opening drop-down. 17:18:55,177 ERROR [BaseURLEncodedStringImpl:57] URL path must start with a '/' or include '://' java.lang.IllegalArgumentException: URL path must start with a '/' or include '://' at com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314) at com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStri ngImpl.java:54) at com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:13 9) at com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImp l.java:153) at com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1359) at com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChi ldren(AutoCompleteEntryRenderer.java:585) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoC ompleteEntryRenderer.java:386) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCom pleteEntryRenderer.java:336) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoC ompleteEntryRenderer.java:326) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCo mpleteEntryRenderer.java:217) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:41) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:82) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:70) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:257) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:137) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:75) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) ..............

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Showcase-portlet -> AutocompleteEntry > Custom Facet The demo is functional, however there are server errors when typing a letter in the component. Also, the images are missing on the opening drop-down. 17:18:55,177 ERROR [BaseURLEncodedStringImpl:57] URL path must start with a '/' or include '://' java.lang.IllegalArgumentException: URL path must start with a '/' or include '://' at com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314) at com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStri ngImpl.java:54) at com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:13 9) at com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImp l.java:153) at com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1359) at com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChi ldren(AutoCompleteEntryRenderer.java:585) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoC ompleteEntryRenderer.java:386) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCom pleteEntryRenderer.java:336) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoC ompleteEntryRenderer.java:326) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCo mpleteEntryRenderer.java:217) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:41) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:82) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:70) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:257) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:137) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:75) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) ..............

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'
  6. 0

    [FACES-2111] Error on encodeURL - Liferay Issues

    liferay.com | 12 months ago
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'

    2 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

      URL path must start with a '/' or include '://'

      at com.liferay.portlet.PortletResponseImpl.encodeURL()
    2. Liferay Portal Service
      PortletResponseImpl.encodeURL
      1. com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314)
      1 frame
    3. Liferay Faces Bridge
      ExternalContextImpl.encodeResourceURL
      1. com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStringImpl.java:54)
      2. com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:139)
      3. com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImpl.java:138)
      3 frames
    4. JSF
      ImageRenderer.encodeEnd
      1. com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1407)
      2. com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96)
      2 frames
    5. JavaEE 7
      UIComponentBase.encodeEnd
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
      1 frame
    6. JSF
      GridRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312)
      2. com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185)
      3. com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129)
      3 frames
    7. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
      1 frame
    8. org.icefaces.ace
      AutoCompleteEntryRenderer.encodeBegin
      1. org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChildren(AutoCompleteEntryRenderer.java:606)
      2. org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoCompleteEntryRenderer.java:407)
      3. org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCompleteEntryRenderer.java:357)
      4. org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoCompleteEntryRenderer.java:347)
      5. org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCompleteEntryRenderer.java:233)
      5 frames
    9. JavaEE 7
      UIComponentBase.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:864)
      1 frame
    10. JSF
      GridRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
      2. com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185)
      3. com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129)
      3 frames
    11. JavaEE 7
      Renderer.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
      3. javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
      3 frames
    12. org.icefaces.impl
      RendererWrapper.encodeChildren
      1. org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49)
      1 frame
    13. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
      1 frame
    14. JSF
      GroupRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
      2. com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
      2 frames