Trying to save array database

I'm having difficulty saving my database and restoring for my array. I think the problem is that I used the ArrayList class rather than making my own. I know how to do a save if I make the array, but I can't seem to get it to work with the ArrayList class. I'm required to use the ArrayList class for my array rather than make my own, but I also need to have the ability to save. If anyone has the time, I'd really appreciate some input
Thanks
MAIN:
import java.util.*;
import javax.swing.*;
public class SquiresProject1 {
     public static void main(String[] args) throws Exception {
          int menuCode, add, delete;
          boolean search = false, repeat = false, done = false;
          String saveChoice;
          //new record meant for an array of 10 in CreativeResources
         ArrayList customer = new ArrayList(10);
          SquiresSave save = new SquiresSave();
         //open file with saved data
          //control loop - enter 0 when finished
         while (!done) {
               //prompt, get menuCode, parse into an integer
              menuCode = Integer.parseInt(JOptionPane.showInputDialog(null,
                   "1. Add customer"
                        + "\n2. Delete customer"
                             + "\n3. Search for a customer"
                                  + "\n4. List all customers"
                                       + "\n5. Save your progress"
                                            + "\n6. Restore from last save point"
                                                 + "\n **Enter 0 to end program**"
                                                      + "\n Please enter a choice: "));
               switch (menuCode) {
                    //end loop and program
                    case 0:
                         done = true;
                         break;
                    //search for duplicates and add customer
                    case 1:
                         String customerToAdd = JOptionPane.showInputDialog(null,
                              "Customer's name: ");
                         repeat = customer.contains(customerToAdd);
                         if (repeat == false){
                         customer.add(customerToAdd);
                         JOptionPane.showMessageDialog(null, customerToAdd + " was successfully added to the list");
                         else
                         JOptionPane.showMessageDialog(null, "Sorry, but " + customerToAdd + " is already in the list");
                                                  break;
                    //sort, search for and delete customer
                    case 2:
                         String customerToDelete = JOptionPane.showInputDialog(null,
                              "Customer to delete: ");
                         customer.remove(customerToDelete);
                         JOptionPane.showMessageDialog(null, customerToDelete + " was successfully removed");
                         break;
                    //sort, search for customer
                    case 3:
                    String customerToSearch = JOptionPane.showInputDialog(null,
                              "Customer to search for: ");
                         search = customer.contains(customerToSearch);
                         if (search == true){
                         JOptionPane.showMessageDialog(null, customerToSearch + " is in the database");
                         delete = JOptionPane.showConfirmDialog(null, "would you like to delete " + customerToSearch + "?", "Run Again Dialog",     JOptionPane.YES_NO_OPTION);
                              if (delete == JOptionPane.YES_OPTION){
                            customer.remove(customerToSearch);
                              JOptionPane.showMessageDialog(null, customerToSearch + " was successfully removed");
                         else
                         JOptionPane.showMessageDialog(null, "Sorry, but " + customerToSearch + " is not in the database");
                         break;
                    //sort, traverse and list array
                    case 4:
                              JOptionPane.showMessageDialog(null, customer.toArray());
                                                  break;
                    //sort, save progress
                    case 5:
                    save.saveData();
                                                  break;
                    //restore from last save
                    case 6:
                         save.restoreData();
                         break;
                    //invalid choice - ask for input again
                    default:
                         JOptionPane.showMessageDialog(null, "Bad input. Read the choices carefully!");
          //prompt to save data
          saveChoice = JOptionPane.showInputDialog(null,
               "Would you like to save your data? y/n?");
          if ((saveChoice.equalsIgnoreCase("y")) || (saveChoice.equalsIgnoreCase("yes"))) {
               save.saveData();
          else
               JOptionPane.showMessageDialog(null, "You chose not to save your data.\nData not saved!");
          //closing
          JOptionPane.showMessageDialog(null, "Program ending.  Have a nice day!");
}MY ATTEMPT AT A SAVE/RESTORE METHOD CLASS:
import java.io.*;
import java.util.*;
public class SquiresSave{
public static int DEFAULT_SIZE = 10;
private int countOfCustomers;
private String[] customers;
private int customerPosition;
     public SquiresSave(int maxCustomers) {
          customers = new String[maxCustomers];
          countOfCustomers = 0;
          customerPosition = 0;
     //constructor
     public SquiresSave() {
          customers = new String[DEFAULT_SIZE];
          countOfCustomers = 0;
          customerPosition = 0;
     public void saveData() {
          int writeCount = 0;
          try {
               //open database.txt and write array to it
               PrintWriter outputStream = new PrintWriter(new FileOutputStream("database.txt"));
               while (writeCount < (countOfCustomers)) {
                    outputStream.println(customers[writeCount]);
                    writeCount++;
               //close database.txt
               outputStream.close();
               System.out.println("Data saved to file: database.txt");
          //catches all IOException errors
          catch (IOException e) {
               System.out.println("Error writing to file database.txt.\nData not saved!");
////////////////////////////////////restores data///////////////////////////////////////
     public void restoreData() {
          try {
               //open database.txt
               BufferedReader inputStream = new BufferedReader(
                    new FileReader("database.txt"));
               String line = inputStream.readLine();
               countOfCustomers = 0;
               //read and assign lines to customers until customers is full or file is completely read
               while ((line != null) && (countOfCustomers < customers.length)) {
                    customers[countOfCustomers] = line;
                    countOfCustomers++;
                    line = inputStream.readLine();
               inputStream.close();
               System.out.println("Data restored from file database.txt");
          catch(FileNotFoundException e) {
               System.out.println("Error reading input file: database.txt.\nData not restored!");
          catch(IOException e) {
               System.out.println("Error reading data from database.txt.\nData not restored!");
}

Hi,
at first you have to pass the data to your save method and get it from your restore method. You can do that simply with a argument in the methods. See http://java.sun.com/docs/books/tutorial/java/javaOO/arguments.html.
In your example, you could use
                    //sort, save progress
                    case 5:
                         save.saveData(customer);
                         break;
                    //restore from last save
                    case 6:
                         save.restoreData(customer);
                         break;
...Then your save/restore methody could look like:
     public void saveData(ArrayList<String> customer) {
          try {
               //open database.txt and write array to it
               PrintWriter outputStream = new PrintWriter(new FileOutputStream("database.txt"));
               for (ListIterator i = customer. listIterator(); i.hasNext();) {
                    outputStream.println((String)i.next());
               //close database.txt
               outputStream.close();
               System.out.println("Data saved to file: database.txt");
          //catches all IOException errors
          catch (IOException e) {
               System.out.println("Error writing to file database.txt.\nData not saved!");
////////////////////////////////////restores data///////////////////////////////////////
     public void restoreData(ArrayList<String> customer) {
          try {
               //open database.txt
               BufferedReader inputStream = new BufferedReader(
                    new FileReader("database.txt"));
               String line = "";
                                    customer.clear();
               //read and assign lines to customers until customers is full or file is completely read
               while ((line = inputStream.readLine()) != null) {
                                       customer.add(line);
               inputStream.close();
               System.out.println("Data restored from file database.txt");
          catch(FileNotFoundException e) {
               System.out.println("Error reading input file: database.txt.\nData not restored!");
          catch(IOException e) {
               System.out.println("Error reading data from database.txt.\nData not restored!");
...And please deal with generics. See http://java.sun.com/docs/books/tutorial/extra/generics/index.html. Then you can declare the ArrayList better as ArraList<String>.
greetings
Axel
Edited by: Axel_Richter on Sep 22, 2007 8:48 AM

Similar Messages

  • Lost All My Photos! "Error occurred while trying to save .."

    Hi. I'm in total panic mode right now as it appears I have lost all my photos.
    I did a quick search here and came across a couple of threads, but I'm not sure if the info contained in them is going to help me.
    I was using iPhoto and double clicked on a photo to enlarge it to show it to a friend and then I got the following message: "An error has occurred while trying to save your photo library. Some recent changes may be lost. Make sure your hard disk has enough space & that iPhoto is able to access the iPhoto Library". After this, all my photos in all the events & albums disappeared ... no status bar indicating anything was being processed ... nothing.
    I have my iPhoto Library on my 1TB Western Digital Hard Drive and the drive kept whirring as if processing something (this sound is common but it just kept going). I quit iPhoto, put the iMac to sleep & a minute later woke it up. The HD started whirring again & I opened up iPhoto ... still no photos. I dragged the external HD to the trash to eject it & unplugged it. I then re-connected it & still nothing. I have two "my book" icons in the left panel when I open up my Mac HD and one of them I can't get rid of as it says the volume can't be found. I'm guessing this is from when I tried to eject the HD. I am going to try re-starting my Mac. I also right clicked on the iPhoto icon to check the properties & even though I have no photos, it spent a couple of minutes (like it usually does) trying to calculate the size of the library ... so I'm hoping that the photos are somewhere.
    I have 16gb left on my iMac HD & 476gb on the external HD. I have no clue what happened and I had over 160gb in my iPhoto Library.
    Where should I look to try and find the photos if they have just been hidden (I hope) or am I totally out of luck? I have backups of some of the photos but not everything ...
    If anyone can offer some suggestions I'd be very grateful.
    Thanks for your time.
    Take care,
    Brent

    Brent
    You’re having two problems there, I think. One is with the disk. You’re not going anywhere with the other until you can get that to mount.
    Assuming you can, it sounds like the database has been damaged:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Permissions issue: An error occurred while trying to save your photo librar

    I recently upgraded from a Mac mini running OS X 10.4.10 (iPhoto 08) to an iMac Core2Duo (2.4ghz) running Leopard (and also iPhoto 08).
    My iPhoto library resided on an external Firewire drive when running on the Mac mini, but now that the iMac has such a large hard disk (750gb), I wanted to move my library there. I copied the library over to the Pictures folder in my user folder on the iMac and started up iPhoto, and everything seemed fine.
    When iPhoto is running for any length of time, I get the following error:
    *An error occurred while trying to save your photo library.*
    *Some recent changes may be lost. Make sure your hard disk has enough space and that iPhoto is able to access the iPhoto Library.*
    (I have over 300gb available on the disk and my library folder is approximately 40gb.)
    I've repaired the permissions on the library using iPhoto's built-in mechanism (command-option while booting iPhoto) and Disk Utility. Additionally, I've used BatchMod to give my user and group full read/write/delete permissions (as posted elsewhere in the forums), but I still get the error.
    Searching the forums yields other users w/ the same issues. What's the scoop? TIA!

    Sean:
    I just had the very same problem when I was messing with permissions and reset my unknown group to staff. I lost all write permissions in my nome folder. Here's how you can reset it for your pictures folder:
    In the Terminal type in "sudo chmod -R -N " (there's a space after the N) and drag the Pictures folder into the Terminal window. Then hit the enter key. It should chug along for a couple of seconds and return a new prompt. Give iPhoto another try after that.
    I had to do that for my entire home folder and it fixed the problem.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • IPhoto: An error occurred while trying to save your photo library.

    "An error occurred while trying to save your photo library.
    Some recent changes may be lost. Make sure your hard disk has enough space and that iPhoto is able to access the iPhoto Library."
    Basically, the same issues as this thread:
    http://discussions.apple.com/thread.jspa?threadID=1588998&tstart=0
    I have tried the BatchMod with no luck. If it matters, this is on an external hard drive and I am the only user on this computer. Looking at the info of the library file, I have read/write/execute permissions and my group has read permissions only. I thought BatchMod would change these permissions but it doesn't seem to work.
    Actually, I restarted my computer and it works now. But I am still worried it might happen again. Has anyone else encountered this problem?
    Thanks.

    Welcome to the Apple Discussions. If it's working now it could have been a one time hiccup. Do you backup your library on a regular basis? If not you definitely should.
    If the library gets damaged/corrupted you won't lose your photos but can lose all of your organizational effort that you put into the library. If the external HD crashes then you will lose all.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • OIM: Invalid LookupQuery when trying to save

    OIM: 11g (11.1.1.5.2)
    When trying to create a form field, of type LookupField, I am entering the following Lookup Query property value:
    select UD_ADGRP.UD_ADGRP_OBJECTGUID,UD_ADGRP.UD_ADGRP_DISPLAYNAME,UD_ADGRP.UD_ADGRP_DESC from UD_ADGRP,OIU,OBJ,OST where UD_ADGRP.ORC_KEY=OIU.ORC_KEY and oiu.ost_key=ost.ost_key and ost.obj_key=obj.obj_key and ost.ost_status in ('Provisioned', 'Enabled') and upper(obj.obj_name) = upper('AD Group');
    When trying to save, I get
    "Invalid Property Value was specified. Insert Failed"
    My console log show:
    java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    However, running the above query directly via JDeveloper brings back the proper information.
    Any idea what the invalid character might be?
    Thank you.

    Thank you Kevin, that was it. ( I should have seen that before posting)
    However, now when trying to add the 'Lookup Column Name' and 'Column Names' properties, the same error is being thrown.
    I am setting:
    Lookup Column Name to be: UD_ADGRP_OBJECTGUID
    and it is throwing the errors:
    <Mar 5, 2012 6:54:00 PM EST> <Error> <XELLERATE.SERVER> <BEA-000000> <Class/Method: tcSDP/isPropertyValid Error :Sdp Property value is invalid .>
    <Mar 5, 2012 6:54:00 PM EST> <Error> <XELLERATE.SERVER> <BEA-000000> <Class/Method: tcDataObj/save Error :Insertion of dataobject into database failed>
    <Mar 5, 2012 6:54:00 PM EST> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
         at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(tcDataBase.java:578)
    (The same error happens trying to set 'Column Names' value.
    I would like to be able to key on the OBJECTGUID attribute because I want to use it in a process task. I don't want to have to lookup it later. ie: I have a child table trigger that is executing, and the task adapter that I have assigned is needing the GUID as input.
    Thank you.

  • ORA-22835: buffer too small when trying to save pdf file in LONG RAW column

    Hi,
    I get "ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (real : 125695, maximum : 2000)" when i trying to save a 120k pdf file in an Oracle Long Raw column using dotnet 4.0 and Entity FrameWork.
    Dim db As New OracleEntities
    Try
    Dim myEntity = (From e In db.TEXTE _
    Where e.TEXT_ID = txtTextId.Text _
    Select e).Single
    With myEntity
    If txtTextypeId.Text <> "" Then
    .TEXTYPE_ID = txtTextypeId.Text
    Else
    .TEXTYPE_ID = Nothing
    End If
    .TEXT_NUM = txtTextNum.Text
    .TEXT_NAME = txtTextName.Text
    .TEXT_DATE = dtTextDate.SelectedDate
    If DocAdded Then
    .TEXT_DOC = Document
    ElseIf DocDeleted Then
    .TEXT_DOC = Nothing
    End If
    End With
    db.SaveChanges()
    Document is an array of Byte and TEXT_DOC also (mapped to a long row column).
    is it possible to increase the size of the buffer ? how may i do it ?
    Thx in advance.
    Regards.

    Using a custom UPDATE or INSERT stored procedure for LONG RAW column with
    exceed-limit data may still get the following error.
    "ORA-01460: unimplemented or unreasonable conversion requested".
    One option is to use BLOB instead of LONG RAW in your table and regenerate your
    data model from the table. Then using the default UPDATE or INSERT statement
    (created by EF) should work.
    The following will modify your LONG RAW column to BLOB column.
    Disclaimers:
    1. It's irreversible--you cannot modify BLOB back to LONG RAW.
    2. I have not tried that when there are huge data in LONG RAW column.
    So be careful.
    alter table <your_table_name> modify <your_long_raw_type_column> blob;

  • How do you save arrays in tdm files?

    Hi,
    As part of a university project I am trying to save some program data to a .tdm file.  On each channel I wanted a number of different types of data including an analogue wave form and a couple of 1-D DBL arrays.  I have found an NI presentation that says that you can store arrays in them but dont seem to be having any luck.  Any ideas what Im doing wrong?  I am using labview 8.5.
    Regards,
    James

    Hi James,
    in a channel, you can save only one array as data. If you want to save more arrays then use several channels. You can organize them in groups. If the arrays must be in the same channel, then convert them to a spreadsheet string (in string palette) and save the string as a property.
    Greetings,
    shb

  • Multiple image upload with save to database wizard problem

    hi,
    i need to upload multiple images (6) in a table called pictures. i will need the names stored in the database and the files uploaded on the server. since i am new to dreamweaver i can not figure out on how to make this work.
    the multiple image upload wizard uploads the images fine and creates a subfolder with the right id but i have no file names in the database at this point. i tried the multiple image upload with save to database wizard but i only get one upload button. it worked fine with one image but i need 6 pics uploaded. the i tried to first upload the pictures with the multiple image upload wizard and use the update wizard to add the names afterwards but that did not work either. hmm. would be great if someone could help me out.
    thanks, jan

    Thank you for the responses. I have already updated awhile ago, so I am wondering what happened. Not sure if during the server update, some files were replaced (unless I totally forgot to update to 1.0.1 on this site). So I reinstalled 1.0.1, deleted the includes folder from the server and uploaded my includes folder and it now works again.
    Again, thanks for the help.
    Jeremy

  • Multiple Image upload with save to database

    Hi everyone,
    I wonder whether anyone can help me, I have been trying to use the multiple image upload with save to database wizard. When I create the page and upload it and then view it in Safari the only thing that is on the page is an upload button. When I press the upload button I am able to browse my files and select them. When this window closes a flash loading value is shown but no images have been uploaded.
    Am I missing anything? I have had no problems uploading single files and creating albums. I want to create an online gallery so that I can do a multiple upload to a specific album if this is possible.
    Cheers
    Sarah

    Hi Sarah,
    >>
    but only the filename appeared in the database and no other information was stored.
    >>
    that´s how it´s been designed also in the "single upload" -- the path_to_the_folder where the files sit in have to be determined elsewhere
    >>
    {wedimg_idalb}
    >>
    I don´t see any reference to this "dynamic data" placeholder in any of your table columns you posted -- where does this one come from ?
    >>
    1. I have multiple clients and each client has their own set of images.
    2. Each set of client images must be linked to an album via the album ID
    >>
    do you have any "foreign key" which is related to the user_table´s ID in order to make user ID 2 upload his images in album ID 2 ? How will the upload page "know" where the images are going to be uploaded to ?
    >>
    and the album page, wedding_alb
    >>
    to my mind *this* table would itself need a foreign key to the user_table in order to "map" record 2 to user ID 2 -- or do I miss something ?
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Save Appleworks Database as Text File

    I'm trying to save an Appleworks 6 database as a text file so that I can import into Microsoft Access on my PC. When I go to file>save as in Appleworks it only lists Appleworks 6, 5 and ClarisWorks as file format options. Can anyone tell me how to do this? Any tips on how to convert this to PC Access database would be awesome as well. Thanks!

    Welcome to Apple Discussions
    The "has been deleted" error isn't actually related to saving. AppleWorks doesn't "understand" OS X well & can give some strange error messages. Although I've only gotten this message when I've had AppleWorks 6 open in both Classic & OS X at the same time on previous Macs, others get it like you with no specific cause. It usually is fixed by using Disk Utility to repair permissions and deleting the AppleWorks 6 preferences. See my user tip, AppleWorks has stopped working correctly, for more on the preferences. Neither permissions or preferences are replaced or fixed with installation.
    It would have been best for you to have started a new topic as your problem isn't not having the option to save as text, but not being able to save in any format.

  • Multiple Image Upload with save to database not working in IE anymore

    Since updating IE to SP3 ADDT Multiple Image Upload with save to database does not work anymore in IE. It will show a regular file upload field, an does not allow selection of multiple files. It does work in Firefox, but not all my clients use firefox.
    PSE Advice.

    I would consider buying some pluggins from dmxzone.com. They
    may cost a
    bit upfront but in the long run, you've probably be saving a
    lot of
    headaches.
    http://www.dmxzone.com/
    If time's an issue, with these plugins, you could probably
    be up and
    running in a half hour. George has some really nice pluggins
    for
    Dreamweaver and well worth the money.
    Peter Raun wrote:
    >
    I am going crazy here
    > I will see if i can explain my problem here. . .
    > I am trying to use the multiple image upload with save
    to database function in
    > the developer toolbox, and it work just fine, it lets me
    select where to store
    > the filename in database and where i want to save the
    actual image on the
    > server. It is wery easy to use if you just want these
    functions.
    > But i would also like to give every image a gallery id
    in the database, so i
    > can sort them out afterwards, its not whery smart to
    upload a lot of images to
    > a folder, and in the database you just have an image id
    and an filename, i cant
    > sort them into galleries with these to collums. . . . So
    i guess i have to do
    > something with the "additional fields" when i am
    creating the server behavior
    > but i cant figure out what to do?? i would have liked if
    i could have made an
    > list/menu with all of the availible galleries, and chose
    the one that i whould
    > add images too and then that gallery id whould be added
    to those images in the
    > database.
    > I have also tried to pass on an url parameter and then
    use that as a default
    > value in the "additionel field" section but without any
    luck at all. . . I hope
    > someone here has an idea, that could help me out. . .
    > It is sooooo easy to do this, when you are uploading ONE
    image at a time, i
    > cant figure out why it has to be sooooo hard when using
    "multiple image
    > upload"
    >

  • Networked Drive: An error occurred while trying to save your photo library

    I just upgraded to iLife '08. After opening iPhoto '08 I began editing Events. After some merging and adding titles I got this error:
    +"An error occurred while trying to save your photo library"+
    My iPhoto Library is on a networked drive connected to another Mac. Both Macs are on the same switch and there appears to be no issues copying and deleting files and folders outside of iPhoto. Even inside iPhoto, this error is inconsistent, it happens on some changes and not others. I've had this setup for about three years with no issues in previous versions of iPhoto.

    There's a strong chance that the problem is the format of the server. Event though the Mac can read and write to FAT formatted drives, there are file name length issues that can really mess up a library or other files.
    If you really want to have an error free setup use a server that's formatted for Mac OS X (journaled).
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • ORA-01438 when trying to save a large procedure

    At a customer in a relatively large project we recently upgraded from ODI 10... to 11.1.1.5.0. Today someone tried to save a long procedure (around 300K). Trying to do so resulted in an ORA-01438 error. In the previous version of ODI this error never occured.
    ODI is running on Windows, the repositories and target tables are on Oracle database.
    Is there a known limitation to store such long procedures, or can this behaviour be configured somewhere?

    Today I was searching for some more information about this issue.
    In the same work repository we have some other(very small test) projects. In these we are able to store the same procedure which fails in the main project.
    Now I assume some repository corruption. Is there a way to increase logging of ODI to find out additional information.
    Some additional information about our environment:
    Database: Oracle
    Version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
         With the Partitioning, Oracle Label Security, OLAP, Data Mining and Oracle Database Vault options
    Driver: Oracle JDBC driver Version: 11.2.0.2.0
    On the same database server are the master repository and a work repository which have been migrated from 10.1.3 to 11.1.1. The repository was not cloned. We only made a backup of this repository.
    Additionally I tried to export the current main project and import it in a new work repository which was created after the upgrade of ODI. The import then failed with the same ORA-01438 error.

  • Each time I open my Firefox browser, the tab from the last time opens. I have the browser set to open on my home page, not to the tab from the last time. I keep trying to save the setting for the browser to open on my home page but it doesn't.

    Each time I open my Firefox browser, the tab from the last time opens. I have the browser set to open on my home page, not to the tab from the last time. I keep trying to save the setting for the browser to open on my home page but it doesn't.

    Try to create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Error while trying to save layout:Console layout (Access is denied)

    Got an error while trying to save changes made in the layout,
    The error message is
    1) 'Preference.properties' (Access is denied), In the details button 'java.io.FileNotFoundException...'
    2) and on continuing futher, another message displayed is - 'Error while trying to save layout:Console layout (Access is denied)
    There is no Oracle Error Number associated with this message. It is a Oracle Warehouse Builder Error
    I have checked that
    1) this file exist in owb home/owb/bin/admin/Preference.properties
    2) It is not read only
    3) tried to set a parameter REPOS_DB_VERSION_ALLOWED=Oracle 10g
    as specified in the Installation and Admin Guide
    Please can you help?

    Also, not that you shouldn't get to the bottom of this, but you should be aware that any of your development or mapping changes are likely still being saved to the respository.
    In other words, you could continue working and just ignore these errors. We ran into this situation (it was indeed simply file permissions on the owb directories), but we noticed right away that at least our actual OWB work was in fact still being committed to the respository every time.

Maybe you are looking for

  • Using Preview to view multiple images in their own window

    So I'm using OS Tiger with Preview 3.0.9 and have selected "Open each image in its own window" in the Preview preferences. And this works, at least for the first 20 or so images. Then it automatically starts to open all subsequent images in the last

  • Stuck in BPM Transformation process Async to Sync Scenario

    Hi there im building up a   R/3 ---> Idoc PI - >Soap  3rd Party   Async/Sync Scenario, on the integration process window i drag a transformation box to change my input idoc to the structure the Webservice needs, but i cant import it, i tried to make

  • Database performance issue

    Hi all, I am having a system with 64gb ram with oracle 11g installed in it with solaris 10 as Operating system, i have assigned 16gb to memory_target with dynamic memory management, but the performance of the system not as expected can any guied me o

  • HOW CAN I HAVE DUMMY FACT TABLES IN ONE UNION REPORT

    Hello developers, So, I am trying to have a report from 4 different subject areas. Each of these have transaction numbers under Fact-table. B'se these fact tables are under different subject area I can't have them in one report, (fact table has to be

  • Using Mainstage

    Had to post some positive feedback Just done a very intensive tour of South America armed with only My Macbook Pro & Apogee Duet & Lacie drive....& whilst some of the hired Keyboard controllers were well below standard, Mainstage did not let me down