File read write program output not coming correct

this code is compiling without issues but the output is not what i am expecting .. the contents of delta.txt are as follows
*4014254420*
*2897449776*
*4207405601*
and the output thats coming is
+4014254420+
+40142544204207405601+
+4207405601+
its not reading the 2nd line somehow
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.*;
import java.io.FileWriter;
import javax.swing.*;
import java.util.Scanner;
public class testloop
          static int i;                                             
           static char c;                                               
           static int j = 1;     
                static String filename;                                                  
  public static void main(String[] args)  throws IOException 
try {
     FileReader fmi = new FileReader("delta.txt");
     FileWriter fmo = new FileWriter("Updated.txt");
     BufferedReader br = new BufferedReader(fmi);
               String temp=null;
                    do{
                    temp = br.readLine();
                    if(temp.startsWith("*"))
                         String tempc = temp.substring(1);                         
                         System.out.print(tempc+"\n");
                        long tp = Long.valueOf(tempc);
                         System.out.print(tp);                    
               else
               fmo.write(temp);
                    }while((temp=br.readLine()) != null);
               fmi.close();
               fmo.close();
               }catch (FileNotFoundException e){ System.out.print("not found");     }
               catch (IOException e){System.out.print("io"+e);
               e.printStackTrace();
    also if i use the following delta.txt
**4014254420*
**2897449776*
**4207405601*
mmm+
i get the output as
+4014254420+
+40142544204207405601+
+4207405601Exception in thread "main" java.lang.NullPointerException+
at testloop.main(testloop.java:33)*
its not writing the text to the file updated.txt
Edited by: adhiraj on Nov 27, 2007 6:58 AM

You are getting the next line twice.
do{
                    temp = br.readLine();
                    if(temp.startsWith("*"))
                         String tempc = temp.substring(1);                         
                         System.out.print(tempc+"\n");
                        long tp = Long.valueOf(tempc);
                         System.out.print(tp);                    
               else
               fmo.write(temp);
                    }while((temp=br.readLine()) != null);You need to change your code around so that you only call
temp=br.readLine();once per iteration of the loop.

Similar Messages

  • Output not coming correct

    Hi,
    I had developed this code and after all modifications and alterations in it ,i am pasting here bcoz it is still giving the problem that the values of ITAB does not contain the correct data as it keep on repeating the same value for the data in ITFINAL.
    Plzz go through this code and help me out as i tried whole day and still it is not coming right.
    My job is online bcoz if it start displaying correct data then i have to make addition in other code also. plzz helpme out as help will be definately rewarded.
    here's the code:-
    TABLES: BKPF,MKPF,BSIK.
    DATA: BEGIN OF ITBKPF OCCURS 0,
          BUKRS LIKE BKPF-BUKRS,
          BELNR LIKE BKPF-BELNR,
          GJAHR LIKE BKPF-GJAHR,
          AWTYP LIKE BKPF-AWTYP,
          AWKEY LIKE BKPF-AWKEY,
          BUDAT LIKE BKPF-BUDAT,
          END OF ITBKPF.
    DATA: BEGIN OF ITMKPF OCCURS 0,
          MBLNR LIKE MKPF-MBLNR,
          MJAHR LIKE MKPF-MJAHR,
          END OF ITMKPF.
    DATA: BEGIN OF ITAB OCCURS 0,
          BELNR LIKE BSIK-BELNR,
          WRBTR LIKE BSIK-WRBTR,
          LIFNR LIKE BSIK-LIFNR,
          BUKRS LIKE BSIK-BUKRS,
          GJAHR LIKE BSIK-GJAHR,
          BUDAT LIKE BKPF-BUDAT,
          END OF ITAB.
    DATA: BEGIN OF ITFINAL OCCURS 0,
          BUKRS LIKE BKPF-BUKRS,
          BELNR LIKE BKPF-BELNR,
          GJAHR LIKE BKPF-GJAHR,
          AWTYP LIKE BKPF-AWTYP,
          AWKEY LIKE BKPF-AWKEY,
          MBLNR LIKE MKPF-MBLNR,
          MJAHR LIKE MKPF-MJAHR,
          WRBTR LIKE BSIK-WRBTR,
          LIFNR LIKE BSIK-LIFNR,
          END OF ITFINAL.
    *PARAMETERS: P_BUKRS LIKE BKPF-BUKRS,
               P_GJAHR LIKE BKPF-GJAHR,
               S_LIFNR LIKE BSIK-LIFNR.
    SELECT-OPTIONS: P_BUKRS FOR BKPF-BUKRS,
                    P_GJAHR FOR BKPF-GJAHR,
                    S_LIFNR FOR BSIK-LIFNR.
          SELECT ABUKRS ABELNR AGJAHR AAWTYP AAWKEY ABUDAT INTO TABLE ITBKPF FROM BKPF AS A
          WHERE  AAWTYP = 'MKPF' AND ABUKRS IN P_BUKRS AND A~GJAHR IN P_GJAHR.
          IF NOT ITBKPF[] IS INITIAL.
          SELECT AMBLNR AMJAHR INTO TABLE ITMKPF FROM MKPF AS A FOR ALL ENTRIES IN ITBKPF WHERE A~MBLNR = ITBKPF-AWKEY(10).
          SELECT ABELNR AWRBTR ALIFNR ABUKRS AGJAHR BBUDAT FROM BSIK AS A
          INNER JOIN BKPF AS B ON BBELNR = ABELNR
          INTO TABLE ITAB
          WHERE
          A~LIFNR IN S_LIFNR.
          ENDIF.
    SORT ITAB BY BELNR.
    LOOP AT ITBKPF.
    CLEAR ITMKPF.
    READ TABLE ITMKPF
    WITH KEY MBLNR = ITBKPF-AWKEY+(10)
              MJAHR = ITBKPF-AWKEY+10(4).
    CHECK sy-subrc EQ 0.
    ITFINAL-BELNR = ITBKPF-BELNR.
    ITFINAL-GJAHR = ITBKPF-GJAHR.
    ITFINAL-AWKEY = ITBKPF-AWKEY.
    READ TABLE ITAB
    WITH KEY BUKRS = ITBKPF-BUKRS.
    CHECK sy-subrc EQ 0.
    ITFINAL-WRBTR = ITAB-WRBTR.
    ITFINAL-LIFNR = ITAB-LIFNR.
    APPEND ITFINAL.
    CLEAR ITFINAL.
    ENDLOOP.
    LOOP AT ITFINAL.
    WRITE: / ITFINAL-BELNR , ITFINAL-GJAHR, ITFINAL-AWKEY+(10),ITFINAL-WRBTR ,ITFINAL-LIFNR .
    ENDLOOP.

    Hi,
    I had checked the all Interenal Tables and each and every table is having the desiered data except ITFINAL.,it is storing the value of ITAB
    i.e. displaying the same record for the data coming from the ITBKPF ,now my problelm is how to display the correct data from ITAB to the ITFINAL which is not able to store this coreect data,plzz help me out in solving this problem .
    The code in am using right now is:-
    TABLES: BKPF,MKPF,BSIK.
    DATA: BEGIN OF ITBKPF OCCURS 0,
          BUKRS LIKE BKPF-BUKRS,
          BELNR LIKE BKPF-BELNR,
          GJAHR LIKE BKPF-GJAHR,
          AWTYP LIKE BKPF-AWTYP,
          AWKEY LIKE BKPF-AWKEY,
          BUDAT LIKE BKPF-BUDAT,
          END OF ITBKPF.
    DATA: BEGIN OF ITMKPF OCCURS 0,
          MBLNR LIKE MKPF-MBLNR,
          MJAHR LIKE MKPF-MJAHR,
          END OF ITMKPF.
    DATA: BEGIN OF ITAB OCCURS 0,
          BELNR LIKE BSIK-BELNR,
          WRBTR LIKE BSIK-WRBTR,
          LIFNR LIKE BSIK-LIFNR,
          BUKRS LIKE BSIK-BUKRS,
          GJAHR LIKE BSIK-GJAHR,
          BUDAT LIKE BKPF-BUDAT,
          END OF ITAB.
    DATA: BEGIN OF ITFINAL OCCURS 0,
          BUKRS LIKE BKPF-BUKRS,
          BELNR LIKE BKPF-BELNR,
          GJAHR LIKE BKPF-GJAHR,
          AWTYP LIKE BKPF-AWTYP,
          AWKEY LIKE BKPF-AWKEY,
          MBLNR LIKE MKPF-MBLNR,
          MJAHR LIKE MKPF-MJAHR,
          WRBTR LIKE BSIK-WRBTR,
          LIFNR LIKE BSIK-LIFNR,
          END OF ITFINAL.
    *PARAMETERS: P_BUKRS LIKE BKPF-BUKRS,
               P_GJAHR LIKE BKPF-GJAHR,
               S_LIFNR LIKE BSIK-LIFNR.
    SELECT-OPTIONS: P_BUKRS FOR BKPF-BUKRS,
                    P_GJAHR FOR BKPF-GJAHR,
                    S_LIFNR FOR BSIK-LIFNR.
          SELECT ABUKRS ABELNR AGJAHR AAWTYP AAWKEY ABUDAT INTO TABLE ITBKPF FROM BKPF AS A
          WHERE  AAWTYP = 'MKPF' AND ABUKRS IN P_BUKRS AND A~GJAHR IN P_GJAHR.
          IF NOT ITBKPF[] IS INITIAL.
          SELECT AMBLNR AMJAHR INTO TABLE ITMKPF FROM MKPF AS A FOR ALL ENTRIES IN ITBKPF WHERE A~MBLNR = ITBKPF-AWKEY(10).
          SELECT ABELNR AWRBTR ALIFNR ABUKRS AGJAHR BBUDAT FROM BSIK AS A      "
          INNER JOIN BKPF AS B ON BBELNR = ABELNR
          INTO TABLE ITAB
          WHERE
          ALIFNR IN S_LIFNR.    "ABUKRS = B~BUKRS.
          ENDIF.
          SORT ITAB BY BELNR.
         SELECT ABELNR AWRBTR ALIFNR ABUKRS A~GJAHR FROM BSIK AS A INTO TABLE ITAB
         FOR ALL ENTRIES IN ITBKPF
         WHERE
         ABUKRS = ITBKPF-BUKRS AND ALIFNR = S_LIFNR.
         ENDIF.
    LOOP AT ITBKPF.
    CLEAR ITMKPF.
    READ TABLE ITMKPF
    WITH KEY MBLNR = ITBKPF-AWKEY+(10)
              MJAHR = ITBKPF-AWKEY+10(4).
    CHECK sy-subrc EQ 0.
    ITFINAL-BELNR = ITBKPF-BELNR.
    ITFINAL-GJAHR = ITBKPF-GJAHR.
    ITFINAL-AWKEY = ITBKPF-AWKEY.
    SORT ITAB[] BY BELNR GJAHR BUKRS.
      READ TABLE ITAB
      WITH KEY
    BELNR = ITBKPF-BELNR
      GJAHR = ITBKPF-GJAHR
      BUKRS = ITBKPF-BUKRS
      BINARY SEARCH.
    CHECK sy-subrc EQ 0.
    ITFINAL-WRBTR = ITAB-WRBTR.
    ITFINAL-LIFNR = ITAB-LIFNR.
    APPEND ITFINAL.
    CLEAR ITFINAL.
    ENDLOOP.
    LOOP AT ITFINAL.
    WRITE: / ITFINAL-BELNR , ITFINAL-GJAHR, ITFINAL-AWKEY+(10),ITFINAL-WRBTR ,ITFINAL-LIFNR .
    ENDLOOP.
    Edited by: abaper2008 on May 29, 2008 6:35 AM
    Edited by: abaper2008 on May 29, 2008 9:21 AM

  • Report output not coming correctly

    Hi All,
    my query is like
    select 'gggohpoopiokoljmkjjg@@@@@' record from dual;
    where record string's length is more than 2000 characters.
    I am using oracle report for this purpose as i have some other validations associated with it.
    i am printing the report output in a flat file.i want ALL THE OUTPUT SHOULD COME IN ONE LINE.
    but this is not happenning so...for the string lengths more than 1000 it's coming in diff line.
    How can i make sure that my output file WILL BE IN SINGLE LINE.
    i tried in unix vi editor i can give 3000 charecters but it doesn't go to the second line.
    any help on this issue will be helpful
    thanks in advance

    If there's no easy way to do it, you may use a "special character", like chr(xx), as your long line delimiter to chop a line into a couple of lines. Then you write a very simple C program to post-process the report output file to remove these "special character".
    If all characters are possible in your report file, you may use a string as the delimiter.

  • When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. pleas

    When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. please re install of repair the application and try again. I have done this and it's still not working                  

    anomaly jade,
    You only need to use the serial number during installation.
    Have you, at least seemingly, been able to install, and then you are unable to start up?
    If that is the case, you could try to reinstall using the full three step way:
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • File read/write in Oracle JVM

    Are there any known issues around file read/write in Oracle JVM. I finally got around the issue of getting the error that says no permission is there by giving <<ALL FILES>> option, but still I don't see a file being created. Any help is appreciated.
    Code:
    try{
    fwriter = new PrintWriter(new FileOutputStream("debugLog.txt",true));
    } catch (IOException ioe) {
    System.err.println("IO Exception for Output File" + ioe.getMessage());
    Thanks.
    -Mujib

    A couple of suggestions:
    1. (Please don't be offended...) I assume you have some stuff like:
    fwriter.println("hello");
    fwriter.flush();
    fwriter.close();
    in your try block?
    2. Try catching FileNotFoundException and SecurityException also.
    3. Try providing a full path on the file just to make sure it's not buried somewhere odd.
    John H.

  • HT201070 Since my last update RAW - Files from Nikon D800 are not shown correctly in the Finder as small prewiev. Can anybody help ?

    Since my last update  to 10.8.4 RAW - Files from Nikon D800 are not shown correctly in the Finder as small prewiev. Can anybody help ?

    update 10.8.5 solved this problem. Thankyou anyway.

  • Missing file read/write feature on Mac OS X?

    HI,
    i am missing the file read/write statistics on Mac OS X. First i thought i just need to enable it in the template editor under "Advanced -> Java Application" but the two list items are simple not there. I ve seen a screenshot somewhere from the JMC where the two options are present but not for me. Can anyone tell me if this is a platform issue or how to enable it?
    Thx
    Marc

    You didn't say which version you are using, but I think what you are seeing is that the file and socket events are not available in JDK 8 only in JDK 7. This is a known regression that will be fixed in the next update to JDK 8.

  • Anybody Knows how to fix "Could not save file because write access was not granted?

    I need a help how to fix message "Could not save file because write access was not granted"

    Hi Silkrooster,
    The operating System that I am using is an Imac Os x10.8.5.

  • Elements 13 crashes - Windows message - this program is not working correctly - windows will close it.

    I bought Elements 13 4 days ago through Amazon - so far it has not run for more than 5 minutes before Windows closes it down with the message - this program is not working correctly, windows will close it. I know this is not unusual but has anyone got a solution - apart from returning  it
    with a very unfavourable review? I have tried all the suggested fixes on the Adobe help site with no result.  Elements 10 runs OK on the same machine.
    Alternatively, is there any possible way to get support from Adobe?

    juliana
    Do you have any version of Premiere Elements 13 or only Photoshop Elements 13 which comes with Elements Organizer 13?
    Let us look at the following for Elements Organizer 13....
    1. Deletion of disabling the Elements Organizer 13 setting file which is named psa.prf. In Windows 7, 8, o 8.1 64 bit, it is found in the
    path
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Elements Organizer
    13.0
    Organizer
    and in the Organizer Folder is the psa.prf file that you delete or disable by renaming it from psa.prf to psa.prfOLD.
    2. If the above gains you successful entry into the Elements Organizer 13, then you can
    a. create a new catalog
    and/or
    b. repair or optimize the current one
    See Elements Organizer 13/File Menu/Manage Catalogs/Catalog Manager.
    3. There are times that certain formats will bring the Elements Organizer down when you try to import those formats into
    it.  But, from what you wrote, your current problems do not sound media related.
    3. At your earliest opportunity, please update Elements Organizer 13 to 13.1 using its Help Menu/Updates.
    Please review and consider and then let us know the outcome.
    Thank you.
    ATR

  • ORA-32162: Read/Write SQL method not registered-for OTT

    I am trying this--
    env = Environment::createEnvironment (Environment::OBJECT);
    RegisterClasses(env);
    conn = env->createConnection (user, passwd, db);
    RegisterClasses is my mapping function; But still I am getting this error at--
    stmt->registerOutParam( 2,OCCIPOBJECT);
    I am trying to make a stored procedure call here...
    Can anyone tell me what is that I am missing?

    Hi,
    I am using OTT generated objects to pass them to my PL/SQL procedures as OUT parameters. When I call the registerOutParam() function, I get this error ORA-32162: Read/Write SQL method not registered.
    I am calling my mapping function after creating environment and before creating my stateless connection pool. But still I am getting this exception at runtime while calling registerOutParam().
    Environment* env;
    env = Environment::createEnvironment(Environment::OBJECT);
    MessageTOMapping(env); // Calling the mapping function here.
    // Creating the stateless connection pool.
    StatelessConnectionPool* scp;
    scp = env->createStatelessConnectionPool("naveen",
    "naveen",
    "//10.105.153.11:1521/pls",
    10,
    5,
    2,
    StatelessConnectionPool::HOMOGENEOUS);
    // Fetch a connection from the stateless connection pool
    conn = scp->getConnection();
    // After this, I create my Statement and call the registerOutParam() which
    // causes ORA-32162 exception.
    Please note that I do not get this error when I don't use any connection-pooling mechanism. That is, if I create an environment in OBJECT mode, call the mapping function with its pointer and create a normal Connection object (without any pooling etc), my application runs perfectly fine. E.g. if I replace the above piece of code with the code below, my application runs fine.
    Environment* env;
    env = Environment::createEnvironment(Environment::OBJECT);
    MessageTOMapping(env); // Calling the mapping function here.
    conn = env->createConnection("naveen", "naveen", "//10.105.153.11:1521/pls");
    // After this, I create my Statement and call the registerOutParam() which
    // does not give problem now and my application runs pefectly fine.
    Can anyone let me know what I am doing wrong while using the stateless connection pooling mechanism? I definitely need to use Stateless Connection Pooling and must not get connections directly from env->createConnection().
    Any help will be greatly appreciated.
    Thanks and Regards,
    Naveen

  • ORA-32162: Read/Write SQL method not registered

    Hi,
    I am using OTT generated objects to pass them to my PL/SQL procedures as OUT parameters. When I call the registerOutParam() function, I get this error ORA-32162: Read/Write SQL method not registered.
    I am calling my mapping function after creating environment and before creating my stateless connection pool. But still I am getting this exception at runtime while calling registerOutParam().
    Environment* env;
    env = Environment::createEnvironment(Environment::OBJECT);
    MessageTOMapping(env); // Calling the mapping function here.
    // Creating the stateless connection pool.
    StatelessConnectionPool* scp;
    scp = env->createStatelessConnectionPool("naveen",
    "naveen",
    "//10.105.153.11:1521/pls",
    10,
    5,
    2,
    StatelessConnectionPool::HOMOGENEOUS);
    // Fetch a connection from the stateless connection pool
    conn = scp->getConnection();
    // After this, I create my Statement and call the registerOutParam() which
    // causes ORA-32162 exception.
    Please note that I do not get this error when I don't use any connection-pooling mechanism. That is, if I create an environment in OBJECT mode, call the mapping function with its pointer and create a normal Connection object (without any pooling etc), my application runs perfectly fine. E.g. if I replace the above piece of code with the code below, my application runs fine.
    Environment* env;
    env = Environment::createEnvironment(Environment::OBJECT);
    MessageTOMapping(env); // Calling the mapping function here.
    conn = env->createConnection("naveen", "naveen", "//10.105.153.11:1521/pls");
    // After this, I create my Statement and call the registerOutParam() which
    // does not give problem now and my application runs pefectly fine.
    Can anyone let me know what I am doing wrong while using the stateless connection pooling mechanism? I definitely need to use Stateless Connection Pooling and must not get connections directly from env->createConnection().
    Any help will be greatly appreciated.
    Thanks and Regards,
    Naveen

    Hi,
    I found one workaround (not solution) to the problem.
    I used an IN OUT parameter instead of an OUT parameter in the stored procedure (though my requirement was only of an OUT parameter actually). This resulted in using the setObject() function instead of the registerOutParam() function which was throwing the ORA-32162 exception at runtime.
    I think there should be better ways in which we can pass an object as OUT parameter while also using stateless connection pooling for managing connections. Please let me know the same in case anyone knows that.
    Kind Regards,
    Naveen

  • Photoshop does not close files and the program does not quit.

    I have been on the phone with tech support for over an hour. Photoshop does not close files and the program does not quit. I am on a Mac and I am using Photoshop CC 2014.

    Have you tried uninstalling Photoshop CC and re-installing? Another thing to try is to remove all Photoshop CC plist files. There is also the Cleaner tool:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Urgent!!! Need help in file read/write data to a serial port

    Hi,
    I really need someone's help in order for me to complete my project. I have attached a vi which I have taken from an example and integrate to my project. In the vi, I have managed to get the encoder counts using Ni 9411. I need to read/write that data from ni9411 to ni9870 without using any serial port as they are connected to a NI 9104 chasis. May I know whether I am correct in writing the data to my ni9870 port using the vi I have attached? Does anyone know how i can convert the number of counts to a 8-bit data/byte so that I can send the data through the RS232 port? I really need someone's help as I need to finished in 2 weeks time.
    I have also attached an vi on controlling the epos2 controller using instrument driver. Does anyone know how can i integrate this vi to the fpga vi (the one which I need to read/write data to 9870) as I need to send those data to control my epos2 controller.
    Please help me!!!
    Attachments:
    Encoder Position & Velocity (FPGA).vi ‏23 KB
    SINGLEMOTORMODIFIED.vi ‏17 KB

    Afai,
    As I allready suggested you here, call your local NI Office and ask for assistance!
    You really need assistence in a higher level that we can provide via the forums. Otherwise I don't see a chance for you to finish your project in time.
    1. Convert I32 to U8 to write it to the 9870 could be done like this:
    2. The vi to control the epos2.
    There is NO way ( absolutely NO way) to port this vi to FPGA. It's based on VISA calls, uses an event-structure, both are not available at the FPGA.
    The only thing you could do is to analyze the VI, the instruction set and design an FPGA vi which handles the specific instructions you would need.
    I have no experience with epos2 and I'm not 100% sure if this would work as you would like to use it. And doing this needs deep knowledge of LabVIEW, VISA, Instrument Drivers, the epos hardware, FPGA programming, and so on... 
    Christian

  • Files from Windows 7 are not alphabetized correctly on OS X, and can match identically named files in the same folder

    I receive MS Word files from students using Macs or Windows-based computers.  This year, files prepared by students using Windows 7 are not alphabetized correctly on my Mac (under Snow Leopard or Mountain Lion).  The same four students keep having their files put at the END of the alphabetical sort by name, even though the files should appear earlier in the list.  I have to copy the file contents and paste the contents into a new document to get the new document to appear in the right order, and if I do so, then BOTH the old and new files appear in the Finder, even though the names appear to be identical!  So can have to files with the same name in the same folder, which ought to be impossible.  Does anyone have any idea what's going on?

    Bingo! 
    The problem is not the letters themselves, but non-letter characters in the file name; this showed up with the fixed-width fonts. The apparent duplicates and mis-sorting are caused by dashes, which differ because they're done as en-dashes in one file name and em-dashes in the other file name, or by curly or straight apostrophes.  I didn't see that in the Finder window.
    I never saw this behavior before this year.  Last year, when I was using a Mac for the first time, I did not see any such problem, even though my students' files were named using the same conventions. When I was using a Windows-based laptop before that, I never saw the problem.
    Windows must do something to style the non-letter characters differently than a Mac.  Is there any place in Windows Explorer or the OS X Finder that styles characters this way?  I can see this being a big problem for someone who needs to sort very important data by name, when the files are coming from different operating systems!
    (I just Googled en-dash, em-dash, and curly quotes with file names, and found a good number of posts on various sites about similar problems based on ASCI character coding, html coding, Windows Explorer, and other applications.  Sometimes the files don't appear at all, because the application reading the file name can't deal with a certain ASCI code.  What a mess.)

  • Barcode in PDF output not coming in Oracle R12.1.3

    Hi,
    We have a rtf template for Invoice report. In this report we have to display barcode in PDF output. In our development instance barcode is coming properly. But in our test instance barcode is not coming(same template is available in Development and Test instance).
    We are using wocrb.ttf and w128l.ttf font files and we have these files available at $OA_JRE_TOP/lib/fonts path.
    Also, we have config file available on $OA_JRE_TOP/lib directory. and this config file has correct path of both the font files.
    Still the barcode is not coming in Test instance.
    Request you all to please help me with this issue.
    Thanks,
    SA

    PDF requires the font be registered correctly, since it is not appearing you have missed something in your configuration.
    The most common error is the font family name does not exactly match the font name in Word. (Open the font on your PC and the name is present there also.)
    You can use the xdodebug.cfg troubleshooting method,  then see what error appears in the xdo.log when the font is accessed.
    See the following note for xdo.log:
    Note 364547.1 : Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
    Thank you
    Eugen

Maybe you are looking for