The topic is Integrating a Web Application With a Database Below are softwares installed in my PC: OS=Windows98 Tomcat v. 4.1.27.exe J2SE/JDK v. 1.3.1 mysql mysql-connector-java
Below is the content of Autoexec.bat:
Compilation of servlet files below were successful. InitializeConnectionPool.java ScrambleGameServlet.java NamingService.java ScrambleGameService.java Word.java WordCategory.java WordCategoryDAO.java WordCategoryService.java WordDAO.java
Below is the content of the deployment descriptor -web.xml:
The database wordgames above is located at the directory below:
Below are files inside the directory above: wordcategory.frm wordcategory.MYI wordcategory.MYD word.frm word.MYI word.MYD wordhint.frm wordhint.MYI wordhint.MYD
To activate the Scramble Game Servlet, using a Web Browser, I entered the URL below:
Below is the displayed page form for the URL above: Duke's Arcade Select from one of the following games:
Word Scramble When I clicked the Word Scramble above, errors below occured:
What do errors above mean? What should I do to correct those errors so to run this Web application with database in my PC? Can anybody there help? Any suggestions would greatly be appreciated. Thanks in advance. Regards, Cathy
this is the most important part to look at: java.lang.NullPointerException at sl314.domain.WordCategoryDAO.selectAllCategories(WordCategoryDAO.java:38) NullPointer means that you tried to access something on an object which had not been asigned yet, ie the reference was null. For example you get it when you do this: String myString; myString.toString(); when you need to make myString into something before you call a method. ie String myString = new String("Hallo"); myString.toString(); look at line 38 of WordCategoryDAO because you have an error like this!
Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Joined: Oct 04, 2003
if you want more detailed help you must post this code for us to look at !