You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Sergey Vladimirov (JIRA)" <ji...@apache.org> on 2007/05/04 10:46:15 UTC

[jira] Created: (JXPATH-82) ConversionException: Zero length BigInteger

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


[jira] Closed: (JXPATH-82) ConversionException: Zero length BigInteger

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Vladimirov closed JXPATH-82.
-----------------------------------

    Resolution: Invalid

Closed as invalid.

> 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


[jira] Commented: (JXPATH-82) ConversionException: Zero length BigInteger

Posted by "Sergey Vladimirov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JXPATH-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493636 ] 

Sergey Vladimirov commented on JXPATH-82:
-----------------------------------------

I was wrong, sorry. It's not a null value, but an empty value.
Exception is correct one.

> 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