Is a collection reader being plugged into the UimaAsynchronousEngine? If so
does its component descriptor define or import any types? Sorry to say,
given that Xmi works the most likely problem is still type system mismatch.

Eddie

On Thu, Nov 3, 2016 at 5:37 PM, nelson rivera <nelsonriver...@gmail.com>
wrote:

> Yes with xmiCas serialization everything works fine. The client and
> the input Cas have identical type system definitions, because i get
> the cas from  UimaAsynchronousEngine with the line
> "asynchronousEngine.getCAS()", any idea of problem
>
> 2016-11-03 16:49 GMT-04:00, Eddie Epstein <eaepst...@gmail.com>:
> > Hi,
> >
> > Binary serialization for a service call only works if the client and
> > service have identical type system definitions. Have you confirmed
> > everything works with the default XmiCas serialization?
> >
> > Eddie
> >
> > On Thu, Nov 3, 2016 at 3:51 PM, nelson rivera <nelsonriver...@gmail.com>
> > wrote:
> >
> >> I want to consume a service uima-as aggregate, the service have all
> >> delegates co-located, with format binary for serialization, I set
> >> SerializationStrategy as "binary" in the cliente side to the
> >> application context map used to pass initialization parameters. But
> >> when process i get this exception in te service uima-as:
> >>
> >>
> >> 01:42:00.679 - 14:
> >> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> >> handleProcessRequestFromRemoteClient:
> >> WARNING:
> >> java.lang.ClassCastException: org.apache.uima.cas.impl.AnnotationImpl
> >> cannot be cast to org.apache.uima.cas.SofaFS
> >>         at org.apache.uima.cas.impl.CASImpl.getSofa(CASImpl.java:834)
> >>         at
> >> org.apache.uima.cas.impl.FSIndexRepositoryImpl.ll_addFS_common(
> >> FSIndexRepositoryImpl.java:2786)
> >>         at org.apache.uima.cas.impl.FSIndexRepositoryImpl.ll_
> >> addFS(FSIndexRepositoryImpl.java:2763)
> >>         at org.apache.uima.cas.impl.FSIndexRepositoryImpl.addFS(
> >> FSIndexRepositoryImpl.java:2068)
> >>         at org.apache.uima.cas.impl.CASImpl.reinitIndexedFSs(
> >> CASImpl.java:1916)
> >>         at org.apache.uima.cas.impl.CASImpl.reinit(CASImpl.java:1640)
> >>         at org.apache.uima.cas.impl.CASImpl.reinit(CASImpl.java:1393)
> >>         at org.apache.uima.cas.impl.CASImpl.reinit(CASImpl.java:1386)
> >>         at org.apache.uima.cas.impl.Serialization.deserializeCAS(
> >> Serialization.java:187)
> >>         at org.apache.uima.aae.UimaSerializer.deserializeCasFromBinary(
> >> UimaSerializer.java:223)
> >>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.
> >> deserializeCASandRegisterWithCache(ProcessRequestHandler_impl.java:229)
> >>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.
> >> handleProcessRequestFromRemoteClient(ProcessRequestHandler_
> impl.java:531)
> >>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> >> impl.handle(ProcessRequestHandler_impl.java:1062)
> >>         at org.apache.uima.aae.handler.input.MetadataRequestHandler_
> >> impl.handle(MetadataRequestHandler_impl.java:78)
> >>         at org.apache.uima.adapter.jms.activemq.JmsInputChannel.
> >> onMessage(JmsInputChannel.java:731)
> >>         at
> >> org.springframework.jms.listener.AbstractMessageListenerContain
> >> er.doInvokeListener(AbstractMessageListenerContainer.java:689)
> >>         at
> >> org.springframework.jms.listener.AbstractMessageListenerContain
> >> er.invokeListener(AbstractMessageListenerContainer.java:649)
> >>         at
> >> org.springframework.jms.listener.AbstractMessageListenerContain
> >> er.doExecuteListener(AbstractMessageListenerContainer.java:619)
> >>         at
> >> org.springframework.jms.listener.AbstractPollingMessageListener
> >> Container.doReceiveAndExecute(AbstractPollingMessageListener
> >> Container.java:307)
> >>         at
> >> org.springframework.jms.listener.AbstractPollingMessageListener
> >> Container.receiveAndExecute(AbstractPollingMessageListener
> >> Container.java:245)
> >>         at
> >> org.springframework.jms.listener.DefaultMessageListenerContaine
> >> r$AsyncMessageListenerInvoker.invokeListener(
> >> DefaultMessageListenerContainer.java:1144)
> >>         at
> >> org.springframework.jms.listener.DefaultMessageListenerContaine
> >> r$AsyncMessageListenerInvoker.executeOngoingLoop(
> >> DefaultMessageListenerContainer.java:1136)
> >>         at
> >> org.springframework.jms.listener.DefaultMessageListenerContaine
> >> r$AsyncMessageListenerInvoker.run(DefaultMessageListenerContaine
> >> r.java:1033)
> >>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> >> ThreadPoolExecutor.java:1145)
> >>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> >> ThreadPoolExecutor.java:615)
> >>         at org.apache.uima.aae.UimaAsThreadFactory$1.run(
> >> UimaAsThreadFactory.java:132)
> >>         at java.lang.Thread.run(Thread.java:745)
> >>
> >
>

Reply via email to