Reading in a space filled file

I am reading in a file which is in byte format and each record is 50 chars wide and space-filled. If an element is not present in the file, then it is just space filled.
Example input.prn file:
Bob ����� Smith�����12 North Rd�����Denver�����CO�����USA�����12435
John �� Williams�����123 State St�����New York�����NY����������12435
Notice in the second record, that John Williams does not have a country. It is just space-filled (50 chars).
So I need to read in this file, and send it to a constructor in this format:
Bob,Smith,12 North Rd,Denver,CO,USA,12435
John,Williams,123 State St,New York,NY,,12435
in the second record where there was no country, a "," needs to be in it's place.
       BufferedReader br = new BufferedReader(new FileReader("input.prn"));
       String line = " ";
       // the delim needs to be space filled somehow
           while((line = br.readLine()) != null)
                StringTokenizer st = new StringTokenizer(line,delim);
           }I'm not sure how to approach this problem. Any help would be greatly appreciated.
thank you

            while ((len = br.read(data, 0, data.length)) != -1 ) {
                //You do now have len characters available in the data.
                 line = new String(data, 0, data.length);
                 String firstName = line.substring(0,10) + ",";
                 String lastName = line.substring(10,27) + ",";
                 String startDate = line.substring(27,35) + ",";
                 String address1 = line.substring(35,45) + ",";
                 String address2 = line.substring(45,55) + ",";
                 String city = line.substring(55,65) + ",";
                 String state = line.substring(65,67) + ",";
                 String country = line.substring(67,70) + ",";
                 String zip = line.substring(70,80);
                 String record = firstName+lastName+startDate+address1+address2+city
                                          +state+country+zip;
                                              System.out.println(record.toString());
                                  }If I add the + "," onto the String values to output comma-seperated values, the results for the second record appear incorrectly as below:
Bob ,Smith ,20051018,12 North Rd ,Apt 1 ,Miami ,FL,usa,87782
Tom
Jon,es 200,307308 S,tate St Apt, 12 Boi,se IDu,sa,112,35
Tom
The output for the first record of Bob Smith is absolutely correct, but the record for Tom Jones is not. All of the commas are misplaced.

