Skip to Content

Application server crashes when using JCO

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 10, 2009 at 08:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded