Temporary File Create permissions required in Java
Are there some Temporary File Create permissions required when report called from Form running in java applet?
Report BUILDER 126.96.36.199 (64-bit)
Form Builder 188.8.131.52.0 (64-bit)
Windows 7 Pro 64-bit
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
I have a report that prints barcoded data on detail rows in a report. It uses the Java package Java package by IDAutomation for this purpose. The Java package contains an encoder that returns a barcode in the form of a GIF image to a field on the report. One of the arguments it requires is a temporary file name generated by srw.create_temporary_filename(). When run under Report Builder it works perfectly, and it creates the temporary image file in my "home" folder tree (C:Users<userID>AppDataLocalTemp). When I run this report from Builder with ProcessMonitor running behind it I can watch the report look for, open, read, and close this LinearBarcode.jar file repeatedly for the successive rows of the report. All appear to be very good in Builder.
The fun starts when I try to call the same report from a FORM (run from Form Builder), where it fails every time, somewhere in the image generation step. I believe it is failing at the image creation itself when it tries to open the temporary image file for writing. I can find the empty temporary files left over after the report runs and fails, but the file size is zero bytes. When I run this report from my test form with Microsoft's ProcessMonitor running behind it I can still see the report look for, open, read, and close this LinearBarcode.jar file for the first row of data in the report, then the report fails. Thus I know that the .jar file and the requisite REPORTS_CLASSPATH/CLASSPATH entries are in sync with the location of the .jar file. The report runs, and it finds the LinearBarcode.jar, opens it, reads from it, and closes it. What I do not see is any activity related to the temporary image file itself. Thus the failure at least gives the appearance of being in the image creation step itself, which makes me wonder about Java security. There are no popup messages about Java security issues though.
I have tried setting up Trace for reports, but that also does not yield anything of use, except to confirm that the report is definitely failing in the barcode creation code, somewhere. This is known from the error message in the log file: REP-1401 Fatal error in <barcode create procedure name>
I am guessing that there could be a missing "write permission" somewhere preventing the creation of the temporary file used to generate the barcode image file. This error only occurs under Java (run from a Form). I have not been able to find anything about this in reading through all I could find on the OracleBarcode.jar demo. I have also not found anything in uncountable Google searches.
Are special permissions required to allow such temporary file operations as described above? If so, where and how are they configured? If not, has anyone else seen this or a similar issue before?
Thanks In Advance
Windows 7 x64
Oracle Forms and Reports BUILDER
08-31-15 8.1 year(s) ago