Barcode problem on report 10g r2

Dear all,
I am testing on a solution provided by IDAutomation. I followed the tutorial with the following page: http://www.idautomation.com/oracle/java_barcode.html
However, I am not able to generate the barcode. The Report Builder returned a REP-2103: Column 'CF_1' : PL/SQL formula returned invalid value or no value.
I have the PL/SQL as below:
/*name of temp file*/
ImageFile VarChar2(250);
/*object containing barcode properties*/
BarcodeObject ORA_JAVA.JOBJECT;
/*object that creates jpeg of barcode based on BarcodeObject*/
BarcodeEncoderObject ORA_JAVA.JOBJECT;
begin
/*Get a temporary file name for the jpeg*/
/*On Solaris Unix, use the following code to create the temp file: ImageFile := srw.create_temporary_filename() || '.jpg'; */
imageFile := srw.create_temporary_filename();
/*Create the barcode object*/
BarcodeObject := Barcode.new();
/*Set the symbology*/
Barcode.setSymbologyID(BarcodeObject, Barcode.CODE128);
/*set the data to encode*/
Barcode.setDataToEncode(BarcodeObject, to_char(:ProductID));
/*Create the jpeg*/
BarcodeEncoderObject := BarcodeEncoder.new(BarcodeObject, 'JPEG',ImageFile);
/*If, for some reason, the barcode is not created, return null
otherwise, return the name of the barcode image jpeg that was
created */
if ORA_JAVA.IS_NULL(BarcodeEncoderObject) then
return(NULL);
else
return(ImageFile);
end if;
Is there anything wrong with it?
Thanks

I did another test on the code. I replaced the
imageFile := srw.create_temporary_filename();
with
imageFile := 'c:\temp\a.jpg';
The report runs and generates a barcode. So, does it mean that my report builder is not able to generate a temporary filename?

