Hello,
Could you please help me figuring out the UM 9.7 trigger failed decoding error.
[ISS.0153.0089C] Trigger UMPoc.triggers:subCanDoc failed decoding: com.wm.app.b2b.server.dispatcher.exceptions.MessagingCoderException: java.lang.NullPointerException
I’m able to publish the document to UM v9.7 using the java program , i can see the message on UM channel but when i try to subcribe the document using the trigger i getting error. below is the error and java code.
[ISS.0153.0089C] Trigger UMPoc.triggers:subCanDoc failed decoding: com.wm.app.b2b.server.dispatcher.exceptions.MessagingCoderException: java.lang.NullPointerException
package com.cab.um.client;
import com.pcbsys.nirvana.client.*;
public class UMClient {
public static void main(String[] args) throws nIllegalArgumentException, nRealmUnreachableException, nSecurityException, nSessionNotConnectedException, nSessionAlreadyInitialisedException, nChannelNotFoundException, nSessionPausedException, nUnknownRemoteRealmException, nUnexpectedResponseException, nRequestTimedOutException, nIllegalChannelMode {
// TODO Auto-generated method stub
String[] RNAME={"nsp://localhost:9000"};
nSessionAttributes nsa=new nSessionAttributes(RNAME);
nSession mySession=nSessionFactory.create(nsa);
mySession.init();
nConsumeEvent evt = new nConsumeEvent( "testData", "Hello World".getBytes() );
// Create a channel attributes object
nChannelAttributes nca = new nChannelAttributes();
nca.setName("/wm/is/UMPoc/docTypes/testDoc");
// Obtain a reference to the channel
nChannel myChannel = mySession.findChannel(nca);
System.out.println("Channel name: "+myChannel);
myChannel.publish(evt);
}
}