Skip to content

Commit

Permalink
BZ-998833 - session-migration: attempt to complete a workitem fails on
Browse files Browse the repository at this point in the history
strategy not found
  • Loading branch information
krisv committed Aug 22, 2013
1 parent a3b6a32 commit 95583e5
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -1130,6 +1130,10 @@ public static WorkItem readWorkItem( MarshallerReaderContext context ) throws IO
// New way
else if (index == -2) {
String strategyClassName = stream.readUTF();
// fix for backwards compatibility (5.x -> 6.x)
if ("org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy".equals(strategyClassName)) {
strategyClassName = "org.drools.core.marshalling.impl.SerializablePlaceholderResolverStrategy";
}
strategy = context.resolverStrategyFactory.getStrategyObject( strategyClassName );
if (strategy == null) {
throw new IllegalStateException( "No strategy of type " + strategyClassName + " available." );
Expand Down

0 comments on commit 95583e5

Please sign in to comment.