Execução De Procedures MySql - [Resolvido]

Bom dia Amigos.

Estou chamando o seguinte Método

    public JasperPrint SetaValoresJasper(String CaminhoArquivoJar) {
        try {
            @SuppressWarnings("static-access")
            Connection con = ConnectionFactory.getInstance().getConnection();
            CallableStatement L_CallableStatement = con.prepareCall("{call sp_Rel_Agupamento_Mensal_Rec_Pag(1,2008,12)}");
            ResultSet L_ResultSet = L_CallableStatement.executeQuery();
            JRResultSetDataSource jrRS = new JRResultSetDataSource(L_ResultSet);
            HashMap map = new HashMap();
            JasperPrint rel = JasperFillManager.fillReport(CaminhoArquivoJar, map, jrRS);
            
            return rel;
        } catch ( JRException ex) {
            return null;
        } catch ( SQLException ex) {
            return null;
        }
    }

O problema esta na seguinte linha.

CallableStatement L_CallableStatement = con.prepareCall("{call sp_Rel_Agupamento_Mensal_Rec_Pag(1,2008,12)}");

Quando ele passa nessa linha esta dando o seguinte erro

“Internal error when parsing callable statement metadata”

Alguem pode me ajudar ?

Atenciosamente
Caio Oliveira

Oi,

Segundo isto aqui você deveria colocar tudo na mesma linha
Dá uma testada ai e veja se funciona

Abs

O problema estava no Driver.

Peguei a versão mais atual no site do Mysql e funcionou obrigado