Error executing query Sql Server with jtds [closed]

1

I'm like a strange situation, my code works perfectly in my environment. On the client tablet does not work ... The only difference is that my tablet has the developer option enabled. I created the application for version 3, the client tablet is with version 4.0.3. Here is the code that changes when error occurs: It works in both environments

 Button btnTestaConexao = (Button) layout.findViewById(R.id.btnTestarConexao);
 btnTestaConexao.setOnClickListener(new View.OnClickListener() {

    @Override
    public void onClick(View v) {
        ConsultaProduto produto = new ConsultaProduto();
        Boolean conexaoOk = produto.testaConexao(new ParametroConexao(edtBanco.getText().toString(), edtIp.getText().toString(), edtUsuario.getText().toString(), edtSenha.getText().toString(), edtInstancia.getText().toString()), (ConsultaPrecoActivity) getActivity());
        if (conexaoOk) {
            Toast.makeText(getActivity(), "Conexão estabelecida com sucesso!", Toast.LENGTH_LONG).show();

        } else {
            Toast.makeText(getActivity(), "Falha na conexão", Toast.LENGTH_LONG).show();
        }
    }
 });

When entering the code below within the if(conexãoOk) error only on the client:

 Produto _produto = produto.consultaProdutoEstoque("012162043052", getActivity());
 Toast.makeText(getActivity(), "executou consulta...", Toast.LENGTH_LONG).show();

 if (_produto != null) {
    Toast.makeText(getActivity(), "Produto: " + _produto.getDescricao(), Toast.LENGTH_LONG).show();
 }

Any suggestions?

    
asked by anonymous 06.07.2015 / 18:51

0 answers