Skip to main content
se eliminaron 58 caracteres en el cuerpo
Origen Enlace
Roberto E Moran
  • 3.5k
  • 1
  • 9
  • 19

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

  default Resource readFileFromBlob(String filename, String containerName){
     return readFileFromBlob(filename, containerName);
  }

Implement:

@Override
    public Resource readFileFromBlob(String filename, String containerName) {
        log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
        BlobServiceClient storageClient = new BlobServiceClientBuilder()
                .connectionString(properties.getConfiguration().getStorageConnectionStr())
                .buildClient();

        BlobContainerClient blobContainerClient = 
        storageClient.getBlobContainerClient(containerName);
        BlobClient blobClient = blobContainerClient.getBlobClient(filename);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        blobClient.download(outputStream);
        final byte[] bytes = outputStream.toByteArray();
        return new ByteArrayResource(bytes);
    }

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

  default Resource readFileFromBlob(String filename, String containerName){
     return readFileFromBlob(filename, containerName);
  }

Implement:

@Override
    public Resource readFileFromBlob(String filename, String containerName) {
        log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
        BlobServiceClient storageClient = new BlobServiceClientBuilder()
                .connectionString(properties.getConfiguration().getStorageConnectionStr())
                .buildClient();

        BlobContainerClient blobContainerClient = 
        storageClient.getBlobContainerClient(containerName);
        BlobClient blobClient = blobContainerClient.getBlobClient(filename);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        blobClient.download(outputStream);
        final byte[] bytes = outputStream.toByteArray();
        return new ByteArrayResource(bytes);
    }

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

default Resource readFileFromBlob(String filename, String containerName){
   return readFileFromBlob(filename, containerName);
}

Implement:

@Override
public Resource readFileFromBlob(String filename, String containerName) {
    log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
    BlobServiceClient storageClient = new BlobServiceClientBuilder()
            .connectionString(properties.getConfiguration().getStorageConnectionStr())
            .buildClient();

    BlobContainerClient blobContainerClient = 
    storageClient.getBlobContainerClient(containerName);
    BlobClient blobClient = blobContainerClient.getBlobClient(filename);

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    blobClient.download(outputStream);
    final byte[] bytes = outputStream.toByteArray();
    return new ByteArrayResource(bytes);
}
se eliminaron 11 caracteres en el cuerpo
Origen Enlace
Roberto E Moran
  • 3.5k
  • 1
  • 9
  • 19

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

    default Resource readFileFromBlob(String filename, String containerName){
        return readFileFromBlob(filename, containerName);
        }

Implement:

@Override
    public Resource readFileFromBlob(String filename, String containerName) {
        log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
        BlobServiceClient storageClient = new BlobServiceClientBuilder()
                .connectionString(properties.getConfiguration().getStorageConnectionStr())
                .buildClient();

        BlobContainerClient blobContainerClient = 
        storageClient.getBlobContainerClient(containerName);
        BlobClient blobClient = blobContainerClient.getBlobClient(filename);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        blobClient.download(outputStream);
        final byte[] bytes = outputStream.toByteArray();
        return new ByteArrayResource(bytes);
    }

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

    default Resource readFileFromBlob(String filename, String containerName){
        return readFileFromBlob(filename, containerName);
        }

Implement:

@Override
    public Resource readFileFromBlob(String filename, String containerName) {
        log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
        BlobServiceClient storageClient = new BlobServiceClientBuilder()
                .connectionString(properties.getConfiguration().getStorageConnectionStr())
                .buildClient();

        BlobContainerClient blobContainerClient = 
        storageClient.getBlobContainerClient(containerName);
        BlobClient blobClient = blobContainerClient.getBlobClient(filename);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        blobClient.download(outputStream);
        final byte[] bytes = outputStream.toByteArray();
        return new ByteArrayResource(bytes);
    }

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

  default Resource readFileFromBlob(String filename, String containerName){
     return readFileFromBlob(filename, containerName);
  }

Implement:

@Override
    public Resource readFileFromBlob(String filename, String containerName) {
        log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
        BlobServiceClient storageClient = new BlobServiceClientBuilder()
                .connectionString(properties.getConfiguration().getStorageConnectionStr())
                .buildClient();

        BlobContainerClient blobContainerClient = 
        storageClient.getBlobContainerClient(containerName);
        BlobClient blobClient = blobContainerClient.getBlobClient(filename);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        blobClient.download(outputStream);
        final byte[] bytes = outputStream.toByteArray();
        return new ByteArrayResource(bytes);
    }
Origen Enlace

JAVA - ERROR CLEAN INSTALL IL_INFINITE_RECURSIVE_LOOP

Porque da error IL_INFINITE_RECURSIVE_LOOP al hacer clean and install ?

interface devuelve un resource al leer blob storage de azure:

    default Resource readFileFromBlob(String filename, String containerName){
        return readFileFromBlob(filename, containerName);
        }

Implement:

@Override
    public Resource readFileFromBlob(String filename, String containerName) {
        log.info("connection:{}", properties.getConfiguration().getStorageConnectionStr());
        BlobServiceClient storageClient = new BlobServiceClientBuilder()
                .connectionString(properties.getConfiguration().getStorageConnectionStr())
                .buildClient();

        BlobContainerClient blobContainerClient = 
        storageClient.getBlobContainerClient(containerName);
        BlobClient blobClient = blobContainerClient.getBlobClient(filename);

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        blobClient.download(outputStream);
        final byte[] bytes = outputStream.toByteArray();
        return new ByteArrayResource(bytes);
    }