Hi,
Even I am getting the same error. Can you please help me if this got resolved. please let me know how to pass session object and do the rest of the stuff so that i can invoke the service using doInvoke.
IDataCursor pipelineCursor = pipeline.getCursor();
try
{
FPImpServiceN m1=new FPImpServiceN();
Thread t1 =new Thread(m1);
t1.start();
}
catch(Exception e)
{
throw new ServiceException(e);
}
pipelineCursor.destroy();
Code in source:
static class FPImpServiceN implements Runnable
{
public void run()
{
try
{
NSName nsName = NSName.create( “threadsPOC.services:new_javaService” );
IData outputData = Service.doInvoke( nsName, null ); // Getting Null pointer exception here //
}
catch(Exception e)
{
com.wm.util.JournalLogger.log( com.wm.util.JournalLogger.INFO, com.wm.util.JournalLogger.FAC_FLOW_SVC, com.wm.util.JournalLogger.DEBUG, e);
}
}
}
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods