• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC Frustration

 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I copied the files from my 98 system to my XP system for JDBC 2a.
For some reason, everything works fine on my 98 system, but I can't get past the login page on XP. And I can't find what is causing the problem!
After trying to login using javaranch as the password, I get a blank page.
Irritating.
Going to go drink some beer.
Happy 4th!


After some beer and watching fireworks and sleep, I have determined it is a nullPointerExcpetion causing the grief. Now to locate just where that problem originates. In the list, is it the first or last spot on the list that is closest to the origin of the bad code?
[ July 05, 2008: Message edited by: Carol Murphy ]
 
Marilyn de Queiroz
Sheriff
Posts: 9062
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
usually the point of failure is on top and the code that called it is below it (from newest to oldest call)
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Marilyn. I'm making halting progress!
My old system is not hooked up to the internet, so I have to go back and forth between computers, which are in different rooms........
I re-input my passing copy of JDBC 4a on my new system, typing it manually after printing it out from my old one, and to my great pleasure, found that I can now get past the login page, and even add a video, but for some reason the video list won't display. The headings for each column display, but the table is empty. The records are being added, I checked mysql to verify that, they just won't display! It's probable a typo in the SELECT * FROM VIDEOS statement. I'm going to take a little break for awhile, and come back fresh. The problem has to be fairly simple, and maybe fresh eyes will find it quicker!
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, fresher eyes have come to the conclusion that there is some problem with the listvideos.jsp and/or the instructor's solution for JDBC 4a. The word null appears above the table headers, and there is no data being passed along to populate the table. Hmmmmmmmm.
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OMG! I just now found it! I've been staring at this code for 3 days, and I just now noticed that in one of the jsp pages an attribute had a capital L where it should have had a lowercase l.
Changed that, and voila! My video list appeared.
I need a drink.
It's 9:32 AM.......
Well, that just means it's 9:32 PM somewhere in the world..........
 
Marilyn de Queiroz
Sheriff
Posts: 9062
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Super! It's those little things sometimes that throw us.

I'd guess that India is about 12 hours different from your timezone.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic