• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ApplicationDispatcher[/WebWormSales] PWC1231: Servlet.service() for servlet jsp threw exception java

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic