Exception Stack Trace does not show the line no of error

Discussions

General J2EE: Exception Stack Trace does not show the line no of error


  1. Hi
    I got the following exception for a wrong query in my code
    but the stack trace on weblogic 6.1 console does not inform me about the exact line on which the error has occured.
    This error is thrown in my class com.gcre.entbill.DAO's executeQuery() method .
    I am using ant for compiling my source code.
    Is there any specific setting I have to do to see the line no's where error has occured.

    The exception stack trace I got is
     
    com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near ','.

            at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2429)
            at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1865)
            at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
            at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)
            at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)
            at com.sybase.jdbc2.jdbc.SybStatement.queryLoop(SybStatement.java:1401)
            at com.sybase.jdbc2.jdbc.SybStatement.executeQuery(SybStatement.java:1386)
            at com.sybase.jdbc2.jdbc.SybPreparedStatement.executeQuery(SybPreparedState
    ment.java:69)
            at weblogic.jdbc.jts.Statement.executeQuery(Statement.java:208)
            at com.gcre.entbill.DAO.executeQuery(DAO.java)
            at com.genre.facbill.backend.CashApplyItemsDAO.loadAdditionalItems(CashAppl
    yItemsDAO.java)
            at com.genre.facbill.backend.CashApplyItems.loadAdditionalItems(CashApplyIt
    ems.java)
            at com.genre.facbill.backend.ejb.AutoApplyCashBean.getAdditionalItems(AutoA
    pplyCashBean.java)
            at com.genre.facbill.backend.ejb.AutoApplyCashBean_vwtyte_EOImpl.getAdditio
    nalItems(AutoApplyCashBean_vwtyte_EOImpl.java:187)
            at com.genre.facbill.backend.ApplyAdditionalItemsEvent.getData(ApplyAdditio
    nalItemsEvent.java)
            at com.genre.facbill.backend.ApplyAdditionalItemsAction.execute(ApplyAdditi
    onalItemsAction.java)
            at com.genre.facbill.common.BaseBillingAction.perform(BaseBillingAction.jav
    a)
            at org.apache.struts.action.ActionServlet.processActionPerform(ActionServle
    t.java:1786)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
            at com.genre.facbill.facbillservlet.ClusterAwareActionServlet.doPost(Cluste
    rAwareActionServlet.java)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at com.genre.facbill.facbillservlet.ClusterAwareActionServlet.service(Clust
  2. Have you turned debug on?

    <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on">
  3. Yes I did but there is no response.