| Author |
ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java
|
adam smith ii
Greenhorn
Joined: Feb 04, 2010
Posts: 20
|
|
Hello,
New to this stuff and trying to code as I learn. Have Glassfish project that throws above mentioned "exception".
WARNING: ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
...
at Controller.mainMenuController.doPost(mainMenuController.java:148)
...
It happens when I say "Run" the project in Netbeans and press a command button on the displayed screen, the main menu. When I "run" the mainMenu.jsp file from Netbeans everything runs fine.
I've noticed in the browser address line the following for the "bad" scenario:
http://localhost:8080/WebWormSales/
http://localhost:8080/WebWormSales/mainMenuCmd
and the following for the "good" scenario:
http://localhost:8080/WebWormSales/faces/mainMenu.jsp
http://localhost:8080/WebWormSales/faces/mainMenuCmd
http://localhost:8080/WebWormSales/faces/placeOrderCmd
Would like to understand how to remedy and what is flow that is causing the problem.
Thank you for replying to this.
sun-web.xml
web.xml
mainMenu.jsp
mainMenuController.java
placeOrdersController.java
|
 |
 |
|
|
subject: ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java
|
|
|