You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2011/04/18 22:12:05 UTC

[Lucene.Net] [jira] [Closed] (LUCENENET-409) Invalid Base exception in DateField.StringToTime()

     [ https://issues.apache.org/jira/browse/LUCENENET-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Digy closed LUCENENET-409.
--------------------------

       Resolution: Fixed
    Fix Version/s: Lucene.Net 2.9.4
         Assignee: Digy

> Invalid Base exception in DateField.StringToTime()
> --------------------------------------------------
>
>                 Key: LUCENENET-409
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-409
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Core
>    Affects Versions: Lucene.Net 2.9.4
>            Reporter: Neal Granroth
>            Assignee: Digy
>             Fix For: Lucene.Net 2.9.4
>
>         Attachments: DateField.patch, LUCENENET-409.patch
>
>
> The Lucene.Net.Documents.DateField.StringToTime() method called by StringToDate() appears to specify an invalid value for the base in the .NET Convert.ToInt64() call.  When a DateField value in a legacy index is read, or Lucene.NET 2.9.4 is used with legacy code that relies upon DateField, the following exception occurs whenever StringToDate() is called:
> System.ArgumentException: Invalid Base.
>    at System.Convert.ToInt64(String value, Int32 fromBase)
>    at Lucene.Net.Documents.DateField.StringToTime(String s)
>    at Lucene.Net.Documents.DateField.StringToDate(String s)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira