Skip to Content
0

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

Jan 04 at 09:01 PM

43

avatar image
Former Member

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)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers