Server_Id is null in FND_NODES

OS : AIX 5.3L
Application: 11.5.9
After the database clone and AppsTier clone, and find in the FND_NODES table, the server_id is empty, and the dbc file is not generated in the application server. Then try to clean the fnd_nodes table, and run the autoconfig in database server and application server again. But the node information are generated to fnd_nodes table, but the server_id and server_address column is still empty.
Did somebody meet this issue before can give us a hint?
Many thanks

Did AutoConfig run successfully on the database and the application tiers?
Could you please confirm that you have a proper entry in the hosts file?
Also, make sure you have the latest AutoConfig patches applied.

Similar Messages

  • Server_id column in tables fnd_nodes and fnd_application_servers

    Hi,
    I have a problem in uploading attachments. While following the note Receiving Error "You Are Not Authorized To View This Page" While Adding Attachments [ID 550727.1]
    I found that the server_id in fnd_nodes and fnd_application_servers do not match. I even checked it on the clone. Is this ok.
    Regards
    Taher

    Taher,
    I found that the server_id in fnd_nodes and fnd_application_servers do not match. I even checked it on the clone. Is this ok.Purge FND_NODES table and run AutoConfig on the database tier node then on the application tier node as per (Note: 260887.1 - Steps to Clean Nonexistent Nodes or IP Addresses from FND_NODES).
    Regards,
    Hussein

  • How do I autogen a value for primary key on inserts

    I'm running 4.0. I am writing an app that maintains distributed database inventory information. All of my tables have surrogate numeric primary keys. I have created several report/form combinations. From the report, I can choose to create a new instance of an object; Server for instance. When I click the "Add Server >" button, the Detail page opens for me to create the new entry. On this page, I need to have the Server_ID autogenerated. I'm thinking something as simple as "Select (max(server_id)+1) from Server" should do. In fact, it looks like it is going to work because the field gets populated correctly. But, when I click the "Create" button on this page I get an error that says the Server_ID is null. Seems like the generated value isn't making it to the INSERT statement.
    On the Page Definition, I have Server_ID set as Display Only and in the Source section for the attribute I have "Only when current value in session state is null" selected and "SQL Query (return single value)" selected with "Select (max(server_id)+1) from Server" in the "Source value or expresssion" field.

    Hi Ken,
    From your description it appears you want the new server ID to be assigned and show on the page prior to collecting the rest of the information, rather than assigning it upon saving the new row. What you're doing will get the next available ID, but what happens if two or more people are entering new servers at once? There's a good chance they'll all get the same next ID.
    Tony's suggestion will ensure the uniqueness of the server ID because it'll get assigned upon saving the row, rather than on display of the page where a user could leave the screen sitting there while others "take" that next ID. You can return the value that the trigger assigns for display - if you're using an Automatic Row Processing process, see the Return Key into Item setting.
    If you're going to stick with your approach and just need to know how to make sure that field is included in the INSERT, you need to create a computation on that item and move your "select max..." there, and then for the server ID item change the Source Used to "Always...", Source Type to Database Column, and specify the column name from the table in the Source Value. The reason is hasn't been working is that field isn't currently mapped to the table column.
    Hope this helps,
    John

  • ADGENDBC.SH가 FND_APPLICATION_SERVERS에 UPDATE안 하는경우

    제품 : AOL
    작성날짜 : 2004-05-19
    ADGENDBC.SH가 FND_APPLICATION_SERVERS에 UPDATE안 하는경우
    ==================================================
    PURPOSE
    adgendbc.sh가 돌아갈때 fnd_application_servers 에 row를 생성하는데 11.5.8
    부터는 record가 생기지 않는 이유를 설명하고 있다.
    Explanation
    11.5.8부터는 adgendbc.sh 를 돌릴경우 fnd_node에 에 server_id를 update한다.
    DBC가 정상적으로 생성됐는지 확인하기 위해 fnd_node의 server_id와 SID_host.dbc의
    server_id의 mapping을 확인하시기 바랍니다.
    adgendbc.sh 는 더이상 fnd_application_server tabel에 Update하지 않습니다.
    Example
    $FND_TOP/secure/KRSUP02_krsup02.dbc
    #DB Settings
    #Wed Jan 14 08:28:08 CST 2004
    APPL_SERVER_ID=D0C8D20B319668DBE0340003BA073F2E22699980724100809187141661845340
    select server_id from fnd_nodes;
    D0C8D20B319668DBE0340003BA073F2E22699980724100809187141661845340
    Reference Documents
    <Note:270802.1>

  • Autconfig error : ORA-01400: cannot insert NULL into ("APPLSYS"."FND_NODES"."NODE_NAME")

    Good day,
    I am running EBS 11.5.10  with DB 10.2.0.4. I applied patch 7429271 following the steps in  Doc Id. 233044.1.
    After restarting the application, I got a "node id does not exist for the current application" when the forms started.
    After purging fnd nodes (exec fnd_conc_clone.setup_clean) I ran autoconfig successfully on the dbtier but got the error below in the apps tier.
    I also noticed that the contents of my dbc file has been erased and replaced with the template data (all values are default). I tried restoring it but it just got over written again with default data.
    Hope my explanation was clear enough.
    Any suggestions?
    ---error from adconfig.log-----------
    Unique constraint error (00001) is OK if key already exists
    java.sql.SQLException: ORA-01400: cannot insert NULL into ("APPLSYS"."FND_NODES"."NODE_NAME")
    ORA-06512: at "APPS.FND_CONCURRENT", line 1504
    ORA-06512: at "APPS.FND_APP_SERVER_PKG", line 163
    ORA-06512: at line 1
    - Database error modifying the server

    Logs after autoconfig and services started - not connection attempted to the application yet.
    -----access log--------
    mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=XmlSvcsGrp&port=19000 HTTP/1.1" 200 15 0
    mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=DiscoGroup&port=17000 HTTP/1.1" 200 15 0
    mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=OACoreGroup&port=16000 HTTP/1.1" 200 15 0
    ----error log--------
    [Fri Oct 25 13:28:59 2013] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations
    ----error log_pls----
    [Fri Oct 25 13:29:00 2013] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations
    Logs after a connection attempt to the application
    -----access log-----
    mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=XmlSvcsGrp&port=19000 HTTP/1.1" 200 15 0
    mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=DiscoGroup&port=17000 HTTP/1.1" 200 15 0
    mobay.pahq.dom - - [25/Oct/2013:13:28:59 -0500] "GET /oprocmgr-service?cmd=Register&index=0&modName=JServ&grpName=OACoreGroup&port=16000 HTTP/1.1" 200 15 0
    192.168.50.80 - - [25/Oct/2013:13:34:32 -0500] "GET / HTTP/1.1" 200 2589 0
    192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /apptitle.html HTTP/1.1" 200 1015 0
    192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /applist.html HTTP/1.1" 200 1602 0
    192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /appdet.html HTTP/1.1" 200 1009 0
    192.168.50.80 - - [25/Oct/2013:13:34:33 -0500] "GET /appsmed3.gif HTTP/1.1" 200 1981 0
    192.168.50.80 - - [25/Oct/2013:13:34:36 -0500] "GET /aplogon.html HTTP/1.1" 200 1953 0
    192.168.50.80 - - [25/Oct/2013:13:34:38 -0500] "GET /OA_HTML/US/ICXINDEX_PROD_mobay.htm HTTP/1.1" 200 417 0
    192.168.50.80 - - [25/Oct/2013:13:34:38 -0500] "GET /OA_HTML/AppsLocalLogin.jsp HTTP/1.1" 200 411 0
    **the error logs remain unchanged.
    Regards,
    Shridath.

  • Support_db column not there in fnd_nodes table

    Hi
    today I have did clone of 11.5.9 instance and face the below issue.
    Updating s_tnsmode to 'generateTNS'
    UpdateContext exited with status: 0
    AC-50480: Internal error occurred: java.lang.Exception: Error while generating l
    istener.ora.
    Error generating tnsnames.ora from the database, temperory tnsnames.ora will be
    generated using templates
    Instantiating Tools tnsnames.ora
    Tools tnsnames.ora instantiated
    Web tnsnames.ora instantiated
    adgentns.pl exiting with status 2
    ERRORCODE = 2 ERRORCODE_END
    .end std out.
    but as per below I have solved the issue
    Sqlplus apps/...
    SQL> EXEC FND_CONC_CLONE.SETUP_CLEAN;
    COMMIT;
    EXIT;
    Run AutoConfig on all tiers, firstly on the DB tier and then the APPS tiers, to repopulate the required system tables.
    But I have observed there is no support_db column in fnd_nodes table, is it normal behaviour in 11.5.9?
    Plz share your ideas
    Thanks
    Shaik

    Hi
    there is no column in fnd_nodes table. it is a single node instance. we don't have latest autoconfig patches in the current environment.
    SQL> desc fnd_nodes;
    Name                            Null?    Type
    NODE_NAME                       NOT NULL VARCHAR2(30)
    LAST_UPDATE_DATE                NOT NULL DATE
    LAST_UPDATED_BY                 NOT NULL NUMBER(15)
    CREATION_DATE                   NOT NULL DATE
    CREATED_BY                      NOT NULL NUMBER(15)
    LAST_UPDATE_LOGIN               NOT NULL NUMBER(15)
    PLATFORM_CODE                   NOT NULL VARCHAR2(30)
    DESCRIPTION                              VARCHAR2(240)
    BASEPATH                                 VARCHAR2(20)
    SUPPORT_CP                               VARCHAR2(1)
    SUPPORT_FORMS                            VARCHAR2(1)
    SUPPORT_WEB                              VARCHAR2(1)
    SUPPORT_ADMIN                            VARCHAR2(1)
    STATUS                                   VARCHAR2(1)
    PING_RESPONSE                            VARCHAR2(2000)
    LAST_MONITORED_TIME                      DATE
    NODE_MODE                                VARCHAR2(1)
    NODE_ID                                  NUMBER
    SERVER_ID                                VARCHAR2(64)
    SERVER_ADDRESS                           VARCHAR2(30)
    HOST                                     VARCHAR2(256)
    DOMAIN                                   VARCHAR2(256)
    WEBHOST                                  VARCHAR2(256)
    Thanks
    Shaik

  • Have Multiple entries in Fnd_nodes..Please suggest

    Hi,
    I have multiple entries in the production fnd_nodes table. Please suggest if its ok to have below mentioned entries. Please suggest the possible steps if we need to clean it up.
    The environment is single instance and on 11.5.10.2 on IBM AIX OS.
    From FND_NODES
    Node_name     Description
    ==========================================
    <ProdInst_Name>     (null)     
    AUTHENTICATION     Authentication Value     
    Thanks a lot for the help.
    Hari

    The reason I was ambiguous about these entries is, our Test,QA,Dev instances fnd_nodes table have these 2 entries (mentioned above in this thread) plus their respective Instance entries. This raised a doubt, do we need to have only 1 entry i.e. entry of the respective instance in this table or is it OK to have other values like AUTHENTICATION, other instance information in this table.You should have more than one entry in this table, one for AUTHENTICATION and one for each database/application tier node.
    Also, I see continuous error messages in Prod concurrent manager log as indicated below. I Read in one of the articles to check for fnd_nodes having multiple entires might be a reason for below error messages. Thats why I wanted to check with you all, to see if there is any thing needs to be done to avoid future issues. BTW,The instance is working great...Just that I am concerned with CMLog having these error messages populating all the time...
    Would highly appreciate your helpTo make sure you have proper entries, please purge FND_NODES table and run AutoConfig on each tier node.
    How to get a clean Autoconfig Environment ? [ID 391406.1]
    How to Clean Nonexistent Nodes or IP Addresses From FND_NODES [ID 260887.1]
    CM Log sample error message info
    ===========================
    Process monitor session started : 10-JUN-2012 07:28:52
    CONC-SM TNS FAIL
    Call to PingProcess failed for FNDOPP
    CONC-SM TNS FAIL
    Call to StopProcess failed for FNDOPP
    Process monitor session ended : 10-JUN-2012 07:28:54
    ================================Those errors are related to OPP -- Please see these docs.
    Concurrent Processing - ICM log file shows 'CONC-SM TNS FAIL', 'Call to PingProcess failed', and/or 'Call to StopProcess failed' for FNDCPGSC/FNDOPP [ID 1312632.1]
    Mails are not Received Using Delivery Option while Submitting Concurrent Request In R12.1.3 [ID 1339491.1]
    Thanks,
    Hussein

  • Null And " "

    What is the difference between these two lines of codes?
    String currentFile = null;
    String currentFile = "";
    Edited by: AMARSHI on Jul 10, 2008 7:07 AM

    The reference variable itself, takes up the same amount of space, of course, as all references are the same size. Now, the object on the heap is a different story. With null there isn't one, of course (or if there is there is only one for the entire VM), and for the second a String object will be created in the String pool (once again, only one for the entire VM that every = "" assignment will use). But really, what difference does it make? If there is a difference, it is on the order of a few bytes (at max) for the entire VM, and if this is a concern, your probably doing something else greviously wrong. This miniscule difference should not concern you.
    Edit: And "nulling" variables to "save" memory is also not something you should be concerned with. Either the variable will go out of scope and the object garbage collected anyway, or it's in constant use and so will not be taking up any extraneous heap space. If one of those is not the case, you are, once again, doing something greviously wrong.

  • AND/OR + some nulls in filter

    I'm running into another problem with the AND/OR filter.
    The filter for selecting from object "a" and joining to objects b, c & d
    is:
    (b.theid==2 || c.theid==2 || d.theid==3) && active=="Y"
    The SQL that gets generated is:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id) OR (t2.theid = 2 AND t0.cid
    = t2.id)) OR (t3.theid = 3 AND t0.did = t3.id)) AND t0.active = 'Y')
    This returns a number of instances of the same a object when some of the
    OR clauses do not match. For example, if there's no record
    with d.theid=3, then it will do a full join on table d.
    Do I need to specify something else to flag these as potentially null
    fields so that the filter parser adds that check in? The following SQL
    query works
    ok if I add some checks for NULL on those join fields:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id OR t0.bid IS NULL) OR
    (t2.theid = 2 AND t0.cid = t2.id OR t0.cid IS NULL)) OR (t3.theid = 3
    AND t0.did = t3.id OR t0.did IS NULL)) AND t0.active = 'Y')
    Thanks,
    -Mike
    Mike Bridge

    Hi D,
    Thank you for your answer.
    I have seriously thought about that solution; but I don't think it's a smart way to do it.
    If i do it like that, i need to copy the whole table and paste it inside the if statements.
    I have two xml elements that I need to make the decisions on. POH_PO_TYPE & CP_RELEASE_NUM.
    POH_PO_TYPE can be: STANDARD, RELEASE or BLANKET.
    CP_RELEASE_NUM can be: '' or N
    If POH_PO_TYPE is RELEASE AND CP_RELEASE_NUM is not ''
    OR POH_PO_TYPE is STANDARD
    OR POH_PO_TYPE is BLANKET AND CP_RELEASE_NUM is ''
    THEN show table (which contains the whole PO).
    It shall show the content of the PO in any of these cases.
    BR Kenneth

  • Unit Testing, Null, and Warnings

    I have a Unit Test that includes the following lines:
    Dim nullarray As Integer()()
    Assert.AreEqual(nullarray.ToString(False), "Nothing")
    The variable "nullarray" will obviously be null when ToString is called (ToString is an extension method, which is the one I am testing). This is by design, because the purpose of this specific unit test is to make sure that my ToString extension
    method handles null values the way I expect. The test runs fine, but Visual Studio 2013 gives includes the following warning:
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    This warning is to be expected, and I don't want to stop Visual Studio 2013 from showing this warning or any other warnings, just this specific case (and several others that involve similar scenarios). Is there any way to mark a line or segment
    of code so that it is not checked for warnings? Otherwise, I will end up with lots of warnings for things that I am perfectly aware of and don't plan on changing.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

    Hi Nathan Sokalski,
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    Whether the warning above was thrown when you built the test project but the test run successfully? I assume Yes.
    Is there any way to mark a line or segment of code so that it is not checked for warnings?
    There is no built-in way to make some code snippet or a code line not be checked during compiling, but we can configure some specific warnings not to be warned during compiling in Visual Basic through project Properties->Compile
    tab->warning configurations box.
    For detailed information, please see: Configuring Warnings in Visual Basic
    Another way is to correct your code logic and make sure the code will not generate warning at runtime.
    If I misunderstood you, please tell us what code you want it not to be checked for warnings with a sample so that we can further look at your issue.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Enlarging Null and Cam

    Hey guys, just experimenting and remembering how to work with nulls to control cams.
    I noticed when I enlarge the null in one dimension, the camera's view also seems to widen.  What's happening here?  What is that and what am I doing that is causing the camera to "see" differently? I thought the whole point of a null was that it didn't have a physical dimension and was really only about orientation and position?

    Woahhh hold your horses! 
    I'm trying to understand the program, not trying to criticize it.  I love Adobe and AE.  Did it sound like I was trying to pick it apart?
    What I'm trying to understand is why when I resize it horizontally, it changes the camera view...and therefore understand how it's changing the camera view.  This is an important concept for me to get about this.  It's not something I have been able to find in literature or other boards.  That's all I'm trying to ask.  I'm not trying to argue with it or point out a flaw or something like that, I just don't understand what's going on.  Is the camera changing and how when I enlarge the null?

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • Checking null and not null values

    Hi!
    We have a job schedule table that has a column for each day.
    JOB_ID, TIME_ID, MO, TU, WE, TH, FR, SA, SU
    1                 1        X
    1                 2                        XSince the same job can be on different days and times, we need to check all the instances of
    that job.
    Sorry for the formatting - the X is an indicator; i.e. Wednesday and Saturday.
    How can we solve this?
    Thanks!

    Your requirements are not really clear.
    Perhaps this query could help:
    -- Your Data:
    with yourtable as
      select 1 job_id, 1 time_id, null mo, null tu, 'X' we, null th, null fr, null sa, null su from dual union all
      select 1 job_id, 2 time_id, null mo, null tu, null  we, null th, null fr, null sa, 'X' su from dual
    -- Query:
    select job_id, time_id, 'mo' day from yourtable where to_char(mo)='X' union all
    select job_id, time_id, 'tu' day from yourtable where to_char(tu)='X' union all
    select job_id, time_id, 'we' day from yourtable where to_char(we)='X' union all
    select job_id, time_id, 'th' day from yourtable where to_char(th)='X' union all
    select job_id, time_id, 'fr' day from yourtable where to_char(fr)='X' union all
    select job_id, time_id, 'sa' day from yourtable where to_char(sa)='X' union all
    select job_id, time_id, 'su' day from yourtable where to_char(su)='X'Edited by: hm on 29.07.2011 01:40
    Edited by: hm on 29.07.2011 01:41

  • Getting null and 0 outputting to screen or file.

    Hi everyone,
    I am trying to make a phone book program in Java. However the main functions of the phone book (adding and displaying contacts) isn't really working, it is outputting null or 0.
    Here is a class to create an object for family members:
    import java.util.StringTokenizer;
    public class phoneFamily extends phoneNumbers
         protected int home;
         public phoneFamily(String name, String address, int mobile, int business, int home)
              super(name, address, mobile, business);
              this.home = home;
         public phoneFamily(StringTokenizer P)
              super(P);
              while (P.hasMoreTokens()){home = Integer.parseInt(P.nextToken());}
         public void setHome(int home)
              this.home = home;
         public int getHome()
              return home;
         public String toString()
              return "Name: " + name + "\nAddress: " + address + "\nMobile: " + mobile +
                   "\nBusiness: " + business + "\nHome: " + home;
         public String CSV()
              return name + "," + address + "," + mobile + "," + business + "," + home;
    }Now I'm assuming that the problem I am having, where null or 0 is written to the file and screen is caused by the methods that reads a contact, writes them to the file, prints them to the screen. Here are those bits of codes.
    Reads Contact:
    private phoneNumbers ReadContact()
              int x = 0;
              String contact;
              StringTokenizer S;
              while (x < 1 || x > 3)
                   System.out.print("Which type of contact would you like?");
                   System.out.print("\n1)Family\n2)Workers\n3)Friends");
                   x = keyboard.nextInt();
              contact = ReadString("contact name") + "," +
                         ReadString("address") + "," +
                         ReadString("mobile") + "," +
                         ReadString("business") + ",";
              if (x==1)
                   contact+=ReadString("home");
              else if (x==2)
                   contact+=ReadString("email") + "," + ReadString("job title") + "," + ReadString("department");
              else
                   contact+=ReadString("email") + "," + ReadString("home");
              S = new StringTokenizer(contact,",");
              if (x==1)
                   return new phoneFamily(S);
              else if (x==2)
                   return new phoneWorkers(S);
              else
                   return new phoneFriends(S);
    Writes to File
    public void Save() throws IOException
              PrintWriter phoneFile = new PrintWriter(new FileOutputStream(PH_FILE));
              for (int i=0;i<NumOfContacts;i++)
                   String phoneX = phone.CSV();
                   phoneFile.println(phoneX);
              phoneFile.close();
              System.out.println("Contacts have been saved successfully.");
    Prints on Screen
    public void PrintFamily()
              System.out.println("Contacts Stored as FAMILY:");
              System.out.println("");
              //#=7, Name=24, Address=28, Email=24, Mobile=12, Business=12,
              System.out.println(SpaceGen("#",7) + SpaceGen("Name",24) + SpaceGen("Address",28) +
                   SpaceGen("Mobile",12) + SpaceGen("Business",12) + SpaceGen("Home",12));
              //System.out.println(RepChar('=',100));
              for (int i=0;i<NumOfContacts;i++)
                   if (phone[i] instanceof phoneFamily)
                        System.out.print(SpaceGen((new Integer(i+1)).toString(),7));
                        System.out.print(SpaceGen(phone.getName(),24));
                        System.out.print(SpaceGen(phone[i].getAddress(),28));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getMobile()).toString(),12));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getBusiness()).toString(),12));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getHome()).toString(),12));
              //System.out.println(RepChar('=',100));
    For some reason the last thing you enter when adding a contact (example above, home number), gets displayed first (when it should be name) and the rest are null or 0. The file looks something like this (in CSV)
    111222333,null,0,0,0
    The "111222333" is supposed to be the name but like I said last value entered is being put first.
    I've gone over my code several times, with no luck :-(.

    I made a silly mistake in the bit where the details are read. After fixing that everything is running well :-).
    My mistake:
    I had something like:
    while(P.hasMoreTokens()){this.data = P.nextToken();}
    while(P.hasMoreTokens()){this.data2 = P.nextToken();}
    and so on...Obviously had to use "if"s and not "while"s to read the data...
    Thanks for offering a helping hand :-) though!

