I'm using the 'Generate JBossWS-CXF War' feature 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. I would suspect the network connection but everything is running on my laptop.

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 seems like a timing issue within Teiid. Would you mind logging a Jira here: https://issues.jboss.org/browse/TEIID with your project attached and steps to reproduce? I know this is intermittent, but anything you could add would help.

I created the issue report in the Teiid JIRA but it looks like Steven Hawkins moved it to the Teiid Designer JIRA (and assigned it to you). Let me know if you need more info. It's a really simple project that I was using to learn and document the steps, so maybe that makes it possible to reproduce on your side. Here's the link: https://issues.jboss.org/browse/TEIIDDES-977

Going forward can please limit diagnosis on forums, by asking the users to attach the files etc for re-producing the error before asking them to create a JIRA. JIRA needs to be created when somebody established a fact that there is an error. This way we can keep the JIRA from false negatives, and write it specific to the issue, not generic saying "webservice not working".