Sequential Access Problem - Nothing is being written to file.

Okay, quick introduction. I am a student and am in an intro Java class. I am understanding most of it; however, I am having one issue with an exercise that I am working on.
Here is the purpose:
To create a simple car reservation application that stores the reservation information in a sequential access file.
In the code what I need to happen is when the user clicks the Reserve Car button, the application needs to first check to see if there are cars already reserved for that day (there is a limit of 4 which is taken care of in the While statement). If the file content is null, it skips this while first.
If the content is null, then I need to open the file for writing, which is taken care of using FileWriter. The program is then to write the date information using the currentDate variable created before the while statement. Next, it is supposed to write the name entered and display a message box stating that the car has been reserved (which it does display).
However, I can add an infinate amount of reservations without getting the error message box stating that the max has been reached. So, I checked the reservations.txt file (which was intially created as a blank file) and I see that nothing at all is getting written to it. Here is the code, can anyone offer any insight into what I am missing. I am not getting any compliation or run-time errors, so I am sure this is just a simple problem I am overlooking. Thanks!
// This application allows users to input their names and
// reserve cars on various days.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.Date;
import javax.swing.*;
import javax.swing.event.*;
public class CarReservation extends JFrame
   // JLabel and JSpinner to display date
   private JLabel selectDateJLabel;
   private JSpinner dateJSpinner;
   // JLabel and JTextField to display name
   private JLabel nameJLabel;
   private JTextField nameJTextField;
   // JButton to reserve car
   private JButton reserveCarJButton;
   // Printwriter to write to files
   private PrintWriter output;
   //BufferedReader to read data from file
   private BufferedReader input;
   // file user will select
   private File reserveFile;
   // no-argument constructor
   public CarReservation()
      createUserInterface();
   // create and position GUI components
   public void createUserInterface()
      // get content pane for attaching GUI components
      Container contentPane = getContentPane();
      // enable explicit positioning of GUI components
      contentPane.setLayout( null );
      // set up selectDateJLabel
      selectDateJLabel = new JLabel();
      selectDateJLabel.setBounds( 16, 16, 96, 23 );
      selectDateJLabel.setText( "Select the date:" );
      contentPane.add( selectDateJLabel );
      // set up dateJSpinner
      dateJSpinner = new JSpinner( new SpinnerDateModel() );
      dateJSpinner.setBounds( 16, 43, 250, 23 );
      dateJSpinner.setEditor( new JSpinner.DateEditor(
         dateJSpinner, "MM/dd/yyyy" ) );
      contentPane.add( dateJSpinner );
      dateJSpinner.addChangeListener(
         new ChangeListener() // anonymous inner class
            // event handler called when dateJSpinner is changed
            public void stateChanged( ChangeEvent event )
               dateJSpinnerChanged( event );
         } // end anonymous inner class
      ); // end call to addActionListener           
      // set up nameJLabel
      nameJLabel = new JLabel();
      nameJLabel.setBounds( 16, 70, 100, 23 );
      nameJLabel.setText( "Name: " );
      contentPane.add( nameJLabel );
      // set up nameJTextField
      nameJTextField = new JTextField();
      nameJTextField.setBounds( 16, 97, 250, 23 );
      contentPane.add( nameJTextField );
      // set up reserveCarJButton
      reserveCarJButton = new JButton();
      reserveCarJButton.setBounds( 16, 130, 250, 23 );
      reserveCarJButton.setText( "Reserve Car" );
      contentPane.add( reserveCarJButton );
      reserveCarJButton.addActionListener(
         new ActionListener() // anonymous inner class
            // event handler called when reserveCarJButton is clicked
            public void actionPerformed( ActionEvent event )
               reserveCarJButtonActionPerformed( event );
         } // end anonymous inner class
      ); // end call to addActionListener
      // set properties of application's window
      setTitle( "Car Reservation" ); // set title bar string
      setSize( 287, 190 );           // set window size
      setVisible( true );            // display window
   } // end method createUserInterface
   // write reservation to a file
   private void reserveCarJButtonActionPerformed( ActionEvent event )
   try
       // get file
       reserveFile = new File( "reservations.txt" );
       // open file
       FileReader currentFile = new FileReader( reserveFile );
       input = new BufferedReader( currentFile );
       // get date from dateJSpinner and format
       Date fullDate = ( Date ) dateJSpinner.getValue();
       String currentDate = fullDate.toString();
       String monthDay = currentDate.substring( 0 , 10 );
       String year = currentDate.substring( 24, 27 );
       currentDate = ( monthDay + " " + year );
       // declare variable to store number of people who reserve a car
       int dateCount = 1;
       // read a line from the file and store
       String contents = input.readLine();
       // while loop to read file data
       while ( contents != null )
           // if contents equal currentDate
           if ( contents.equals( currentDate ) )
               // check reservation number
               if ( dateCount <4 )
                   dateCount++;
               else
                   // display error message
                   JOptionPane.showMessageDialog( this,
                      "There are no more cars available for this day!",
                      "All Cars Reserved", JOptionPane.ERROR_MESSAGE );
                   // disable button
                   reserveCarJButton.setEnabled( false );
                   // exit the method
                   return;
               } // end else                
           } // end if
         // read next line of file
         contents = input.readLine();
       } // end while
       // close the file
       input.close();
       FileWriter outputFile = new FileWriter( reserveFile, true );
       output = new PrintWriter( outputFile );
       // write day to file
       output.println( currentDate );
       // write reserved name to file
       output.println( nameJTextField.getText() );
       // display message that car has been reserved
       JOptionPane.showMessageDialog( this, "Your car has been reserved",
               "Thank You", JOptionPane.INFORMATION_MESSAGE);
   } // end try
   catch ( IOException exception )
       JOptionPane.showMessageDialog( this, "Please make sure the file exists " +
               "and is of the right format.", "I/O Error",
               JOptionPane.ERROR_MESSAGE );
       // disable buttons
       dateJSpinner.setEnabled( false );
       reserveCarJButton.setEnabled( false );
   } // end catch
   // clear nameJTextField
   nameJTextField.setText( "" );
   } // end method reserveCarJButtonActionPerformed
   // enable reserveCarJButton
   private void dateJSpinnerChanged( ChangeEvent event )
      reserveCarJButton.setEnabled( true );
   } // end method dateJSpinnerChanged
   // main method
   public static void main( String[] args )
      CarReservation application = new CarReservation();
      application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
   } // end method main

