Aditi Deshpande

Greenhorn
+ Follow
since Sep 04, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aditi Deshpande

The operations are sequential. A for loop is used to call the function. They are not dependent on each other.
I am trying to execute a set of 200 curl commands on a remote host using Java. The jar file is deployed on the host and it is run on the remote host.
I am using the following code to do so.



The problem that I am facing is that some of the curl commands when executed, randomly show an error like "java.net.NoRouteToHostException: No route to host (Host unreachable)". I am able to ping the host and access the web interface and it seems to be working fine. There are a bunch of curl commands that I am executing. (About 200). Some of them work perfectly fine. Randomly, some command fails with the exception "java.net.NoRouteToHostException: No route to host (Host unreachable)". Retries may or may not work. The curl commands are spit out on a log.  When I notice that a curl command has failed, I copy the curl command and try to manually execute it. It works fine without any error even from another terminal on the same host.

One of the things I noticed was that increasing the wait time increased the chances of a retry working. It is like the garbage collector gets more time to free resources and hence it can execute the command without any errors on a retry. The jsonData that is passed to the function is formed using a complex SQL query and takes a few seconds to process. But all of the resources seem to have been freed after the jsonData is fetched.

I feel like this is a Java problem. Glad for any help in figuring out what is going on.

Thanks!
Thank you Roel and Jeanne for your valuable reply!
I think I will heed your advice and probably get the prep material for Java 7 as of now and start preparing. Depending on how my preparation goes and the availability for OCP 8, I will register for OCA 7 or 8.
I graduated a year back and was working in C# mostly. I have worked in Java previously(about a year) and wish to go back to working in Java. I want to appear for the certification exams within the next 2 months. Which certification OCAJP 7+ OCPJP 7 or OCAJP 8+ OCPJP 8 should I opt for?

Also is 1-2 month timeframe enough for the preparation?

Thanks in advance!