Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

252
Visualizações
Getting null value from postgresql table

I am working on a Spring MVC project. I am having issue with getting null values from database after some time interval. Following is the method written in DAO which return last entered value.

@Override
public String getDashboardData() {
    String q = "SELECT deviceid FROM main_tbl order by id DESC limit 1";
    String newId = jdbcTemplate.queryForObject(q, String.class);
    System.out.println(newId);
    return newId;
}

This method is called from jsp with every 1 sec. My problem is that, this method returns bunch of some values & null value alternately. I didn't get the actual reason because everything works fine.

My output is like below:

01
05
09
41
null
null
null
null
15
09
05
65
10
null
null
null
null 

Is that problem with postgresql..? Or is their any that I missed. I’ll be very grateful for any help!

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda