Bazı özel sorunlarla karşılaştım: Dinlenme denetleyicim, neden bir istekte bulunduğumu bilmediğimden birkaç saat çalışıyor. Cevap vermiyor. Tarayıcıda yükleme işlemi bir süreliğine cevap beklemekte. POSTER ile istek gönderirim, bu isteğin denetleyiciye gittiğini ancak yanıt alınmadığını görebiliyorum. Uygulamada hata ayıklamaya çalıştım, planlanmış işlenmiş işlerim var - çalışıyorlar. Fakat denetleyici değil. İstek denetleyiciye ulaşmıyor. Daha önce sıkışmış. Bunun nerede olduğunu nasıl bulabilirim? Teşekkür ederim.Spring MVC Denetleyici sıkışmış ve yanıt vermiyor
@RestController
@RequestMapping("/quotes")
public class QuotesController {
private final QuotesService quotesService;
@Autowired
public QuotesController(QuotesService quotesService) {
this.quotesService = quotesService;
}
@RequestMapping(value="", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<LoadedFileInfo>> getLoadedFilesData(){
List<LoadedFileInfo> result = quotesService.getLoadedFilesData();
return new ResponseEntity<List<LoadedFileInfo>>(result, HttpStatus.OK);
}
@RequestMapping(value="/currencyPairs", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<CurrencyPair>> getCurrencyPairs(){
return new ResponseEntity<List<CurrencyPair>>(quotesService.getCurrencyPairs(), HttpStatus.OK);
}
@RequestMapping(value="/oneMinute", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getOneMinuteQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getOneMinuteQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/fiveMinutes", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getFiveMinutesQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getFiveMinuteQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/fifteenMinutes", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getFifteenMinutesQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getFifteenMinuteQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/thirtyMinutes", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getThirtyMinutesQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getThirtyMinuteQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/oneHour", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getOneHourQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getOneHourQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/fourHours", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getFourHourQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getFourHourQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/oneDay", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getOneDayQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getOneDayQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/oneWeek", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getOneWeekQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getOneWeekQuotes(from, to, currencyPair), HttpStatus.OK);
}
@RequestMapping(value="/oneMonth", method= RequestMethod.GET, produces = "application/json; charset=utf-8")
public ResponseEntity<List<Number[]>> getOneMonthQuotes(@RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime from, @RequestParam @DateTimeFormat(iso= DateTimeFormat.ISO.DATE_TIME) LocalDateTime to, @RequestParam Integer currencyPair){
return new ResponseEntity<List<Number[]>>(quotesService.getOneMonthQuotes(from, to, currencyPair), HttpStatus.OK);
}
}
Öyle ya da sadece bir tane yardımcı olabilir farz ettik gibi analiz her türlü denemedim beri? Günlüklerde herhangi bir hata görüyor musunuz? Bir iş parçacığı denedin mi? Üzerinde bir visualVM bağladınız mı? Hangi uygulama sunucusu? –
Bu bir SpringBoot. Tek bir kontrol cihazım var. Günlüklerlerde hata yok.Thread dökümü denemedim ve visualVM – migAlex
bağlanmadım REST için oluşturduğunuz Controller kodunu gönderir misiniz. – srinivas