Buggy code:
@ Controller @ RequestMapping ( "storeSetting" ) public class StoreContrller extends BaseController { @ Autowired private StoreService storeService ; @ Autowired private ServiceService serviceService ; @ Autowired private ServiceOrderService serviceOrderService ; @ Autowired private LanguageService languageService ; @ Autowired private AdminUserService adminUserService ; @ Autowired private GoodsService goodsService ; private boolean status = true ; private String info = "" ; private String handleContent = "" ; private short level = LogManageTools . NOR_LEVEL ; @ RequestMapping ( method = RequestMethod . GET ) public ModelAndView getStoreSetting ( HttpServletRequest request ) { } private void putInfo ( HttpServletRequest request , Integer storeId , ModelAndView mav ) throws IOException { } @ RequestMapping ( value = "//getInfo" , method = RequestMethod . GET ) public ModelAndView getInfo ( HttpServletRequest request ) { } @ RequestMapping ( value = "search//{storeId}" , method = RequestMethod . GET ) public ModelAndView getStoreSetting ( HttpServletRequest request , @ PathVariable Integer storeId ) { } private Tstore getInfo ( HttpServletRequest request , Integer storeId ) throws IOException { } @ RequestMapping ( value = "//uploadLogo" , method = RequestMethod . POST ) @ ResponseBody public String uploadLogo ( HttpServletRequest request , @ RequestParam ( value = "images" , required = true ) MultipartFile file , Integer storeId ) { } @ RequestMapping ( value = "//test" , method = RequestMethod . POST ) @ ResponseBody public String test ( HttpServletRequest request , @ RequestParam ( value = "images" , required = true ) MultipartFile file ) { } private String getImagePath ( byte [ ] image , Integer storeId , HttpServletRequest request , String name ) throws IOException { } @ RequestMapping ( value = "//uploadBackground" , method = RequestMethod . POST ) @ ResponseBody public String uploadBackground ( HttpServletRequest request , @ RequestParam ( value = "images" , required = true ) MultipartFile file , Integer storeId ) { } @ RequestMapping ( value = "//changeKey" , method = RequestMethod . POST ) @ ResponseBody public String changePublicKey ( HttpServletRequest request , String value , @ RequestParam ( "name" ) Integer storeId ) { Map < String , Object > params = getHashMap ( ) ; Map < String , Object > res = getHashMap ( ) ; if ( ( storeId == null ) || ( storeId == ( - 1 ) ) ) { storeId = getSessionUser ( request ) . getStoreId ( ) ; } String updatePublicKeyHql = "update<seq2seq4repair_space>Tstore<seq2seq4repair_space>set<seq2seq4repair_space>publicKey=:publicKey<seq2seq4repair_space>where<seq2seq4repair_space>storeId=:storeId" ; try { params . put ( "storeId" , storeId ) ; params . put ( "publicKey" , value ) ; storeService . update ( updatePublicKeyHql , params ) ; String k = "" ; for ( String key : STORE_TAKEN_MAP . keySet ( ) ) { Integer val = STORE_TAKEN_MAP . get ( key ) ; if ( val == storeId ) { k = key ; break ; } } if ( ! ( k . isEmpty ( ) ) ) { STORE_TAKEN_MAP . remove ( k ) ; } <START_BUG> Notification notification = new Notification ( 10001 , value ) ; <END_BUG> BaiduPushTool . pushMsgToTag ( notification , ( ( getSessionUser ( request ) . getStoreId ( ) ) + "" ) , IOS_TYPE ) ; STORE_TAKEN_MAP . put ( SecurityTools . MD5 ( ( ( ConvertTools . bw ( storeId , 8 , "S" ) ) + value ) ) , storeId ) ; handleContent = "修改公钥成功;" ; info = getMessage ( request , "operate.success" ) ; res . put ( "msg" , value ) ; } catch ( Exception be ) { be . printStackTrace ( ) ; status = false ; handleContent = "修改公钥失败;" + ( be . getMessage ( ) ) ; level = LogManageTools . FAIL_LEVEL ; } LogManageTools . writeAdminLog ( handleContent , level , request ) ; res . put ( "status" , status ) ; res . put ( "info" , info ) ; return JSON . toJSONString ( res ) ; } @ RequestMapping ( value = "//changeLangSet//{storeLangIds}" , method = RequestMethod . GET ) @ ResponseBody public String changeLangSet ( HttpServletRequest request , @ PathVariable String storeLangIds , Integer storeId ) { } @ RequestMapping ( value = "changeStoreName" , method = RequestMethod . POST ) @ ResponseBody public String changeStoreName ( HttpServletRequest request , String value , @ RequestParam ( "name" ) Integer storeId ) { } @ RequestMapping ( value = "//changeStoreCurrency" , method = RequestMethod . POST ) @ ResponseBody public String changeStoreCurrency ( HttpServletRequest request , String value , @ RequestParam ( "name" ) Integer storeId ) { } @ RequestMapping ( value = "//changeStorePrint" , method = RequestMethod . POST ) @ ResponseBody public String changeStorePrint ( HttpServletRequest request , Integer printType , Integer storeId ) { } @ RequestMapping ( value = "//changeService" , method = RequestMethod . POST ) @ ResponseBody public String changeService ( HttpServletRequest request , Integer serviceId ) { } }

Fix:
Notification notification = new Notification ( 10002 , value ) ;