Thank you. Sorry about all the code. I have never posted in this forum before and was unsure what all you needed.
This was the problem though. Right after I posted my question, I went back and looked at the code over again and realized that I left that part out! I added it in and it works perfectly. I came back to update my post but you had already answered it!
I really appreciate the quick response.
Mike

Similar Messages

  • Bug: NULL bytes being written to file on SMB volumes

    This is a 100% reproducable bug.
    When writing to files that are on a Samba (SMB) volume, if you are overwriting a file and making it smaller than it previously was, then OSX is writing NULL bytes to the end fo the file, which produce all sorts of problems, especially for software developers.
    How to reproduce:
    Open Terminal, navigate to a SMB volume and do the following:
    # echo "test" > test.txt
    # more test.txt
    test
    # echo "test test test test" > test.txt
    # more test.txt
    test test test test
    # echo "test" > test.txt
    # more test.txt
    "test.txt" may be a binary file.  See it anyway?
    test
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
    This is 100% reproducable every time.  As you can see, when you overwrite a file with a larger version, the NULL bytes are not written to the file.  But when you overwrite with a smaller version, NULL bytes are written to the end of the file.
    This problem is especially a problem for developers.  I came across this bug because I had a git repository on an SMB share/volume.  Whenever I would try to commit changes to the repository, if the git commit log file was shorter than it was in the previous commit, then git threw the error:
    error: a NULL byte in commit log message not allowed.
    fatal: failed to write commit object
    You can see this issue being discussed and reported in several places:
    http://stackoverflow.com/questions/20696643/how-do-i-keep-nul-bytes-from-appeari ng-throughout-my-git-repository-and-commit-m
    http://stackoverflow.com/questions/19705825/error-a-nul-byte-in-commit-log-messa ge-not-allowed
    https://netbeans.org/bugzilla/show_bug.cgi?id=237766
    This bug was introduced in Mavericks.  Also, remounting the volume using cifs:// doesn't make a difference.
    Does anyone have any solutions for this problem?  Has this been reported to Apple?  Does Apple know about this problem?

    Apple doesn’t routinely monitor the discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • Tag Info Not Being Written to File

    Some of my MP3's have comments that I would like to remove.
    For example, let's say one of my MP3's in Itunes shows the comment "How are you?"...
    When I right click on the song, click GET INFO, select INFO and delete the comments, the comments are no longer visible in Itunes however, when I go to the file directly and right click and select properties, the comments that I deleted in ITunes are still showing in the files properties.
    Even weirder, if instead of deleting the comments "How are you?" I just over-write the comment with "This is a test", that comment will show when I go directly to the file and look at its properties however, if I go back into Itunes and then delete the comments "This is a test", the original comments "How Are you?" show back up in the file properties.
    Any ideas?

    your code...
    for(int i=0;i==FileData.length;i++)// this is a VERY odd looking loop
      WriteBuff.write(FileData[i]+"\r\n");shouldn't that be i<FileData.length? if FileData is indeed an array you
    will get an ArrayIndexOutOfBoundsException...
    anyway it doesn't seem to be an IO problem so the difficulty is probably
    in your loop. try this for starters...
    for(int j=0;j<FileData.length;j++){
      System.out.println("Looping "+j);
      WriteBuff.write(FileData[j]+"\r\n");// not sure about this either maybe use PrintWriter and println instead?

  • My iPad says that she is busy and is unable to accept my request even when everything is closed and nothing is being used. What might be the problem here?

    My iPad says that she is busy and is unable to accept my request even when everything is closed and nothing is being used. What might be the problem here?  3 times my iPad has crashed while nothing was open or running and a small loading wheel would be moving signifying that the thing was loading something without permission.  Even when the dang thing was on my personal wireless service that I pay for.

    similar to what is happening to me....the difference is, after restoring itunes detect ipod and ask to restore again and again....
    I know it may look kinda stupid but: just leave the ipod there for about 2 minutes, that's about the time my itunes is taking to detect my ipod...if it doesn't work, try connecting ur ipod to other computer with itunes (no need to sync, just to check if itunes will recognize) to check if the problem is with the ipod or with the itunes and/or computer.

  • NFS File Access problem

    Hello,
    I am having problems trying to "tail" an existing file.
    When the file is being written into, I can tail it without any problem.
    The problem rises when the file is already complete, and I try to open it.
    I tried to make a small demo program but for some reason I am unable to get the demo program to give the same behaviour.
    Below is the class in which it all goes wrong.
    I basically opens the file usring RandomAccessfile.
    when I try to retrieve the length of the file a bit further, my ascii file I am viewing already changed to .nfs01231353434 something.
    But all gets displayed ok.
    When I then close the text pane in which this tail class is logging, the file itself is deleted.
    As this has something to do with NFS here is the setup :
    The java jar file is located on a remote solaris disk, so is the ASCII file I am trying to view.
    The local machine where I am running my application is Red Hat Linux 3.2.3-52.
    Apologies if this information is kinda vague but as I am unable to supply a demo program, I dont know else how to explain my problem.
    The class that does the "tailing"
    package com.alcatel.tamtam.main;
    import java.io.*;
    import java.util.*;
    public class Usr_LogFileTrailer extends Thread
       * How frequently to check for file changes; defaults to 5 seconds
      private long sampleInterval = 5000;
       * Number of lines in a row we output, otherwise problems with large files
       private int lineBuffer = 250;
       * The log file to tail
      private File logfile;
       * Defines whether the log file tailer should include the entire contents
       * of the exising log file or tail from the end of the file when the tailer starts
      private boolean startAtBeginning = false;
       * Is the tailer currently tailing ?
      private boolean tailing = false;
       * Is the thread suspended or not ?
      private boolean threadSuspended = true;
       * File pointer where thread last logged a line
      private long filePointer = 0;
       * Set of listeners
      private Set listeners = new HashSet();
       * Creates a new log file tailer that tails an existing file and checks the file for
       * updates every 5000ms
      public Usr_LogFileTrailer( File file )
        this.logfile = file;
       * Creates a new log file tailer
       * @param file         The file to tail
       * @param sampleInterval    How often to check for updates to the log file (default = 5000ms)
       * @param startAtBeginning   Should the tailer simply tail or should it process the entire
       *               file and continue tailing (true) or simply start tailing from the
       *               end of the file
      public Usr_LogFileTrailer( File file, long sampleInterval, boolean startAtBeginning )
        this.logfile = file;
        this.sampleInterval = sampleInterval;
        setPriority(Thread.MIN_PRIORITY);
      public void addLogFileTailerListener( Usr_LogFileTrailerListener l )
        this.listeners.add( l );
      public void removeLogFileTailerListener( Usr_LogFileTrailerListener l )
        this.listeners.remove( l );
       *  Methods to trigger our event listeners
      protected void fireNewLogFileLine( String line )
        for( Iterator i=this.listeners.iterator(); i.hasNext(); )
          Usr_LogFileTrailerListener l = ( Usr_LogFileTrailerListener )i.next();
          l.newLogFileLine( line );
      public void stopTailing()
        this.tailing = false;
      public void restart()
        filePointer = 0;
      public synchronized void setSuspended(boolean threadSuspended)
        this.threadSuspended = threadSuspended;
        if ( ! threadSuspended ) notify();
      public void run()
        try
          while ( ! logfile.exists() )
            synchronized(this)
              while ( threadSuspended ) wait();
            Thread.currentThread().sleep(1000);
            File parentDir = logfile.getParentFile();
            if ( parentDir.exists() && parentDir.isDirectory() )
              File[] parentFiles = parentDir.listFiles();
              for ( File parentFile : parentFiles )
                if ( parentFile.getName().equals(logfile.getName()) ||
                     parentFile.getName().startsWith(logfile.getName() + "_child") )
                  logfile = parentFile;
                  break;
        catch(InterruptedException iEx)
          iEx.printStackTrace();
        // Determine start point
        if( this.startAtBeginning )
          filePointer = 0;
        try
          // Start tailing
          this.tailing = true;
          RandomAccessFile file = new RandomAccessFile( logfile, "r" );
          while( this.tailing )
            synchronized(this)
              while ( threadSuspended ) wait();
            try
              // Compare the length of the file to the file pointer
    //          long fileLength = 0;
              //long fileLength = file.length();
              long fileLength = this.logfile.length();
              if( fileLength < filePointer )
                // Log file must have been rotated or deleted;
                // reopen the file and reset the file pointer
                file = new RandomAccessFile( logfile, "r" );
                filePointer = 0;
              if( fileLength > filePointer )
                // There is data to read
                file.seek( filePointer );
                String line = file.readLine();
                int lineCount = 0;
    //            this.fireBlockTextPane();
                while( line != null && lineCount < lineBuffer)
                  this.fireNewLogFileLine( line );
                  line = file.readLine();
                  lineCount++;
                filePointer = file.getFilePointer();
                this.fireFlushLogging();
    //            this.fireNewTextPaneUpdate();
              // Sleep for the specified interval
              sleep( this.sampleInterval );
            catch( Exception e )
                e.printStackTrace();
          // Close the file that we are tailing
          file.close();
        catch( Exception e )
          e.printStackTrace();
      }

    Hi,
    Below is my NFS mount statement on database server and application server. BTW, the directory DocOutput has permission of 777.
    fstab on the Database Server
    appserver:/database/oracle/app/prod/DocOutput /DocOutput nfs rw,hard,retry=20 0 0
    exports file in the Application Server
    /database/oracle/app/prod/DocOutput -anon=105,rw=dbserver,access=dbserver

  • ASA 5505 VPN Network access problem

    I have been working on this thing all night and I can't seem to get any where. I have a very straight forward set up, and so far the only issue I'm having is being able to access the network when connected through VPN, I have internet access, but nothing else and it's really strange.
    Here is my config, I thought this would be a pretty straight forward set up, and I got everything else up and running with in a few minutes, but not being able to access the network via VPN is frustrating after I have tried all night to get it to work. I have read a lot of stuff online, and I keep on thinking im close but never get anywhere. Any help is appreciated.
    Attached is the config.
    Thanks

    Your NAT config confuses me. Are those "static (inside,inside)" lines for real?
    try this:
    no global (inside) 1 interface
    no nat (T1) 1 access-list outside_nat dns
    nat (inside) 0 access-list Local_LAN_Access
    And remove those dodgy "static (inside,inside)" NATs!
    I recommend staying with tunnelling everything.
    You should tighten "access-list T1_access_in" because at the moment all IP is allowed from the internet to those "static (inside,T1)" NATs.
    If you put "no sysopt connection permit-vpn" then all VPN traffic is forced through "access-list T1_access_in" - an easy way of filtering it.
    I would tighten "access-list inside_access_in" but unapply and remove "access-list inside_access_out".

  • HT201210 In the attempt of updating the latest itune software, i am faced with the problem of not being able to be connected to itunes with my ipod touch that is blocked living the USB cable and the itune icons on my touch sceen. Can some one help me out

    In the attempt of updating my ipod touch, i am  faced with the problem of not being able to be connected to the itunes in my computer (windows xp ) because my ipod touch got blocked up, leaving the icon of USB cable and itunes on my touch screen. I am asked to restore my ipod first, but i have tried using all the examples stated and still can't help. Please please, can some one help me out ? Ones  in the process of trying, i see an error code: 1656 and most of the time nothing. Thanks

    See if placing the iPod in Recovery mode will allow a restore via iTunes
    Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer to help determine if you have a computer or iPod problem.

  • File corruption on SDCard when multiple files are being written from WinCE 6.0R3

    We currently have file corruption problems which we have been able to reproduce on our system which uses WinCE 6.0R3. We have an SDCard in our system which is mounted as the root FS.  When multiple files are being written to the file system we occasionally
    see file corruption with data destined from one file, ending up in another file, or in another location in the same file.  We have already written test SW that we have been able to use to reproduce the problem, and have worked with the SDCard vendor to
    check that the memory controller on the card is not the source of the problems.
    We know that the data we send to WriteFile() is correct, and that the data which eventually gets sent through the SDCard driver to the SD card is already corrupted.
    We believe that the problem is somewhere in the microsoft private sources between the high level filesystem API calls and the low level device calls that get the data onto the HW.
    We have confirmed that the cards that get corrupted are all good and this is not a case ofpoor quality flash memory in the cards. The same cards that fail under WinCE 6.0R3 never fail under the same types of testing on Windows, Mac OX, or linux.  We
    can hammer the cards with single files writes over and over, but as soon as multiple threads are writing multiple files it is only a matter of time before a corruption occurs.
    One of the big problems is that we are using the sqlcompact DB for storing some data and this DB uses a cache which get's flushed on it's own schedule. Often the DB gets corrupted because other files are being written when the DB decides to flush.
    So we can reproduce the error (with enough time), and we know that data into the windows CE stack of code is good, but it comes out to the SDcard driver corrupted.  We have tried to minimize writes to the file system, but so far we have not found a
    way to make sure only one file can be written at once. Is there a setting or an API call that we can make to force the OS into only allowing one file write at a time, or a way of seeing how the multiple files are managed in the private sources?
    Thanks
    Peter

    All QFE's have been applied we are building the image so we have some control.
    I have build an image which used the debug DLL's of the FATFS and I have enabled all of the DebugZones.  The problem is still happening. From the timings in the debug logs and the timestamps in the data which corrupts the test file I have been able
    to see that the file is corrupted AFTER the write is complete. Or at least that's how it seems.
    We finished writing the file and closed the handle. Then more data is written to other files. When we get around to verifying the file it now contains data from the files that were subsequently written.
    What I think I need to do is figure out in detail how the two files were "laid down" onto the SDCard.  If the system used the same cluster to write the 2 files then that would explain the issue.

  • TS4040 I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs re

    I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs repairing. So I click on Repair, and once again I'm prompted for a password, which I enter, then the same error box opens, and so it goes. Can anyone help me with this problem? I'd greatly appreciate it.
    Thor

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Ocrfile is not being written to.  open file issues.  Help please.

    I've been troubleshooting an open file issue on our Test environment for quite a while now. Oracle has had me update to latest CRS bundle for 10.2.0.3, then upgrade to 10.2.0.4, then two more patches via OPatch to bring 10.2.0.4 RAC to it's most recent patch. None of these patches resolved our problem. We have ~8700 datafiles in the database and once the database is started, we're at ~11k on Production but on Test we're at ~37K or higher. It takes 1-2 days to hit the 65536 limit before it crashes. I have to 'bounce' the database to keep it from crashing. Yes, I could raise the ulimit but that isn't solving the problem.
    Over the weekend I noticed that on Production and DEV, the ocrfile is being written to constantly and has a current timestamp but on Test, the ocrfile has not been written to since the last OPatch install. I've checked the crs status via 'cluvfy stage -post crsinst -n all -verbose' and everything comes back as 'passed'. The database is up and running, but the ocrfile is still timestamped at April 14th and open files jump to 37k upon opening the database and continue to grow to the ulimit. Before hitting the limit, I'll have over 5,000 open files for 'hc_<instance>.dat, which is where I've been led down the path of patching Oracle CRS and RDBMS to resolve the 'hc_<instance>.dat bug which was supposed to be resolved in all of the patches I've applied.
    From imon_<instance>.log:
    Health check failed to connect to instance.
    GIM-00090: OS-dependent operation:mmap failed with status: 22
    GIM-00091: OS failure message: Invalid argument
    GIM-00092: OS failure occurred at: sskgmsmr_13
    That info started the patching process but it seems like there's more to it and this is just a result of some other issue. The fact that my ocrfile on Test is not being written to when it updates frequently on Prod and Dev, seems odd.
    We're using OCFS2 as our CFS, updated to most recent version for our kernel (RHEL AS 4 u7 -- 2.6.9-67.0.15.ELsmp for x86_64)
    Any help greatly appreciated.

    Check Bug... on metalink
    if Bug 6931689
    Solve:
    To fix this issue please apply following patch:
    Patch 7298531 CRS MLR#2 ON TOP OF 10.2.0.4 FOR BUGS 6931689 7174111 6912026 7116314
    or
    Patch 7493592 CRS 10.2.0.4 Bundle Patch #2
    Be aware that the fix has to be applied to the 10.2.0.4 database home to fix the problem
    Good Luck

  • Security Manager/Access problem

    (WWC-00000)
    An unexpected error has occurred in portlet instances: wwpob_api_portlet_inst.create_inst (WWC-44846)
    The following error occurred during the call to Web provider: java.lang.NullPointerException
    at oracle.portal.provider.v2.security.URLSecurityManager.hasAccess(Unknown Source)
    at oracle.portal.provider.v2.DefaultPortletDefinition.hasAccess(Unknown Source)
    at oracle.portal.provider.v2.ProviderInstance.getPortletDefinition(Unknown Source)
    at oracle.portal.provider.v2.ProviderInstance.getPortletInstance(Unknown Source)
    at oracle.portal.provider.v2.ProviderInstance.getPortletInstance(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.registerPortlet(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.doMethodCall(Unknown Source)
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.processInternal(Unknown Source)
    at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.process(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doSOAPCall(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    (WWC-43147)
    Removing the provider.xml security manager setting will do away with this problem.
    Versions being used: Portal 9.0.2 and PDK september.

    I have checked with PDK September samples related to Security Manager/Access and they are working fine. Please lets know for which PDK sample gives this error.

  • RE: Database (SQL-SERVER) access problem

    Have you used NT Control Panel/ ODBC to set up the ODBC data source name?
    You have to define the data source (database) SecTrade as well as the
    driver to be used (SQL Server). This can be done by selecting the Add
    button on the Data Sources screen in Control Panel/ ODBC.
    Hope this helps.
    Sanjay Murthi
    Indus Consultancy Services, Inc.
    From: Administrator
    Sent: Wednesday, August 13, 1997 6:49 PM
    To: "'[email protected]'"
    Cc: murthis; thyagarajm; thyagarm; vasasm; chandraa
    Subject: Database (SQL-SERVER) access problems
    MCI Mail date/time: Mon Aug 11, 1997 10:28 pm EST
    Source date/time: Mon, 11 Aug 1997 19:25:34 +0530
    Hi Forte-Users,
    We have a setup a Sql-Server database on a NT server. In the Forte
    EConsole,
    we have
    setup a ODBC-type Resource for this server, named SERVER2_ODBC. This NT
    server
    is configured as a Client Node in the active Forte environment. Note
    that
    Server2 is not
    the Forte server, but has Forte installed. There is another NT server
    which
    acts as the
    Forte server. NODEMGR and Sql-Server are running on SERVER2.
    In our application, we have a DBSession SO with the database source
    as SERVER2_ODBC, Userid=ForteInstructor. When running the application,
    Forte
    throws an exception, the gist of it being as follows:
    USER ERROR: (This error was converted)
    Failed to connect to database: SecTrade, username: ForteInstructor.
    [Microsoft][ODBC Driver Manager] Data source name not found and no
    default
    driver specified
    We have tried
    1) Installing ODBC drivers on the NT server (Server2)
    2) Accessing local databases from Forte clients which works fine
    3) Accessing the Sql-Server database through Isqlw (Sql-Server Client
    s/w) -
    It works.
    Could someone suggest what we should try to get rid of this problem?
    Thanks for any help,
    Kishore Puvvada

    Rajsarawat wrote:
    Dear sir/mam,
    I have installed sql server 2005 (server) and on another computer installed client. It installed successfully but on client side it does not seen, from where should i start it. so please send me procedure to install sql server 2005 on both side(client and server).You have to turn on network (external to your computer) access.
    Under programs->sql server look for "surface"

  • Hprof heap dump not being written to specified file

    I am running with the following
    -Xrunhprof:heap=all,format=b,file=/tmp/englog.txt (java 1.2.2_10)
    When I start the appserver, the file /tmp/englog1.txt gets created, but
    when I do a kill -3 pid on the .kjs process, nothing else is being written to
    /tmp/englog1.txt. In the kjs log I do see the "Dumping java heap..." message
    and a core file is generated.
    Any ideas on why I'm not getting anything else written to /tmp/englog1.txt?
    Thanks.

    Hi
    It seems that the option you are using is correct. I may modify it to something like
    java -Xrunhprof:heap=all,format=a,cpu=samples,file=/tmp/englog.txt,doe=n ClassFile
    This seems to work on 1.3.1_02, so may be something specific to the JDK version that
    you are using. Try a later version just to make sure.
    -Manish

  • IO Labels are NOT being written to prefs!

    I've followed all the advice on existing threads about this and it's definitely a serious bug for me. IO Labels are not being written to prefs for me.
    Any ideas? Already tried deleting prefs, creating new blank project and not saving, nothing has worked.

    I found a workaround for anyone having this issue - and this is the ONLY thing that has worked after a week of trying everything on several forums.
    Open Logic, set your labels how you want.
    While Logic is open go to ~/Library/Preferences and delete com.apple.logic.pro.plist
    Quit Logic. I don't think it matters whether you save your project or not. When Logic quits a new plist will be written, and this one WILL have your labels!
    Seems on my machine Logic would not update the IO labels bit of the prefs unless it was writing a complete new prefs file.

  • Regarding File being written to Appl server

    Hi Pals,
    Can we restrict the size of the file that is being written to the application server through Open dataset or any other command.
    We have a report which selects data based on a given time period.
    The problem we are facing is that even for a period of 1 month the data file written to the appl server is around <b>14-15 GB</b>. Hence we have been asked to split the file that is being written.
    However the other option of reducing the time period of seelction has been ruled out by our clients.
    Please suggest.
    Thanks in advance.
    Rgrds,
    Gayathri N.

    Hi ,
    try like this
          i_maximum_lines = 99999999.
          block_size = 100000.
    do.
          refresh <l_table>.
          v_filect = v_filect + 1.
          write v_filect to v_filecount left-justified.
          fetch next cursor i_cursor
                     appending corresponding fields of table
    *                 <l_table>  PACKAGE SIZE i_maximum_lines.
                      <l_table>  package size block_size.
          if sy-subrc ne 0.
          e_table = i_table-tabname.
          e_dbcnt = sy-dbcnt.
          clear cursor_flag.
          close cursor i_cursor.
          exit.
          endif.
          delta_dbcnt = sy-dbcnt + old_dbcnt.
          old_dbcnt   = sy-dbcnt.
    Regards
    Prabhu

Maybe you are looking for

  • How to run BPF monthly in BPC 7.0 MS Version Sales Rolling ForecastPlanning

    Hi Friends I am implementing BPC 7.0 MS Version. Now in this version the Business Process Flow (BPF) instances is only ONCE, even though we have monthly weekly etc. For a rolling forecast planning, i need to have the BPF every month. Can you please g

  • I'm unable to open Photoshop Elements on my new laptop

    I've deactivated it on my old laptop, but on my new laptop I get a 150:30 error message: "Licensing for this product has stopped working." How can I activate it on my new machine?

  • Win Key Combination in Remote App

    Hello. For some reasons i should run RDCMan (remote desktop connection manager) in remoteapp session. But I've got the situation that Win-Key combination are not being redirected to rdp session, because they are not being redirected to remote app ses

  • I cant open cc files in cs6

    help somebody, if you have a solution, please help. i cant open a template from Ae 12.2 in 11.0.2 does somebody know how to fix this ? thx

  • Bootcamp won't read windows installer disk

    hey guys, I have a macbook pro, I just downloaded windows 7 from microsoft, I burned a dvd with the files and I partitioned my disk, but i can't install the windows because bootcamp won't read the disk. I get  the following message: the installer dis