File I/O strange behavior !!!!!!!

Hello everyone, I have been writing a small program that parses a file and writing to
another file. what I basically want to do is to read from a file named 10130.txt containing
around 50 or 60 lines
19971021 10130 -9 0 0 0 0 -9 0 -9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
the output file should contain
19971021 00 -9
19971021 01 0
19971021 02 0
19971021 03 0
19971021 04 0
19971021 05 -9
19971021 06 0
19971021 07 -9
19971021 08 0
19971021 09 0
19971021 10 0
19971021 11 0
19971021 12 0
19971021 13 0
19971021 14 0
19971021 15 0
19971021 16 0
19971021 17 0
19971021 18 0
19971021 19 0
19971021 20 0
19971021 21 0
19971021 22 0
19971021 23 0
the previous output should be for each line from the input file.so if I have 50 lines in i/p file then
the o/p file should contain 50x24 lines.
The code I have written works very fine till almost the middle of the i/p file and then gives me the following
exception:
java.util.NoSuchElementException
     at java.util.StringTokenizer.nextToken(StringTokenizer.java:259)
     at Pras.parseFile(Pras.java:55)
     at Pras.main(Pras.java:22
I really dont knw whats wrong
* Created on Jun 17, 2004
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
* @author onemanarmy
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
import java.io.*;
import java.util.*;
public class Pras {
     public static void main(String[] args) {
          parseFile();
     public static void parseFile()
          String text =null;
          String temp=null;
          try
               FileReader fr = new FileReader("/home/onemanarmy/10130.txt");
               BufferedReader br = new BufferedReader(fr);
               FileOutputStream fw = new FileOutputStream("/home/onemanarmy/ooot.txt");
               PrintWriter pw = new PrintWriter(fw);
               while ((text = br.readLine()) !=null)
                    StringTokenizer stk = new StringTokenizer(text);
                    temp=stk.nextToken();
                    stk.nextToken();
                    for (int i=0;i<24;i++)
                         if (i<10)
                              pw.println(temp+" "+"0"+Integer.toString(i)+" "+stk.nextToken());
                         else
                              pw.println(temp+" "+Integer.toString(i)+" "+stk.nextToken());
          catch (Exception e)
               e.printStackTrace();
the part of the i/p file where the code seems to throw the exception is
19971021 10130 -9 0 0 0 0 -9 0 -9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
19971022 10130 0 0 0 0 0 0 0 0 0 0 0 0 -9 0 1 1 1 4 2 -9 2 0 -9 0
19971023 10130 0 0 0 -9 0 0 0 0 0 -9 1 -9 0 0 -9 5 9 0 0 -9 1 1 0 0
19971024 10130 0 0 -9 0 0 0 0 0 0 0 -9 13 0 0 0 0 0 0 0 0 -9 3 0 5
19971025 10130 2 2 1 0 9 1 2 0 1 0 -9 3 0 0 0 0 0 0 0 0 0 0 0 -9
19980113 10130 0 0 0 0 0 0 0 0 0 -9 -9 0 0 0 0 0 0 0 0 0 0 0 0 0
19980114 10130 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
19980115 10130 3 3 0 -9 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 4 1 0 5 13
19980116 10130 -9 6 1 0 -9 -9 0 0 0 -9 0 0 0 0 0 0 -9 0 0 0 0 3 0 0
19980117 10130 0 0 0 0 0 0 -9 0 0 0 0 0 0 26 -9 0 0 3 5 3 0 0 -9 0
19980118 10130 1 0 0 0 0 0 0 0 0 0 0 -9 0 0 0 0 0 0 0 0 3 10 1 0
19980119 10130 0 1 0 0 -9 15 14 12 10 8 -9 3 0 -9 -9 0 0 0 -9 0 1 7 9 4
19980120 10130 2 4 2 1 0 0 0 -9 0 0 -9 0 0 -9 0 0 0 0 0 0 0 0 0 -9
19980121 10130 0 0 0 0 0 -9 0 0 0 0 0 0 0 -9 0 0 0 0 0 0 0 0 0 0
19980122 10130 0 0 0 0 0 -9 0 0 0 0 0 0 0 0 0 0 -9 0 0 0 0 0 0 0
19980123 10130 0 0 0 0 -9 0 0 -9 0 0 0 0 0 0 0 0 0 -9 0 0 0 0 4 5
19980124 10130 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0
19980225 10130 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
19980226 10130 0 0 0 0 0 0 -9 0 0 0 0 0 0 0 0 0 -9 0 0 0 0 0 0 0
19980227 10130 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8
19980228 10130 42 9 0 30 11 -9 0 0 1 4 3 0 0 -9 0 0 0 0 0 0 0 0 0 0
19980301 10130 2 0 0 5 0 0 0 0 0 0 4 12 5 -9 1 0 -9 0 0 0 0 0 0 0
19980302 10130 0 0 0 -9 0 0 21 -9 -9 0 3 2 2 0 0 0 0 -9 0 0 0 0 0 0
19980303 10130 0 2 5 6 4 2 0 4 2 0 0 0 0 9 15 12 5 2 8 21 6 1 0 0
19980305 10130 0 0 0 0 0 0 11 0 13 15 0 0 -9 -9 0 0 0 0 -9 0 0 0 0 -9 <=== this line
^
here
last lines in the o/p file looks like
19980303 14 15
19980303 15 12
19980303 16 5
19980303 17 2
19980303 18 8
19980303 19 21
19980303 20 6
19980303 21 1
19980303 22 0
19980303 23 0
19980305 00 0
19980305 01 0
19980305 02 0
19980305 03 0
19
I really dont knw whats the problem since the code works very fine till the specfied line in the i/p file.
that line have the same no. of tokens and spacing as all the previous lines so no wrong parsing here (I think).
Any help would be appreciated?
thanx in advance.

Maybe some error checking would help:
    while ((text = br.readLine()) !=null)
        StringTokenizer stk = new StringTokenizer(text);
        if (stk.countTokens() < 26)
            continue;
        ...Next time please paste your code between code tags exactly like this:
&#91;code&#93;
your code
&#91;/code&#93;
Thank you

Similar Messages

  • Strange behavior of WindowsIntune / Win8.1 : Repetitively launch C:\Program Files\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe

    Hi,
    After moving from Win8 to Win8.1 (using WindowsStore update),
    I observed sometimes that some command prompt Windows (ugly black MSDOS Windows) opens / closes Repetitively in my desktop.
    At a moment where the computer was really busy, I was abble to see the title of this black window :
    It was : C:\Program Files\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe
    Can someone tell me how to prevent this strange behavior ?
    Thanks in advance.
    AC Soft.

    I have also openned a case at WindowsIntune support, and up to now, they replyed me this :
    We have been able to reproduce this issue ourselves. We are currently working with our engineers to identify if there is a way to prevent these command prompts from launching.
    So, while waiting, I Tried your solution.
    On the Win8.1 computer that had the problem, i found an AccoundID value, with { }, and all letters in Uppercase, as described in your solution. So, the problem for me is not that AccountID is not populated...
    When I looked at another Win8.1 computer that had not the problem, i found an AccountID value
    without { }, and with all letters
    in lowercase.
    So I looked at a Win7 Virtual machine that was enroled into intune too, and that obviously didn't had the problem, and I found there an AccountID value without { }, and with all letters in lowercase, same as on the working computer.
    So on the computer that had the problem, I removed the { }, put all letters in lowercase, then run
    %ProgramFiles%\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe /agentupdatenow
    I rebooted the computer, and now, I wait to see if the problem is solved...
    I will tell you what happened in some days...
    AC Soft.
    That process will not fix this issue.  We have a fix coming in an upcoming service release.  
    Thanks,
    Jon L. - MSFT - This posting is provided "AS IS" with no warranties and confers no rights.

  • Strange behavior with csv flat file integration

    Hi,
    i've a real strange behavior with csv flat file integration.
    I've defined the file inbound with | as separator
    Here is the sender payload result, extra columns appears !
    <row>
      <VAL1>D</VAL1>
      <VAL2 />
      <VAL3>01</VAL3>
      <VAL4 />
      <VAL5 />
      <VAL6>003160000</VAL6>
      <VAL7 />
      <col>003160001</col>
      <col />
      <col>2</col>
      <col />
      <col>91200604212</col>
      <col />
      <col>VIRTUAL DJ HOME EDITION</col>
      <col />
      <col>2</col>
      <col />
      <col>2</col>
      <col />
      <col />
      <col>2</col>
      <col />
      </row>
    When i changed the separator to ; in my file and in the file inbound it gives the following.
    Everything is ok.
    <row>
      <VAL1>D</VAL1>
      <VAL2>01</VAL2>
      <VAL3 />
      <VAL4>003160000</VAL4>
      <VAL5>003160001</VAL5>
      <VAL6>7</VAL6>
      <VAL7>91200604212</VAL7>
      <col>VIRTUAL DJ HOME EDITION</col>
      <col>10</col>
      <col>10</col>
      <col />
      <col>10</col>
      </row>
    Why using a different separator would change the payload ?
    It will be a good thing for me if I could use the pipe separator.
    Thanks

    Can you give the steps you're using to get this error? I'm not seeing any problem here.
    1) Create a new audio project (44.1 KHz).
    2) Arm the record head in track 1 by pressing the "R" button in that track. Verify audio levels.
    3) Record by pressing the record button in the audio controls.
    4) Stop recording by pressing the stop button.
    5) Play back the resulting audio. Sounds fine.
    6) Select File > Export.
    7) Change the file format to WAVE file. Change the bit depth to 16 bit, change the sample rate to 44.1 KHz.
    8) Type the name SAVETEST.wav and click on the Export button.
    9) Play back the resulting WAV file in QuickTime Player, Apple Loops Utility, etc. and it seems just fine.
    What am I missing that you're doing?

  • Strange Behavior from iTunes 7.2

    Running itunes - 7.2Recently had my itunes library “corrupted” or non functional.
    Spent a long, long time rebuilding the library (see below) and noticed some strange behavior that has me terrified that itunes is corrupted and I am going to loose all the hard work, etc..
    1. I have about 100 GB of music in various formats (apple protected/itunes store, mp3 (128 to 320), apple lossless, wav) and when I tried to rebuild the library by clicking on add to library it only added about 65 GB of the 100 GB. I had to go through and figure out what was missing and manually choose the specific folder when I added it.
    Major pain and very time consuming.
    So it is not adding songs correctly, but through way too much effort able to work around this.
    2. About ½ of the itunes store tunes I purchased are no longer apple protected format. Somehow they were converted to mp3 at 192kbs. Some of the songs play fine others are now not as crisp and make a poping sound or skip. How could this happen? Are these files corrupted? Will I loose them?
    3. At the top center of itunes the information bar, where the read out is for what song is playing and how much time has elapsed in the song, is not working. When I click on a song it starts playing but the elapsed time bar and counter never move, and when the next song starts playing the information never changes. It is stuck on what ever song you initiate play with by clicking on it and the information stays frozen.
    4. itunes randomly stops playing at the end of a song….If listening to an album it is usually after three or four songs and when listening to a play list it is usually after one song.
    I am afraid itunes is corrupted and will not function correctly and I am going to loose the hard work I put in trying to recover from the last crash.
    Any suggestions??
    Can’t wait for time machine. I hope it works as advertised. If so I could just go back in time to the last time iTunes worked correctly and go from there.

    First of all I hope that you have a good b/u of all your tunes - either on ext HD or on DVD. Don't forget to b/u the iTunes Library and .xml files at the same time.
    Have you tried to reinstall iTunes? Drag the app to the trash and remove the iTunesX.pkg from HD>Library>Receipts>iTunesX.pkg. Using a fresh .dmg of iTunes 7.2 reinstall.
    Have you repaired permissions with Disk Utility?
    Is your Quicktime up to date? At least version v7.1.5.
    MJ

  • Strange behavior in report Output

    Hi,
    Strange behavior in report output , please some one help me out of this problem.
    I am using Oracle order capture rdf file ASOPQTEL.rdf.
    My working environment:
    Windows,apps instance .Now this rdf file is working fine in my work Environment.
    when this same file is deployed in client environment (UNIX and different apps instance from my working environment apps instance)
    for some cases it is giving output.
    for some cases it's throughing error.
    Thanks,
    Mithun

    Please specify what kind of error you are getting and what is command you are firing on Unix.

  • Report FP_TEST_00 - Strange behavior

    Hello Gurus,
    A strange behavior with report FP_TEST_00 occurs:
    SA38 --> FP_TEST_00 --> select a device --> execute --> print preview then and error or popup is show:
    Adobe Reader
    Error initializing the font server module
    Then the SAP GUI is closed, I check the ST22 and no dump is generated and in transaction SM21 only appear:
    DP  Q0  4 Connection to user 551 (ADMIN ), terminal 86 (HUSVP-SAP-BA) lost
    DP  Q0  I Operating system call recv failed (error no. 232 )
    The #1 log entry: *
    Details Page 2 Line 28 System Log: Local Analysis of sapdev                   1
    Time     Type Nr Clt User TCode Grp N Text
    11:37:20 DP                     Q0  4 Connection to user 551 (ADMIN ), terminal 86 (HUSVP-SAP-BA) lost
    Connection to user 551 (ADMIN ), terminal 86 (HUSVP-SAP-BA) lost
    Details
    Recording at local and central time........................ 25.02.2010 11:37:20
    Task...... Process    User...... Terminal Session TCode Program Cl Problem cl         Package
    11092      Dispatcher                                           K  SAP Web AS Problem STSK
    Further details for this message type
    Module nam Line Error text..........              Caller.... Reason/cal
    dpxxdisp   1223 551  ADMIN       86  HUSVP-SAP-BA DpRTmPr    NiBufRe
    Documentation for system log message Q0 4 :
    The SAP Dispatcher (part of the application server) has lost the
    connection to a terminal process.  For example, this happens when the
    terminal program (GUI) terminates without correctly logging off the
    application server.  More detailed information about the error
    context is not available here.
    Technical details
    File Offset RecFm System log type             Grp N variable message data
       21 254340 m     Error (Function,Module,Row) Q0  4 551  ADMIN       86  HUSVP-SAP-BA     DpRTmPrNiBufRedpxxdisp1223
    The #2 Log show: *
    Details Page 2 Line 29 System Log: Local Analysis of sapdev                   1
    Time     Type Nr Clt User TCode Grp N Text
    11:37:20 DP                     Q0  I Operating system call recv failed (error no. 232 )
    Operating system call recv failed (error no. 232 )
    Details
    Recording at local and central time........................ 25.02.2010 11:37:20
    Task...... Process    User...... Terminal Session TCode Program Cl Problem cl         Package
    11092      Dispatcher                                           K  SAP Web AS Problem STSK
    Further details for this message type
    Module nam Line Error text        Caller.... Reason/cal
    nixxi.cp   4435           recv232 NiIRead    recv
    Documentation for system log message Q0 I :
    The specified operating system call was returned with an error.
    For communication calls (receive, send, etc) often the cause of errors
    are network problems.
    It could also be a configuration problem at operating system level.
    (file cannot be opened, no space in the file system etc.).
    Additional specifications for error number 232
    Name for errno number ECONNRESET
    No documentation available for error ECONNRESET
    Technical details
    File Offset RecFm System log type             Grp N variable message data
      21 254520 m     Error (Function,Module,Row) Q0  I           recv232                     NiIReadrecv   nixxi.cp4435
    Edited by: Hernando Polania Cadena on Feb 25, 2010 8:36 PM

    Hello All,
    I applied the solution in page
    http://wiki.sdn.sap.com/wiki/display/PLM/Adobe%209%20-%20SAPGUI%20crash
    Works OK
    Thanks
    Hernando

  • Strange behavior when I try to match a mpeg2 video with the menu size image

    hello all,
    got a strange behavior when I try to match a mpeg2 video with the menu size image,
    menu size is 1920 x 1080 (photoshop file)
    mpeg2 video 1920 x 1080 (1second 19 frames)
    the idea is to go from the menu link to the next sub menu with a video as transition, using the same image on the video as the menu and then zooming in (in my case through a door) to end up after the zoom in the next level menu.
    I try to achieve a smooth change from the first play menu picture to the video image into the next level menu picture,
    everything works good but when I watch it on the preview mode on the left and right side of the video it shows a black bar at least 15 to 25 pixel wide, that means the video image appears smaller and it causes a little jump what is preety disturbing and can not be sold as a professional work.
    why encore treats the video size and picture differently?
    it's gratful appreciated if somebody who got experience in a transition I mentioned obove posting any solution,
    thankl you all

    Hi all
    I'm having a very similar problem with Encore. My menu items are distorting (a minor but infuriating squashing top and bottom) when previewed.
    Using Encore,PS,AE CS4
    DVD format SD PAL DV widescreen
    I created 3 menu frameworks and 3 video transistions to link them in AE. On the final frame of each transistion in AE I saved the frame with Composition>Save Frame to> Photoshop Layers. In PS i added the button functionality and saved.
    In Encore I use Dynamic link to import AE transistions as timelines and imported each PS menu twice, once as "menu" and once as an asset.
    When I link the timeline transistions to the menu and preview at the point the menu begins the whole image is squashed. When the next transistion is activated the image returns to its original size.
    Thinking it was the use of PS that was causing the menus to distort I used the menu asset directly in the time line. Obviously no menu functionality but also no distortion. The AE transistion flowed straight into the "menu" just as I expected.
    In the properties panel the menu Aspect Ratio 16:9
    The AE transistions PAR is SD PALwidescreen 1.4587.
    I did try the Blu Ray suggestion above but the same distortion was apparent.
    Any suggestions short of squashing the video to match the menu would be welcomed.
    Thanks

  • Strange Behavior connecting to Oracle

    Hi to All,
    On Server Windows 2003 I have installed Oracle 10g R2. On this Server run Toad for Oracle.
    If I run Oracle console, all work fine; running Toad the ORA-12154 error is displayed.
    I have tried to connect to DB with Toad from a client and all works.
    Have someone an idea on this strange behavior ?
    Thank You and Best Regards
    Gaetano

    This may be a problem?NO!
    12154, 00000, "TNS:could not resolve the connect identifier specified"
    // *Cause:  A connection to a database or other service was requested using
    // a connect identifier, and the connect identifier specified could not
    // be resolved into a connect descriptor using one of the naming methods
    // configured. For example, if the type of connect identifier used was a
    // net service name then the net service name could not be found in a
    // naming method repository, or the repository could not be
    // located or reached.
    // *Action:
    //   - If you are using local naming (TNSNAMES.ORA file):
    //      - Make sure that "TNSNAMES" is listed as one of the values of the
    //        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA)
    //      - Verify that a TNSNAMES.ORA file exists and is in the proper
    //        directory and is accessible.
    //      - Check that the net service name used as the connect identifier
    //        exists in the TNSNAMES.ORA file.
    //      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    //        file.  Look for unmatched parentheses or stray characters. Errors
    //        in a TNSNAMES.ORA file may make it unusable.
    //   - If you are using directory naming:
    //      - Verify that "LDAP" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Verify that the LDAP directory server is up and that it is
    //        accessible.
    //      - Verify that the net service name or database name used as the
    //        connect identifier is configured in the directory.
    //      - Verify that the default context being used is correct by
    //        specifying a fully qualified net service name or a full LDAP DN
    //        as the connect identifier
    //   - If you are using easy connect naming:
    //      - Verify that "EZCONNECT" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Make sure the host, port and service name specified
    //        are correct.
    //      - Try enclosing the connect identifier in quote marks.
    //   See the Oracle Net Services Administrators Guide or the Oracle
    //   operating system specific guide for more information on naming.This error is clear.
    SQL*Net is being asked to resolved TNS_ALIAS & it reports that it can not find the requested name.
    EITHER
    1) the requested name is not correct
    or
    2) SQL*Net is looking in the wrong tnsnames.ora file & still not finding the requested name.
    Good Luck solving your mystery

  • Strange Behavior in iMovie 08

    I recently purchased a MacPro, installed Leopard and moved all my files, applications, and settings from my MacBook Pro notebook by way of a Time Machine backup. Everything went without a hitch except for iMovie 08. When I open it it appears to start up but the application window never opens and almost all the menu items are grayed out. I can quit the application and start it again, but still get the same strange behavior. I have repaired permissions, verified my disk, deleted preferences and reinstalled iLife, then updated in software update, all with no effect. However iMovie 08 runs just fine on my MacBook Pro which should be identical to my Mac Pro. What gives? Ironic since a primary reason for purchasing this computer was for its enhance performance capabilities

    1) load and install the update for iM08, vers 7.1.
    2) then, in System Preferences/Monitor/Color Profile choose 'any other' than the actual one (e.g. AdobeRGB).. launch iM08.. now, set the Color Profile to your wanted one..

  • Strange behavior  in entity bean : get Timestamp

    Hello:
    I'm working with SUNONE 7 AppServer , over SunOS 5.9
    I've a strange behavior with entity's get methods which return Timestamp value.
    For example, I've got
    Timestamp date;
    If I do
    entity.setF(date) , ( date is a Timestamp with value "12/12/2005 12:30:00" )
    all works right, and in database is wrote right ( "12/12/2005 12:30:00" )
    But , if I do
    date = entity.getF()
    the, date variable has the value "12/12/2005 00:00:00"
    So, in get method is lost the time value of a Timestamp data
    Could be a code bug in my source , but if I use Jboss AS over Windows XP , all work right ( set and get methods ). The database is the same one ( Oracle 9i )

    Well, I found the solution.
    The problem was the ojdbc14.jar driver, which made wrong schema files.
    Exactly, with the bad ojdbc14.jar, generated this entry
    <_type>91</_type>
    when the right one for date types ( Timestamp ) is
    <_type>93</_type>
    I dont know why the new ojdbc14.jar works fine, but I paste its size
    good ojdbc14.jar : 1181679 bytes

  • Strange behavior in deleting images - works on second but not first try

    In Library mode, Grid view, right after importing, after I select several images with an "x" to be deleted, when I bring up the "Delete Rejected Photos" dialog, I find this strange behavior. I get the message that there are not photos marked for deletion. I then invoke the dialog again, and my photos that were marked show up, with the choices of deleting from disk or removing from the catalog. What am I likely doing wrong? I'm on WinXP Pro with LR 2.2. Thanks!
    Dilip

    Dilip,
    I too have seen this behaviour in all versions of LR. Even when deleting a single image in the develop module. If LR is writting the preview you can't delete the file until the preview is rendered. I think it's more to do with the OS not allowing the deletion of a file being accessed than a LR bug as such.
    Gordon

  • Strange Behavior In IE 8

    First off I would like to say how happy I am to find an active comunity of GoLive users. I had lost my copy of GoLive during a computer change. I tried several times to make the transition to DreamWeaver and hated it with a passion. It literally sucked all the joy out of creatinyg websites for me. I have been inactive for that reason for quite sometime.
    Just recently I decided to start a new project and was thrilled when I was able to aquire a legal copy of GoLive CS2 from a coworker who had upgraded to CS5 and no longer had a use for CS2.
    So here is my problem. I just finished designing and building a small site as a corporate identity site. I am very happy with the design but when it first loads it exhibits some strange behavior. In IE8 the logo on the index page on first load comes up out of place. I have to refresh to make it come together correctly. Then the page transitions are the ugliest thing I've ever seen. Going from one page to the next produces a hidious flash. Everything looks and works fine in FireFox.
    My first thought is that it has something to do with the encoding.
    Here is the URL:
    http://www.ffdminc.com
    Any suggestions would be greatly appreciated.
    Thanks
    Ron

    rcates00 wrote:
     ... thrilled when I was able to aquire a legal copy of GoLive CS2 from a coworker who had upgraded to CS5 and no longer had a use for CS2....
    If the license of CS2 was used to upgrade, then your co-worker had no right to pass off CS2 or any part of it. You may not really be legal. But if you used their media to install your own license, you are fine.
    Your problems might be due to the table-based design you have used. You may do much better by moving forward with CSS and reusing images instead of pushing an entirely new set of image files with each page.
    The flicker/transitions may appear in any browser where the images are not yet cached.

  • Adding custom navigation rules results in strange behavior

    Hello,
    We'd like to add navigation rules to our application. To avoid post-JHeadstart-generation-steps we created an extra faces-config-custom.xml file which contains the navigation rules. When adding this file to the web.xml and run the aplication we encounter strange behavior
    - Errors are shown in duplicate
    - 'Transaction completed' messages are not shown
    Try adding the underneath faces-config-custom.xml to a standard HR demo project and you will get the same behavior.
    (1) What is the reason of this strange behavior?
    (2) How can we add custom navigation rules, without having to do post creation steps?
    Regards Leon
    [faces-config-custom.xml]
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>BezwaarVerzoeken</from-outcome>
    <to-view-id>/pages/inboeken/BezwaarVerzoeken.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>LosseOpdrachten</from-outcome>
    <to-view-id>/pages/inboeken/LosseOpdrachten.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    [Add faces-config-custom.xml to web.xml]
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config-custom.xml,...

    Leon,
    When you perform a drag and drop operation, JDeveloper adds the following lines to the faces-config.xml:
    <lifecycle>
    <phase-listener>
    Oracle.adf.controller.faces.lifecycle.ADFPhaselistener
    </phase-listener>
    </lifecycle>
    However, JHeadstart uses its own subclass of ADFPhaselistener, and defines the lifecycle element in JhsCommon-beans.xml. Due to a bug in ADF, ADF does not look for the lifecycle element in other files than faces-config, and adds its own element in faces-config.xml If you remove these lines, everything works fine again.
    To prevent this from happening again, you can move the following entry from JhsCommon-beans.xml to faces-config.xml:
    <lifecycle> <phase-listener>oracle.jheadstart.controller.jsf.lifecycle.JhsADFPhaseListener</phase-listener>
    </lifecycle>
    And then make a custom template for JhsCommon-beans.vm where you remove this entry.
    Steven Davelaar,
    JHeadstart team.

  • Strange behavior with obssocookie on different browser

    Hi,
    I am trying to integrate OAM with our application deployed on WLS. I have set up an IIS proxy server and installed a web gate on it. I have seen a couple of strange behavior
    1) If I try to access some static image file, SSO keeps asking for authentication. It happens for both firefox and IE, but it doesn't happen for chrome though. Looks like for image file request, the obssocookie is not passed correctly. Anyone sees that before?
    2) If I use firefox on the machine where WLS app server is installed to connect to proxy server, if I use hostname in the URL, I don't see the obssocookie. If I use IP address in the URL, I can see obssocookie. If I use IE or any browser from any other machine, obssocookie is always available
    thanks.
    -Wei

    I found it in the document
    B.1 How Logout Works
    The WebGate logs a user out when it receives a URL containing "logout." (including the "."), with the exceptions of logout.gif and logout.jpg, for example, logout.html or logout.pl. When the WebGate receives a URL with this string, the value of the ObSSOCookie is set to "logout."
    The Access System sets an obSSOCookie for each user or application that accesses a resource protected by a WebGate. The obSSOCookie enables users to access resources that are protected by the Access System that have the same or a lower authentication level. Removing the ObSSOcookie causes the WebGate to log the user out and requires the user to re-authenticate the next time he or she requests a resource that is protected by the Access System.
    Well, I havn't got that far in the document:)
    Thanks a lot for your help.
    -Wei

  • Strange Behavior of program while using BAPI_PO_CREATE1

    Hello SAP GURUs,
    I've created an Upload Program using BAPI_PO_CREATE1 for Mass Service PO Creation.
    When I execute the program and Specify the File for uploading, It Gives me errors as
    E     BAPI     1     No instance of object type PurchaseOrder has been created. External reference:
    E     MEPO     0     Purchase order still contains faulty items
    E     6     436     In case of account assignment, please enter acc. assignment data for item
    But when I come back to Selection Screen of the Program and specify the SAME FILE AGAIN and Execute,
    The Program runs successfully and generates the PO number.
    I have never seen such strange behavior in any BAPIs before.
    Pls help..

    PERFORM refresh_tables.
      PERFORM fill_tables.
    END-OF-SELECTION.
    Display the Summary as an ALV Grid Display
      IF NOT ig_mymssg[] IS INITIAL.
        PERFORM display_basic_list . "Grid Display
      ELSE.
        MESSAGE s000 WITH 'No data exists'(051).
        STOP.
      ENDIF.
    *&      Form  refresh_tables
          text
    -->  p1        text
    <--  p2        text
    FORM refresh_tables .
      REFRESH:   ig_fieldcat,
                 ig_mymssg,
                 poitem,
                 poitemx,
                 poaccount,
                 poaccountx,
                 poservices,
                 ig_return.
                wt_itab,  record,  record2 .
    ENDFORM.                    " refresh_tables
    *&      Form  fill_tables
          text
    -->  p1        text
    <--  p2        text
    FORM fill_tables .
      record2[] = record[].
      record3[] = record[].
      DELETE ADJACENT DUPLICATES FROM record COMPARING id_no.
      DELETE ADJACENT DUPLICATES FROM record2 COMPARING id_no po_item.
      SELECT MAX( packno ) FROM esll INTO wrk_packno.
      LOOP AT record.
        CLEAR : poheader, poheaderx, wa_poitem, wa_poitemx, wa_poservices, wa_poaccount, wa_poaccountx, wa_poschedulex, wa_poschedule.
        REFRESH: poitem, poitemx, poaccount, poaccountx, poservices, ig_return,  posrvaccessvalues, poschedule, poschedulex.
        PERFORM po_header.
        LOOP AT record2 WHERE id_no = record-id_no.
          wrk_packno = wrk_packno + 1.
          PERFORM po_item.
          PERFORM po_scheudle.
          PERFORM acc_assignment.
          PERFORM po_services.
        ENDLOOP.
        PERFORM create_po.
      ENDLOOP.
    ENDFORM.                    " fill_tables
    *&      Form  display_basic_list
          text
    -->  p1        text
    <--  p2        text
    FORM display_basic_list .
      g_repid = sy-repid.
      PERFORM f2000_fieldcat_init .
      PERFORM display_alv_grid_1.
    ENDFORM.                    " display_basic_list
    *&      Form  f2000_fieldcat_init
          text
    -->  p1        text
    <--  p2        text
    FORM f2000_fieldcat_init .
      REFRESH ig_fieldcat.
      PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
                                                  'STATUS'
                                                    c_x
                                                    'Status'
                                                    '10'.
      PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
                                                'RECORD'
                                                c_x
                                                'Record'
                                                '20'.
      PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
                                                'ERRMSG'
                                                'Message'
                                                '100'.
    ENDFORM.                    " f2000_fieldcat_init
    *&      Form  display_alv_grid_1
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv_grid_1 .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = g_repid
          i_structure_name   = 'IG_MYMSSG'
          i_grid_title       = 'LOG'
          is_layout          = wg_layout
          it_fieldcat        = ig_fieldcat[]
          i_save             = c_save
        TABLES
          t_outtab           = ig_mymssg
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " display_alv_grid_1
    *&      Form  fill_fields_of_fieldcatalog
          text
         -->P_0626   text
         -->P_0627   text
         -->P_C_X  text
         -->P_0629   text
         -->P_0630   text
    FORM fill_fields_of_fieldcatalog  USING    p_tabname TYPE slis_tabname
                                               p_field TYPE slis_fieldname
                                               p_key TYPE c
                                               p_name
                                               len.
    To fill in the fields of the table fieldcatalog depending on the field
      CLEAR wg_fieldcat.
      wg_fieldcat-fieldname = p_field. " The field name and the table
      wg_fieldcat-tabname = p_tabname.. " name are the two minimum req
      wg_fieldcat-key = p_key. " Specifies the column as a key
      wg_fieldcat-seltext_l = p_name. " Column Header
      wg_fieldcat-outputlen = len.
      APPEND wg_fieldcat TO ig_fieldcat.
    ENDFORM.                    " fill_fields_of_fieldcatalog
    *&      Form  create_po
          text
    -->  p1        text
    <--  p2        text
    FORM create_po .
      CLEAR : wg_return.
      REFRESH : ig_return.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader          = poheader
          poheaderx         = poheaderx
        IMPORTING
          exppurchaseorder  = po_no
        TABLES
          return            = ig_return
          poitem            = poitem
          poitemx           = poitemx
          poschedule        = poschedule
          poschedulex       = poschedulex
          poaccount         = poaccount
          poaccountx        = poaccountx
          poservices        = poservices
          posrvaccessvalues = posrvaccessvalues.
      SORT ig_return BY type.
      READ TABLE ig_return INTO wg_return WITH KEY type = 'S'.
      IF sy-subrc EQ 0.
        CLEAR : wg_return.
        REFRESH : ig_return.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        CLEAR wg_errmsg.
        WRITE icon_green_light AS ICON TO wg_errmsg-status.
        CONCATENATE record-id_no po_no INTO wg_errmsg-record SEPARATED BY '/'.
       wg_errmsg-record = po_no.
        wg_errmsg-errmsg = 'PO created'.
        APPEND wg_errmsg TO ig_mymssg.
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
        READ TABLE ig_return INTO wg_return WITH KEY type = 'E' TRANSPORTING message.
        CLEAR wg_errmsg.
        WRITE icon_red_light AS ICON TO wg_errmsg-status.
        wg_errmsg-record = record-id_no.
        wg_errmsg-errmsg = wg_return-message.
        APPEND wg_errmsg TO ig_mymssg.
      ENDIF.
    ENDFORM.                    " create_po
    *&      Form  po_header
          text
    -->  p1        text
    <--  p2        text
    FORM po_header .
      poheader-comp_code   = record-comp_code.
      poheader-doc_type    = record-doc_type.
      poheader-vendor      = record-vendor.
      poheader-purch_org   = 'SERV'.
      poheader-pur_group   = record-pur_group.
      poheader-currency    = 'INR'.
      poheaderx-comp_code   = 'X'.
      poheaderx-doc_type    = 'X'.
      poheaderx-vendor      = 'X'.
      poheaderx-purch_org   = 'X'.
      poheaderx-pur_group   = 'X'.
      poheaderx-currency    = 'X'.
    ENDFORM.                    " po_header
    *&      Form  po_item
          text
    -->  p1        text
    <--  p2        text
    FORM po_item .
    DATA : days TYPE num2.
    DATA : final_dt TYPE datum.
    DATA : is_ok TYPE boole_d.
    DATA : msg_hndlr TYPE REF TO if_hrpa_message_handler.
    days = 20.
    CALL FUNCTION 'HR_ECM_ADD_PERIOD_TO_DATE'
       EXPORTING
         orig_date       = sy-datum
         num_days        = days
         signum          = '+'
         message_handler = msg_hndlr
       IMPORTING
         result_date     = final_dt
         is_ok           = is_ok.
      CLEAR: wa_poitem,wa_poitemx.
      wa_poitem-po_item      = record2-po_item.
      wa_poitem-short_text   = record2-short_text.
      wa_poitem-plant        = record2-plant.
      wa_poitem-matl_group   = 'S001'.
      wa_poitem-tax_code     = 'LA'.
      wa_poitem-item_cat     = item_cat.
      wa_poitem-pckg_no      = wrk_packno.
      wa_poitem-acctasscat   = acctasscat.
    wa_poitem-gr_to_date   = final_dt.
      APPEND wa_poitem TO poitem.
      wa_poitemx-po_item      = record2-po_item.
      wa_poitemx-po_itemx      = 'X'.
      wa_poitemx-short_text   = 'X'.
      wa_poitemx-plant        = 'X'.
      wa_poitemx-tax_code     = 'X'.
      wa_poitemx-item_cat     = 'X'.
      wa_poitemx-acctasscat   = 'X'.
      wa_poitemx-pckg_no      = 'X'.
      wa_poitemx-matl_group   = 'X'.
      wa_poitem-gr_to_date    = 'X'.
      APPEND wa_poitemx TO poitemx.
    ENDFORM.                    " po_item
    *&      Form  PO_SERVICES
          text
    -->  p1        text
    <--  p2        text
    FORM po_services .
      CLEAR: wa_poservices, wa_posrvaccessvalues.
      wa_poservices-pckg_no = wrk_packno.
      wa_poservices-line_no  = '0000000001'.
      wa_poservices-outl_ind = 'X'.
      wa_poservices-subpckg_no = wa_poservices-pckg_no + 1.
      wa_poservices-from_line = '000001'.
      APPEND wa_poservices TO poservices.
      CLEAR wa_poservices.
      wrk_packno = wrk_packno + 1.
      wa_poservices-pckg_no = wrk_packno.
      wa_poservices-line_no  = '0000000002'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = record2-service
        IMPORTING
          output = record2-service.
      wa_poservices-ext_line = '0000000010'.
      wa_poservices-service  = record2-service.
      wa_poservices-quantity = record2-quantity.
      wa_poservices-gr_price = record2-gr_price.
      wa_posrvaccessvalues-pckg_no = wrk_packno.
      wa_posrvaccessvalues-line_no = '0000000002'.
      wa_posrvaccessvalues-serial_no = '01'.
      wa_posrvaccessvalues-serno_line = '01'.
    wa_posrvaccessvalues-quantity = record2-quantity.
    wa_posrvaccessvalues-net_value = record2-gr_price.
      APPEND wa_poservices TO poservices.
      APPEND wa_posrvaccessvalues TO posrvaccessvalues.
    ENDFORM.                    " PO_SERVICES
    *&      Form  ACC_ASSIGNMENT
          text
    -->  p1        text
    <--  p2        text
    FORM acc_assignment .
      DATA : tmp_gl LIKE bapimepoaccount-gl_account.
      tmp_gl = '400265'.
      CLEAR : wa_poaccount, wa_poaccountx.
      wa_poaccount-po_item      =  record2-po_item.
      wa_poaccount-serial_no    = '01'.
      wa_poaccount-co_area      = '1000'.
      wa_poaccount-quantity     = record2-quantity.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = tmp_gl
        IMPORTING
          output = wa_poaccount-gl_account.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = record2-orderid
        IMPORTING
          output = wa_poaccount-orderid.
      APPEND wa_poaccount TO poaccount.
      wa_poaccountx-po_item      = record2-po_item.
      wa_poaccountx-serial_no    = '01'.
      wa_poaccountx-co_area      = 'X'.
      wa_poaccountx-quantity     = 'X'.
      wa_poaccountx-gl_account   = 'X'.
      wa_poaccountx-orderid      = 'X'.
      APPEND wa_poaccountx TO poaccountx.
    ENDFORM.                    " ACC_ASSIGNMENT
    *&      Form  PO_SCHEUDLE
          text
    -->  p1        text
    <--  p2        text
    FORM po_scheudle .
      CLEAR : wa_poschedule, wa_poschedulex.
      wa_poschedule-po_item = record2-po_item.
      wa_poschedule-sched_line = '0001'.
    wa_poschedule-del_datcat_ext = 'D'.
      wa_poschedule-delivery_date = sy-datum.
      wa_poschedule-quantity = record2-quantity.
      APPEND wa_poschedule TO poschedule.
      wa_poschedulex-po_item = record2-po_item.
      wa_poschedulex-sched_line = '0001'.
      wa_poschedulex-po_itemx = 'X'.
      wa_poschedulex-sched_linex = 'X'.
    wa_poschedulex-del_datcat_ext = 'X'
      wa_poschedulex-delivery_date = 'X'.
      wa_poschedulex-quantity = 'X'.
      APPEND wa_poschedulex TO poschedulex.
    ENDFORM.                    " PO_SCHEUDLE

Maybe you are looking for