New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

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 11.1.0.7 (64-bit)

Form Builder 11.1.2.1.0 (64-bit)

Windows 7 Pro 64-bit

Java:

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)

IDAutomation LinearBarcode.jar


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

Hank

Operating System: Windows 7 x64

Application: Oracle Forms and Reports BUILDER

08-31-15     9 year(s) ago    

  Report Abuse

 

HankF

Best Answer

This problem had nothing at all to do with barcode creation. There is a field on the report that had no source set. It does not render because it is hidden by a format trigger. It appears this case is handled by the Builder, but blows up the in-process reports engine used when a report is called from Forms. I remove triggers, removed fields, removed parameters, and even the barcode generation code before I found it.

Marking this resolved.
Thanks
Hank

Posted 9 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook