cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NullPointerException fired after importing and activating a simple workflow in SAP B1

duzgun
Explorer
0 Kudos

Hello all,

I have workflow sample that I have created in "SAP Busines One Studio", exported as xbml, imported in SAP Business One using "Workflow manager". When I have activated it after it has been imported succesfully, I've got the following error in workflow engine log file. What can fire this error message? Is there anyone can give a hint to solve this issue?

Thanks

Environment:

SAP Business One version is 9.2 (9.20.250) PL: 05 (64-bit)

Windows Server : Windows server 2012 R2 Standard

SQL Server 2012

Javascript code in "Conditional Start Event":

var param = company.getRecordsetParams();

var query = "select CardCode,CardName from OCRD where CardCode = 'HDR3'"; print(query);

ERROR Message:

2018-01-04 22:34:46 [ERROR] [MessageQueueThread] [NullPointerException] : Got exception(thread=MessageQueueThread)==>java.lang.NullPointerException: while trying to invoke the method java.lang.Object.toString() of a null object loaded from local variable 'result' Caused by:java.lang.NullPointerException:while trying to invoke the method java.lang.Object.toString() of a null object loaded from local variable 'result' at com.sap.b1wf.engine.msg.B1MessageHandler$ActivateTemplateCmd.execute(B1MessageHandler.java:514) at com.sap.b1wf.engine.msg.B1MessageHandler$ActivateTemplateCmd.execute(B1MessageHandler.java:416) at com.sap.b1wf.engine.command.CommandExecutor.execute(CommandExecutor.java:27) at com.sap.b1wf.engine.msg.B1MessageHandler.handleImpl(B1MessageHandler.java:127) at com.sap.b1wf.engine.msg.B1MessageHandler.handleFailedMessage(B1MessageHandler.java:88) at com.sap.b1wf.engine.threads.MessageQueueThread.run(MessageQueueThread.java:34)

Accepted Solutions (0)

Answers (0)