cancel
Showing results for 
Search instead for 
Did you mean: 

How to move Agentry loop over collection to Java code?

0 Kudos

Hi,

I have successfully move loop from Agentry to Java following steps on https://wiki.scn.sap.com/wiki/display/SAPMOB/Loop+over+a+collection+in+an+Agentry+Java+project , it works on my testing environment, but on environment where are more users it crash with Communication error 14. Actually there are 2 loops, because object in first loop can contain list of other objects.

Do you have similar issue? Can be problem in calling method _user.getString(...)? Or can be problem calling static method from same class?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you please provide more detail as you seem to be mixing questions.

An error 14 occurs when a client cannot reach a server, meaning you would not be triggering any kind of looping in your Java code.

Please also provide more details about what is or is not working as the questions you refer to are not clear enough for someone to provide appropriate answers.

0 Kudos

I don't get error 14 on start of transmit, but after calling transaction, which use the Java class with loop. So questions are, if something from this can cause error 14. And also not all users get this error.

Accepted Solutions (0)

Answers (1)

Answers (1)

ray_isada
Participant
0 Kudos

Hi Jakub -

Is your JVM crashing? Did you check for contentions/collision as far as multiple users accessing at the same time? Perhaps you are running into an infinite loop...

I would also suggest checking out this Guided Answer on Troubleshooting Error 14 issues for additional information:

https://answers.sap.com/questions/427291/how-to-move-agentry-loop-over-collection-to-java-c.html

Thanks,

Ray

0 Kudos

Hi Ray,

I don't see if JVM is crashing in log files. I've tried infinite loop on development environment, but I got different error message. As I understand there is different instance of my class for every user, so there shouldn't be collision between users. But I have static method in my class, so I want to know if it can be problem.

Thanks,

Jakub