In BusinessEvents 4.0, a namespace exception is thrown although the namespace is correct.

In BusinessEvents 4.0, a namespace exception is thrown although the namespace is correct.

book

Article ID: KB0090113

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
In BusinessEvents 4.0, a namespace exception is thrown although the namespace is correct.

Environment:
==========

TIBCO BusinessEvents Studio
  


Symptoms:
=========
The following namespace exception is thrown  -

java.lang.RuntimeException: Event payload data does not have expected namespace.
at com.tibco.cep.runtime.model.event.impl.PayloadFactoryImpl.createPayload(PayloadFactoryImpl.java:181)
      at com.tibco.cep.runtime.model.event.impl.PayloadFactoryImpl.createPayload(PayloadFactoryImpl.java:131)
      at com.tibco.cep.driver.http.serializer.RESTMessageSerializer.deserializePayload(RESTMessageSerializer.java:352)
      at com.tibco.cep.driver.http.serializer.RESTMessageSerializer.deserializeRequest(RESTMessageSerializer.java:139)
      at com.tibco.cep.driver.http.serializer.RESTMessageSerializer.deserialize(RESTMessageSerializer.java:83)
      at com.tibco.cep.runtime.scheduler.impl.WorkerBasedControllerV2.executeTask(WorkerBasedControllerV2.java:340)
      at com.tibco.cep.runtime.scheduler.impl.WorkerBasedControllerV2$WorkerTask.run(WorkerBasedControllerV2.java:386)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at com.tibco.cep.runtime.util.CustomBEManagedThread.run(CustomBEManagedThread.java:23)


Cause:
=====
Incorrect serializer is used in the channel.


Resolution:
==========
Change the serializer in the channel from RESTSerializer to SOAPSerializer.

Issue/Introduction

In BusinessEvents 4.0, a namespace exception is thrown although the namespace is correct.