I am experiencing the https://jira.duraspace.org/browse/DS-2920 problem and
was wondering if anyone had an idea how to fix the issue.

Is this the fix?

Marie-Helene Vézina
<https://jira.duraspace.org/secure/ViewProfile.jspa?name=marie-helene> added
a comment - 16/Dec/15 1:39 PM - edited

The workaround we found (at least for now) is to force DSpace to look into
the database instead of using the cache. Doing so doesn't throw an error.

So in file:

[Source]\dspace-api\src\main\java\org\dspace\workflow\WorkflowItem.java

We have added one more line:

public static WorkflowItem find(Context context, int id)
throws SQLException
{
// First check the cache
WorkflowItem fromCache = (WorkflowItem) context.fromCache(
WorkflowItem.class, id);

fromCache = null; // <= this forces Dspace not to use the cache

if (fromCache != null)
{               return fromCache;  }

(...)

I don't know if intervening with the cache is the right approach to solve
this problem but it seems to work for us.

--------------------------------------------------------------------------------

James

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to