[jira] Created: (SOLR-625) addField throws exception in SolrDocument

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-625) addField throws exception in SolrDocument

JIRA jira@apache.org
addField throws exception in SolrDocument
-----------------------------------------

                 Key: SOLR-625
                 URL: https://issues.apache.org/jira/browse/SOLR-625
             Project: Solr
          Issue Type: Bug
            Reporter: Noble Paul


The following code throws Exception with SolrDocument
{code:java}
SolrDocument doc = new SolrDocument();
doc.setField("id",new String []{"a","b"});
doc.addField("id","c");
{code}
Exception
{code}
Exception in thread "main" java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(AbstractList.java:151)
        at java.util.AbstractList.add(AbstractList.java:89)
        at org.apache.solr.common.SolrDocument.addField(SolrDocument.java:136)
        at Test.main(Test.java:145)
{code}


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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-625) addField throws exception in SolrDocument

JIRA jira@apache.org

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

Noble Paul updated SOLR-625:
----------------------------

    Priority: Trivial  (was: Major)

> addField throws exception in SolrDocument
> -----------------------------------------
>
>                 Key: SOLR-625
>                 URL: https://issues.apache.org/jira/browse/SOLR-625
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Priority: Trivial
>
> The following code throws Exception with SolrDocument
> {code:java}
> SolrDocument doc = new SolrDocument();
> doc.setField("id",new String []{"a","b"});
> doc.addField("id","c");
> {code}
> Exception
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:151)
> at java.util.AbstractList.add(AbstractList.java:89)
> at org.apache.solr.common.SolrDocument.addField(SolrDocument.java:136)
> at Test.main(Test.java:145)
> {code}

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-625) addField throws exception in SolrDocument

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Noble Paul updated SOLR-625:
----------------------------

    Attachment: SOLR-625.patch

the fix

> addField throws exception in SolrDocument
> -----------------------------------------
>
>                 Key: SOLR-625
>                 URL: https://issues.apache.org/jira/browse/SOLR-625
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Priority: Trivial
>         Attachments: SOLR-625.patch
>
>
> The following code throws Exception with SolrDocument
> {code:java}
> SolrDocument doc = new SolrDocument();
> doc.setField("id",new String []{"a","b"});
> doc.addField("id","c");
> {code}
> Exception
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:151)
> at java.util.AbstractList.add(AbstractList.java:89)
> at org.apache.solr.common.SolrDocument.addField(SolrDocument.java:136)
> at Test.main(Test.java:145)
> {code}

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (SOLR-625) addField throws exception in SolrDocument

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Yonik Seeley resolved SOLR-625.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

committed.  Thanks!

> addField throws exception in SolrDocument
> -----------------------------------------
>
>                 Key: SOLR-625
>                 URL: https://issues.apache.org/jira/browse/SOLR-625
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Priority: Trivial
>             Fix For: 1.3
>
>         Attachments: SOLR-625.patch
>
>
> The following code throws Exception with SolrDocument
> {code:java}
> SolrDocument doc = new SolrDocument();
> doc.setField("id",new String []{"a","b"});
> doc.addField("id","c");
> {code}
> Exception
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:151)
> at java.util.AbstractList.add(AbstractList.java:89)
> at org.apache.solr.common.SolrDocument.addField(SolrDocument.java:136)
> at Test.main(Test.java:145)
> {code}

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