Bug 1232182 - Infinispan-dsl-cache translator: can't insert value into BYTE and BIGINTEGER columns
Summary: Infinispan-dsl-cache translator: can't insert value into BYTE and BIGINTEGER ...
Keywords:
Status: CLOSED DUPLICATE of bug 1232282
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Van Halbert
QA Contact: Filip Elias
URL:
Whiteboard:
Depends On:
Blocks: 1232282
TreeView+ depends on / blocked
 
Reported: 2015-06-16 09:09 UTC by Filip Elias
Modified: 2015-07-02 21:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-02 21:11:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server log (9.45 KB, text/plain)
2015-06-16 09:09 UTC, Filip Elias
no flags Details
VDB through which data are inserted (12.58 KB, application/zip)
2015-06-16 09:10 UTC, Filip Elias
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-3533 0 Major Resolved Infinispan-dsl-cache translator: can't insert value into BYTE and BIGINTEGER columns 2015-07-28 18:52:03 UTC

Description Filip Elias 2015-06-16 09:09:11 UTC
Created attachment 1039310 [details]
server log

Sample query:
insert into smalla(intKey, byteNum) values(100,100);
insert into smalla(intKey, BIGINTEGERVALUE) values(100,100);

Exception:
[org.teiid.CONNECTOR] (Worker9_QueryProcessorQueue59) Connector worker process failed for atomic-request=NuZ8Nt3h1bKx.20.0.13: java.lang.IllegalArgumentException: Conversion from String to java.math.BigDecimal is not supported
	at org.teiid.core.util.StringUtil.valueOf(StringUtil.java:797) [teiid-common-core-8.7.1.6_2-redhat-2.jar:8.7.1.6_2-redhat-2]
	at org.teiid.core.util.PropertiesUtils.setProperty(PropertiesUtils.java:792) [teiid-common-core-8.7.1.6_2-redhat-2.jar:8.7.1.6_2-redhat-2]
	at org.teiid.core.util.PropertiesUtils.setBeanProperty(PropertiesUtils.java:782) [teiid-common-core-8.7.1.6_2-redhat-2.jar:8.7.1.6_2-redhat-2]
	at org.teiid.translator.infinispan.dsl.InfinispanUpdateExecution.handleInsert(InfinispanUpdateExecution.java:204)

The VDB and the server log is attached.

Comment 1 Filip Elias 2015-06-16 09:10:27 UTC
Created attachment 1039312 [details]
VDB through which data are inserted

Comment 2 Van Halbert 2015-06-26 18:48:27 UTC
This one requires more work, will try to get this in post ER3.

Comment 3 Van Halbert 2015-07-02 21:07:49 UTC
There were several issues here:

-  the model that was used didn't correspond to what was created when using the Teiid Connection Importer, which had data types on the source model mis-aligned.
-  the logic needed to use DataTypeManager.transformValue to handle to help in broader conversion cases.
-  and another issue was encountered (when the above was resolved) in that the JDG confirmed it has an issue with boolean columns. JDG will throw an exception if no value is specified in the insert or there's no default defined in the protobuf definition.

Comment 4 Van Halbert 2015-07-02 21:11:00 UTC

*** This bug has been marked as a duplicate of bug 1232282 ***


Note You need to log in before you can comment on or make changes to this bug.