]
Ted Jones commented on TEIIDDES-977:
------------------------------------
I was able to reproduce in Teiid 7.4 final as well. There seems to be an timing issue when
calling SQLXMLImpl.getString()... sometimes. If i invoke a call repeatedly I see the error
eventually. Re-assigning to the Teiid project.
Here's the meat of the stack trace:
Caused by: java.sql.SQLException: Unable to read data from the stream:
[TeiidComponentException]Wrong type of data found or no data found; expecting streamable
object from the buffer manager. at
org.teiid.core.types.SQLXMLImpl.getString(SQLXMLImpl.java:140) at
org.teiid.rest.services.TeiidRSProvider.execute(TeiidRSProvider.java:109) ... 35 more
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. at
org.teiid.client.lob.StreamingLobChunckProducer.getNextChunk(StreamingLobChunckProducer.java:74)
at org.teiid.client.lob.LobChunkInputStream.read(LobChunkInputStream.java:58) at
java.io.InputStream.read(InputStream.java:171) at
java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:217) at
org.teiid.core.util.InputStreamReader.read(InputStreamReader.java:77) at
java.io.Reader.read(Reader.java:140) at
org.teiid.core.util.ObjectConverterUtil.write(ObjectConverterUtil.java:151) at
org.teiid.core.util.ObjectConverterUtil.convertToCharArray(ObjectConverterUtil.java:293)
at org.teiid.core.util.ObjectConverterUtil.convertToString(ObjectConverterUtil.java:288)
at org.teiid.core.types.SQLXMLImpl.getString(SQLXMLImpl.java:138)
TeiidComponentException from generated web service
--------------------------------------------------
Key: TEIIDDES-977
URL:
https://issues.jboss.org/browse/TEIIDDES-977
Project: Teiid Designer
Issue Type: Bug
Components: Server
Affects Versions: 7.3
Environment: Runtime environment: JBoss AS 5.1, Teiid 7.3, JBossWS-CXF 3.2.1,
MySQL 5, mysql-connector-java-5.1.10-bin.jar
Development environment: Teiid Designer 7.3 installed into Eclipse Helios 3.6.2; SoapUI
2.5 as a test client
Reporter: Scott Dawson
Assignee: Ted Jones
Fix For: 7.5
Attachments: MySQL_local.zip, MySQL_WS_VDB.war, stacktrace.txt
I'm using the 'Generate JBossWS-CXF War' feature of Teiid Designer to expose
a MySQL table as a web service. Everything deploys normally and about half the time the
web service works correctly, however, I often get the exception shown below when I call
the service. It seems to be fairly random as to whether or not it works or throws the
exception. Everything is running on one laptop including the client and the database.
I'm attaching my Eclipse project, warfile and a more complete stack trace. See
'Steps to Reproduce' for my development process and a description of the DB
table.
17:46:20,833 SEVERE [org.teiid.soap] Exception in executeDataservice: {0}
java.lang.Throwable: java.sql.SQLException: Unable to read data from the stream:
[TeiidComponentException]Wrong type of data found or no data found; expecting streamable
object from the buffer manager.
at org.teiid.soap.provider.TeiidWSProvider.execute(TeiidWSProvider.java:194)
at org.teiid.soap.provider.TeiidWSProvider.invoke(TeiidWSProvider.java:316)
at org.teiid.soap.provider.MySQL_local_user.invoke(MySQL_local_user.java:22)
at org.teiid.soap.provider.MySQL_local_user.invoke(MySQL_local_user.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:166)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: