myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "venkata guddanti" <ven.gudda...@gmail.com>
Subject Re: Issue using Trinidad Chart component in Web Sphere
Date Fri, 04 Apr 2008 21:27:38 GMT
This is most likely due to no mime type being set for SVG files on
websphere. Make sure that you set svg file mime types to image/svg+xml*.
*Since there is no mime-type set, it is crashing at
response.setContentType(contentType), where contentType is null.


On Thu, Apr 3, 2008 at 9:27 AM, Shankar K <shankar25@gmail.com> wrote:

> Hi All,
>
> We are facing a problem using Trinidad's(1.2.5 & 1.2.7) Chart component in
> Web Sphere (6.1). The chart doesn't get displayed and in the logs we see NPE
> on  "com.ibm.ws.webcontainer.srt.SRTServletResponse.setContentType" (Stack
> Trace below)
> We had initially thought it could be some configuration that needs to be
> done for SVG plugin in WAS and checked with IBM folks. But they say the
> problem is originating from trindad's code as
> "org.apache.myfaces.trinidad.webapp.ResourceServlet._setHeaders" is passing
> a null value.
>
> Can someone help us with this issue?
> *
> Stack Trace from WAS logs:*
>
> java.lang.NullPointerException
>  at
> com.ibm.ws.webcontainer.srt.SRTServletResponse.setContentType(SRTServletResponse.java:1075)
>  at
> org.apache.myfaces.trinidad.webapp.ResourceServlet._setHeaders(ResourceServlet.java:445)
>  at
> org.apache.myfaces.trinidad.webapp.ResourceServlet.doGet(ResourceServlet.java:207)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>  at
> org.apache.myfaces.trinidad.webapp.ResourceServlet.service(ResourceServlet.java:162)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
>  at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
>  at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
>  at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:768)
>  at
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:676)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
>  at
> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486)
>  at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
>  at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
>  at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
>  at
> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
>  at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
>  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:136)
>  at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
>  at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
>  at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
>  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
>
>
> Thanks,
>
> Shankar
>
>
>
>

Mime
View raw message