Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rohit Bhal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hello David

I've tried to compile the problem I've been having in an another post below:
http://www.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
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to hear to worked it out--errors like that can be hard to find!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic