Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 99022 invoked from network); 19 Sep 2007 16:52:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2007 16:52:38 -0000 Received: (qmail 92246 invoked by uid 500); 19 Sep 2007 16:52:30 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 92180 invoked by uid 500); 19 Sep 2007 16:52:29 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 92171 invoked by uid 99); 19 Sep 2007 16:52:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 09:52:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 16:54:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EC16A714209 for ; Wed, 19 Sep 2007 09:52:14 -0700 (PDT) Message-ID: <17246580.1190220734499.JavaMail.jira@brutus> Date: Wed, 19 Sep 2007 09:52:14 -0700 (PDT) From: "benson margulies (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-1037) ClassCastException writing a Map in a reply message with Aegis In-Reply-To: <2666026.1190168383500.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] benson margulies updated CXF-1037: ---------------------------------- Attachment: maptest.txt This version uses the right client-side bean. It also has the fix to the code in Aegis that would use the key type twice instead of looking at the actual value type. > ClassCastException writing a Map in a reply message with Aegis > ------------------------------------------------------------------------------- > > Key: CXF-1037 > URL: https://issues.apache.org/jira/browse/CXF-1037 > Project: CXF > Issue Type: Bug > Components: Aegis Databinding > Affects Versions: 2.0.2 > Environment: Initial observation with JDK 1.6 > Reporter: benson margulies > Attachments: maptest.txt > > > Calling a doc/literal service with a return value of Map results in the following rather horrific explosion. > Sep 18, 2007 10:13:59 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept > INFO: Interceptor has thrown exception, unwinding now > java.lang.ClassCastException: org.apache.cxf.aegis.type.java5.map.Student cannot be cast to java.lang.Number > at org.apache.cxf.aegis.type.basic.LongType.writeObject(LongType.java:40) > at org.apache.cxf.aegis.type.collection.MapType.writeEntry(MapType.java:171) > at org.apache.cxf.aegis.type.collection.MapType.writeObject(MapType.java:151) > at org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:100) > at org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:1) > at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:93) > at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207) > at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:74) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207) > at org.apache.cxf.transport.MultipleEndpointObserver.onMessage(MultipleEndpointObserver.java:82) > at org.apache.cxf.transport.local.LocalConduit$1.run(LocalConduit.java:131) > at java.lang.Thread.run(Unknown Source) > Sep 18, 2007 10:13:59 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept > INFO: Interceptor has thrown exception, unwinding now > org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. > at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:187) > at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:1) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207) > at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:395) > at org.apache.cxf.transport.local.LocalDestination$SynchronousConduit$1.run(LocalDestination.java:88) > at java.lang.Thread.run(Unknown Source) > Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog > at [row,col {unknown-source}]: [1,0] > at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661) > at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134) > at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040) > at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) > at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095) > at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:85) > ... 5 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.