Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 43165 invoked from network); 11 Nov 2004 21:27:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 21:27:50 -0000 Received: (qmail 29426 invoked by uid 500); 11 Nov 2004 21:27:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29371 invoked by uid 500); 11 Nov 2004 21:27:46 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 29358 invoked by uid 99); 11 Nov 2004 21:27:45 -0000 Received-SPF: pass (hermes.apache.org: domain of robertburrelldonkin@blueyonder.co.uk designates 195.188.213.9 as permitted sender) Received: from [195.188.213.9] (HELO smtp-out6.blueyonder.co.uk) (195.188.213.9) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 11 Nov 2004 13:27:45 -0800 Received: from [10.0.0.2] ([82.38.65.173]) by smtp-out6.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Thu, 11 Nov 2004 21:28:08 +0000 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <82A2903C-3428-11D9-B844-003065DC754C@blueyonder.co.uk> Content-Transfer-Encoding: 7bit From: robert burrell donkin Subject: Re: [betwixt] ClassCastException Date: Thu, 11 Nov 2004 21:27:37 +0000 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.619) X-OriginalArrivalTime: 11 Nov 2004 21:28:08.0607 (UTC) FILETIME=[56AAC2F0:01C4C835] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N i think that this is a know bug with the latest release. please update to CVS HEAD (or a recent nightly) and retry. - robert On 11 Nov 2004, at 18:37, Valeri Gavrilovets wrote: > Hi everyone, > i have some problem by parsing of such xml: > -------------------- > > xsi:noNamespaceSchemaLocation='tibco_order.xsd'> > > DE0005140008 > 2 > 200 > 1234 > BUY > 1 > 0123456789 > > > ---------------------- > > The class Order: > ---------------------- > public class Order { > private Request request; > private Price price; > private Response response; > private String errorCode; > private String errorText; > ... > } > ------------------ > public class Request { > private String ISIN; > private Integer productType; > private BigDecimal amount; > private String orderId; > private String orderType; > private Integer channelId; > private String salesId; > ... > } > ---------------------- > configuration: > ------------------- > IntrospectionConfiguration config = > _beanReader.getXMLIntrospector().getConfiguration(); > config.setElementNameMapper(new CapitalizeNameMapper()); > > // register bean classes > _beanReader.registerBeanClass(Order.class); > _beanReader.registerBeanClass(Request.class); > _beanReader.registerBeanClass(Price.class); > _beanReader.registerBeanClass(Response.class); > ------------------ > > I get this exception and i have no clue what it tells about =( > > [DEBUG] Digester - - Fire end() for > org.apache.commons.betwixt.io.BeanRuleSet$ActionMappingRule@16546ef > [ERROR] Digester - -End event threw exception > java.lang.ClassCastException > at > org.apache.commons.betwixt.io.read.ReadContext.getCurrentElement(ReadCo > ntext.java:224) > at > org.apache.commons.betwixt.io.read.BeanBindAction.update(BeanBindAction > .java:164) > at > org.apache.commons.betwixt.io.read.BeanBindAction.end(BeanBindAction.ja > va:154) > at > org.apache.commons.betwixt.io.BeanRuleSet$ActionMappingRule.end(BeanRul > eSet.java:316) > at > org.apache.commons.digester.Digester.endElement(Digester.java:1058) > at > weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAX > Parser.java:585) > at > weblogic.apache.xerces.impl.xs.XMLSchemaValidator.endElement(XMLSchemaV > alidator.java:710) > at > weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLName > spaceBinder.java:898) > at > weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceB > inder.java:644) > at > weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEleme > nt(XMLDocumentFragmentScannerImpl.java:1008) > at > weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCont > entDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469) > at > weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > (XMLDocumentFragmentScannerImpl.java:329) > at > weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration. > java:525) > at > weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration. > java:581) > at > weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) > at > weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParse > r.java:1175) > at > weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135) > at > weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152) > at > org.apache.commons.digester.Digester.parse(Digester.java:1586) > at > com.dart.simulator.tibco.TibcoBeanReader.parse(TibcoBeanReader.java: > 101) > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org