XML Files Won't Load Into AIR Correctly

Hi,
I am having a wierd problem. I am using FB 4.6, and have created a small web project swf file that loads in an xml file and creates a thumbnail gallery. It works fine. When I load this same swf file into my AIR project at runtime, the same xml file will not load correctly into it. Instead, it appears to be loading as gibberish, and the XML parser says it is malformed. I have attached a screen shot of it in the debugger. This is what it looks like after the xml load complete event fires.
Has anyone seen this issue before?
thx

It appears that if I run the generated swf file from the AIR project in the stand alone Flash player, everything works as it should. However, if I run it in AIR using the FB run command, I have the issues mentioned above. What would cause that?

Similar Messages

  • Older Quicktime Files won't load into 80GB "Classic" iPod

    I have several Quicktime files that are several years old and iTunes will not load them. The error message I get states "Files cannot be played on this iPod".
    My Quicktime is up to date. Any Ideas?
    Thanks.

    I have several Quicktime files that are several years old and iTunes will not load them.
    I'm guessing you mean iTunes itself plays the files but will not load - or synch - them onto your iPod.
    If that is the case try selecting/highlighting the troublesome videos in your iTunes Library and then going to the iTunes Advanced menu > Create iPod or iPhone Version and let us know if it brings you any combination of joy and/or satisfaction.

  • Processing large xml file (500mb)? break into small part? load into jtree

    hi,
    i'm doing an assignment to processing large xml file (500mb) and
    load into jree using JAVA.
    can someone advice me on the algorithm to do this?
    how can i load a 500mb xml in a jtree without system hang?
    how to i break my file and do the loading?

    1 Is the file schema based binary XML.
    2. The limits are dependant on storage model and chacater set.
    3. For all NON-XML content the current limit is 4GBytes (Where that is bytes not characters). So for Character content in an AL32UTF8 database the limit is 2GB
    4. For XML Content stored as CLOB the limit is the same as for character data (2GB/4GB) dependant on database character set.
    5. For SB Based XML content stored in Object Relatioanl storage the limit is determined by the complexity and structures defiend in the XML Schema

  • Problem loading XML-file using SQL*Loader

    Hello,
    I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
    Loader control-file:
    LOAD DATA
    INFILE *
    INTO TABLE BATCH_TABLE TRUNCATE
    FIELDS TERMINATED BY ','
    FILENAME char(255),
    XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
    BEGINDATA
    data.xml
    The BATCH_TABLE is created as:
    CREATE TABLE BATCH_TABLE (
    FILENAME VARCHAR2 (50),
    XML_DATA SYS.XMLTYPE ) ;
    And the data.xml contains the following lines:
    <?xml version="2.0" encoding="UTF-8"?>
    <!DOCTYPE databatch SYSTEM "databatch.dtd">
    <batch>
    <record>
    <data>
    <type>10</type>
    </data>
    </record>
    <record>
    <data>
    <type>20</type>
    </data>
    </record>
    </batch>
    However, the sqlldr gives me an error:
    Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    If I remove the first two lines
    "<?xml version="2.0" encoding="UTF-8"?>"
    and
    "<!DOCTYPE databatch SYSTEM "databatch.dtd">"
    from data.xml everything works, and the contentents of data.xml are loaded into the table.
    Any idea what I'm missing here? Likely the problem is with special characters.
    Thanks in advance,

    I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

  • Fonts won't load into Leopard Font Book

    My fonts won't load into my font book, but they are loading into the system. I reloaded my OS software hoping it would fix the problem, but it hasn't. Anyone with suggestions on what to do would be greatly apprecitated!!!

    My fonts won't load into my font book, but they are loading into the system.
    That's kind of contradicting. Are you saying you can manually place the fonts into a Fonts folder and they'll work, but can't be added to Font Book? Or they aren't working at all? If they're Type 1 PostScript fonts, read on.
    Type 1 PostScript fonts are a set. One file is a suitcase containing all of the low res bitmap screen fonts. The rest are the outline printer fonts. As an example, here's Adobe Garamond.
    Adobe Garamond
    AGarBol
    AGarBolIta
    AGarIta
    AGarReg
    AGarSem
    AGarSemIta
    The first file which I highlighted in green is the font suitcase of bitmap screen fonts. The rest are the outline printer fonts.
    1) The files for a Type 1 PostScript font must have both the screen and printer fonts for a given set in order to work. They also must be in the same folder.
    2) The suitcase of bitmap fonts will work alone, but output will be terrible since the system will print the fonts using the 72 dpi screen fonts in the suitcase if the outline portions are missing.
    3) Having only the outline fonts will not work. You will get exactly what you are having problems with. You can see the fonts, but they will not load. That's not a problem with Font Book, Suitcase or other font manager. None of them, nor the system itself will load outline fonts without the matching suitcase of screen fonts present.

  • Please recommend if we have options to read xml file and insert data into table without a temporary table.

    Please recommend if we have options to read xml file and insert data into table without a temporary table. 

    DECLARE @data XML;
    SET @data =N'<Root>
    <List RecordID="946236" />
    <List RecordID="946237" />
    <List RecordID="946238" />
    <List RecordID="946239" />
    <List RecordID="946240" />
    </Root>'
    INSERT INTO t (id) SELECT T.customer.value('@RecordID', 'INT') AS id
    FROM @data.nodes('Root/List')
     AS T(customer);
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • The .prel files will not load into premiere elements 13 and says that there is a missing codec. This is a school's site llicense that we've used for more thatn a month.

    The .prel files will not load into premiere elements 13 and says that there is a missing codec. This is a school's site llicense that we've used in our lab for more than a month.

    GPPNeil
    Premiere Elements 13 on Windows 8.1 (assumed 64 bit).
    First..
    1. Have you updated from 13 to the 13.1 Update using an opened project's Help Menu/Update. If not, please do so.
    2. Do the problems exist if you disable the antivirus and firewall(s)?
    3. Are you running the program as Administrator? Do you have the latest version of QuickTime installed on your computer?
    4. Have you refreshed the Online Services using Premiere Elements Editor Edit Menu/Preferences/Web Sharing?
    5. Have you updated the Adobe Application Manager?
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773
    6.Is your video card/graphics card driver version up to date according to the web site of the manufacturer of the card?
    7. Lots more we could go through such as deleting the Adobe Premiere Elements Prefs file and, if necessary, the whole
    13.0 Folder in which it exists.
    But, I think that you have enough things going on here to warrant an uninstall, free ccleaner run through (regular cleaner and registry cleaner parts) and then reinstall with the antivirus and firewall(s) disabled.
    CCleaner - PC Optimization and Cleaning - Free Download
    If the problems persist after all that then we will adjust to additional troubleshooting maneuvers.
    Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • My Nikon 7100 RAW files will not load into Iphoto.

    My Nikon 7100 RAW files will not load into IPhoto.  The computer will recognize the files once the download is complete, but fails to finalize.  My version of IPhoto is 7.1.5 and my computer is a Mid 2007 Mac Mini Model.  I have Light Room 5, but my wife and I are prefer IPhoto for basic download and sharing.  Is there a possibility  of getting the RAW files to download ?

    what version of the OS?
    You need Mt Lion and iPhoto '09 for your camera RAW support - OS X Mountain Lion: Supported digital camera RAW formats -
    If your computer will support tMavericks do the free upgrade to it and purchase the upgrade to iPhoto '11 version 9.5.x in the App store
    LN

  • HT1349 video files won't load ?

    video files won't load ?

    mccoyizzy wrote:
    video files won't load ?
    What kind of video files? What are you trying to open them with? Have you tried VLC to load them?

  • ITunes library file won't load

    *iTunes won't open my library file.*
    The library is about five years old. I started it on a WinXP computer then moved it to my Mac, and it now lives on a USB/FireWire external drive formatted as FAT32.
    I've been accessing the drive over the network via AFP, with the drive physically connected to my home server via USB.
    Last week I connected it to my Mac via FireWire last week for faster access. iTunes reported most but not all of the songs as on a missing network share with the same drive name. All the MP3s are there.
    *Now, iTunes won't open the library at all -- it's greyed out when I try to select it.*
    Opening the default iTunes library on my Mac works fine, and I'm still using iTunes 7 so it's not a compatibility issue.
    *Rebuilding the library from the XML file won't work* either, because only about 3K of my 20K+ songs show up if I do that.
    Now what? I need the iTunes library for a DJ gig coming up. Please help.

    This issue persists whether the drive is accessed via AFP network or FireWire.

  • Trouble loading an xml file - claims not to be terminated correctly

    I'm trying to load some data in an xml file to create a tree view.  Before that I created this code with hardcoded xml definition which works fine and creates my treeview:
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSExtension xmlns:fx="http://ns.adobe.com/mxml/2009"
                                              xmlns:s="library://ns.adobe.com/flex/spark"
                                              xmlns:csxs="com.adobe.csxs.core.*"
                                              xmlns:mx="library://ns.adobe.com/flex/mx"
                                              applicationComplete="appComplete()">
              <fx:Script>
                        <![CDATA[
                                  import com.adobe.csxs.core.CSInterface;
                                  [Bindable]
                                  private var hostName:String = HostObject.mainExtension;
                                  public function appComplete():void{
                                            CSInterface.instance.autoThemeColorChange = true;
                                  import mx.collections.ICollectionView;
                                  import mx.events.ListEvent;
                                  private function tree_itemClick(evt:ListEvent):void {
                                            var item:Object = Tree(evt.currentTarget).selectedItem;
                                            if (tree.dataDescriptor.isBranch(item)) {
                                                      tree.expandItem(item, !tree.isItemOpen(item), true);
                                  private function tree_labelFunc(item:XML):String {
                                            var children:ICollectionView;
                                            var suffix:String = "";
                                            if (tree.dataDescriptor.isBranch(item)) {
                                                      children = tree.dataDescriptor.getChildren(item);
                                                      suffix = " (" + children.length + ")";
                                            return item[tree.labelField] + suffix;
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <fx:XML id="myXml">
                                  <root>
                                            <folder label="One">
                                                      <folder label="One.A">
                                                                <item label="One.A.1" />
                                                                <item label="One.A.2" />
                                                                <item label="One.A.3" />
                                                                <item label="One.A.4" />
                                                                <item label="One.A.5" />
                                                      </folder>
                                                      <item label="One.1" />
                                                      <item label="One.2" />
                                            </folder>
                                            <folder label="Two">
                                                      <item label="Two.1" />
                                                      <folder label="Two.A">
                                                                <item label="Two.A.1" />
                                                                <item label="Two.A.2" />
                                                      </folder>
                                            </folder>
                                  </root>
                        </fx:XML>
          </fx:Declarations>
              <mx:Tree id="tree"
                                   dataProvider="{myXml}"
                                   showRoot="false"
                                   labelField="@label"
                                   labelFunction="tree_labelFunc"
                                   width="300"
                                   rowCount="6"
                                   itemClick="tree_itemClick(event);" />
    </csxs:CSExtension>
    So that works.  Now I've created an xml file to replace the hardcoded xml.  The file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
              <folder label="One">
                        <folder label="One.A">
                                  <item label="1One.A.1" />
                                  <item label="1One.A.2" />
                                  <item label="1One.A.3" />
                                  <item label="1One.A.4" />
                                  <item label="1One.A.5" />
                        </folder>
                        <item label="1One.1" />
                        <item label="1One.2" />
              </folder>
              <folder label="Two">
                        <item label="Two.1" />
                        <folder label="Two.A">
                                  <item label="2Two.A.1" />
                                  <item label="2Two.A.2" />
                        </folder>
              </folder>
    </root>
    And I've replaced the xml creation in the code with:
    <fx:XML id="myXml" source="/Users/rob/Desktop/myXml.xml" />
    However when I try to run this it fails, giving me an error:
    Main Thread (Suspended: TypeError: Error #1085: The element type "root" must be terminated by the matching end-tag "</root>".)
    But my xml file IS terminated correctly.  Any ideas?
    Running Adobe Extension Builder 2.1 on Mac Snowleopard.

    Well I've sorted this one.  For the record if anyone else a similar issue:
    My xml file was missing a carriage return after the </root>.  Seems to be needed.
    The xml file is cached.  Changing the file and re-running the extension is not enough.  I had alter the path, and then alter it back again. This forced the re-caching of the file and allowed my changes to be picked up.
    Hope that was of use to somebody.

  • The file just won't load into array...Please Help!

    hi i need some help in loading a binary file into an array so that i can edit the data that was saved from previous run..
    i could save the file but after that when i try to load it back to memory...i can't...ie. all the information keyed in were lost...please help
    this is the Code for the loading process...
         public static void loadAircraft (ArrayList aircraft) {
              try {
                   FileInputStream filein = new FileInputStream(".\\Data\\Aircraft.bin");
                   ObjectInputStream objectin = new ObjectInputStream(filein);
                   Aircraft craft = (Aircraft) objectin.readObject();
                   aircraft.add(craft);
                   objectin.close();
                   filein.close();
              catch (Exception e) {}
         }the above code won't load anything into memory...is there a way for overcoming this?
    inside the Aircraft class there are four different data of which they contain two differen data types.
    one of which is String and the other three are in int.
    Awaiting for reply...thanks

    yes...its some objects of an array that i am trying to load back...
    erm...i'll show you the whole code maybe...
    //to reference the swing library
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class SetupAircraft {
         static ArrayList aircraft;
         public static void init () {
              aircraft = new ArrayList(5);
              loadAircraft(aircraft);
         //opens up another sub group while the user
         //entered 1 as his/her option in the SetupSystem
         //menu
         public static void Setup () {
              //this will create a string that is going to be displayed
              //in the input dialog box
              String menu = "  Please select an option:  \n"
                              +"----------------------------\n"
                              +"1) Add New Aircraft\n"
                              +"2) Edit Existing Aircraft\n"
                              +"3) List Aircraft\n"
                              +"4) Delete Existing Aircraft\n"
                              +"5) Save\n"
                              +"6) Return to Main Menu\n\n"
                              +"   Enter a number between 1-6\n";
              //declare a field named option for selection through menu
              int option = 0;
              //continue the loop until the user inputs the number 6
              do {
                   //error handling for the input from the menu
                   //if the input is not integer the error is caught and
                   //reassigning option to be 0
                   try {
                        option = Integer.parseInt(JOptionPane.showInputDialog(null, menu,
                                   "Setup Aircraft", JOptionPane.QUESTION_MESSAGE));
                   catch (NumberFormatException e) {
                        option = 0;
                   //determine which option the user has chosen
                   //and enters the respective section
                   switch (option) {
                        case 1: add(aircraft);
                                  break;
                        case 2: edit(aircraft);
                                  break;
                        case 3: list(aircraft);
                                  break;
                        case 4: //delete(aircraft);
                                  break;
                        case 5: save(aircraft);
                                  break;
                        case 6:     return;
                        default: JOptionPane.showMessageDialog(null, "Please enter a number between 1-6",
                                   "Alert", JOptionPane.ERROR_MESSAGE);
                                   option = 0;
              while (true);
         public static void add (ArrayList aircraft) {
              String type = "";
              int first = 0;
              int business = 0;
              int economy = 0;
              do {
                   try {
                        type = JOptionPane.showInputDialog(null,"Enter Aircraft Type", "Prompt for Type",
                        JOptionPane.QUESTION_MESSAGE);
                        try {
                             if(aircraft.contains(type)) {
                                  JOptionPane.showMessageDialog(null, type + " already exist!",
                                  "Error", JOptionPane.ERROR_MESSAGE);
                                  type = "-100";
                        catch (Exception e) {}
                        if (type=="-100");
                        else if (type.length()==0) {
                             JOptionPane.showMessageDialog(null, "Please enter an aircraft type",
                             "Error", JOptionPane.ERROR_MESSAGE);
                        else if (!(type.startsWith("-",3))) {
                             JOptionPane.showMessageDialog(null, "Please enter the aircraft type with XXX-XXX format where X is integer.",
                             "Error", JOptionPane.ERROR_MESSAGE);
                             type = "0";
                   //catch the input error that the user has produces.
                   catch (Exception e) {
                        return;
              while (!(type.startsWith("-",3)));
              //try to ask the user for the passenger's name and if the name field contains
              //no characters at all repeat the prompt for name field until the user presses
              //Cancel.
              try {
                   first = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter First Class Capacity",
                   "Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
              catch (Exception e) {
                   String error = "For input string:";
                   if (e.getMessage() == "null") {
                        return;
                   else if (e.getMessage().startsWith(error)) {
                        JOptionPane.showMessageDialog(null, "Please enter only numbers",
                        "Error", JOptionPane.ERROR_MESSAGE);
              try {
                   business = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Business Class Capacity",
                   "Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
              catch (Exception e) {
                   String error = "For input string:";
                   if (e.getMessage() == "null") {
                        return;
                   else if (e.getMessage().startsWith(error)) {
                        JOptionPane.showMessageDialog(null, "Please enter only numbers",
                        "Error", JOptionPane.ERROR_MESSAGE);
              try {
                   economy = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Economy Class Capacity",
                   "Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
              catch (Exception e) {
                   String error = "For input string:";
                   if (e.getMessage() == "null") {
                        return;
                   else if (e.getMessage().startsWith(error)) {
                        JOptionPane.showMessageDialog(null, "Please enter only numbers",
                        "Error", JOptionPane.ERROR_MESSAGE);
              Aircraft newAircraft = new Aircraft (type, first, business, economy);
              aircraft.add(newAircraft);
              JOptionPane.showMessageDialog(null, "Aircraft Sucessfully Added",
              "Successful", JOptionPane.INFORMATION_MESSAGE);
         public static void edit (ArrayList aircraft) {
              String type = "";
              int first = 0;
              int business = 0;
              int economy = 0;
              do {
                   try {
                        type = JOptionPane.showInputDialog(null, "Enter Aircraft Type to Edit",
                        "Prompt for Type", JOptionPane.QUESTION_MESSAGE);
                        if (type.length()==0) {
                             JOptionPane.showMessageDialog(null,"Please enter an aircraft type",
                             "Error",JOptionPane.ERROR_MESSAGE);
                        else if (!(type.startsWith("-",3))) {
                             JOptionPane.showMessageDialog(null, "Please enter the aircraft type with XXX-XXX format where X is integer.",
                             "Error", JOptionPane.ERROR_MESSAGE);
                             type = "0";
                   catch (Exception e) {
                        return;
              while (!(type.startsWith("-",3)));
              try {
                   int edited = aircraft.indexOf(new UniqueAircraft(type));
                   Aircraft craft = (Aircraft)aircraft.get(edited);
                   try {
                        first = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter First Class Capacity",
                        "Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
                   catch (Exception e) {
                        String error = "For input string:";
                        if (e.getMessage() == "null") {
                             return;
                        else if (e.getMessage().startsWith(error)) {
                             JOptionPane.showMessageDialog(null, "Please enter only numbers",
                             "Error", JOptionPane.ERROR_MESSAGE);
                   try {
                        business = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Business Class Capacity",
                        "Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
                   catch (Exception e) {
                        String error = "For input string:";
                        if (e.getMessage() == "null") {
                             return;
                        else if (e.getMessage().startsWith(error)) {
                             JOptionPane.showMessageDialog(null, "Please enter only numbers",
                             "Error", JOptionPane.ERROR_MESSAGE);
                   try {
                        economy = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Economy Class Capacity",
                        "Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
                   catch (Exception e) {
                        String error = "For input string:";
                        if (e.getMessage() == "null") {
                             return;
                        else if (e.getMessage().startsWith(error)) {
                             JOptionPane.showMessageDialog(null, "Please enter only numbers",
                             "Error", JOptionPane.ERROR_MESSAGE);
                   Aircraft newAircraft = new Aircraft (type, first, business, economy);
                   aircraft.add(newAircraft);
                   aircraft.add(newAircraft);
                   JOptionPane.showMessageDialog(null, "Successfully edited aircraft\n"+type+" to capacities\n"
                   +"First: "+first+"\n"+"Business: "+business+"\n"+"Economy: "+economy,
                   "Successful", JOptionPane.INFORMATION_MESSAGE);
              catch (Exception e) {
                   JOptionPane.showMessageDialog(null,e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
         public static void list (ArrayList aircraft) {
              JOptionPane.showMessageDialog(null, aircraft.size()+" aircraft found", "Found",JOptionPane.INFORMATION_MESSAGE);
              Object[] aircrafts;
              aircrafts = aircraft.toArray();
              for (int i=0;i<aircraft.size();i++) {
                   Aircraft a = (Aircraft) aircrafts;
                   JOptionPane.showMessageDialog(null, a, "Aircrafts" + (i+1), JOptionPane.INFORMATION_MESSAGE);
         public static void save (ArrayList aircraft) {
              try {
                   FileOutputStream fileout = new FileOutputStream(".\\Data\\Aircraft.bin");
                   ObjectOutputStream objectout = new ObjectOutputStream(fileout);
                   Object[] aircrafts;
                   aircrafts = aircraft.toArray();
                   objectout.writeObject(aircrafts);
                   objectout.close();
                   fileout.close();
                   JOptionPane.showMessageDialog(null,aircraft.size()+" aircrafts saved", "Sucessful", JOptionPane.INFORMATION_MESSAGE);
              catch (IOException e) {
                   JOptionPane.showMessageDialog(null,e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
         public static void loadAircraft (ArrayList aircraft) {
              try {
                   FileInputStream filein = new FileInputStream(".\\Data\\Aircraft.bin");
                   ObjectInputStream objectin = new ObjectInputStream(filein);
                   Aircraft craft = null;
                   while ((craft=(Aircraft)objectin.readObject())!=null) {
                        aircraft.add(craft);
                   objectin.close();
                   filein.close();
              catch (Exception e) {
                   JOptionPane.showMessageDialog(null,e.toString());
                   e.printStackTrace();
    i think thats a bit too long..but it would explain what i am trying to save...its linking to the class Aircraft tho...
    thanks...i appreciate your help...

  • Report XML output fail to load into .RTF layout [EBS r12]

    Hi,
    In EBS r12, we have requirement to have a standard report output in excel.
    I got the report's xml output to create the xml template (.RTF layout) using BI Publisher.
    I created the .RTF layout and it works fine on my laptop using Bi Publisher.. the xml loads into it and i can preview xml data on layout with all format (Excel, PDF...)
    I uploaded the layout to EBS, and assigned it to the standard report.
    I changed standard report out put to XML
    When i go to submit report request, the template is assigned with report and everything seems correct.
    [See screen shot: http://img35.imageshack.us/i/xmlt.jpg/]
    But after i run the report.
    The report is Completed with Warning status.. and output is only XML with Error message :
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    The Log file says :
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2350601 on node CLONE at 13-APR-2011 09:03:47.
    Post-processing of request 2350601 failed at 13-APR-2011 09:03:48 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Why this is happening ? i have done this many times with other standard reports and it worked fine.
    Please advise.
    Standard Report: Supplier Aging Report
    EBS : 12.1.1

    please check the log file and post the output here
    How to find OPP log file?
    To investigate on XML issues or other publishing problems, often the OPP logfile is needed.
    OPP stands for Output Post Processor. Below are the steps to find log file
    1. Login to the application as SYSADMIN
    2. Responsibility: System Administrator
    3. Function: Concurrent --> Manager --> Administration
    4. Select the Output Post Processor
    5. Click on the Processes button
    6. Select the Concurrent Process which was active during the time that the request ran
    7. Click on the Manager Log button to open the Output Post Processor log file

  • How can I set connection to external XML file with Dreamweaver to buiild AIR app?

    Hello,
    I try to do simple AIR app in dreamweaver. It's not problem
    to use static data. But I'd like to use dynamic data from external
    XML file. I try to use Spry and evrything works fine in web browser
    but i have problem with loading external XML data into my app in
    AIR. Can I simply transform my spry based html app into AIR?
    What should I add to do this?
    Pawel

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

Maybe you are looking for

  • Can't connect Macbook Pro To TV

    Hello, I am trying to hook up my Macbook Pro 2010 middle (2.4GH Intel Core 2 Duo) OS 10.9 Maverick with my LCD TV - Bush LT32M1CA - using HDMI cable with reduction to mini port. When I connect my Mac to the TV nothing happens - TV says no signal and

  • Drill To Detail

    I am trying to create a report with deill to detail functionality. I have got main report showing payments of customer and i want user to click on the account number field to open the details about the account. I have got 2 reports already defined. N

  • Milestone Billing - Block getting removed before full confirmation.

    Hi friends, i am facing a problem in Milestone billing. I have attached a milestone to an activity.The milestone is considered in Sales order. When the activity will be fully confirmed the BLOCK will get removed from the Sales Order & down payment ca

  • NW Business Client and accessing SAP services via web pages

    Hi all, We currently use Business Connector to access our SAP environment via web pages. We looked at NW eSOA but decided against implementing it. Does Business Client offer anything that helps access SAP apps and data from a custom web site better t

  • Download Helper, already installed, but keeps requesting to be installed at start up.

    Have Firefox 5 installed. Have Download Helper 4.9.3 installed. But every time I start Firefox, get directed to page for download of Download Helper which appears to be same version as one I have. What am I missing? What do I need to do to make it st