aspose file tools*
The moose likes JSF and the fly likes ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java" Watch "ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java