ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sheile <sheile1...@gmail.com>
Subject Ignore breakpoint in Java Servlet with iBatis
Date Wed, 15 Jul 2009 05:28:55 GMT
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-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message