[ 
http://issues.apache.org/jira/browse/SOLR-10?page=comments#action_12374938 ] 

Yonik Seeley commented on SOLR-10:
----------------------------------

The current exception contains the bad text that caused the 
NumberFormatException... I just tried an example and I see
java.lang.NumberFormatException: For input string: "Hello"

Is the extra debugging information you need the name of the field?

If so, perhaps this try/catch should be moved to FIeldType.createField() since 
that might be called by some code directly.
The original exception should probably also be chained.


> Improved error message in Schema Field
> --------------------------------------
>
>          Key: SOLR-10
>          URL: http://issues.apache.org/jira/browse/SOLR-10
>      Project: Solr
>         Type: Improvement

>   Components: update
>     Reporter: Michael Bryzek
>     Priority: Trivial
>  Attachments: SchemaFieldPatch.txt
>
> Provide more detail on number format exception. Facilitates debugging from db 
> environment where default values for numeric fields are stored as null, not 
> numbers. Patch to follow

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to