I am trying to send requests using JMeter to my application that is running on localhost but many of the requests get failed due to java.net.SocketException. I do not see any exceptions in console though.
I read these question1 and question2 but did not help much.
My code is as following:
try {
return myService.findItems(group);
} catch (NullPointerException n) {
n.printStackTrace();
} catch (HibernateException h) {
h.printStackTrace();
} catch (IOException i) {
i.printStackTrace();
}
return null;
Repository
public LinkedHashMap findItems(String group) throws NullPointerException, HibernateException, IOException {
Session session = sessionFactory.getCurrentSession();
..... //request is sent to database
return items;
}
Screen shots of my JMeter configuration
SocketException means network problem. check you running server status.