File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes AbstractWizardFormController: java.lang.NullPointerException at processFinish(...) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "AbstractWizardFormController: java.lang.NullPointerException at processFinish(...)" Watch "AbstractWizardFormController: java.lang.NullPointerException at processFinish(...)" New topic
Author

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

Rohit Bhal
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
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




Skip Skipping
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 28, 2007
Posts: 44
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

Joined: Aug 28, 2007
Posts: 44
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

Joined: Sep 29, 2008
Posts: 12617

Glad to hear to worked it out--errors like that can be hard to find!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AbstractWizardFormController: java.lang.NullPointerException at processFinish(...)