cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cameron Taggart" <>
Subject Fwd: [jira] Created: (CXF-1227) NPE in HttpHeaderHelper.mapCharset
Date Mon, 26 Nov 2007 19:21:42 GMT
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.  :)


---------- Forwarded message ----------
From: Cameron Taggart (JIRA) <>
Date: Nov 21, 2007 2:22 PM
Subject: [jira] Created: (CXF-1227) NPE in HttpHeaderHelper.mapCharset

NPE in HttpHeaderHelper.mapCharset

                 Key: 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) {
            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
INFO: Creating Service
{}EventSoapService from WSDL:
Nov 21, 2007 2:09:37 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
        at java.util.concurrent.ConcurrentHashMap.put(
        at org.apache.cxf.helpers.HttpHeaderHelper.mapCharset(
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
        at org.apache.cxf.transport.AbstractConduit.close(
        at org.apache.cxf.transport.http.HTTPConduit.close(
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
        at org.apache.cxf.endpoint.ClientImpl.invoke(
        at org.apache.cxf.endpoint.ClientImpl.invoke(
        at org.apache.cxf.frontend.ClientProxy.invokeSync(
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
        at $Proxy21.getUncertaintyDataParameter(Unknown Source)
        at com.fluke.metbase.soap.client.TryEventService.main(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message