Similar Messages

  • Image Problem in Reports 10g

    Hi Gurus,
    I am using an Boilerplate in the Reports 10g. In the Property Inspection I am passing
    Source File Format : Image
    Source FileName : &P_IMG_LOCATION
    Where &P_IMG_LOCATION is the dynamic location which is fetched from the database
    For Eg . &P_IMG_LOCATION will be \\oracle\logo.bmp
    But It is giving accepting &P_IMG_LOCATION in the Source FileName.
    Please tell me how can i pass the location???
    Best Regards,

    Yeah, you can't do that. Instead, in your data model, create a formula column that is populated from &p_img_location. Then, set the "Read from File" property to "Yes" and the "File Format" to "Image". In your layout, create a new field and use the new formula column as the source.
    Message was edited by:
    Brian Hill

  • Images problem in Reports 10g Release2(10.1.2.0.2)...

    Hi,
    We are migrating all of our reports from Reports 9.0.4.0.21 to 10.1.2.0.2.
    We found lot of issues with Release 2. One major issue is: Images are not
    showing up on the web in 10.1.2.0.2 (which were displaying fine in 9.0.4.0.21)
    But when we increase the size of that image, it is displaying image .
    Does anybody has same problem??
    Please advise if anyone resolved this issue.
    Thanks somuch!!!!!
    Ram.

    You might want to refer Note:358550.1 on MetaLink and see if that's the issue.
    Thanks
    Shail

  • Problem in report 10g

    Hi Everyone,
    I am using forms 10g developer version Forms and reports [32 Bit] Version 10.1.2.0.2 (Production) on
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    In one of my report, when pages of report create more than 70 pages then
    it gives following error.(In report6i ,it works sound.)
    Error:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-271504897: Error executing CA utility.
    REP-3335: Unhandled Internal CA Error.
    caxml 2
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-271504897:
    Please help to solve the error.
    Regards,
    Nirav

    Try asking this in the Reports forum: Reports

  • Problem in report 10g(CA utility)

    Hi
    I am using forms 10g developer version Forms and reports [32 Bit] Version 10.1.2.0.2 (Production) on
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    In one of my report, when pages of report create more than 70 pages then
    it gives following error.(In report6i ,it works sound.)
    Error:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-271504897: Error executing CA utility.
    REP-3335: Unhandled Internal CA Error.
    caxml 2
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-271504897:
    Please help to solve the error.
    Regards,
    Nirav

    Please pass the Strings in single quotes and try running the report again this might solve your issue.

  • Generate barcode in oracle Report 10g

    hi all,
    i want to generate some of my ID's number in barcode. i have searched and followed the idautomation.com i want to download the font file.
    is there any freeware solution available ?
    or any one has simple solutoin. i need very simple barcode generation.
    Thanks,
    Suhaib

    You could use the java-library barbecue to generate an image from your number and then include that image in your report.

  • Re: Barcode in Reports 10g

    I know this is an old post,
    Barcode in Reports 10g
    but I am facing the same problem here. Using reports 11.1.2.1, running on a Linux server.
    I have set this on <domain>config/FRComponent/frcommon/guicommon/tk/admin/uifont.ali:
    XYZFONT = "XYZFONT.afm XYZFONT.pfa"
    But generated PDF reports are not embedding the fonts, since I need to have them installed on the computer to see the barcode. I understand the parameter PDFEMBED is set to true by default. But my reports are called from Oracle Forms. How can I be sure the parameter is correct? What else could I check?
    Thanks in advance.

    Hello,
    The steps related to PDF Subsetting and PDF embedding are "extra" steps that occur after the step "Report formatting ".
    In order to take into account the line :
    XYZFONT = "XYZFONT.afm XYZFONT.pfa"
    the font used during the step "Report formatting " must be XYZFONT .
    Did you test to generate the Report with DESFORMAT=HTML ?
    Check in the HTML output the font name used for the "Barcode Field".
    For more details , you can refer to the document :
    Troubleshooting Guide for Font Aliasing / Font Subsetting / Font Embedding Issues (Doc ID 350971.1)
    Kind regards

  • Report 10g graph problem

    i have a problem in graph wizard in reports 10g
    when i want do display more than 3 diferent data in plot areao of graph wizard only first 3 rows can be seen and adjusted, others can not.
    is there a way to see and adjust more then 3 rows in plot area?
    Thanks,
    Rade

    Hi,
    Not directly. You have to edit graph.xml file (in property pane of your graph). Some details about this file you can get from How to... topics on Products page
    have a good day
    Daniel

  • ORARRP Problem with Oracle Forms and Reports 10g

    hi,
    i have a problem with orarrp utility. the printeroutput is sometimes mirrored or only a blank sheet. is this a known problem? are there any workaraounds available? what can i do to fix the problem? please help me.
    thanks very much
    gunnar kieck

    Hi Rajesh,
    But i have not installed IAS at all. I have only Forms and Reports 10g and Oracle database installed. As you said it only save on IAS, but can we save it on local machine. Is there any other alternative.
    Again my second issues is --> I want to remove Mail option and rename Cache option to PDF from Destype combo box which appears at run time.
    Any idea how we can do this?

  • Report 10g print preview problem

    hi,
    i use report 10g (HTMLCSS)
    when send to printer i have problems as:
    1- page stream should not show to print preview
    2- page sizing changed in print preview
    but when send directly to printer without page stream i have not problem with page sizing and margin just i have problem with page number i cant set page number as ( from page to page)
    please help me.
    thanks

    While printing report from the HTML page you can change the margin and header/footer setting by clicking or File>Page Setup>Margin & Header/Footer.
    Just edit those property upon your requirement and then print report.
    -Ammad

  • Design problem in Oracle Reports 10g

    Hi,
    I have a problem desinging reports, and the biggest problem is that i remember in the past i knew how to solve this problem.
    The problem is the following.
    imagine you put a big TextField, where you put just a few words, it's algned to the top, and if you resize the TextField, the thext always moves to the top of the field, and what i want is that when i resize the field, the text move to the bottom of the field.
    can someone tell me where are the properties to do that.
    Thx in advace!

    I think in reports the alignment of the text in the field is always top.

  • Problems with AS 10g and OID

    Hello everyone,
    we got problems with starting OC4J_bi_forms component in AS control.
    database: 10g R2 (10.2.0.1)
    forms and reports: 10g (10.1.2.0.2.)
    designer: 10g (10.1.2.0.2.)
    1. we tried to start component in AS control but we get this error:
    The following components were not started:
    OC4J : home - time out while waiting for a managed process to start
    OC4J : OC4J_BI_Forms - time out while waiting for a managed process to start
    OC4J : OC4J_Portal - time out while waiting for a managed process to start
    For more information, look at the logs using the related link below.
    Related Link Error Logs
    2. then we check the error file that describes problems with OID:
    Error displaying Log Files page. Failed to initialize configuration management user session.. The OracleAS Repository API threw an exception when obtaining the connect string to the Metadata Repository
    Resolution:
    Check the exception thrown by the Repository API for resolution information.
    Some common causes of this problem are as follows:
    OID is not running or unavailable
    the ias.properties file is misconfigured with incorrect OID connection information
    OID permissions are incorrectly defined
    Base Exception:
    oracle.ias.repository.schema.SchemaException
    Unable to establish connection to the Oracle Internet Directory Server ldap://server_xy:389/. Base Exception : javax.naming.CommunicationException: server_xy:389 [Root exception is java.net.ConnectException: Connection refused: connect]. Unable to establish connection to the Oracle Internet Directory Server ldap://server_xy:389/. Base Exception : javax.naming.CommunicationException: server_xy:389 [Root exception is java.net.ConnectException: Connection refused: connect]
    3. we check the status with opmnctl status, all components are down
    4. then we tried to start components manually with opmnctl stopall/startall
    but the problem isn't solved.
    Any help?

    hello Jacco,
    thank you very much for your help, we are now able to start oc4j_bi_forms.
    We follow your advice, at the end we had to change ODS password with oidpasswd to ias_admin password.
    Now all components are started.
    We now must solve only one problem:
    All AS components are started, but when in Application Server Control we click link for
    J2EE Applications we get this error:
    An error was encountered while loading page. Failed to initialize configuration management user session.. The OracleAS Repository API threw an exception when obtaining the connect string to the Metadata Repository
    Resolution:
    Check the exception thrown by the Repository API for resolution information.
    Some common causes of this problem are as follows:
    OID is not running or unavailable
    the ias.properties file is misconfigured with incorrect OID connection information
    OID permissions are incorrectly defined
    Base Exception:
    oracle.ias.repository.schema.SchemaException
    Unable to establish connection to the Oracle Internet Directory Server ldap://server_xy:389/. Base Exception : javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]. Unable to establish connection to the Oracle Internet Directory Server ldap://server_xy:389/. Base Exception : javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
    Thanks for your help one more time.

  • Running Reports 10g on Apps Server

    We have a Windows 2003 apps server running Oracle Forms and Reports 10g.
    We are having a problem running reports in Oracle 10g, and believe it to be something to do with the configuration files. Currently, we can run the test report through Enterprise Manager using both the default reports service and the one that we have created. However we are unable to run our own reports through forms.
    To check that there was nothing wrong with our forms, we copied one of the reports into the …\forms10g\reports\samples\demo folder to see if we could run it through Enterprise Manager. However, we get the following error:
    Rep-110: Unable to open file ……
    Rep-1070: Error while opening or saving a document.
    Rep-0110: Unable to open file …...
    We then renamed the test.rdf file and tried to run that. Again we got the above message. Next we tried again to run test.rdf, even though this no longer existed, and the report ran. This implied that it isn't actually running the report, but has the report output stored somewhere, and it just displays this.
    No matter how we try to run reports, and with which reports service, we always get the above error.
    So why is it that no reports will run, not even the test one when it is renamed? Is there a configuration setting somewhere?

    Hi All,
    Hope YOu are fine.
    We have running Oracle Forms and Reports Services 10g on Windows 2000 Advanced Server.
    The Application Works fine, and reports are generated successfully.
    But when we access the same application by using either Linux OS (RHEL 4.0, Ubuntu 6),
    The forms works fine but Linux OS could not run the report.
    This seems to be a configuration problem.
    Any Clues.
    Thanks and Looking Forward.
    Aamer Javaid
    [email protected]

  • Image_Item not working in Reports 10g

    we can't use ImageItems in our report.
    we had a table with some images in a column with Datatype Longraw. Because we can't use that with Forms/reports 10g, we cahnged the Table-Column to Blob and migrated the Data with Import/Export. Within Forms we don't have any problem, we can display the old migrated pictures, we can import new images with Webutils Client_Image.Read_Image_Item and we can display those new images as well.
    But now we have a problem with Reports. Our Report has an item (the new Blob_Column) in the query and that item is displayed within the report. If the Report is run for a record with a migrated Image, it works fine, but with a new Record and a new imported Image_Item, the Report fails (on the Server) with the following information in EM :
    Mit Fehler beendet: REP-69: Interner Fehler REP-62203: Interner Fehler beim Lesen des Bildes - Unable to render RenderedOp for this operation..
    it is a very small Report but with 2 images (both are small).
    Any ideas out there ?
    regards,
    Mark

    Found the solution by myself.
    The Problem isn't within Reports it is within Forms. The Image_Item has to set to FileType "BMP" instead of "JFIF".
    That solved the problem.

  • Report 6i and Report 10g together in a system

    Hi,
    Is it create any problem if I installed both Report 6i and Report 10g in
    a system having 10g database.
    What are possible problem that will have to face?

    Hi,
    There won't be any issues. We are using both in our development machines. You must make sure the tnsnames.ora has correct entries.
    Regards,
    Manu.