Maybe you are looking for

  • How to connect Zi6 HD camera to mac mini for video in?

    I am wondering what is the best way to connect my Koday Zi6 HD camera to my mini so that I can grab video directly from the camera. The camera has HD and AV mini jacks. It also has a built in flip out usb socket, like the flip camera, but this I beli

  • Can't purchase and download app songs and albums..

    When ever I have to put my password in to buy download an app, purchase a song and album a please try again or unable to purchase/download the app or song pops up every time. The other day I pre-order an album and the error message came up but it sai

  • OS X Yosemite (10.10.3) Boot Camp Partition Issue

    I just updated the system to OS X 10.10.3 with the OS X Yosemite Recovery Update too. My boot camp partition went missing!!! I checked Disk Utility to see what is happening, the reply is "Repair the disk", when i click on Repair, it say the disk cann

  • Empathy still signs in even though process has been killed...

    So I have empathy installed on an arch install at home... Empathy has the bad habit of re-signing in an account when it gets disconnected, which works fine if it's a legitimate disconnection, but if you've signed in on another program (i.e. pidgin),

  • Creation of Shopping cart header custom texts

    Hi all. I need some help to create custom texts in the header of the shopping carts. Which customizing tasks should be done to achieve this? I have been searching documentation or information about this, and I haven't found anything. Thanks in advanc