java.lang.NullPointerException

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.NullPointerException
  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.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 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.NullPointerException

      No message provided

      at java.io.Writer.write()
    2. Java RT
      Writer.write
      1. java.io.Writer.write(Writer.java:157)
      1 frame
    3. Liferay Portal Service
      StringBundler.writeTo
      1. com.liferay.portal.kernel.util.StringBundler.writeTo(StringBundler.java:310)
      1 frame
    4. org.apache.jsp
      top_005fhead_jsp._jspService
      1. org.apache.jsp.html.common.themes.top_005fhead_jsp._jspService(top_005fhead_jsp.java:2052)
      1 frame
    5. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      1 frame
    7. Liferay Portal Impl
      ClassLoaderRequestDispatcherWrapper.include
      1. com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      2. com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      3. com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      3 frames
    8. Liferay Util Taglib
      VelocityTaglibImpl.include
      1. com.liferay.taglib.util.VelocityTaglibImpl.include(VelocityTaglibImpl.java:643)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor319.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    10. Apache Velocity
      UberspectImpl$VelMethodImpl.doInvoke
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
      1 frame