Buggy code:
@ Controller @ RequestMapping ( "view" ) public class UserProfileController { private User _loggedInUser = null ; private UserProfileWrapper _currentUserProfile = null ; private static final Log _log = LogFactoryUtil . getLog ( UserProfileController . class ) ; @ Autowired private SmartValidator validator ; @ InitBinder ( "userBean" ) public void initUserWrapperBeanBinder ( WebDataBinder binder ) { } public UserProfileController ( ) { } @ RequestMapping ( params = "page=view" ) public String showUserProfileView ( PortletRequest request , PortletResponse response , Model model , @ RequestParam ( required = true ) String userId ) throws PortalException , SystemException { } @ RequestMapping ( params = "page=edit" ) public String showUserProfileEdit ( PortletRequest request , PortletResponse response , Model model , @ RequestParam ( required = true ) String userId ) throws PortalException , SystemException { } @ RequestMapping ( params = "page=subscriptions" ) public String showUserProfileSubscriptions ( PortletRequest request , PortletResponse response , Model model , @ RequestParam ( required = true ) String userId , @ RequestParam ( required = false , defaultValue = "1" ) int paginationId ) throws PortalException , SystemException { } @ RequestMapping ( params = "action=navigateSubscriptions" ) public void navigateSubscriptions ( ActionRequest request , Model model , ActionResponse response , @ RequestParam ( required = true ) String paginationAction ) throws IOException { Integer paginationPageId = 1 ; switch ( paginationAction ) { case "First" : paginationPageId = 1 ; break ; case "<Previous" : paginationPageId = ( _currentUserProfile . getSubscriptionsPaginationPageId ( ) ) - 1 ; break ; <START_BUG> case "Next>;" : <END_BUG> paginationPageId = ( _currentUserProfile . getSubscriptionsPaginationPageId ( ) ) + 1 ; break ; case "Last" : paginationPageId = _currentUserProfile . getSubscriptionsPaginationPageMax ( ) ; break ; } response . sendRedirect ( ( ( ( "//web//guest//member//-//member//userId//" + ( _currentUserProfile . getUserId ( ) . toString ( ) ) ) + "//page//subscriptions//" ) + ( paginationPageId . toString ( ) ) ) ) ; } @ RequestMapping ( params = "page=subscriptionsManage" ) public String showUserSubscriptionsManage ( PortletRequest request , PortletResponse response , Model model , @ RequestParam ( required = true ) String userId ) throws PortalException , SystemException { } @ RequestMapping ( params = "messageError=true" ) public String sendMessageError ( PortletRequest request , Model model , BindingResult result , @ RequestParam ( required = false ) String redirect , @ RequestParam ( required = true ) String userId ) { } @ RequestMapping ( params = "messageSuccess=true" ) public String sendMessageSuccess ( PortletRequest request , Model model , BindingResult result , @ RequestParam ( required = false ) String redirect , @ RequestParam ( required = true ) String userId ) { } @ RequestMapping ( params = "action=send" ) public void sendMessage ( ActionRequest request , Model model , ActionResponse response , MessageBean messageBean , BindingResult result , @ RequestParam ( required = false ) String redirect ) throws PortalException , SystemException , MailEngineException , AddressException { } @ RequestMapping ( params = "updateError=true" ) public String updateProfileError ( PortletRequest request , Model model , @ RequestParam ( required = false ) boolean emailError , @ RequestParam ( required = false ) boolean passwordError , @ RequestParam ( required = true ) String userId ) { } @ RequestMapping ( params = "updateSuccess=true" ) public String updateProfileSuccess ( PortletRequest request , Model model , @ RequestParam ( required = false ) String redirect , @ RequestParam ( required = true ) String userId ) { } @ RequestMapping ( params = "action=update" ) public void updateUserProfile ( ActionRequest request , Model model , ActionResponse response , @ ModelAttribute UserBean updatedUserBean , BindingResult result , @ RequestParam ( required = false ) String redirect ) throws PwdEncryptorException , IOException { } private void initUserWrapper ( PortletRequest request , Model model , String userId ) throws PortalException , SystemException { } private boolean updateUserProfile ( UserBean updatedUserBean ) throws Exception { } private void sendUpatedEmail ( User user ) throws MailEngineException , AddressException { } }

Fix:
case "Next>" :