[teiid-issues] [JBoss JIRA] Commented: (TEIID-1439) Adminshell/API - sequence of datasource creation/VDB deployment and queries results in deployment error

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Mon Jan 17 07:52:49 EST 2011


    [ https://issues.jboss.org/browse/TEIID-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575934#comment-12575934 ] 

Ramesh Reddy commented on TEIID-1439:
-------------------------------------

This error only occurs in the cluster profiles like "all". Teiid uses a Expiration based JBoss Cache in clustered mode. To make the expiration work, the JBoss Cache needs a data element called "expiration" stored along with the cache and its value as separate entity on the same node. However, when the keys are read back from cache all the keys were assumed to be "cache" keys and not taking the "expiration" key which is string based key into account. Thus when the client code using the cache type casts the key to a CacheID the server throws a ClassCastException.

Workaround is Turn OFF result caching in the "server". This will avoid the caching layer be used at all.

> Adminshell/API - sequence of datasource creation/VDB deployment and queries results in deployment error
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TEIID-1439
>                 URL: https://issues.jboss.org/browse/TEIID-1439
>             Project: Teiid
>          Issue Type: Bug
>          Components: AdminApi
>    Affects Versions: 7.1.1
>            Reporter: Len DiMaggio
>            Assignee: Ramesh Reddy
>            Priority: Blocker
>         Attachments: DeployTest.groovy, server.log_DEBUG_deploy, server.log_TRACE_deploy, weather-ds.xml, weather-vdb.xml
>
>
> See attached standalone adminshell/adminAPI test - this is a new problem in ER7.
> A sequence of 2 iterations of: datasource creation/VDB deployment and queries results in this error:
> DEPLOYMENTS IN ERROR:
>   Deployment "vfsfile:/jboss/local/51_ER7/jboss-soa-p-5/jboss-as/server/production/deploy/weather-vdb.xml" is in error due to the following reason(s): java.lang.ClassCastException: java.lang.String cannot be cast to org.teiid.dqp.internal.process.SessionAwareCache$CacheID

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list