commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Hannah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OGNL-257) OgnlRuntime.clearCache() Doesn't Clear All Caches
Date Thu, 02 Mar 2017 14:00:48 GMT

    [ https://issues.apache.org/jira/browse/OGNL-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15892287#comment-15892287
] 

Chris Hannah commented on OGNL-257:
-----------------------------------

Yeah, I tried using version 3.2 from Maven Central and it looks like the problem still exists
in that version. Is there a later version available for Maven?

> OgnlRuntime.clearCache() Doesn't Clear All Caches
> -------------------------------------------------
>
>                 Key: OGNL-257
>                 URL: https://issues.apache.org/jira/browse/OGNL-257
>             Project: Commons OGNL
>          Issue Type: Bug
>          Components: Core Runtime
>    Affects Versions: 3.0.13
>            Reporter: Chris Hannah
>             Fix For: 3.0.13
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The OgnlRuntime.clearCache() method does not empty the cacheSetMethod and cacheGetMethod
caches. The inability  to clear this cache is leading to the following error:
> java.lang.IllegalArgumentException: object is not an instance of declaring class
> It appears that the issue occurs when classes are reloaded by a different classloader.
If we had the ability to clear the caches mentioned above we believe it would fix our issue.
> In our case we are using Spring Boot Dev Tools. When the application restarts and classes
are reloaded we have no way to clear the caches mentioned above.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message