Problems inserting a JMS Message into the Pipeline

Hi,

I some code that reads a JMS TextMessage from a queue and then inserts it into the pipeline. The code is as you would expect:

IDataCursor pipelineCursor = pipeline.getCursor();  
msg = (TextMessage) queueReceiver.receiveNoWait();  
. 
. 
pipelineCursor.last(); 
pipelineCursor.insertAfter( "message", msg); 

When I run this I get an error window with the messages:

Could not run this service ‘foo’
java.lang.ClassCastException:java.lang.integer

Does anyone know why this might be happening? Thans in advance.

Logan Wilkins
Cisco Systems

Forgot to mention that this is wM IS 4.6

-Logan

Are you using JMS adapter or reading queue using custom code via Java service?