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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.