Howdy, You need to have the debug switch enabled when using javac to compile your classes. If you're using ant, add debug="true" to your javac task invocation. From the command-line, it's -g I think.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Jose Alfonso Martinez [mailto:[EMAIL PROTECTED] >Sent: Tuesday, February 17, 2004 3:50 PM >To: [EMAIL PROTECTED] >Subject: displaying line numbers in errors > >Hello, > >When exceptions are thrown in my servlets and the Stack Trace is printed, I >can see that java can find the line where the error ocurrs in some classes, >and in some others not. For example: > >In some classes here, actually my own classes, it says "Unknown Source" >======================================================================= == > >ERROR: value too long for type character varying(20) >org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131) >org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Conne ctio >n.java:505) >org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statem ent. >java:320) >org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statem ent. >java:48) >org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingP repa >redStatement.java:230) >com.cevex.data.InscritoData.write(Unknown Source) >com.cevex.servlet.InscribeServlet.inscribe(Unknown Source) >com.cevex.servlet.InscribeServlet.doPost(Unknown Source) >javax.servlet.http.HttpServlet.service(HttpServlet.java:760) >javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >.... > > >How can I do for my classes to be shown with the line number where the >exception is thrown???? > >I guess this is just a classpath issue. Pointers are appreciated. > >Thanks a lot. > >Jose > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
