Android AeroGear Rest错误java.io.IOException:Stream已关闭

时间:2017-05-06 17:14:16

标签: android keycloak aerogear

尝试使用aerogear管道从Restfull API检索数据时,请关闭Stream ....

AuthzModule authzModule = AuthorizationManager.getModule("KeyCloakAuthz");

authzModule.requestAccess( (Activity)this, new Callback<String>() {
        @SuppressWarnings("unchecked")
        @Override
        public void onSuccess(String s) {
          Pipe<Transactions> pipes = PipeManager.getPipe("transactions");
          pipes.read(new AbstractCallback<List<Transactions>>() {
            @Override
            public void onSuccess(List<Transactions> id) {
              //nothink happen
            }
            @Override
            public void onFailure(Exception e) {
            //error stream closed
            }

你能帮我吗谢谢

0 个答案:

没有答案