Hi.
I develop a simple servlet with iBatis. I found strange behavior for
breakpoint in eclipse.

Servlet Source:
---------------------
    protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
        System.out.println("Breakpoint 1");    // Set breakpoint

        try {
            Reader reader = Resources.getResourceAsReader("sqlMapConfig.xml");
            SqlMapClient client = SqlMapClientBuilder.buildSqlMapClient(reader);
            client.queryForList("getAllEmployees");    // [A]
        } catch(Exception e) {
            e.printStackTrace();
        }

        System.out.println("Breakpoint 2");    // Set breakpoint
    }
---------------------

Detail:
    1. Send Request from browser.
    2. break program at Breakpoint1.
    3. Resume(F8)
    4. break program at Breakpoint2.
    5. Resume(F8)
    6. Browser get response.

This behavior is perfectly correct, BUT repeat above process many time.
Eclipse ignore breakpoint, but eclipse show output message in console
and browser get correct response.

If comment out the line of [A], this problem is not happen.

do you know resolve this problem?

Environment:
    - eclipse 3.5 or 3.4(both version has this problem)
    - eclipse Web Tools Platform
    - Java 6
    - Tomcat 6.0.20
    - iBatis 2.3.4
    - mysql 5.1.36

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to