cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Fwd: [jira] Created: (CXF-1227) NPE in HttpHeaderHelper.mapCharset
Date Mon, 03 Dec 2007 16:19:40 GMT

Cameron,

The 2.0.4 SNAPSHOT deployed on Friday should have had this fix in it.  

Thanks!
Dan


On Monday 26 November 2007, Cameron Taggart wrote:
> Anyone get a chance to look at this bug?  It is blocking me from using
> CXF as a JAX-WS client.  I added it to the roadmap for 2.0.4.  :)
>
> cheers,
> Cameron
>
>
> ---------- Forwarded message ----------
> From: Cameron Taggart (JIRA) <jira@apache.org>
> Date: Nov 21, 2007 2:22 PM
> Subject: [jira] Created: (CXF-1227) NPE in HttpHeaderHelper.mapCharset
> To: cameron.taggart@gmail.com
>
>
> NPE in HttpHeaderHelper.mapCharset
> ----------------------------------
>
>                  Key: CXF-1227
>                  URL: https://issues.apache.org/jira/browse/CXF-1227
>              Project: CXF
>           Issue Type: Bug
>     Affects Versions: 2.0.3
>             Reporter: Cameron Taggart
>              Fix For: 2.0.4
>
>
>
> ConcurrentHashMap doesn't allow null values:
>
>     public V put(K key, V value) {
>         if (value == null)
>             throw new NullPointerException();
>
> So this part of HttpHeaderHelper.mapCharset doesn't make much sense to
> me:
>
>         if (newenc == null) {
>             try {
>                 newenc = Charset.forName(enc).name();
>             } catch (Exception ex) {
>                 //ignore
>             }
>             encodings.put(enc, newenc);
>         }
>
> I don't use Netbeans very much, but when I hover over the enc
> variable, it appears that utf-8 might have been passed in with some
> quotes, not sure.
>
> Nov 21, 2007 2:05:17 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service
> {http://soap.metbase.fluke.com/}EventSoapService from WSDL:
> http://localhost:8080/EventSoapService/EventSoapImpl?wsdl
> Nov 21, 2007 2:09:37 PM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept INFO: Interceptor has thrown exception, unwinding now
> java.lang.NullPointerException
>         at
> java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:878)
> at
> org.apache.cxf.helpers.HttpHeaderHelper.mapCharset(HttpHeaderHelper.ja
>va:82) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRe
>sponse(HTTPConduit.java:1930) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HT
>TPConduit.java:1791) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66
>) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndin
>gInterceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:207) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135
>) at $Proxy21.getUncertaintyDataParameter(Unknown Source) at
> com.fluke.metbase.soap.client.TryEventService.main(TryEventService.jav
>a:30)
>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message