4 Replies Latest reply on Jul 6, 2011 8:17 AM by Steven Hawkins

    Wrong type of data found or no data found; expecting streamable object from the buffer manager

    Rakesh Balguri Expert

      Hi all,

       

      I ususally get this error message when I try to retrieve the data from Teiid.

      Sometimes this error will not come and everything seems to be working fine.

       

      Can any one tell me the  reason for this error?

      Is this a bug in teiid or do I need to change something in my code.

      I am using Teiid 7.3.


       

      The following is the stack trace:

       

      [12:09:47.387][info][talledLocalContainer] 05 Jul 2011 12:09:47,386 CDT WARN  [PROCESSOR] An error occurred during streaming of Lob Chunks to Client.

      [12:09:47.387][info][talledLocalContainer] [TeiidComponentException]Wrong type of data found or no data found; expecting streamable object from the buffer manager.

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.common.buffer.LobManager.getLobReference(LobManager.java:79)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.common.buffer.TupleBuffer.getLobReference(TupleBuffer.java:276)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.LobWorkItem.createLobStream(LobWorkItem.java:119)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.LobWorkItem.run(LobWorkItem.java:71)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:188)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:116)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:290)

      [12:09:47.387][info][talledLocalContainer]           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      [12:09:47.387][info][talledLocalContainer]           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      [12:09:47.387][info][talledLocalContainer]           at java.lang.Thread.run(Thread.java:662)

      [12:09:47.387][info][talledLocalContainer] 05 Jul 2011 12:09:47,387 CDT ERROR [PROCESSOR] Unexpected exception for session tdjRvVVL6wzk

      [12:09:47.387][info][talledLocalContainer] [TeiidComponentException]Wrong type of data found or no data found; expecting streamable object from the buffer manager.

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.common.buffer.LobManager.getLobReference(LobManager.java:79)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.common.buffer.TupleBuffer.getLobReference(TupleBuffer.java:276)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.LobWorkItem.createLobStream(LobWorkItem.java:119)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.LobWorkItem.run(LobWorkItem.java:71)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:188)

      [12:09:47.387][info][talledLocalContainer]           at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:116)

      [12:09:47.395][info][talledLocalContainer]           at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:290)

      [12:09:47.395][info][talledLocalContainer]           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      [12:09:47.395][info][talledLocalContainer]           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      [12:09:47.395][info][talledLocalContainer]           at java.lang.Thread.run(Thread.java:662)

      [12:09:47.396][info][talledLocalContainer] 05 Jul 2011 12:09:47,395 CDT WARN  [TransactionManager] Exception occurred within transaction java.lang.reflect.InvocationTargetException

      [12:09:47.396][info][talledLocalContainer] java.lang.reflect.InvocationTargetException

      [12:09:47.396][info][talledLocalContainer]           at sun.reflect.GeneratedMethodAccessor594.invoke(Unknown Source)

      [12:09:47.396][info][talledLocalContainer]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      [12:09:47.396][info][talledLocalContainer]           at java.lang.reflect.Method.invoke(Method.java:597)

      [12:09:47.396][info][talledLocalContainer]           at com.ca.chorus.server.transaction.TransactionInvocationHandler$1.call(TransactionInvocationHandler.java:39)

      [12:09:47.396][info][talledLocalContainer]           at com.ca.chorus.server.transaction.TransactionRunner.invoke(TransactionRunner.java:19)

      [12:09:47.396][info][talledLocalContainer]           at com.ca.chorus.server.transaction.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:23)

      [12:09:47.396][info][talledLocalContainer]           at com.ca.chorus.server.transaction.TransactionInvocationHandler.invoke(TransactionInvocationHandler.java:33)

      [12:09:47.396][info][talledLocalContainer]           at $Proxy279.getSessionData(Unknown Source)

       

       

      Caused by: java.lang.Exception: Exception java.io.IOException: Unable to read data from the stream: [TeiidComponentException]Wrong type of data found or no data found; expecting streamable object from the buffer manager. occurred on statement SELECT data FROM session WHERE session_key=? AND namespace=? AND key=?

       

      [12:09:47.398][info][talledLocalContainer]           ... 24 more

      [12:09:47.398][info][talledLocalContainer] Caused by: java.io.IOException: Unable to read data from the stream: [TeiidComponentException]Wrong type of data found or no data found; expecting streamable object from the buffer manager.

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.client.lob.StreamingLobChunckProducer.getNextChunk(StreamingLobChunckProducer.java:74)

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.client.lob.LobChunkInputStream.read(LobChunkInputStream.java:58)

      [12:09:47.398][info][talledLocalContainer]           at java.io.InputStream.read(InputStream.java:154)

      [12:09:47.398][info][talledLocalContainer]           at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:221)

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.core.util.InputStreamReader.read(InputStreamReader.java:77)

      [12:09:47.398][info][talledLocalContainer]           at java.io.Reader.read(Reader.java:83)

      [12:09:47.398][info][talledLocalContainer]           at com.google.common.io.CharStreams.copy(CharStreams.java:202)

      [12:09:47.398][info][talledLocalContainer]           at com.google.common.io.CharStreams.toStringBuilder(CharStreams.java:248)

      [12:09:47.398][info][talledLocalContainer]           at com.google.common.io.CharStreams.toString(CharStreams.java:222)

       

      [12:09:47.398][info][talledLocalContainer]           ... 28 more

      [12:09:47.398][info][talledLocalContainer] Caused by: java.util.concurrent.ExecutionException: [TeiidComponentException]Wrong type of data found or no data found; expecting streamable object from the buffer manager.

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler$1.convertResult(SocketServerInstanceImpl.java:319)

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.client.util.ResultsFuture.get(ResultsFuture.java:116)

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler$1.get(SocketServerInstanceImpl.java:348)

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler$1.get(SocketServerInstanceImpl.java:333)

      [12:09:47.398][info][talledLocalContainer]           at org.teiid.client.lob.StreamingLobChunckProducer.getNextChunk(StreamingLobChunckProducer.java:72)

      [12:09:47.410][info][talledLocalContainer]           ... 39 more

      [12:09:47.410][info][talledLocalContainer] Caused by: [TeiidComponentException]Wrong type of data found or no data found; expecting streamable object from the buffer manager.

      [12:09:47.410][info][talledLocalContainer]           at org.teiid.common.buffer.LobManager.getLobReference(LobManager.java:79)

      [12:09:47.410][info][talledLocalContainer]           at org.teiid.common.buffer.TupleBuffer.getLobReference(TupleBuffer.java:276)

      [12:09:47.410][info][talledLocalContainer]           at org.teiid.dqp.internal.process.LobWorkItem.createLobStream(LobWorkItem.java:119)

      [12:09:47.410][info][talledLocalContainer]           at org.teiid.dqp.internal.process.LobWorkItem.run(LobWorkItem.java:71)

      [12:09:47.410][info][talledLocalContainer]           ... 6 more