[infinispan-issues] [JBoss JIRA] (ISPN-2138) Use local non transactional context for map reduce invocation
Sandro Sonntag (JIRA)
jira-events at lists.jboss.org
Wed Jul 18 11:23:07 EDT 2012
[ https://issues.jboss.org/browse/ISPN-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706612#comment-12706612 ]
Sandro Sonntag commented on ISPN-2138:
--------------------------------------
Hi Vladimir,
sorry for the delayed response (back from holidays and too much to do :().
But now, I have a simpel test case.
I wrote a test WAR that can be build with maven.
Deploy it to jboss-as-7.1.1.Final an call http://localhost:8080/map-reduce-bug-as7/rest/count.
Result is:
java.lang.ClassCastException: org.infinispan.marshall.MarshalledValue cannot be cast to com.example.mapreducebugas7.TestEntry
com.example.mapreducebugas7.CountMapper.map(CountMapper.java:1)
org.infinispan.commands.read.MapReduceCommand.perform(MapReduceCommand.java:150)
org.infinispan.distexec.mapreduce.MapReduceTask.execute(MapReduceTask.java:286)
org.infinispan.distexec.mapreduce.MapReduceTask.execute(MapReduceTask.java:367)
com.example.mapreducebugas7.CountResource.count(CountResource.java:31)
clone: https://github.com/xandrox/map-reduce-bug-as7
mvn install
copy to standalone/deployments
start "bin/standalone.sh -c standalone-full-ha.xml"
standalone-full-ha.xml can be found in the root of the git project...
Look at com.example.mapreducebugas7.CountResource to see the simple count logic.
Good luck!
Cheers Sandro
> Use local non transactional context for map reduce invocation
> -------------------------------------------------------------
>
> Key: ISPN-2138
> URL: https://issues.jboss.org/browse/ISPN-2138
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 5.1.5.FINAL
> Reporter: Sandro Sonntag
> Assignee: Vladimir Blagojevic
> Priority: Blocker
> Fix For: 5.2.0.ALPHA2, 5.2.0.FINAL
>
>
> If I execute a MapReduce Task in AS7 a ClassCastEx occurs in the Mapper.
> Thanks for help.
> ~Sandro
> java.lang.ClassCastException: org.infinispan.marshall.MarshalledValue cannot be cast to de.adorsys.fireonec2.server.PrimeStats
> de.adorsys.fireonec2.server.PrimeCountMapper.map(PrimeCountMapper.java:10)
> org.infinispan.commands.read.MapReduceCommand.perform(MapReduceCommand.java:144)
> org.infinispan.distexec.mapreduce.MapReduceTask.execute(MapReduceTask.java:285)
> org.infinispan.distexec.mapreduce.MapReduceTask.execute(MapReduceTask.java:358)
> de.adorsys.fireonec2.server.StatsService.map(StatsService.java:44)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsIntercep
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list