[teiid-issues] [JBoss JIRA] (TEIID-2755) CacheStats.groovy example needs updating, return type has changed

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Thu Dec 5 15:52:08 EST 2013


     [ https://issues.jboss.org/browse/TEIID-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins closed TEIID-2755.
---------------------------------


    
> CacheStats.groovy example needs updating, return type has changed
> -----------------------------------------------------------------
>
>                 Key: TEIID-2755
>                 URL: https://issues.jboss.org/browse/TEIID-2755
>             Project: Teiid
>          Issue Type: Bug
>          Components: Build/Kits
>    Affects Versions: 8.4
>            Reporter: Van Halbert
>            Assignee: Van Halbert
>            Priority: Minor
>             Fix For: 8.4.1, 8.6
>
>
> Running the CacheStats.groovy examples produces an casting error:
> groovy:000> load ./examples/CacheStats.groovy
> ===> true
> ===> true
> ===> CacheStats at 1f147d1a
> Cleared Cache
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[hitRatio=0.0; totalEntries=0; requestCount=0]' with class 'java.util.Arrays$ArrayList' to class 'org.teiid.adminapi.CacheStatistics'
> 	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:321)
> 	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:602)
> 	at CacheStats.performTest(groovysh_evaluate:45)
> 	at CacheStats$performTest.callCurrent(Unknown Source)
> 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list