Similar Messages

  • Read data from a sequential file to fill an arrray

    I am trying to read data from a sequential file to fill an array and then use the array for calculations. I believe my program is reading the file; however when I try to use the data for calculations the results show up as boxes rather than numbers. Can someone please take a look and give me some insight into where I am going wrong. The sequential file has the following data:
    5.0
    5.35
    5.5
    5.75
    Here is my code from that portion of the program. I can send the entire program if necessary.
    private void calcResults(TextArea loanResults, double amount, double interest, int term ) throws IOException {
         DecimalFormat df = new DecimalFormat("$###,###.00");
         NumberFormat formats = new DecimalFormat("#0.00");
         StringBuffer buffer=new StringBuffer();
         loanResults.append("Month No.\tMonthly Payment\t\tInterest\t\tBalance\n");
         double monthlyPay = amount*Math.pow(1+interest,term)*interest/(Math.pow(1+interest,term)-1);
         monthlyPayment.setText("" + (formats.format(monthlyPay)));
         double principal= amount;
          * Loop through each month of a given loan
        int month;
         for (int i=0; i<term; i++)
    try {
         int j = 0;
         BufferedReader in = new BufferedReader(new FileReader("rates.txt"));
         String temp = "";
         while((temp = in.readLine()) != null) {     
            j++;
            strRate[j] = temp;
            RateValue1 = Double.parseDouble(loanAmountTxFld.getText());
            in.close();
             catch (FileNotFoundException e) {
                 System.out.println("Can't find file rate.txt!");
                 return;
          month= i+1;
          double rate =principal*interest;
          double balance=principal+rate-monthlyPay;
          loanResults.append((month) + "\t\t" + (formats.format(principal) + "\t\t"  + (formats.format(rate) + "\t\t"
                            + (formats.format(balance)     + "\n"))));
          principal=balance;
          GraphArea.append(formats.format(balance)     + "\n");
    *Method for determining which loan option was chosen
    private void calc() throws IOException{
      String interestTerms = (String) cOption.getSelectedItem();
      if (interestTerms.equalsIgnoreCase("5 yrs at 5.00"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.05/12, 60);
      else if (interestTerms.equalsIgnoreCase("7 yrs at 5.35"))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), RateValue1/12, 84);
      else if (interestTerms.equalsIgnoreCase("15 yrs at 5.50"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0550/12, 180);
      else if (interestTerms.equalsIgnoreCase("30 yrs at 5.75"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0575/12, 360);
      else if (interestTerms.equalsIgnoreCase("       "))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), Double.parseDouble(loanInterestTxFld.getText())/100/12,Integer.parseInt(loanTermTxFld.getText())*12);
    }

    ok, I fixed my program per your suggestion and I still cannot get it to work. I get the same result where the ouput is just a bunch of boxes. I also tried to print to see what I am getting and all I see is the values of the array [5.0,5.35,5.5,5.75] but I cannot seem to pass that to the calculations. I wish I could figure this out. Does anybody have any suggestions as to what I am doing wrong. This is the portion of my code that I am having issues with:
    private void calcResults(TextArea loanResults, double amount,double interest, int term ) throws IOException {
         DecimalFormat df = new DecimalFormat("$###,###.00");
         NumberFormat formats = new DecimalFormat("#0.00");
         StringBuffer buffer=new StringBuffer();
         loanResults.append("Month No.\tMonthly Payment\t\tInterest\t\tBalance\n");
         double monthlyPay = amount*Math.pow(1+interest,term)*interest/(Math.pow(1+interest,term)-1);
         monthlyPayment.setText("" + (formats.format(monthlyPay)));
         double principal= amount;
          * Loop through each month of a given loan
        int month;
         for (int i=0; i<term; i++)
          month= i+1;
          double rate =principal*interest;
          double balance=principal+rate-monthlyPay;
          loanResults.append((month) + "\t\t" + (formats.format(principal) + "\t\t"  + (formats.format(rate) + "\t\t"
                            + (formats.format(balance)     + "\n"))));
          principal=balance;
          GraphArea.append(formats.format(balance)     + "\n");
    private void readFile() throws IOException
    try {
         int j = 0;
         BufferedReader in = new BufferedReader(new FileReader("rates.txt"));
         String temp = "";
         while((temp = in.readLine()) != null) {     
            strRate[j] = temp;
            j++;
    RateValue1 = Double.valueOf(((String)(strRate[1]))
    ).doubleValue();
    //        RateValue1 = Double.parseDouble(loanAmountTxFld.getText());
            in.close();
             catch (FileNotFoundException e) {
                 System.out.println("Can't find file rates.txt!");
                 return;
    *Method for determining which loan option was chosen
    private void calc() throws IOException{
      String interestTerms = (String) cOption.getSelectedItem();
      if (interestTerms.equalsIgnoreCase("5 yrs at 5.00"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.05/12, 60);
      else if (interestTerms.equalsIgnoreCase("7 yrs at 5.35"))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), RateValue1/12, 84);
      else if (interestTerms.equalsIgnoreCase("15 yrs at 5.50"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0550/12, 180);
      else if (interestTerms.equalsIgnoreCase("30 yrs at 5.75"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0575/12, 360);
      else if (interestTerms.equalsIgnoreCase("       "))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), Double.parseDouble(loanInterestTxFld.getText())/100/12,Integer.parseInt(loanTermTxFld.getText())*12);
      }

  • FTP-Adapter reads filled file as empty file

    Hi, well i have a FTP-Poll to a folder where a filled file is existing. the adapter takes it and put it into archive folder after saying that the content is transformed into XML (shown in CC-Monitoring).
    Well the archive file i found but in Monitor there is no message. So where is the XML file?! actually it should be send to an IDoc-Adapter after content is transfomed! What is the problem??
    I have done some other Scenarios like this and they work. I compared all the parameters but nothing seems to be wrong.
    br Jens

    Hello Jens,
    In RWB , do the following and reply back the results.
    Choose Message Monitoring
    Messages from Component -- Adapter Engine  from Database
    Start
    Choose your message and click display.
    Go to Audit Log tab and verify the each step.
    Finally tell whether u can see the following message in Audit Log <b>The message was successfully transmitted to endpoint http://host:port/sap/xi/engine?type=entry using connection AFW.</b>
    Best regards,
    raj.

  • Workflow scanning - Use space in file name

    I configured two Xerox printers (WC 5875 and W 7835), with latest fimware installed, to scan on a windows shared folder using SMB protocol.The scan is working normally. But users experience this "interface" issue: is not possible to use SPACE character on the file name. The space bar is disabled on the printer screen when users try to modify the standard file name. Is it a software limitation? Is it related with SMB protocol? Is it possible to enable space in file name? Thanks in advance for assistance. CLAUDIO

    If the current firmware begins with 072, upgrade to this one here and the option will be enabled for the space bar. 58xx devices 7830 and 7835 If the current software/Firmware begins with 071, I highly suggest a tech call be placed to have an Altboot no data backup no clone to those levels, the increment that changes from 071-072 is major, it is the change from Connectkey 1.0 to 1.5, and when done, due to extensive changes, does not at all play well with updates or clone files.

  • Image Fill Files Available?

    When Steve Jobs presented Keynote 3, the new 3-D charts had some very nice "Image Fill" woodgrain and marbled textures.
    I understand that those textures were included as part of a specific theme, but I would like to be able to use textures like those in a presentation with a different theme.
    Are those "Image Fill" files available somewhere? Or is there a way to use "Copy Style" and then save the style?

    You can find the woodgrains in the Leatherbook Theme.
    Save a blank leatherbook preso (with theme images).
    Thanks for your response. The good news is that it sounds like a woodgrain image file can be created.
    The bad news is that I have no idea what a "preso" is, nor how to "save a blank preso".
    Could you possibly give more specific instructions? Thanks in advance.

  • How do u read the hs_err_pid pid .log file

    Hi,
    When using hprof or any profiling tool, the hotspot vm crashes and generates the following file. How do we read this file or make any sense of it. Is there any utility, etc..
    We are using hotspot jvm 1.4.2_12.
    Any help will be appreciated.
    BTW here is the latest hs file.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x6dc487e6, pid=6147, tid=1674062752
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_12-b03 mixed mode)
    # Problematic frame:
    # C [libhcclsm.so+0x97e6] ossRamboIsFlushing__FP10OSSRamboCB+0x6
    --------------- T H R E A D ---------------
    Current thread (0x6d0ec870): JavaThread "Thread-10" daemon [_thread_in_native, id=6173]
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x686e31e0
    Registers:
    EAX=0x686e3154, EBX=0xb7fcf4a4, ECX=0x080b4938, EDX=0x08cf42a1
    ESP=0x63c81d4c, EBP=0x63c81d4c, ESI=0x63c81f34, EDI=0x63c81f54
    EIP=0x6dc487e6, CR2=0x686e31e0, EFLAGS=0x00010212
    Top of Stack: (sp=0x63c81d4c)
    0x63c81d4c: 63c81dac 6dc447eb 686e3154 00000001
    0x63c81d5c: 00000000 00000000 00000000 00000000
    0x63c81d6c: 00000000 00000000 00000001 0000007d
    0x63c81d7c: 00000000 686e3154 e8a53863 00000004
    0x63c81d8c: 63c81dcc 6dc78801 a86a4000 41d19a0e
    0x63c81d9c: 08cf42a2 00000021 00000009 00000004
    0x63c81dac: 63c81ddc 6dc4fa85 080b4930 08cf4298
    0x63c81dbc: 00000079 63c81f54 63c81ddc 00a7095b
    Instructions: (pc=0x6dc487e6)
    0x6dc487d6: 02 83 e0 01 88 c0 5d c3 89 f6 55 89 e5 8b 45 08
    0x6dc487e6: 8b 80 8c 00 00 00 c1 e8 03 83 e0 01 88 c0 5d c3
    Stack: [0x63c10000,0x63c83000), sp=0x63c81d4c, free space=455k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [libhcclsm.so+0x97e6] ossRamboIsFlushing__FP10OSSRamboCB+0x6
    C [libhcclsm.so+0x57eb] ossRamboMultiSlotCopy+0x73
    C [libhccldt.so+0xa85] ra_writeMessageBlock+0xfd
    C [libpiAgent.so+0x16afc] jvmpiAgent_print+0x3c
    C [libpiAgent.so+0x19f19] jvmpiAgent_printObjAllocElement+0x2a9
    C [libpiAgent.so+0x1f97a]
    C [libpiAgent.so+0x20499]
    V [libjvm.so+0x35bf4b]
    V [libjvm.so+0x44d474]
    V [libjvm.so+0x2b8af8]
    V [libjvm.so+0x3b760f]
    V [libjvm.so+0x2cacdc]
    j com.appiancorp.kougar.driver.pooling.a.run()V+8
    j java.util.TimerThread.mainLoop()V+221
    j java.util.TimerThread.run()V+1
    v ~StubRoutines::call_stub
    V [libjvm.so+0x2d5a54]
    V [libjvm.so+0x3bd559]
    V [libjvm.so+0x2d5ca6]
    V [libjvm.so+0x2d5576]
    V [libjvm.so+0x2d60ef]
    V [libjvm.so+0x32fec5]
    V [libjvm.so+0x43ab1a]
    V [libjvm.so+0x435d33]
    V [libjvm.so+0x3bf083]
    C [libpthread.so.0+0x53cc]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.appiancorp.kougar.driver.pooling.a.run()V+8
    j java.util.TimerThread.mainLoop()V+221
    j java.util.TimerThread.run()V+1
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x081ed380 JavaThread "Thread-40" [_thread_in_native, id=6151]
    0x088b1240 JavaThread "http-0.0.0.0-8080-1" daemon [_thread_blocked, id=6196]
    0x088b0410 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6195]
    0x088af880 JavaThread "TP-Processor10" daemon [_thread_in_native, id=6194]
    0x08bf74b8 JavaThread "TP-Processor9" daemon [_thread_blocked, id=6193]
    0x095235d0 JavaThread "TP-Processor8" daemon [_thread_blocked, id=6192]
    0x09522e40 JavaThread "TP-Processor7" daemon [_thread_blocked, id=6191]
    0x09522380 JavaThread "TP-Processor6" daemon [_thread_blocked, id=6190]
    0x08c33590 JavaThread "TP-Processor5" daemon [_thread_blocked, id=6189]
    0x082d6a70 JavaThread "TP-Processor4" daemon [_thread_blocked, id=6188]
    0x09523cf0 JavaThread "TP-Processor3" daemon [_thread_blocked, id=6187]
    0x08c34318 JavaThread "TP-Processor2" daemon [_thread_blocked, id=6186]
    0x08bb0d18 JavaThread "TP-Processor1" daemon [_thread_blocked, id=6185]
    0x6b5ac448 JavaThread "http-0.0.0.0-8080" daemon [_thread_in_native, id=6184]
    0x6b515998 JavaThread "JBossLifeThread" [_thread_blocked, id=6183]
    0x6b5ac448 JavaThread "http-0.0.0.0-8080" daemon [_thread_in_native, id=6184]
    0x6b515998 JavaThread "JBossLifeThread" [_thread_blocked, id=6183]
    0x6b2c3f68 JavaThread "Thread-14" daemon [_thread_blocked, id=6181]
    0x6b5cdba0 JavaThread "Thread-13" daemon [_thread_blocked, id=6180]
    0x6b258ee8 JavaThread "Thread-12" daemon [_thread_blocked, id=6175]
    0x6a8829e8 JavaThread "Thread-11" daemon [_thread_blocked, id=6174]
    =>0x6d0ec870 JavaThread "Thread-10" daemon [_thread_in_native, id=6173]
    0x0826be80 JavaThread "Thread-9" daemon [_thread_blocked, id=6172]
    0x08bf9f40 JavaThread "Thread-8" daemon [_thread_blocked, id=6171]
    0x08cc18f8 JavaThread "Thread-7" daemon [_thread_blocked, id=6170]
    0x08bfa3d8 JavaThread "Thread-6" daemon [_thread_blocked, id=6169]
    0x0826b6f0 JavaThread "Thread-5" daemon [_thread_blocked, id=6168]
    0x6b024498 JavaThread "Thread-4" daemon [_thread_blocked, id=6167]
    0x0889bd88 JavaThread "HSQLDB Timer @ae1cf" daemon [_thread_blocked, id=6166]
    0x08767b58 JavaThread "ContainerBackgroundProcessor[StandardEngine[jboss.web]]" daemon [_thread_blocked, id=6165]
    0x08745de0 JavaThread "GC Daemon" daemon [_thread_blocked, id=6164]
    0x087362a8 JavaThread "RMI Reaper" [_thread_blocked, id=6163]
    0x08741bd0 JavaThread "Thread-2" daemon [_thread_blocked, id=6162]
    0x08742940 JavaThread "RMI TCP Accept-4445" daemon [_thread_in_native, id=6161]
    0x081296f0 JavaThread "ScannerThread" daemon [_thread_blocked, id=6160]
    0x08628238 JavaThread "Thread-0" daemon [_thread_blocked, id=6159]
    0x6d013be0 JavaThread "DestroyJavaVM" [_thread_blocked, id=6147]
    0x6d002ed0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=6156]
    0x6d001db8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6155]
    0x080dbde8 JavaThread "AdapterThread" daemon [_thread_blocked, id=6154]
    0x080db178 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6153]
    0x080cc928 JavaThread "Finalizer" daemon [_thread_blocked, id=6150]
    0x080cb688 JavaThread "Reference Handler" daemon [_thread_blocked, id=6149]
    Other Threads:
    0x080cabe8 VMThread [id=6148]
    0x6d004720 WatcherThread [id=6157]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 24448K, used 24448K [0x6e4c0000, 0x6fcc0000, 0x6fcc0000)
    eden space 24320K, 100% used [0x6e4c0000, 0x6fc80000, 0x6fc80000)
    from space 128K, 100% used [0x6fca0000, 0x6fcc0000, 0x6fcc0000)
    to space 128K, 0% used [0x6fc80000, 0x6fc80000, 0x6fca0000)
    tenured generation total 42796K, used 25127K [0x6fcc0000, 0x7268b000, 0xae4c0000)
    the space 42796K, 58% used [0x6fcc0000, 0x71549dd0, 0x71549e00, 0x7268b000)
    tenured generation total 42796K, used 25127K [0x6fcc0000, 0x7268b000, 0xae4c0000)
    the space 42796K, 58% used [0x6fcc0000, 0x71549dd0, 0x71549e00, 0x7268b000)
    compacting perm gen total 24832K, used 24633K [0xae4c0000, 0xafd00000, 0xb24c0000)
    the space 24832K, 99% used [0xae4c0000, 0xafcce558, 0xafcce600, 0xafd00000)
    Dynamic libraries:
    00480000-00492000 r-xp 00000000 fd:00 361814 /lib/libnsl-2.3.4.so
    00492000-00493000 r-xp 00011000 fd:00 361814 /lib/libnsl-2.3.4.so
    00493000-00494000 rwxp 00012000 fd:00 361814 /lib/libnsl-2.3.4.so
    00494000-00496000 rwxp 00494000 00:00 0
    00a14000-00a2a000 r-xp 00000000 fd:00 360461 /lib/ld-2.3.4.so
    00a2a000-00a2b000 r-xp 00015000 fd:00 360461 /lib/ld-2.3.4.so
    00a2b000-00a2c000 rwxp 00016000 fd:00 360461 /lib/ld-2.3.4.so
    00a2e000-00b54000 r-xp 00000000 fd:00 360463 /lib/tls/libc-2.3.4.so
    00b54000-00b56000 r-xp 00125000 fd:00 360463 /lib/tls/libc-2.3.4.so
    00b56000-00b58000 rwxp 00127000 fd:00 360463 /lib/tls/libc-2.3.4.so
    00b58000-00b5a000 rwxp 00b58000 00:00 0
    00b5c000-00b5e000 r-xp 00000000 fd:00 362922 /lib/libdl-2.3.4.so
    00b5e000-00b5f000 r-xp 00001000 fd:00 362922 /lib/libdl-2.3.4.so
    00b5f000-00b60000 rwxp 00002000 fd:00 362922 /lib/libdl-2.3.4.so
    00b62000-00b83000 r-xp 00000000 fd:00 364019 /lib/tls/libm-2.3.4.so
    00b83000-00b84000 r-xp 00020000 fd:00 364019 /lib/tls/libm-2.3.4.so
    00b84000-00b85000 rwxp 00021000 fd:00 364019 /lib/tls/libm-2.3.4.so
    00c68000-00c76000 r-xp 00000000 fd:00 362923 /lib/tls/libpthread-2.3.4.so
    00c76000-00c77000 r-xp 0000d000 fd:00 362923 /lib/tls/libpthread-2.3.4.so
    00c77000-00c78000 rwxp 0000e000 fd:00 362923 /lib/tls/libpthread-2.3.4.so
    00c78000-00c7a000 rwxp 00c78000 00:00 0
    00da5000-00dae000 r-xp 00000000 fd:00 364026 /lib/libgcc_s-3.4.6-20060404.so.1
    00dae000-00daf000 rwxp 00009000 fd:00 364026 /lib/libgcc_s-3.4.6-20060404.so.1
    08048000-08053000 r-xp 00000000 fd:03 327770 /usr/java/j2sdk1.4.2_12/bin/java
    08053000-08055000 rwxp 0000a000 fd:03 327770 /usr/java/j2sdk1.4.2_12/bin/java
    08055000-0b9ed000 rwxp 08055000 00:00 0
    637f8000-637f9000 ---p 637f8000 00:00 0
    637f9000-63806000 rwxp 637f9000 00:00 0
    63806000-63809000 ---p 63806000 00:00 0
    63809000-63879000 rwxp 63809000 00:00 0
    63879000-6387a000 ---p 63879000 00:00 0
    6387a000-63887000 rwxp 6387a000 00:00 0
    63887000-6388a000 ---p 63887000 00:00 0
    6388a000-638fa000 rwxp 6388a000 00:00 0
    638fa000-638fb000 ---p 638fa000 00:00 0
    638fb000-63908000 rwxp 638fb000 00:00 0
    63908000-6390b000 rwxp 63908000 00:00 0
    6390b000-6397b000 rwxp 6390b000 00:00 0
    ... same data as above..
    VM Arguments:
    jvm_args: -Duser.timezone=GMT -Duser.language= -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=86400000 -Dsun.rmi.dgc.server.gcInterval=86400000 -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:gc.txt -XX:NewSize=24m -XX:MaxNewSize=24m -XX:MaxTenuringThreshold=0 -XX:SurvivorRatio=150 -Djava.awt.headless=true -Dprogram.name=run.sh -XrunpiAgent:server=enabled -XX:+HeapDumpOnOutOfMemoryError -Djava.endorsed.dirs=/home/appian/jboss-4.0.2/lib/endorsed
    java_command: org.jboss.Main
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/usr/java/j2sdk1.4.2_12
    PATH=/usr/java/j2sdk1.4.2_12/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/appian/bin:/usr/local/apache-ant-1.6.5/bin
    LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_12/jre/lib/i386/server:/usr/java/j2sdk1.4.2_12/jre/lib/i386:/usr/java/j2sdk1.4.2_12/jre/../lib/i386
    SHELL=/bin/bash
    --------------- S Y S T E M ---------------
    OS:Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
    uname:Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686
    libc:glibc 2.3.4 NPTL 2.3.4
    rlimit: STACK 10240k, CORE 0k, NPROC 81920, NOFILE 1024, AS infinity
    load average:325215078481544067418021531507253339114023570572081208587916205359104.00 131198811606042569760500027299787024097352946895170280943343508464786882673889726356210730355696686997119451320235216116321080642087335108750767273038475800621827641579806615210529115622778654545791307446324043502938668805095862304768.00 0.00
    CPU:total 4 family 15, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1012k(60k free), swap 511k(511k free)
    vm_info: Java HotSpot(TM) Server VM (1.4.2_12-b03) for linux-x86, built on May 9 2006 12:16:45 by unknown with unknown compiler

    HI please help me out in reading the following java crash file...If you have any utility please let me know..
    we are using JDK1_5_0_12
    Platform :- RedHat linux
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xa3f62910, pid=15435, tid=2039286704
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_12-b04 mixed mode)
    # Problematic frame:
    [error occurred during error reporting, step 60, id 0xb]
    --------------- T H R E A D ---------------
    Current thread is native thread
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000
    Registers:
    EAX=0x00000000, EBX=0xa3f9a65c, ECX=0x00000000, EDX=0x00000000
    ESP=0x798ca500, EBP=0x798d0a18, ESI=0x00000000, EDI=0xa3f62760
    EIP=0xa3f62910, CR2=0x00000000, EFLAGS=0x00010246
    Top of Stack: (sp=0x798ca500)
    0x798ca500: a3113d88 798cf5dc 000003e8 798d0a04
    0x798ca510: 00000005 798cf5e0 00000000 00000000
    0x798ca520: 00000000 00000000 00000000 00000000
    0x798ca530: 00000000 00000000 00000000 00000000
    0x798ca540: 00000000 00000000 00000000 00000000
    0x798ca550: 00000000 00000000 00000000 00000000
    0x798ca560: 00000000 00000000 00000000 00000000
    0x798ca570: 00000000 00000000 00000000 00000000
    Instructions: (pc=0xa3f62910)
    0xa3f62900: ff 8b 8b 5c 0d 00 00 8b 93 5c 0d 00 00 8b 45 ec
    0xa3f62910: 03 02 89 01 c7 45 f4 00 00 00 00 8b 45 f4 3b 45
    Stack: [0x796d0000,0x798d1000), sp=0x798ca500, free space=2025k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    [error occurred during error reporting, step 120, id 0xb]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0808cf88 JavaThread "RMI ConnectionExpiration-[166.166.253.48:56639]" daemon [_thread_blocked, id=23404]
    0x08094550 JavaThread "RMI ConnectionExpiration-[ems3:1099]" daemon [_thread_blocked, id=23402]
    0x084093a0 JavaThread "KnEMSPingThread-2" daemon [_thread_blocked, id=16216]
    0x08388c78 JavaThread "RMI RenewClean-[166.166.253.48:56639]" daemon [_thread_blocked, id=16210]
    0x08387b58 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=15493]
    0xa1e11ce0 JavaThread "GC Daemon" daemon [_thread_blocked, id=15484]
    0xa1e11800 JavaThread "RMI Reaper" [_thread_blocked, id=15483]
    0xa2518040 JavaThread "Timer-1" daemon [_thread_blocked, id=15482]
    0xa2517c30 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=15481]
    0xa1a92858 JavaThread "KnStatisticsDataCollectorThread-1" [_thread_blocked, id=15477]
    0xa256e690 JavaThread "DBMGR_CHECK_THREAD" [_thread_blocked, id=15455]
    0xa256f050 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon [_thread_blocked, id=15454]
    0xa2571700 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon [_thread_blocked, id=15453]
    0xa2571a00 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon [_thread_blocked, id=15452]
    0x082a9840 JavaThread "Timer-0" daemon [_thread_blocked, id=15451]
    0xa4028728 JavaThread "Thread-1" daemon [_thread_blocked, id=15448]
    0xa25649a8 JavaThread "Dispatcher-Thread-0" daemon [_thread_blocked, id=15447]
    0xa4c0a808 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=15445]
    0xa4c09450 JavaThread "CompilerThread1" daemon [_thread_blocked, id=15444]
    0xa4c084f8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=15443]
    0xa4c07570 JavaThread "AdapterThread" daemon [_thread_blocked, id=15442]
    0xa4c066f8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=15441]
    0x080f0798 JavaThread "Finalizer" daemon [_thread_blocked, id=15440]
    0x080f02d0 JavaThread "Reference Handler" daemon [_thread_blocked, id=15439]
    0x08063c68 JavaThread "main" [_thread_in_native, id=15435]
    Other Threads:
    0x080eddd8 VMThread [id=15438]
    0xa4c0be08 WatcherThread [id=15446]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 6656K, used 174K [0xa51c0000, 0xa58f0000, 0xa5ff0000)
    eden space 5952K, 2% used [0xa51c0000, 0xa51eb8e8, 0xa5790000)
    from space 704K, 0% used [0xa5790000, 0xa5790000, 0xa5840000)
    to space 704K, 0% used [0xa5840000, 0xa5840000, 0xa58f0000)
    tenured generation total 58304K, used 2046K [0xa5ff0000, 0xa98e0000, 0xad1c0000)
    the space 58304K, 3% used [0xa5ff0000, 0xa61efbf0, 0xa61efc00, 0xa98e0000)
    compacting perm gen total 16384K, used 7904K [0xad1c0000, 0xae1c0000, 0xb11c0000)
    the space 16384K, 48% used [0xad1c0000, 0xad978340, 0xad978400, 0xae1c0000)
    No shared spaces configured.
    Dynamic libraries:
    08048000-08057000 r-xp 00000000 3a:05 328829 /usr/java/jdk1.5.0_12/bin/java

  • How to know the disk space -(filled and not filled) in Macbook pro?

    How to know the disk space -(filled and not filled) in Macbook pro? what is the easiest way to know about it? how can i know a % of disk space that is filled in my mac book pro (2012 model MD101)

    Hi ...
    What's taking up disk space >  OSX Tips The Storage Display
    Click your Apple menu  top left in your screen. From the drop down menu click About This Mac > More Info > Storage
    Make sure there's at least 15% free disk space.

  • CMN_1117 ERROR: Could not allocate space in file

    Hi All,
    I am getting below Error while doing an ETL full load (Informatica 901) on the task DATAWAREHOUSE.DATAWAREHOUSE.SILOS.SIL_APTransactionFact_DiffManLoad.
    My source system is EBS R12 and Target is OBI Datawarehouse (7.9.6.3)
    LKPDP_1:TRANSF_1_1> CMN_1117 ERROR: Could not allocate space in file [BI/infohome/server/infa_shared/Cache/PMLKUP16145_7_0_6139S64.dat].
    Below is the file system specification of my server.
    Filesystem size used avail capacity Mounted on
    /dev/dsk/c0d1s0 837G 639G 190G 78% /BI
    I could also see that my 'Cache' folder from '/BI/infohome/server/infa_shared/' is increasing upto 190 GB and throwing an error. Is this normal that the data cache to increase up to 190 GB for a EBS source system which has only 500 GB data in total. And i am doing only load for Financial Analytics.
    Many Thanks

    We are struck on same issue. I didnt any update on this thread if the issue was resolved.
    I checked out "SIL_APTransactionFact_DiffManLoad" workflow in Workflow manager and unchecked "Lookup Cache() function".
    However, I still see the cache files created on <<INFA_HOME>>/9.0.1/server/infa_shared/Cache folder.
    Since it was set not to use cache, can it be possible not to have these files cache files generated.
    Appreciate your time and help.
    Thanks, Vagic.

  • Read in contents of a file?

    Hi,
    I'm having trouble reading the contents of a file. The problem is that the file path has spaces in it:
    e.g. C:\Users\Blah Blah\Documents\Ex Files\ReadMe.txt
    Trying to read this throws a file not found exception.
    How can I read in a file if it has spaces in the path?
    Cheers.

    I'm wondering if you're perhaps not escaping the backslashes properly. Here's an example which I've tested under Java 6. If you're using a different version and still have problems, let me know which one it is and post some example code that demonstrates the issue.
    import java.io.File;
    public class FileWithSpaces {
       public static void main(String[] args) {
          final String filename =
             "C:\\Documents and Settings\\Dave Minter\\My Documents\\FileWithSpaces.txt";
          final File file = new File(filename);
          System.out.println("File \"" + filename + "\" exists: " + file.exists());
    }

  • JVM - Survivor Space fills up to max

    We have run into an issue, where the survivor space fills up to the max pretty quickly, and things start running very slowly as the day progresses.
    We are using jdk1.6.0_16, and here's the JVM parameters the server runs with:
    -Xms12g -Xmx50g -XX:MaxNewSize=8g -XX:NewSize=4g -XX:SurvivorRatio=6 -XX:MaxPermSize=128M
    Here's how it looked like at one point:
    Attribute
    Max Value(MB)
    Committed(MB)
    Initial(MB)
    Used(MB)
    Heap Memory
    50176
    15980
    12288
    6392
    12
    Eden Space
    7389
    3072
    7389
    1872
    25
    Survivor Space
    399
    512
    399
    399
    99
    Tenured Gen
    43008
    8192
    8192
    4120
    9
    Non Heap Memory
    176
    132
    23
    111
    63
    Perm Gen
    128
    20
    110
    88
    69
    I'm not really sure if it's the survivor space that's causing the slowness or nor, but if so, what should I set it to, to get better performance? Or, can I just get rid of it, and let the system handle it.
    Any assistance/insight would be very much appreciated.

    Profiling the application with data that represents real traffic is the way to determine performance bottlenecks.
    If memory is actually an issue then reducing it will make the error occur more quickly, but again one should do that while profiling.

  • How to read,dispaly and open pdf files

    Hi, I am very new to Java butI have VB6.0 background. My current requirement is to read pdf file names from a directory, then
    show them on a form in a list (with their path in background pointing to the actual pdf files) and then once a user clicks any
    file name, open that file on the form.
    For example:
    My pdf files are in a directory as following:
    C:\myreports\user1\
    report1.pdf
    report2.pdf
    report3.pdf
    C:\myreports\user2\
    report1.pdf
    report5.pdf
    The output on the form should look like this if user1 has logged in the system. Side note: I am able to get userid of the logged in person in a variable.
    My Reports:
    . Report 1
    . Report 2
    . Report 3
    When a user clicks Report 1, it opens on the same form in pdf format.
    Thanks
    S.yhong

    For the first part (Listing thepdf files in the directory) you can use the java.lang.File class.
    File f = new File("path to your directory");
    File files[] = f.listFiles();
    then process the files array to find the files with extenction pdf
    You can also use a file filter object and make the listFiles method return only the pdf files.
    Please read the documentation about the File class for more info about it.
    */ For the displaying the pdf part is it good enough if you load the accrobat reader and with it. In that case you can do that using the Runtime.exec
    Also you can search for free java based pdf viewers I am sure there must be meny.
    And also the JTextPane might support pdf but I am not sure about it.
    EDIT:
    Just to say that this is my 1000th post :)
    Message was edited by:
    LRMK

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • Can I obtain a CD-ROM with the latest revision of Adobe Reader for a Windows XP system w/ Service Pack 3. I do not want to go online with this system. I have dedicated it to read all of my PDF Files only.

    I have 4 computer systems, 2 of which run under Windows XP w/ Service Pack 3. I have dedicated these systems to the task of reading all of my PDF Files which I have collected from my recent college career. The desktop system I want to use is an old Dell Optiplex GX240 with Acrobat Reader 4.0. The other Windows XP system I have is an old HP Laptop with Adobe Reader 8.1.4 installed. I want to update both systems to the latest version that is available for Windows XP w/Service Pack 3 installed. So, because I do not want to place these system online, would it be possible for me to obtain a copy of the Adobe Reader software I need on a CD-ROM? - Ken DeWitt, a 68-Year-Young Vietnam Veteran and recent college graduate...Summa Cum Laude.

    You can use an in-line computer to download the full offline Reader installer from
    http://get.adobe.com/reader/enterprise/

  • LR 4.2RC and ACR 7.2 RC won't read SONY RX 100 ARW files

    I was at a wedding yesterday and had two cameras with me - a Nikon D800 and my little SONY RX 100.  I was using an Eye-Fi Pro card for the Sony.  I'm uninterested in the Wi-Fi capabilities when I'm away from home, but like the camera to upload pictures when I'm close to my big processing machine.  Long story short.  This was the first time I've used the LR 4.2RC and ACR 7.2RC with the Sony RX 100.  I plugged the card into both the regular Eye-Fi USB reader, and into my Hoodman USB 3.0 reader.  Of course, LR doesn't like the Eye-Fi reader, but it loves the Hoodman.  Finally, it recognized the Hoodman and the Eye-Fi card.  I have previews set to minimal and I was attempting to import all the raw (ARW) files into Lightroom.  When the initial previews come up as I start the import process, it shows about 1/3 of the previews and then tells me it can't read the rest, including MP4 files.  When I actually begin the import, it simply times out and reports that it was unable to import ANY of the ARW files, nor the MP4 files.  I have no trouble reading 63 files into Raw Photo Processor so I know there is nothing wrong with any of the files.  I can only conclude that there is something wrong with LR 4.2 and/or ACR 7.2.
    Anyone else reporting this problem?  I'm puzzled because this is the ONLY time I have ever had trouble importing files from supported cameras.
    Thanks for feedback.

    Well.  After some experimentation, I discovered what the problem seems to be.  For reasons completely opaque to me, Lightroom expects not only that the Eye-Fi card will be read from its own reader, but it also expects that the Eye-Fi helper application be installed and running.  Of course, this means that I end up with duplicate copies of every file - once to the Eye Fi directory, and again to the appropriate Lightroom Folder on a completely different set of drives.   I guess the conclusion I can draw from this is that without the helper application, the Eye Fi card is dumb and the images only partly visibible.  The Eye-Fi helper can import the .ARW files, but it doesn't display them because Apple hasn't updated its camera list to include the RX100.  Until they do, I think I'll just use regular cards and consign the Eye-Fi card to the hall of unhelpful cards.  Yikes, the darned thing is as expensive as the Lightroom upgrade.
    Sigh.

Maybe you are looking for

  • Update LIKP table while saving the output type in VT02N transaction

    Hi All, I have a requirement where i have to update Delivery Priority(LPRIO) field in LIKP table while saving the output type in VT02N transaction. I am not able to use the BAPI "BAPI_OUTB_DELIVERY_CHANGE" or FM "WS_DELIVERY_UPDATE" because, when we

  • ITunes 7.0 erased deleted all the music on my ipod

    I can't find a way to ask this directly to iTunes since there is no contact email or phone, and I can't find it addressed in their support pages so I am trying to address it here. WHY does upgrading to iTunes 7.0 erase all the music on the ipod witho

  • Embedding Flash with a holding page to start

    I have an embedded .flv file on my webpage with a controllable skin. This is not started automatically. I want to add a holding image on the flash player to be displayed when the page opens and then when the user chooses to play the video they then v

  • Lost registration code for Logic

    Hi I NEED HELP !! I have Logic 6 and 8 on my G5 but I need to install it into my Macbook. I've lost the registration (in recent house move) and I need to do this asap as I'm going to Copenhagen to write/produce at the weekend and I need to use my lap

  • Colored strokes appearing on frame edges?

    hi everyone, hope you can help! I am fairly new to FCpro, and have encountered this issue, when exporting to compressor just in the timeline... I can see a stroke on the edge of the frame. Its usually black, but sometimes colored. Check out this exam