Maybe you are looking for

  • Adobe Creative Cloud oder Adobe Creative Suite 6 Production Premium Student and Teacher Edition

    Hallo. Ich bin im Moment ein Student. Mein Studium geht noch 10 Monate lang. Jetzt weis ich nicht so recht was sich für mich daheim mehr lohnt. Die Adobe Creative Suite 6 Production Premium Student and Teacher Edition für 575€ oder die Adobe Creative

  • Why do my numbers files not email properly?

    Disclaimer: I'm fairly computer savvy and have a good amount of experience in using Numbers (mostly Numbers'09). I've recently encountered a new problem when emailing numbers (.numbers) files. They are not coming through correctly. This may be a "new

  • New to Retek (Technical)

    Hi everyone, I am new to Oracle Retek. I have worked previously on Oracle Apps for 3 years. I notice that technical forums are not available for Retek. Can you please guide me as to how can we go about any customization in Retek? Regards, Pradeep

  • Add new page by copying old one

    I want to add a new page to an existing website.  I would think that just opening one of the existing pages and renaming it, then linking the CSS, would work -- but the CSS refuses to recognize the new file name, and insists on adding new style rules

  • RVS4000 PCI Compliance

    We have a number of our Restaurants using the RVS4000. We recently scanned the restaurants to become PCI compliant and the ones using the RVS4000 routers failed due to the possibility of UDP packets being injected on port 53 despite the presence of a