commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stepan Yakovenko <stiv.pub...@gmail.com>
Subject Digester crashes in run mode and succeeds with java debugger
Date Mon, 16 Jul 2012 02:11:17 GMT
HI

I've got application that uses digerster. There is a bean with two setters:
public void setFf(String date);
public void setFf(Date date);

Crash happens here:

org.apache.commons.beanutils.ConversionException: DateConverter does
not support default String to 'Date' conversion.
	at org.apache.commons.beanutils.converters.DateTimeConverter.toDate(DateTimeConverter.java:468)
	at org.apache.commons.beanutils.converters.DateTimeConverter.convertToType(DateTimeConverter.java:343)
	at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)
	at org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:60)
	at org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:470)
	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1014)
	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:831)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
	at org.apache.commons.digester3.SetPropertiesRule.begin(SetPropertiesRule.java:232)
	at org.apache.commons.digester3.Digester.startElement(Digester.java:1350)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.commons.digester3.Digester.parse(Digester.java:1642)

(line numbers may slightly deviate because I've added tracing printlns)

When I try to debug this, no crash happens. Is this a known issue?
Thanx.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message