# Getting Exception org.apache.lucene.util.AttributeSource.cloneAttributes?

**URL:** <https://discuss.elastic.co/t/getting-exception-org-apache-lucene-util-attributesource-cloneattributes/9305>\
**Category:** Elasticsearch\
**Created:** [October 10, 2012, 12:30pm UTC](https://discuss.elastic.co/t/getting-exception-org-apache-lucene-util-attributesource-cloneattributes/9305 "2012-10-10T12:30:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [October 10, 2012, 12:30pm UTC](https://discuss.elastic.co/t/getting-exception-org-apache-lucene-util-attributesource-cloneattributes/9305/1 "2012-10-10T12:30:55Z")

</div>

Hi

i am using ES 0.16.2. I have following data in index :

## ID word

1. 

```
     see

```

2. 

```
     she

```

3. 

```
     sea

```

4. 

```
     C

```

and synonyam.txt contains following configuration:

_see ,she_  
\*  
\*  
when i index data with following configuration i got following exception:

java.lang.NullPointerException  
at  
org.apache.lucene.util.AttributeSource.cloneAttributes(AttributeSource.java:542)  
at  
org.apache.lucene.analysis.synonym.SynonymFilter.incrementToken(SynonymFilter.java:135)  
at  
org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter.incrementToken(WordDelimiterFilter.java:224)  
at  
org.elasticsearch.common.lucene.all.AllTokenStream.incrementToken(AllTokenStream.java:56)  
at  
org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:182)  
at  
org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:248)  
at  
org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:701)  
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2042)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.innerIndex(RobinEngine.java:459)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.index(RobinEngine.java:374)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.index(InternalIndexShard.java:292)  
at  
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:131)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:418)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.access$100(TransportShardReplicationOperationAction.java:233)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:331)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)

when i remove same phonetic value from index ,it successfully index  
data.so my side that phonetically same value in synonym token filter not  
supported or this may be an issue.

Thanks

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:09am UTC](https://discuss.elastic.co/t/getting-exception-org-apache-lucene-util-attributesource-cloneattributes/9305/2 "2017-07-06T03:09:26Z")

</div>

Closed on July 6, 2017, 3:09am UTC


