• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

AbstractWizardFormController: java.lang.NullPointerException at processFinish(...)

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Could someone please help me understand that why am I getting this error at RegisterServiceProviderController.java when processFinish(...) method is called?


Following are all the files needed to run this simple application:

RegisterServiceProviderController.java


web.xml


dispatcher-servlet.xml


ExtendedServiceProvider.java


BusinessLocation.java


ServiceProvider.java


State.java


StateData.java


ServiceProviderDAO.java


ServiceProviderDAOImpl.java


ServiceProviderService.java


ServiceProviderServiceImpl.java


numberOfLocationForm.jsp


locationDetailForm.jsp



registrationConfirmationForm.jsp


home.jsp


sql code for pre-populating the select tag on locationDetailForm.jsp for mysql


Looking forward to someone waking me up of the blunder i might be committing here.
Thanks



 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's like 600 lines of code there. Would it be possible for you to post a minimal use case that demonstrates the problem more concisely?
 
Rohit Bhal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello David

I've tried to compile the problem I've been having in an another post below:
https://coderanch.com/t/507689/Spring/AbstractWizardFormController-teasing-command-object

Thanks for the reply
 
Rohit Bhal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I mistakenly had "serviceProviderDAO" as the parameter variable (line 76 of RegisterServiceProviderController) when I should have had "serviceProviderService". I wonder where did "serviceProviderDAO" come from as i dont remember not using eclipse source creater for getters and setters.

So that NullPointerException thing has been resolved.

Thanks

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Glad to hear to worked it out--errors like that can be hard to find!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic