# Error using LookupTableReaderWriter

**URL:** <https://forum.cloverdx.com/t/error-using-lookuptablereaderwriter/1591>\
**Category:** CloverDX Platform\
**Created:** [March 4, 2015, 12:00am UTC](https://forum.cloverdx.com/t/error-using-lookuptablereaderwriter/1591 "2015-03-04T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanchen](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@evanchen](https://forum.cloverdx.com/u/evanchen)\
**Post date:** [March 4, 2015, 12:00am UTC](https://forum.cloverdx.com/t/error-using-lookuptablereaderwriter/1591/1 "2015-03-04T00:00:00Z")

</div>

Hi there,

I created a clover project(version 3.2.1) as attached to use the component LookupTableReaderWriter.  
Why the first pipeline in debug\_graph.grf runs into the below errror:

ERROR [WatchDog] - Graph execution finished with error  
ERROR [WatchDog] - Node LOOKUP\_TABLE\_READER\_WRITER2 finished with status: ERROR caused by: null  
ERROR [WatchDog] - Node LOOKUP\_TABLE\_READER\_WRITER2 error details:  
java.nio.BufferUnderflowException  
at java.nio.Buffer.nextGetIndex(Buffer.java:498)  
at java.nio.HeapByteBuffer.getDouble(HeapByteBuffer.java:508)  
at org.jetel.util.bytes.DynamicCloverBuffer.getDouble(DynamicCloverBuffer.java:974)  
at org.jetel.data.NumericDataField.deserialize(NumericDataField.java:529)  
at org.jetel.data.DataRecord.deserialize(DataRecord.java:287)  
at com.opensys.cloveretl.lookup.PersistentLookupTable$RecordSerializer.a(Unknown Source)  
at com.opensys.cloveretl.lookup.PersistentLookupTable$RecordSerializer.deserialize(Unknown Source)  
at jdbm.btree.BPage.deserialize(BPage.java:1000)  
at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)  
at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263)  
at jdbm.btree.BTree.getRoot(BTree.java:525)  
at jdbm.btree.BTree.browse(BTree.java:465)  
at com.opensys.cloveretl.lookup.PersistentLookupTable$b.(Unknown Source)  
at com.opensys.cloveretl.lookup.PersistentLookupTable.iterator(Unknown Source)  
at org.jetel.component.LookupTableReaderWriter.execute(LookupTableReaderWriter.java:164)  
at org.jetel.graph.Node.run(Node.java:414)  
at java.lang.Thread.run(Thread.java:722)  
WARN [exNode\_0\_1422373388873\_TRASH0] - TRASH0thread interrupted, it will interrupt child threads  
java.lang.InterruptedException  
at java.lang.Object.wait(Native Method)  
at java.lang.Thread.join(Thread.java:1266)  
at org.jetel.component.Trash.executeWithoutWriter(Trash.java:278)  
at org.jetel.component.Trash.execute(Trash.java:241)  
at org.jetel.graph.Node.run(Node.java:414)  
at java.lang.Thread.run(Thread.java:722)  
ERROR [TRASH0\_0.InputThread#0] - 31: thread forcibly aborted  
java.lang.InterruptedException  
at java.lang.Object.wait(Native Method)  
at java.lang.Object.wait(Object.java:503)  
at org.jetel.graph.DirectEdge.fillReadBuffer(DirectEdge.java:216)  
at org.jetel.graph.DirectEdge.readRecordDirect(DirectEdge.java:182)  
at org.jetel.graph.Edge.readRecordDirect(Edge.java:363)  
at org.jetel.component.Trash$InputReader.run(Trash.java:471)

Could you please take a look at the attachment and shed some light on me?

Thanks,  
Evan

- [testlookuptable.zip](https://cdn.cloverdx.com/forum/15801%5Feb572e26b07d672cc4c2445ba1865f07/testlookuptable.zip)

---

<div class="post-metadata">

**Author:** ![slechtaj](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@slechtaj](https://forum.cloverdx.com/u/slechtaj)\
**Post date:** [March 10, 2015, 3:19pm UTC](https://forum.cloverdx.com/t/error-using-lookuptablereaderwriter/1591/2 "2015-03-10T15:19:23Z")

</div>

Hi Evan,

It seems the lookup table is corrupted. I can only reproduce the issue with the table you have provided. However, when I delete its data I’m not able to reproduce the issue. Could you please try to delete \*.lg and \*.db files from the lookup directory an try it again?

Thanks.
