This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: newbie mysql jdbc




On Sun, 14 Oct 2001, Attila Soki wrote:
>   catch (Exception e) {
>    System.out.println("Error 1:"+e.getMessage());
>   }

Use e.printStackTrace() here, you will get better diagnostic info.

> after run i get the following output: Error 1:null

That only means the exception doesn't have a message associated with it,
which doesn't say much.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]