Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-17618

WebSphere: NullPointerException when acessing portalstyles.css and portalscripts.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2, 2.7.0, 2.8.0
    • Component/s: WAS
    • Labels:
      None
    • Environment:
      WAS v6 & v7. Linux and Windows XP. (Observed in many versions of Sakai. I can confirm definitely error is in Sakai 2.6.1 tag)

      Description

      Steps to reproduce:
      1) Login as admin
      2) Click "Administration Workspace" tab
      3) Click on "Users" link on left hand menu

      The following error appears in the log:
      [12/17/09 21:06:09:882 EST] 00000017 ErrorReporter W org.sakaiproject.portal.util.ErrorReporter logAndMail Bug Report bug-id: 4fc7606d-8810-4813-943a-4020d462b567 user: null usage-session: null time: Dec 17, 2009 21:05:59 user comment: null stack trace
      org.sakaiproject.portal.api.PortalHandlerException: java.lang.NullPointerException
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
      caused by: java.lang.NullPointerException
      at com.ibm.ws.webcontainer.srt.SRTServletResponse.setContentType(SRTServletResponse.java:1335)
      at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:140)
      at org.sakaiproject.portal.charon.handlers.StaticHandler.sendContent(StaticHandler.java:294)
      at org.sakaiproject.portal.charon.handlers.StaticHandler.doStatic(StaticHandler.java:145)
      at org.sakaiproject.portal.charon.handlers.StaticStylesHandler.doGet(StaticStylesHandler.java:55)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1583)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1523)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:616)
      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:885)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:865)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3799)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:930)
      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:182)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

      Tool Placement:
      No Placement

      Request:
      : AuthType:null
      : CharEncoding:UTF-8
      : ContentLength:-1
      : ContentType:null
      : ContextPath:/portal
      : LocalAddress:10.10.2.105
      : LocalName:10.10.2.105
      : LocalPort:9080
      : Method:GET
      : PathInfo:/styles/portalstyles.css
      : Protocol:HTTP/1.1
      : QueryString:null
      : RemoteAddress:10.6.20.107
      : RemoteHost:10.6.20.107
      : RemotePort:3708
      : Requested URL:http://10.10.2.105:9080/portal/styles/portalstyles.css
      : Scheme:http
      : ServerName:10.10.2.105
      : Headers:
      : Header:Accept:/
      : Header:Referer:http://10.10.2.105:9080/portal
      : Header:Accept-Language:en-us
      : Header:UA-CPU:x86
      : Header:Accept-Encoding:gzip, deflate
      : Header:User-Agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
      : Header:Host:10.10.2.105:9080
      : Header:Connection:Keep-Alive
      : Header:Cookie:sessionCode=0; JSESSIONID=2057a01a-9a8d-48a8-8879-9e6860795136.localhost
      : Parameters:
      : Attributes:
      : Attribute:sakai.filtered:sakai.filtered
      : Attribute:com.ibm.websphere.servlet.uri_non_decoded:/portal/styles/portalstyles.css
      : Attribute:sakai.session:org.sakaiproject.tool.impl.SessionComponent$MySession@b4acdaed
      : Attribute:sakai.character.encoding.done:sakai.character.encoding.done
      Session:
      : Created:1261101958728
      : LastAccess:1261101969841
      : MaxInactive:3600
      : Attributes:
      : Attribute:portalskin:defaultskin

      [12/17/09 21:06:09:899 EST] 00000017 BasicEmailSer W org.sakaiproject.email.impl.BasicEmailService send send: javax.mail.internet.AddressException: Illegal address in string ``''
      [12/17/09 21:06:15:317 EST] 00000016 ErrorReporter W org.sakaiproject.portal.util.ErrorReporter logAndMail Bug Report bug-id: bf1f9cf5-7387-4e5f-b6c8-b881d2702a03 user: null usage-session: null time: Dec 17, 2009 21:06:10 user comment: null stack trace
      org.sakaiproject.portal.api.PortalHandlerException: java.lang.NullPointerException
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
      caused by: java.lang.NullPointerException
      at com.ibm.ws.webcontainer.srt.SRTServletResponse.setContentType(SRTServletResponse.java:1335)
      at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:140)
      at org.sakaiproject.portal.charon.handlers.StaticHandler.sendContent(StaticHandler.java:294)
      at org.sakaiproject.portal.charon.handlers.StaticHandler.doStatic(StaticHandler.java:145)
      at org.sakaiproject.portal.charon.handlers.StaticScriptsHandler.doGet(StaticScriptsHandler.java:55)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1583)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1523)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:616)
      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:885)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:865)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3799)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:930)
      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:182)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

      Tool Placement:
      No Placement

      Request:
      : AuthType:null
      : CharEncoding:UTF-8
      : ContentLength:-1
      : ContentType:null
      : ContextPath:/portal
      : LocalAddress:10.10.2.105
      : LocalName:10.10.2.105
      : LocalPort:9080
      : Method:GET
      : PathInfo:/scripts/portalscripts.js
      : Protocol:HTTP/1.1
      : QueryString:null
      : RemoteAddress:10.6.20.107
      : RemoteHost:10.6.20.107
      : RemotePort:3706
      : Requested URL:http://10.10.2.105:9080/portal/scripts/portalscripts.js
      : Scheme:http
      : ServerName:10.10.2.105
      : Headers:
      : Header:Accept:/
      : Header:Referer:http://10.10.2.105:9080/portal
      : Header:Accept-Language:en-us
      : Header:UA-CPU:x86
      : Header:Accept-Encoding:gzip, deflate
      : Header:User-Agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
      : Header:Host:10.10.2.105:9080
      : Header:Connection:Keep-Alive
      : Header:Cookie:sessionCode=0; JSESSIONID=2057a01a-9a8d-48a8-8879-9e6860795136.localhost
      : Parameters:
      : Attributes:
      : Attribute:sakai.filtered:sakai.filtered
      : Attribute:com.ibm.websphere.servlet.uri_non_decoded:/portal/scripts/portalscripts.js
      : Attribute:sakai.session:org.sakaiproject.tool.impl.SessionComponent$MySession@b4acdaed
      : Attribute:sakai.character.encoding.done:sakai.character.encoding.done
      Session:
      : Created:1261101958728
      : LastAccess:1261101975302
      : MaxInactive:3600
      : Attributes:
      : Attribute:portalskin:defaultskin

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                jbush John Bush
                Reporter:
                tluong Tien Luong (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration