uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nelson rivera <nelsonriver...@gmail.com>
Subject java.lang.ClassCastException with binary SerializationStrategy
Date Thu, 03 Nov 2016 19:51:30 GMT
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.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:689)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:649)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:619)
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:307)
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:245)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1144)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1136)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.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)

Mime
View raw message