This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes JDBC Frustration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "JDBC Frustration" Watch "JDBC Frustration" New topic
Author

JDBC Frustration

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Jul 22, 2000
Posts: 9044
    
  10
usually the point of failure is on top and the code that called it is below it (from newest to oldest call)


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Jul 22, 2000
Posts: 9044
    
  10
Super! It's those little things sometimes that throw us.

I'd guess that India is about 12 hours different from your timezone.
 
Consider Paul's rocket mass heater.
 
subject: JDBC Frustration