[JBoss JIRA] Created: (TEIID-1652) ODBC Data Row results should be batched
by Ramesh Reddy (JIRA)
ODBC Data Row results should be batched
---------------------------------------
Key: TEIID-1652
URL: https://issues.jboss.org/browse/TEIID-1652
Project: Teiid
Issue Type: Enhancement
Components: ODBC
Affects Versions: 7.1.1
Reporter: Ramesh Reddy
Assignee: Ramesh Reddy
Fix For: 7.4.1, 7.5, 7.1.1
Teiid currently writes one row at a time into the wire to send the ODBC data rows. Since the ODBC driver is capable of reading a stream of rows, it will be performant to batch multiple rows into single buffer before they can written to the wire. This will reduce the network fragmentation and result in fewer number of round trips and helps of network latency.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (TEIID-1608) TeiidComponentException from generated web service
by Scott Dawson (JIRA)
TeiidComponentException from generated web service
--------------------------------------------------
Key: TEIID-1608
URL: https://issues.jboss.org/browse/TEIID-1608
Project: Teiid
Issue Type: Bug
Components: SOAP Services
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: Steven Hawkins
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' below 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: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (TEIID-1618) Designer (JBDS 4.1 CR1) not able to preview: NPE
by Paul Nittel (JIRA)
Designer (JBDS 4.1 CR1) not able to preview: NPE
------------------------------------------------
Key: TEIID-1618
URL: https://issues.jboss.org/browse/TEIID-1618
Project: Teiid
Issue Type: Bug
Components: Query Engine
Environment: Fedora 14 x86_64, JBDS 4.1 CR1, Teiid 7.4 Final
Reporter: Paul Nittel
Assignee: Steven Hawkins
I created a project and imported PartsSupplier from Oracle. I selected the PARTS table in the Model Explorer tree and clicked the Preview button. In return, I received exceptions:
[AdminComponentException]Remote org.teiid.adminapi.AdminComponentException: Failed to process template.
1 [AdminComponentException]Remote org.teiid.adminapi.AdminComponentException: Failed to process template.
2 [AdminComponentException]Remote org.teiid.adminapi.AdminComponentException: Failed to process template.
3 [RuntimeException]Remote java.lang.RuntimeException: Failed to process template.
4 [RuntimeException]Remote java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** DEPLOYMENTS IN ERROR: Name -> Error
... and ...
org.teiid.jdbc.TeiidSQLException: Remote org.teiid.client.security.LogonException: VDB "PREVIEW_f74d4e6a-9fdb-4b99-8539-27819cf6130d_SeaAreWon_project" version "latest" does not exist.
at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:109)
at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:69)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:56)
at org.teiid.jdbc.TeiidDriver.connect(TeiidDriver.java:107)
The whole Designer and server logs are attached.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (TEIID-1634) For file connector-based queries, please provide a DEBUG warning if no files are found
by Paul Nittel (JIRA)
For file connector-based queries, please provide a DEBUG warning if no files are found
--------------------------------------------------------------------------------------
Key: TEIID-1634
URL: https://issues.jboss.org/browse/TEIID-1634
Project: Teiid
Issue Type: Bug
Components: Query Engine
Reporter: Paul Nittel
Assignee: Steven Hawkins
I am writing a query against an XML file. I have a file connector referenced by a dynamic VDB. As luck would have it, I used an incorrect directory when the data source was defined. When the query is executed, it appears as though I have no results. (I actually have no data!) After fiddling with the XML for a while, I realized the error, corrected it, and went merrily on my way.
Had there been some kind of notification that there were no files to process, I could have saved a half-hour. So, if a DEBUG message were put in the log file, it may help someone else (or me again) down the road.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (TEIID-1465) Join between char and varchar
by Claudio Venturini (JIRA)
Join between char and varchar
-----------------------------
Key: TEIID-1465
URL: https://issues.jboss.org/browse/TEIID-1465
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.3
Environment: Teiid 7.3 deployed on Jboss AS 5.1.0 GA running on Ubuntu Server 10.04 LTS, MySQL 5.1.51 running on the same machine as JBoss, SQL Server 2000 Standard SP4 running on Windows Server 2003
Reporter: Claudio Venturini
Assignee: Steven Hawkins
Joins between char and varchar fields fail.
Suppose to have a table T1 with a field A, declared as char(10), and a table T2 with a field B, declared as varchar(10). Suppose that the two tables have the following data.
*T1*:
||A||
|ML0001|
*T2*:
||B||
|ML0001|
When performing a INNER JOIN with the condition {{T1.A = T2.B}} the result set is empty, even if the two record match correctly.
This happens when the two base tables refer to two different sources, because if they are in the same source Teiid pushes the join to the source, which computes it correctly.
I think the problem is in the comparison of the two strings. I have the table T1 in SQL Server 2000, and the table T2 in MySQL 5.1.
If one asks SQL Server to convert the string to bytes, the result is {{0x4D4C3030303120202020}}, because the string is filled with (invisible) blanks in order to reach the limit of 10 characters. Note that if one asks for the length of that string, SQL Server states (correctly) that it is 6 characters.
The string in MySQL is a VARCHAR(10), so its conversion to binary is {{0x4D4C30303031}}.
I think that Teiid compares the two binary strings in their entire length. That comparison fails, and no match is found.
The problem remains even if the table T1 is placed in MySQL, and T2 in SQL Server (the opposite situation). I also verified that the problem exists either when querying the source models or view models built over them.
*Workaround:*
A workaround exists but it is too complex (IMHO). I haven't tested it with many records, but I think it will slow down performances considerably.
It consists in casting the string from char to varchar, and then trimming it (with RTRIM() and LTRIM() because SQL Server doesn't support TRIM()). So the join condition is:
{noformat}
RTRIM(LTRIM(CAST(T1.A AS VARCHAR))) = T2.B
{noformat}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (TEIID-1612) Tried a custom log appended, but the LoggingEvent.getMessage() returns org.teiid.logging.LogMessage and not org.teiid.logging.CommandLogMessage
by Van Halbert (JIRA)
Tried a custom log appended, but the LoggingEvent.getMessage() returns org.teiid.logging.LogMessage and not org.teiid.logging.CommandLogMessage
-----------------------------------------------------------------------------------------------------------------------------------------------
Key: TEIID-1612
URL: https://issues.jboss.org/browse/TEIID-1612
Project: Teiid
Issue Type: Bug
Components: Server
Affects Versions: 7.1.1
Reporter: Van Halbert
Assignee: Steven Hawkins
Tried to create a custom logger, following what the doc says:
------
If you want to build a custom appender for command logging that will have access to log4j "LoggingEvents" to the "COMMAND_LOG" context, it will have a message that is an instance of org.teiid.logging.CommandLogMessage defined in the teiid-api-7.4.jar use these class in your development.
-------
but the actual object type from event.getMessage() is: LOGGING EVENT MSG TYPE: org.teiid.logging.LogMessage
(this is a sysout from the custom appender)
And there, don't have access to the similar methods provided n CommandLogMessage.
I'll attach the code.
Did I implement something incorrectly?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months