accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giordano, Michael" <>
Subject RE: Null source for iterator
Date Fri, 28 Feb 2014 13:34:32 GMT
So after implementing deepCopy() (below) and calling it during init(), I still receive the
same error

       public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
             System.out.println(String.format("%s.deepCopy() called", getClass().getName()));
             return super.deepCopy(env);

Is this implementation correct or am I missing something fundamental?

Mike G.

From: Zachary Radtka []
Sent: Thursday, February 27, 2014 2:04 PM
Subject: Re: Null source for iterator

Hey Michael, I ran into something similar when I didn't implement the deepcopy() method on
my custom iterator. Inside the deepCopy method you will need to make sure you copy any options
your iterator implements.

On Thu, Feb 27, 2014 at 1:36 PM, Giordano, Michael <<>>

Given this code :

BatchScanner scanner = connector.createBatchScanner("tableName", authorizations, threadCount);

IteratorSetting iterSetting = new IteratorSetting(10, "filterName", CustomFilter.class);

iterSetting.addOption("option1", "value1");

iterSetting.addOption("option2", "value2");


Iterator<Entry<Key,Value>> iter = scanner.iterator();


I am receiving this exception when hasNext() is called :

2014-02-27 15:47:08,845 [thrift.ProcessFunction] ERROR: Internal error processing startMultiScan

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException:
getting null source

The full stacktrace can be found at

If anyone can shed light on what I am doing wrong, I would deeply appreciate it.


Mike G.

This communication, along with its attachments, is considered confidential and proprietary
to Vistronix.  It is intended only for the use of the person(s) named above.  Note that unauthorized
disclosure or distribution of information not generally known to the public is strictly prohibited.
 If you are not the intended recipient, please notify the sender immediately.

View raw message