Author: chris.laprun(a)jboss.com
Date: 2010-10-20 20:06:10 -0400 (Wed, 20 Oct 2010)
New Revision: 4749
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/NavigationalStateUpdatingHandler.java
Log:
- GTNWSRP-108: change error handling behavior so that events with no payloads work again.
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/NavigationalStateUpdatingHandler.java
===================================================================
---
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/NavigationalStateUpdatingHandler.java 2010-10-20
19:05:57 UTC (rev 4748)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/NavigationalStateUpdatingHandler.java 2010-10-21
00:06:10 UTC (rev 4749)
@@ -99,16 +99,18 @@
{
EventInfo eventInfo =
consumer.getProducerInfo().getInfoForEvent(event.getName());
Serializable payloadAsSerializable = null;
+ boolean failedPayload = false;
try
{
payloadAsSerializable = PayloadUtils.getPayloadAsSerializable(event,
eventInfo);
}
catch (Exception e)
{
+ failedPayload = true;
log.info("Couldn't handle payload for event " +
event.getName() + ". Will ignore it.", e);
}
- if (payloadAsSerializable != null)
+ if (!failedPayload)
{
result.queueEvent(new
UpdateNavigationalStateResponse.Event(event.getName(), payloadAsSerializable));
}
Show replies by date