on 09-08-2009 2:30 PM
Hi,
I am currently dealing with JCO Version 2.1.8.
For testing purposes, I want to receive data from a Remote Function Module existing in our SAP development system.
Therefore I created a simple Java servlet:
public class POA_EDS_Servlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
...
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String uri = request.getParameter("uri");
JCO.Client connection;
connection = JCO.createClient("200",
"DAHMSMA",
"*******",
"EN",
"vmw3063.wdf.sap.corp",
"00");
try {
connection.connect();
}
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
}
}
After deploying and when running this servlet, the application server is crashing. That means I have to restart the server via Remote Desktop Connection.
Can anybode provide some help?
Regards
Marco
Edited by: Marco Dahms on Sep 8, 2009 3:30 PM
Edited by: Marco Dahms on Sep 8, 2009 3:33 PM
Hello there,
Can you please paste your defaultrace.log here. This log file will show the exception occured before the crash.
For better debugging always using a logging mechanism and log the messages to a particular file.
Regards,
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.