I'm having some trouble when attempting to publish a notification. When I
do, I get this error:
ERROR - WSNComponent - Error processing exchange InOnly[
id: ID:192.168.1.2-11520deb240-28:0
status: Active
role: provider
endpoint: Broker
in: null
]
java.lang.IllegalArgumentException: source parameter must not be null
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
AbstractUnmarshallerImpl.java:98)
at org.apache.servicemix.wsn.component.WSNEndpoint.process(
WSNEndpoint.java:128)
at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(
AsyncBaseLifeCycle.java:538)
at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(
AsyncBaseLifeCycle.java:490)
My code that causes this is:
private void sendNotification(Object notification) {
try {
if(wsnBroker == null)
createWsnBroker();
wsnBroker.notify("notificationTopic", notification);
} catch (Exception e) {
e.printStackTrace();
}
}
I've looked and my notification object isn't null, is there something called
source somewhere that I need to set?