You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2017/12/07 09:40:00 UTC

[jira] [Reopened] (ISIS-1756) JEE Support - IsisContext requires proper lifecycling.

     [ https://issues.apache.org/jira/browse/ISIS-1756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andi Huber reopened ISIS-1756:
------------------------------

Now with the DN-5.1.5-SNAPSHOT class-loading issues seem fixed. But it seems we still do not properly purge all DN state after we shutdown the Isis-context.

I now get exceptions after a deploy/undeply/change-code/deploy cycle:

{code}
Caused by: java.lang.ClassCastException: d.d.A cannot be cast to d.d.A
	at d.d.B.dnReplaceField(A.java)
	at d.d.B.dnReplaceFields(A.java)
	at org.datanucleus.state.StateManagerImpl.replaceFields(StateManagerImpl.java:4286)
{code}

... but only if I had loaded d.d.B before this deployment. That tells me, that there is some state left over.


> JEE Support - IsisContext requires proper lifecycling.
> ------------------------------------------------------
>
>                 Key: ISIS-1756
>                 URL: https://issues.apache.org/jira/browse/ISIS-1756
>             Project: Isis
>          Issue Type: Improvement
>    Affects Versions: 1.15.1
>            Reporter: Dan Haywood
>            Assignee: Andi Huber
>             Fix For: 2.0.0
>
>
> as per https://lists.apache.org/thread.html/a815c6d3e50c02111d0cd3df93b70b529c18193f321e613b116119b4@%3Cdev.isis.apache.org%3E
> The isis-context needs a proper lifecycling, meaning a  deploy/undeploy cycle should properly invalidate any state. (e.g meta model validation is currently not cleared after an undeploy, in my case after calling IsisContext.testReset())



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)