Java Actions are not working. getting error contact system Administrator.

1
    I have to compress the pdf file size , so that I have implemented  java actions but its not working. and getting error like mentions above.            
asked
4 answers
1

The file you are using as input cannot be found. Check if you are using a valid file.

answered
1

Hi Anil,

 

The file not found exception occurred in the logs.

 

I would suggest to implement logger in the java action to trace the issue.

answered
0

This looks like you are trying to read a file called “NewPDF”. Does this file exist? The error message suggests it doesn’t.

I suspect you actually want to read from an existing Mendix FileDocument. To do this take a look at the getFileDocumentContent method in the Core API.

https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#getFileDocumentContent(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject)

I hope this helps.

answered
0

Hi Anil,

 

If you are still stuck on this problem it may help to deploy your application to Eclipse and try debugging in Eclipse. I have found that it sometimes offers additional information in the logs.

 

Hope that helps.

answered