Connection Exception Please help middle of a program

my server is remote and when the client call the method connection Exception is thrown .
and please clarify this?
does the client side need to have the servers stub in the same folder where the client is and also the .class file of the Remote interface
do we have to copy this file manually?
please help i have to complete this Rmi program within 30 minutes.

What you are seeing here has several reasons. The people you call mob are the very same ones that used to handle it greatly.
But there was a huge increase in posts like
- "do my homework"
- "URGENT!!!!!!!!!!!!!!!!!!!!!!!!!! HELP ME ASAP"
- "I need to know something almost everyone knows but I can't be bothered to use Google or to read the API"
- "I won't tell you my problem, but fix it at once"
which most regulars are sick and tired of. How often do you think you can stand someone asking you "why is 3.3 - 0.3 = 3.00000000001"?
A second reason are jerks like Goldie and Richard West who simply abuse these forums.
And you're been here for only a month, you don't really remember "how it used to be". It's been like this for a long time now.

Similar Messages

  • I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!

    I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!

    See:
    iOS: Device not recognized in iTunes for Windows
    You need iTunes version 10.7

  • I lost my iPhone 3 days ago.. it wasn't connet to internet and I don't know how find it without the connection.. please help me and give me some advices!!

    I lost my iPhone 3 days ago.. it wasn't connet to internet and I don't know how find it without the connection.. please help me and give me some advices!!

    Change your passwords.

  • I am have trouble with 2 new 21.5" iMacs losing wifi connection from my network. I have 4 other vintage iMacs that never lose connection. Please help.

    I am have trouble with 2 new 21.5" iMacs losing wifi connection from my network. I have 4 other vintage iMacs that never lose connection. Please help.

    This subject has been talked/written about a lot, after Lion was introduced. A solution from Apple has not yet been published, everybody is waiting.
    Try for instance https://discussions.apple.com/thread/3734081?start=15&tstart=0, but there are more discussion groups with the same subject: frequently lost WiFi-connections in newer Macs running Lion or up.

  • Have updated my ipad2 to IOS6 , but now Iam unable to make facetime over wifi ...it keeps displaying connection lost. please help

    Have updated my ipad2 to IOS6 , but now Iam unable to make facetime over wifi ...it keeps displaying connection lost. please help.
    Also my facebook application is also not working .it just hangs itself. tried uninstalling and reinstalling. yet it isnt working. please help

    Try This...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • ***lapi   getLocation Exception **please helpe***I am getting crazy*****

    Hi frnd
    Recently I am working on a location based project on mobile.I have search the net and found many source code for get BTS CELL ID and coordinates and all the source code have the same code.
    but when I install on mobile I get *{color:#ff0000}location Exception{color}*{color:#ff0000}...
    {color}I have search the net and every where and yet not found the solution, even i am using Nokia N71 which supports location based api.
    guys Really i am getting crazy, there should be a solution .... please help me
    there is a program in simbian "celltrack", It easily shows the BTS information,
    if any body has Idea please help me... thankssssssssss
    ...piece of code ....
    LocationProvider lp=*null*;
    Location location=*null*;
    try
    Criteria cr = new Criteria();
    //cr.setHorizontalAccuracy(1000);
    //cr.setVerticalAccuracy(1000);
    //cr.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
    lp = LocationProvider.getInstance(cr);
    if(lp.getState()==1)
    message="provider! is valid" + "\n";
    //timeout
    {color:#ff0000}location = lp.getLocation(60); // Exception happens here
    ....{color}
    catch(LocationException e)
    btsInfo +="1:"+e.toString()+ "\n";

    Konapalli.Gopi wrote:
    i am using websphere application server to deploy the web application.
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         class javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
         java.net.SocketException: Cannot find the specified class java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory
    I would guess
    com.ibm.websphere.ssl.protocol.SSLSocketFactoryis not on your classpath.

  • Socket connection refused - please help!!!!

    My socket programs dont work in linux it shows error -
    ot@localhost winc]# java parser
    Exception in thread "main" java.net.SocketException: Invalid argument or cannot assign requested address
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at java.net.Socket.<init>(Socket.java:309)
    at java.net.Socket.<init>(Socket.java:124)
    at parser.main(parser.java:10)
    Even the basic client server programs show this kind of error in linux. what is the cause for it? And the same programs work perfectly when run in windows. i have removed the firewall settings etc and it still doesnot work in linux
    Please help me solve the problem . it is very urgent.

    Actually i don't know how the firewall can cause the problem, can u please explain me.
    Here is the stack trace.
    INFO: Thread-3::Wed Dec 03 11:27:00 EST 2008 : resetConnection-->Connection couldn't be established with the Outbound message receiver at: 157.21.29.121:4996
    Dec 3, 2008 11:27:05 AM com.lsc.hl7.handler.THOutboundProperties log
    INFO: Thread-3::Wed Dec 03 11:27:05 EST 2008 : resetConnection-->Trying to reconnect[in IOException]........
    The Message is: Connection refused: connect
    The exception trace is :
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(Unknown Source)
    java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    java.net.PlainSocketImpl.connect(Unknown Source)
    java.net.SocksSocketImpl.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    com.lsc.hl7.handler.THOutboundConnHandler.resetConnection(THOutboundConnHandler.java:129)
    com.lsc.hl7.handler.THOBHandlerThread.sendMailAndLogAboutORUReceiverConnectionLoss(THOBHandlerThread.java:199)
    com.lsc.hl7.handler.THOBHandlerThread.run(THOBHandlerThread.java:118)

  • JCO exception please help

    Hi
          while executing the application i am getting exception.
    Could not create JCOClientConnection for logical System: WD_Test_MODELDATA_DEST - Model: class com.ltil.model.GetPdfmodel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!
           While testing the JCO connection in Content Admin ,its giving the exception
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=B MSHOST=sapdev GROUP=PUBLIC R3NAME=LC1 MSSERV=sapmsLC1 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '127.0.0.1:3300' not reached TIME        Fri Oct 26 09:33:25 2007 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nixxi.cpp LINE        2764 DETAIL      NiPConnect2 SYSTEM CALL connect ERRNO       10061 ERRNO TEXT  WSAECONNREFUSED: Connection refused COUNTER     16
         I searched,the backend server is up and j2ee server is also up.
    i am not getting the source of this error.
    please help
    its urgent
    thanks
    Gobinath R.

    Hi Gobinath,
          Check your SLD configuration. Looks like there is some problem with the parameters specified for your logical system..
         The exception says it is not able to locate the host.
    Thanks
    Best regards,
    Mohan.

  • Router/Connectivity issues please help!

    Hello, I'm running Verizon FiOS with the Westell 9100EM Modem/Wireless Router. I just recently upgraded the security settings on this (Upped to WPA2-Personal from WEP, Turned on MAC filtering, and turned off SSID Broadcast). I input all of the wireless devices in my home network (2 laptops, 3 gaming consoles, 1 netbook, 1 desktop w/ wireless card, and 1 wireless printer) into the allowed devices list, and confirmed all of them were able to connect to the home network after turning off the SSID Broadcasting.
    The next morning I awoke to find that nothing could connect wirelessly, so I troubleshot that by just connecting again to the network by entering in the SSID when prompted, and entering in the security key. Went to work and came home to find that once again nothing was connecting wirelessly, and that I was getting "Low connectivity" warnings, and I could not connect to any internet service (browsers, IM programs, Windows Sidebar gadgets, etc.).  In the midst of trying to figure out what was going on, we had a power flicker (gotta love Florida) which reset the modem and things came back on like normal.
    Last night, I come home from work and what do ya' know... it's the same "Low Connectivity" error and symptoms as I just described, I try resetting the modem... nothing. I try resetting the modem and restarting the computer... nothing. Opened a command prompt and ran ipconfig /all and it pulled up an IP Address of 254.204.X.X (the x's are only there because I don't remember the last two octets), and so I checked the properties of the networking device on my computer to see if somehow a static IP had been set up, but it was all still set up to auto-assign everything. So, I started opening up the actual network properties and checked some boxes, changed a setting here and there, but stupidly didn't make any notes about what changes I made, and then the next thing I know the internet just came to life.
    Tonight, once again, I come home from work and school, and the network is pulling the same thing, only this time, I was able to reset the modem/router and it seemed to fix the issue.
    My question is this: Did I mess something up when I turned off SSID Broadcast, turned on WPA2-Personal, and set up MAC filtering? Or is there something wrong with the unit? Or is there something else going on here altogether?
    If anyone could please help me with this, it would really be nice to get my mom off my back. Thanks!

    You don't say what version of windows. I suggest you enable the SSID broadcast and see if that helps. If you are running WPA 2 with AES you are secure enough. The MAC filtering is adding extra overhead that is not necessary. I suggest you get rid of that. Anyone can just as easily spoof the MAC address and anyone can find the SSID if hidden. These are not security measures. WPA2 with AES is.

  • Network connection problems, please help!

    I have had an iPod Touch (4th generation) for over a year now and it worked fine. Today, something went wrong with my network connection. One moment it says that I'm connected to a network, and a few seconds later it says I'm not connected... Then a few seconds later it's connected again. I have full wifi bars, and it does it throughout my whole house. The wifi symbol keeps going on and off. I tried turning my Verizon Westell Model 6100G Modem off and back on because this normally fixes my wifi connection problems. This didn't work. Then I tried turning my iPod off and back on. This didn't work. I tried turning the wifi off and back on. This didn't work. I tried forgetting my network and signing back in. This didn't work. I also tried resetting the network, and this didn't work either. I'm not having any connection problems with my laptop, it's working fine. It's only my iPod. I'm still able to use the wifi, but for a split second, it will not work. I'm not sure what else to do. It's very annoying! I'm going to see if it does this at other peoples houses with their wifi. Can any one tell me what's wrong and how I should fix it? My only theory is a broken antenna...Please help! Thanks!

    I have two things you could try.
    1. Plug your iPod into the host computer that which the network is based around because sometimes the network has trouble identifying a device if it has been a while since you plugged it into the computer.
    2. Find some way to get your network information (IP address, Subnet Mask, Router, DNS numbers) from another device on the network (e.g. laptop). Then go to Settings > Wi-FI and find your router and tap the blue arrow to the right of the name and tap the tab that says "Static" and enter this information accordingly. Then exit back to the network names menu and re-enter your passcode for your network (assuming you have a passcode)

  • New Infinity connect issues - please help

    We are having ongoing issues with getting BT infinity installed to our new house.  I really need someone that can actually help us find out what is wrong and how we can resolve the issues we are having.
    It all started a few months ago when we ordered BT infinity and a new phone line to our new Chapel conversion house.
    Initially there were some issues with the engineer being unable to get the phone line to the house. After numerous phone calls and several engineers visits, we these have now been resolved and we do have a working telephone.
    The problem seems to be with the Infinity. Nobody can give me an answer as to why we have not yet got a connection.
    When the phone engineer visited he said that he would try and connect the Infinity in the green box. – When he went to do this he tried to obtain our patching information and was informed that there was no live order for infinity on our number… As there was nothing more he could do he left.
    We then checked with BT and they confirmed that we do have an order for infinity and that there was a problem that needed and engineer to look at. (We have a box and are paying for the service already…
    We were told last week that an engineer was going to attend on Monday 13th Jan and that we definitely would have a connection by last Monday at the latest… - no engineer attended despite my wife spending her 3rd day in the house waiting for an engineer!
    She phone BT on Tuesday and was told that there was a problem and she would be contacted by Thursday Morning at the latest. – Needless to say , No phone call!!
    We really need to sort this connection out.  Is there anyone who can take this and run with it until it’s sorted? – We are getting nowhere talking to random individuals who have no real history of our connection history.
    Please Help!
    Doug

    Hi dougchapel,
    Thanks for posting and welcome!
    I'm sorry for the problems you're having getting set up on BT Infinity.  I can help get you sorted from here.  Click on my username and under the "about me" section you'll see the link to get in touch with us.
    Cheers,
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Firefox won't establish a connection. Please help

    Hello,
    My Mozilla Firefox has worked for ages and all of a sudden when my father tried to open it, it came up with a message saying:
    'Unable to connect
    Firefox can't establish a connection to the server at www.ebay.com.au.
    The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    If you are unable to load any pages, check your computer's network
    connection.
    If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.'
    I have checked all the settings and everything looks right, my internet is connected fine, other apps using the internet works fine, I have checked the fire wall and I have tried to troubleshoot problems. Nothing seems to be working it just keeps saying the same thing. I don't know what else to do, can someone please help me? I need to get it working before tomorrow because my father uses it and he knows how to use it and where everything is. Please, please help.
    Thank-you heaps!
    Zoe

    UAC is turned off ?
    Did you firefox "Run as administrator" ?
    thanks

  • Ipod error message when connected. Please help

    Windows XP
    I have had my 30 gigabyte ipod for almost a year and i've never had any problems with it before. But recently our area wasn't able to get broadband. So i was unable to download the recent ipod and itunes updates. I have done that now.. but i think something has affected my ipod. When i plug it into my computer nothing comes up on my ipod screen and i can continue browsing music etc.. i know this isn't supposed to happen. And on my computer an error message comes up saying "USB device not recognized. One of the USB devices attached to this computer has malfunctioned, and Windows does not recognise it. "
    Please help me!

    Okay. So i'll tell you the steps i have taken. I've uninstalled all the ipod updaters i had on my computer, eg 2006 and 2005.. and i reinstalled the latest version of itunes. I also went to device manager and all that but it only came up in the list at "unknown device" and i uninstalled the driver and tried to reinstall it but it came up saying it was an unknown device again. I tried right clicking on it and going "scan for hardware updates" but it told me the one i have installed is the nearest match. I also tried connecting my ipod to my computer in disc mode which did nothing. But i have discovered my ipod charges when i plug it in.. but the computer freezes on the black dos screen (as it always has for me when i turn the computer on with the ipod plugged in) and the ipod remains charging. but it seems if i plug it in after windows has loaded it's not even recognised.
    I'm sorry for making it so long but i really really need help

  • My ipad 2 is no longer connecting to itunes on my computer but my ipod is connecting. Please help.

    Recently, my ipad stopped appearing on itunes when I connect to my computer. I restarted apple mobile service but there was no difference. When I connected my ipod nano 2nd gen, it came up on itunes. Please help me resolve this. Thank you.

    Hi Chukwudinma!
    Here is an article that will help you troubleshoot this issue:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Please help me on this program

    I wrote a binary search tree to store the name, birthday, and phone number. But everytime I tried to insert some values, I got the java.lang.nullpoint.exception: Please check out the program:
    BinaryNode:
    public class BinaryNode{
    protected String name, birth, phone;
    protected BinaryNode parent, left, right;
    public BinaryNode(){
    name = null;
              birth = null;
              phone = null;
              parent = null;
              left = null;
              right = null;
    public BinaryNode(String n, String b, String p, BinaryNode pa, BinaryNode l, BinaryNode r){
              name = n;
              birth = b;          
              phone = p;
         parent = pa;
              left = l;
              right = r;
    public void setParent(BinaryNode p){
    parent = p;
    public void setLeft(BinaryNode l){
    left = l;
    public void setRight(BinaryNode r){
    right = r;
    public BinaryNode getLeft(){
    return left;
    public BinaryNode getRight(){
    return right;
    public BinaryNode getParent(){
    return parent;
    public String getName(){
    return name;
    public String getBirth(){
    return birth;
    public String getPhone(){
    return phone;
    public void setData(String n, String b, String p){
              name = n;
              birth = b;          
              phone = p;
    Binarytree:
    import java.io.*;
    import java.util.*;
    public class Binarytree{
         protected BinaryNode second;     
         protected BinaryNode head;
         protected BinaryNode left;
         protected BinaryNode right;
         protected int number;
         public Binarytree(){
              head = null;
              number = 0;          
         public boolean isEmpty(){
              if (number == 0)
              return true;
              else
              return false;
         public int size(){
              return number;
         public void insertName(String n, String d, String m){
              head = new BinaryNode(n, d, m, head, left, right);
              second = null;
              while (head != null) {
    second = head;
    if (n.compareTo(head.getName()) < 0)
    head = head.getLeft();
    else
    head = head.getRight();
    if (second == null){
         head.setData(n, d, m);
    if (n.compareTo(second.getName()) < 0)
    second.getLeft().setData(n, d, m);
    else
    second.getRight().setData(n, d, m);
              number++;
         public void insertBirth(String n, String d, String m){
              head = new BinaryNode(n, d, m, head, left, right);
              second = null;
              while (head != null) {
    second = head;
    if (d.compareTo(head.getName()) < 0)
    head = head.getLeft();
    else
    head = head.getRight();
    if (second == null){
         head.setData(n, d, m);
    if (d.compareTo(second.getName()) < 0)
    second.getLeft().setData(n, d, m);
    else
    second.getRight().setData(n, d, m);
              number++;
         public BinaryNode searchName(String name){
              BinaryNode n = head;
              if(n != null || name == n.getName())
              return n;
              if(n != null || name != n.getName())
              return null;                     
              if(name.compareTo(n.getName()) < 0){
                   n = n.getLeft();
              return searchName(name);
              else{
                   n = n.getRight();
              return searchName(name);
         public BinaryNode searchBirth(String birth){
              BinaryNode n = head;
              if(n != null || birth == n.getBirth())
              return n;
              if(n != null || birth != n.getBirth())
              return null;                     
              if(birth.compareTo(n.getBirth()) < 0){
                   n = n.getLeft();
                   return searchBirth(birth);
              else{
                   n = n.getRight();
              return searchBirth(birth);      
         public BinaryNode treeMin(BinaryNode n){
              n = head;
              while(n.getLeft() != null){
                   n = n.getLeft();
              return n;
         public BinaryNode treeSuc(String name){
              BinaryNode n = head;
              BinaryNode y;
              BinaryNode x;
              x = searchBirth(name);          
              if(x.getRight() != null){
              return treeMin(x.getRight());     
              else{
              y = x.getParent();
              while( y != null && x == y.getRight()){
    x = y;
    y = y.getParent();
    return y;     
         public String removeName(String name){
              BinaryNode n = head;
              BinaryNode x, y, t;
              x = searchBirth(name);
              if (x.getLeft() == null || x.getRight() == null)
    y = x;
    else
    y = treeSuc(name);
         if (y.getLeft() != null)
         t = y.getLeft();
         else
         t = y.getRight();
         if (t != null)
         t.setParent(y.getParent());
         if (y.getParent() == null)
         head = t;
    else if (y == y.getParent().getLeft())
    y.getParent().setLeft(t);
    else
         y.getParent().setRight(t);
              return y.getName();
         public void print(BinaryNode n){          
              System.out.println(n.getName() + ", " + n.getBirth() + ", " + n.getPhone());
              System.out.println("");     
         public void inorderPrint(BinaryNode n){          
              n = head;
              if(n == null)
    return;
              inorderPrint(n.getLeft());
              print(n);
              inorderPrint(n.getRight());
         public void listByName(){
              BinaryNode n = head;
              inorderPrint(n);
         public void listByBirth(){
              head = null;
              readFileByBirth();
              BinaryNode n = head;
              inorderPrint(n);
         public void inorderTrave(BinaryNode n){
              n = head;
              inorderTrave(n.getLeft());
              inorderTrave(n.getRight());
         public void readFileByName() {
    try {
    BufferedReader in = new BufferedReader(new FileReader("myFile.dat"));
    String n = "s", d = "s", p = "s";
    int count = 1;
    while(in.readLine() != null){
    count++;      
    BufferedReader in1 = new BufferedReader(new FileReader("myFile.dat"));
    for (int i = 0; i < count / 3; i++){
    n = in1.readLine();
    d = in1.readLine();
    p = in1.readLine();
    insertName(n, d, p);
    in.close();
    } catch (IOException e) {
    public void readFileByBirth() {
    try {
    BufferedReader in = new BufferedReader(new FileReader("myFile.dat"));
    String n = "s", d = "s", p = "s";
    int count = 1;
    while(in.readLine() != null){
    count++;      
    BufferedReader in1 = new BufferedReader(new FileReader("myFile.dat"));
    for (int i = 0; i < count / 3; i++){
    n = in1.readLine();
    d = in1.readLine();
    p = in1.readLine();
    insertBirth(n, d, p);
    in.close();
    } catch (IOException e) {
    public void writeText(){
         try {
    BufferedWriter out = new BufferedWriter(new FileWriter("myFile.dat"));
    BinaryNode n = head;
    inorderTrave(n);
    out.write(n.getName());
    out.newLine();
    out.write(n.getBirth());
    out.newLine();
    out.write(n.getPhone());
    out.close();
    } catch (IOException e) {
    public String getDate(){
         Date date = new Date();
         String dt = null, m = null, y = null;
         String computerDate = null;
         int d = date.getMonth() + 1;
         if (d == 1)
         m = "Jan";
         else if (d == 2)
         m = "Feb";
         else if (d == 3)
         m = "March";
         else if (d == 4)
         m = "Apr";
         else if (d == 5)
         m = "May";
         else if (d == 6)
         m = "Jun";
         else if (d == 7)
         m = "Jul";
         else if (d == 8)
         m = "Aug";
         else if (d == 9)
         m = "Sep";
         else if (d == 10)
         m = "Oct";
         else if (d == 11)
         m = "Nov";
         else
         m = "Dec";      
         dt = ""+date.getDate();
         computerDate = dt + " " + m + ". " + 2006;
         return computerDate;
    test:
    import java.io.*;
    import java.util.*;
    public class test{
         public static void main(String[] args) throws IOException {
              String n = null, d = null, m = null;
              int position = 0;
              int option = 0;
              int doMore;
              Binarytree list = new Binarytree();
              while(option != 9){
              System.out.println("Enter your options:");
              System.out.println("0. Adding More Friends");
              System.out.println("1. Remove A Friend by His List Index");
              System.out.println("2. List Your Friends by name");
              System.out.println("3. List Your Friends by DOB");
              System.out.println("4. Save");
              System.out.println("5. Load");
              System.out.println("6. Search Friends by Their Name");
              System.out.println("7. Search Friends by Their Birthdays");
              System.out.println("8. Check Birthday");
              System.out.println("9. Exit");
              option = getInt();
              if (option == 0){
                   doMore = -1;
                   while(doMore != 0){
              System.out.println("Enter The Last and First Name of your friend:");
              n = getString();
              System.out.println("Enter The Date of your friend's Birthday:");
              d = getString();
              System.out.println("Enter Your Friend's Phone Number:");
              m = getString();
              System.out.println("Adding More? 1 for Yes Or 0 for No:");
              doMore = getInt();
              list.insertName(n, d, m);           
              doMore = -1;
              n = null;
              d = null;
              m = null;
              else if (option == 2){     
                   list.listByName();
              else if (option == 3){     
                   list.listByBirth();
              else if (option == 6){
                   doMore = -1;
                   while(doMore != 0){
              System.out.println("Enter The Name of your friend:");
              n = getString();
              list.searchName(n);           
              System.out.println("Searching More? 1 for Yes Or 0 for No:");
              doMore = getInt();               
              doMore = -1;
              n = null;
              d = null;
              m = null;
              else if (option == 7){
                   doMore = -1;
                   while(doMore != 0){
              System.out.println("Enter Your friend's Birthday:");
              d = getString();
              list.searchBirth(d);           
              System.out.println("Searching More? 1 for Yes Or 0 for No:");
              doMore = getInt();     
              doMore = -1;
              n = null;
              d = null;
              m = null;
              else if (option == 8){     
                   String s = list.getDate();
                   doMore = -1;
                   while(doMore != 0){     
              list.searchBirth(s);           
              System.out.println("Searching More? 1 for Yes Or 0 for No:");
              doMore = getInt();     
              doMore = -1;
              n = null;
              d = null;
              m = null;
              else if (option == 5){     
                   list.readFileByName();
              else if (option == 4){     
                   list.writeText();
              else if (option == 1){     
                   System.out.println("Enter List Index your friend:");
              String z = getString();
              System.out.println("Removed Friend is ");     
              list.removeName(z);           
         static String getString() throws IOException{
    InputStreamReader isr = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(isr);
    String s = br.readLine();
    return s;
    static int getInt() throws IOException{
    int x;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in),1);
    x = Integer.parseInt(reader.readLine());
    return x;
    }

    I wrote a binary search tree to store the name, birthday, and phone
    number. But everytime I tried to insert some values, I got the
    java.lang.nullpoint.exception: Please check out the program:Well, you're using something that's not defined, obviously. The error message will tell you what line it is one. Go to that line and note the variables on it, then trace your code backwards until you figure out why one of them hasn't been defined.
    But, as was said, nobody is going to read that much unformatted code, especially when we don't even have the first clue as to where the problem is.

Maybe you are looking for