cancel
Showing results for 
Search instead for 
Did you mean: 

GetWorkOrdersSteplet-NullPointerException

karanshaheri
Participant
0 Kudos

Hello Guys,

I am using SAM Work Manager 6.0 with SMP 2.3 SP04. There is one particular set of data where majority Work Orders are based on only Functional Location. So it is taking time to fetch Object Heirarchy. The work orders are flowing from SAP to server but I am getting this exception in the middle of Java code execution. I have analysed this issue with 3 different Servers pointing to same SAP system using the same user.

Case 1 : My Production SMP system pointing to Production SAP Back end

I got Null pointer exception while Fetching Workorders. I turned on the details logs. I am getting the error when Java calls method setPrtInfo.

Case 2. Another SMP server pointing to Production SAP Back end

I got Null pointer exception while Fetching Workorders. I turned on the details logs.I am getting the error when method setFunctionalLocation is executed.

Case 3. Stand alone agentry server pointing to Production SAP Back end

I am able to fetch Work Orders without any error.

According to me, while I am executing using SMP I am unable to fetch work orders and I am getting null Pointer exception.

I then used same settings of Agentry.ini file and JavaBE.ini file which was used in standalone Agentry server in my SMP. Still I am getting NullPointerException.

This is happening because it is taking time to fetch Functional location hierarchy. I increased my time out settings but in vein. Still null pointer exception persists.

Kindly let me know how this issue can be resolved as execution stops while Java code execution itself in SMP. Is there any setting which I can do in SMP to remove this error. I am surprised as I am able to fetch Work Orders while connecting to standalone Agentry server.This confirms there is no code issue or Data issue.

I am attaching screenshot of my Issue and my part of the Java log where I am getting error.

2015/06/22 18:24:43.402:             + User=164852

2015/06/22 18:24:43.402:               setFunctionalLocation::begin

2015/06/22 18:24:43.402:             + User=164852

2015/06/22 18:24:43.402:               setFunctionalLocation::Added functional location object TIN-NW-VH40-MIA3-B02-S01 to work order 100000009139 FunctionalLocations array.

2015/06/22 18:24:43.403:             + User=164852

2015/06/22 18:24:43.403:               setFunctionalLocation::log level = 6

2015/06/22 18:24:43.403:             + User=164852

2015/06/22 18:24:43.403:               setFunctionalLocation::begin

2015/06/22 18:24:43.404:             + User=164852

2015/06/22 18:24:43.404:               setFunctionalLocation::Added functional location object TIN-DW-EZ02-DTSS-MAR to work order 100000009296 FunctionalLocations array.

2015/06/22 18:24:43.405:             + User=164852

2015/06/22 18:24:43.405:               setFunctionalLocation::log level = 6

2015/06/22 18:24:43.405:             + User=164852

2015/06/22 18:24:43.405:               setFunctionalLocation::begin

2015/06/22 18:24:43.405:             + User=164852

2015/06/22 18:24:43.405:               setFunctionalLocation::Added functional location object TIN-NW-VH40-MIRD-B05-A04 to work order 100000009340 FunctionalLocations array.

2015/06/22 18:24:43.408:             + User=164852

2015/06/22 18:24:43.408:               throwExceptionToClient::log level = 6

2015/06/22 18:24:43.409:             + User=164852

2015/06/22 18:24:43.409:               throwExceptionToClient::begin

2015/06/22 18:24:43.409:             + User=164852

2015/06/22 18:24:43.409:               throwExceptionToClient::com.syclo.sap.component.workorder.steplet.GetWorkOrdersSteplet::throwExceptionToClient::266::GetWorkOrdersSteplet - NullPointerException

2015/06/22 18:24:43.448:           + BackEnd=Java-1

2015/06/22 18:24:43.448:             : 1 lines, 1 non-printing characters, 263 total characters

Exception during fetch server exchange step for fetch 'GetWorkOrders': Java Business Logic Error: com.syclo.agentry.BusinessLogicException: GetWorkOrdersSteplet - NullPointerException in px l at d:\syclo_buildbot\6.1\syclo\ag3\agent\javabe\AgentryJavaSteplet.h:79

Regards,

Karan Shaheri.

Accepted Solutions (0)

Answers (1)

Answers (1)

karanshaheri
Participant
0 Kudos

Hello experts,

,,, can you guys help me with the issue.

I am clueless as in where I should look for the issue.

Regards,

Karan Shaheri.

0 Kudos

Did you customize the out-of-box code? Are you getting any errors (ST22 or SLG1) in SAP when you Transmit.

thanks

Chandra