Null pointer on preview of .docx file uploaded via Nuxeo .NET SDK

I'm evaluating the Nuxeo FT10.1 platform using the VMware virtual machine available on the Nuxeo website. My problem comes when I upload a .docx file through the .NET SDK: the file is correctly uploaded, but when I access to the document through the web interface, the preview window only shows the following message:

{"entity-type":"exception","status":500,"message":"java.lang.NullPointerException"}

This only happens with .docx files uploaded via SDK. The files uploaded through the web are previewed correctly.

Here is the code that uploads the file:

public async void CreateDocument(string documentPath, string repositoryPath)
{
    using (var client = new Client(RepositoryEndpoint, new Authorization(Username, Password)))
    {
        var folder = (Document)await client.DocumentFromPath(repositoryPath).Get();

        var uploader = client.Uploader()
                .SetChunked(true)
                .SetChunkSize(1024);

        await uploader.AddFile(documentPath).UploadFiles();

        var documents = await uploader.Operation("FileManager.Import")
                .SetContext("currentDocument", folder.Path)
                .Execute();

        Console.WriteLine("Operation complete: CreateDocument");
    }
}

Any idea?

Thanks!

0 votes

1 answers

59 views

ANSWER



Hi Alfonso,

the file server.log contains the NullPointerException cause. Please check it.

Regards, VS!

0 votes