cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.StackOverflowError

Former Member
0 Kudos

Hi,

Whenever i run system jobs like System_removeoldjobs I always ended up with java stack error.

And also when searching old job Id it always resulted to that.

Can someone here help me why this error came out?

What are the possible reason and the solution for this?

Thanks!

-Alyssa

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The problem is thatt even that system maintenance jobs like System_ProcesskeepClause ended up with this error.

Is it also possible to set KeepClause of jobs with script?

gmblom
Active Contributor
0 Kudos

Hi,

In that case you have to apply a later patch to fix this or ask SAP support for a solution.

Regards Gerben

Former Member
0 Kudos

Thank you.

Can we change keepclause value using script?

gmblom
Active Contributor
0 Kudos

Yes you can, but keep clauses are cleaned up by process keep clauses, so that will not help you here.


Regards Gerben

Former Member
0 Kudos

Hi Gerben,

Do you know how to get KeepUnits value in script?

Thanks

Alyssa

gmblom
Active Contributor
0 Kudos

Hello,

You are probably trying to attempt to delete a very big chain. This has proven to cause some issues in older CPS versions.

What you can try to do is set the expiration date on that job. Then the process keep clause job will take care of it:

From the shell:

{

  Job j = jcsSession.getJobByJobId(new Long(<your job id here>));

  j.setKeepExpiration(new DateTimeZone());

  jcsSession.persist();

}

After the next time the process keep clause job has ran it should be removed automatically.

If you are using RemoveOldJobs to remove everything after 3 months or so, you can also think of implementing a global keep clause.

Regards Gerben