commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Vladimirov (JIRA)" <j...@apache.org>
Subject [jira] Created: (JXPATH-82) ConversionException: Zero length BigInteger
Date Fri, 04 May 2007 08:46:15 GMT
ConversionException: Zero length BigInteger
-------------------------------------------

                 Key: JXPATH-82
                 URL: https://issues.apache.org/jira/browse/JXPATH-82
             Project: Commons JXPath
          Issue Type: Bug
    Affects Versions: 1.2 Final
            Reporter: Sergey Vladimirov
            Priority: Minor


When JXPath is lenient and asked to return typized value by
...getValue(..., BigInteger.class)

it should return NULL value, instead of throwing

Caused by: org.apache.commons.beanutils.ConversionException: Zero length BigInteger
	at org.apache.commons.beanutils.converters.BigIntegerConverter.convert(BigIntegerConverter.java:117)
	at org.apache.commons.jxpath.util.BasicTypeConverter.convert(BasicTypeConverter.java:299)
	at org.apache.commons.jxpath.util.TypeUtils.convert(TypeUtils.java:54)
	at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:373)
	at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:358)
	... 12 more
Caused by: java.lang.NumberFormatException: Zero length BigInteger
	at java.math.BigInteger.<init>(BigInteger.java:275)
	at java.math.BigInteger.<init>(BigInteger.java:447)
	at org.apache.commons.beanutils.converters.BigIntegerConverter.convert(BigIntegerConverter.java:112)
	... 16 more

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


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


Mime
View raw message