Galera da um erro muito estrnho quando tento inserir dados no banco
Erro"No ResultSet was produced"
Codigopublic void inserirDados(Collection list) {
Sindical_Bean beanInterno = new Sindical_Bean();
Iterator it = list.iterator();
try {
stmt = conexaoSQLServer.createStatement();
int pos = 20000;
while (it.hasNext()) {
beanInterno = (Sindical_Bean) it.next();
rs = stmt.executeQuery("Insert Into tblBaixaSindical (idPagamento,cnpj"
+ ",valorJuro,valorMulta,valorDaGuia,exercicio,tipo,meio"
+ ",banco,entidadeSindical,usuario,capitalSocial,dataVencimento"
+ ",dataPagamento,dataBaixa) values("
+ pos
+ ","
+ beanInterno.getCnpj()
+ ",0,0,"
+ beanInterno.getValorContribuicao()
+ ","
+ beanInterno.getExercicio()
+ ",'guia','normal','bb','Fecomercio',63,0,"
+ beanInterno.getDataVencimento()
+ ","
+ beanInterno.getDataPagamento()
+ ","
+ beanInterno.getDataBaixa() + ");");
pos++;
}
} catch (SQLException e) {
e.printStackTrace();
}
}
Eai so insere um dado em vez dos 8 que estao na list
Falow111