Java Service is destorying the pipeline values

Hi,

Actually I got a problem with a Java service.

I am invoking the java service in a main service. when I execute the main service, the pipeline variables are getting destoryed once the java service step is done. so I am getting an error as there are no variables in the pipleline except the results of the java service to continue to next steps in main service.

Please somebody help me out as I don’t have any knowledge on Java side.

Tha java code looks like the following

String folder, service;
IDataCursor pipelineCursor_1 = pipeline.getCursor();

// pipeline
try {
if (pipeline != null){
IData svcName = Service.doInvoke(“Test.pub”, “getSetting”, pipeline);
IDataCursor svcNameCursor = svcName.getCursor();
String serviceName = IDataUtil.getString(svcNameCursor, “value”);
StringTokenizer tokenizer = new StringTokenizer(serviceName, “:”);
if (serviceName != null){
IDataUtil.put( pipelineCursor_1, “folder”, tokenizer.nextToken() );
IDataUtil.put( pipelineCursor_1, “service”, tokenizer.nextToken() );
IDataUtil.put( pipelineCursor_1, “nameSpace”, (Object)NSName.create(serviceName));
}
} else {
throw new ServiceException(“Input Pipeline is null.”);
}
} catch(Exception e) {
throw new ServiceException("Exception caught while accessing file. "+e.getMessage());
}
// pipeline
pipelineCursor_1.destroy();

The Same code is working in 6.1 Version but I am getting this problem in 7.1 Version.

Thanks,
Nag

ok… got it solved… Found the issue…

Can you share the issue and solution to help those that might encounter the same in the future?