Agile Api : Session closing Issue
Hi All,
I am facing a issue which I need to resolve as soon as possible, As I am stucked with this from the long time.
I have a Job which runs four java codes. This Jobs runs 3 times in a day. Usually it runs fine, but sometimes (maybe 2 or 3 times in a week) job which executes at 12:00 PM gets failed by below message (specifically 10:00 PM run only):
Exception in thread “main” java.lang.NoClassDefFoundError: com/agile/api/pc/Session$LogoutAction
at com.agile.api.pc.Session.close(Session.java:355)
at DAS_BKK.main(DAS_BKK.java:500)
Exception in thread “ThreadPoolWorkerThread-1” java.lang.NoClassDefFoundError: oracle/j2ee/rmi/RMIMessages
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:109)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
I am unable to fix this issue as it is strange that job sometimes run fine and sometimes fails and that too mostly at 10:00 PM run
Any suggestions would be much more appreciated and very helpful.
So for the connection_URL which one you are mentioning. The load balancer URL or individual node URL.
I too have configured batch-job in similar environment which runs on hourly basis. I am using AgileSessionFactory.refreshInstance(url) for accessing the URL and in finally block i am closing the session.
Did you follow similar approach ?