Expand my Community achievements bar.

FileNotFoundException when using DMUtils

Avatar

Former Community Member
Hello,<br /><br />I am getting a FileNotFoundException when I call DMUtils.getDataBuffer(). I verified I have the correct permissions on my tmp directory (/tmp/formserver). The tmp directory does contain files and sub-directories created by LiveCycle (ie., XMLFormService and PDFManipulation are 2 of the sub-directories created).<br /><br />The code successfully creates/starts a UserTransaction and DataManager.<br /><br />Here is the stack trace:<br /><br />[10/11/05 10:49:31:494 CDT] 25182e36 SystemErr R java.io.FileNotFoundException: \tmp\formserver\adobews_gfifsr01_gfifsr01_server1_1976681980\DM5957187462937543782.dir\DM8437799059940154455.tmp (The system cannot find the path specified)<br />[10/11/05 10:49:31:504 CDT] 25182e36 SystemErr R at java.io.FileOutputStream.open(Native Method)<br />[10/11/05 10:49:31:504 CDT] 25182e36 SystemErr R at java.io.FileOutputStream.<init>(FileOutputStream.java:201)<br />[10/11/05 10:49:31:504 CDT] 25182e36 SystemErr R at java.io.FileOutputStream.<init>(FileOutputStream.java:92)<br />[10/11/05 10:49:31:504 CDT] 25182e36 SystemErr R at com.adobe.util.DMUtils.copyFile(DMUtils.java:125)<br />[10/11/05 10:49:31:504 CDT] 25182e36 SystemErr R at com.adobe.util.DMUtils.getDataBuffer(DMUtils.java:70)
3 Replies

Avatar

Former Community Member
Is your application running on the same machine where PDFManipulation and XMLFormService are running? I saw this once when trying to call the APIs remotely.

Avatar

Former Community Member
The code that calls DMUtils is on a remote client. If this is truly the case, then what a wonderful feature...



Thanks,

Greg

Avatar

Former Community Member
I don't know if this would be useful but I am using the network path and works for me. The code is as follows.



inStream = new FileInputStream(filePath);

pdfFile = DMUtils.getDataBuffer(dataManager, inStream);



-Sachin