Help Needed in AD Connection form Java Code

Hi,
I want to connect to AD target form my java program.
We are doing this as we don't want to use the OOTB Connectors.
How can any one connect to AD target from Java program?
After connecting,
How to Create a User in AD? Is there any API? Which one?
Regards,
SK

You'll want to do a search on JNDI and Java code. There are lots of sample code available on the web and tutorials. Here's a list of the classes you'll probably be using:
import javax.naming.CommunicationException;
import javax.naming.Context;
import javax.naming.NameNotFoundException;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.OperationNotSupportedException;
import javax.naming.directory.Attribute;
import javax.naming.directory.Attributes;
import javax.naming.directory.BasicAttribute;
import javax.naming.directory.BasicAttributes;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.naming.directory.ModificationItem;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;
-Kevin

Similar Messages

  • I need an Array in my JAVA CODE

    I need an array in my java code for my last class in my Java 1 course
    my code does compile in dos using javac,....and it does work
    It is a mortgage calculator for 3 loans of 3 different years loaned,.... and each have a different interest rate.
    I need to have my code in an ARRAY for my last week .
    any help would be appreciated
    here is my code :
    import java.text.*;           //20 May 2008, Revision ...many
    import java.io.IOException;
    class memortgage     //program class name
      public static void main(String[] args) throws IOException
        double amount,moPay,totalInt,principal = 200000; //monthly payment, total interest and principal
        double rate [ ] = {.0535, .055, .0575};          //the three interest rates
        int [ ] term = {7,15,30};                        //7, 15 and 30 year term loans
        int time,ratePlace = 0,i,pmt=1,firstIterate = 0,secondIterate = 0,totalMo=0;
        char answer,test;
        boolean validChoice;
        System.in.skip(System.in.available());           //clear the stream for the next entered character
        do
          validChoice = true;
          System.out.println("What Choice would you Like\n");
          System.out.println("1-Interest rate of 5.35% for 7 years?");       //just as it reads for each to select from
          System.out.println("2-Interest rate of 5.55% for 15 years?");
          System.out.println("3-Interest rate of 5.75% for 30 years?");
          System.out.println("4-Quit");
          answer = (char)System.in.read();
          if (answer == '1')  //7 yr loan at 5.35%
            ratePlace = 0;
            firstIterate = 4;
            secondIterate = 21;
            totalMo= 84;
          else if (answer == '2') //15 yr loan at 5.55%
            ratePlace = 1;
            firstIterate = 9;      //it helps If I have the correct numbers to calcualte as in 9*20 to equal 180...that why I was off -24333.76
            secondIterate = 20;    //now it is only of -0.40 cents....DAMN ME
            totalMo = 180;
          else if (answer == '3') //30 yr loan at 5.75%
            ratePlace = 2;
            firstIterate = 15;
            secondIterate = 24;
            totalMo = 360;
          else if (answer == '4') //exit or quit
            System.exit(0);
          else
            System.in.skip(System.in.available());               //validates choice
            System.out.println("Invalid choice, try again.\n\n");
            validChoice = false;
        }while(!validChoice);  //when a valid choice is found calculate the following, ! means not, similar to if(x != 4)
        for(int x = 0; x < 25; x++)System.out.println();
        amount = (principal + (principal * rate[ratePlace] * term[ratePlace] ));
        moPay = (amount / totalMo);
        totalInt = (principal * rate[ratePlace] * term[ratePlace]);
        DecimalFormat df = new DecimalFormat("0.00");
        System.out.println("The Interest on $" + (df.format(principal) + " at " + rate[ratePlace]*100 +
        "% for a term of "+term[ratePlace]+" years is \n" +"$"+ (df.format(totalInt) +" Dollars\n")));
        System.out.println("\nThe total amount of loan plus interest is $"+(df.format(amount)+" Dollars.\n"));
        System.out.println("\nThe Payments spread over "+term[ratePlace]* 12+" months would be $"+
        (df.format (moPay) + " Dollars a month\n\n"));
        System.in.skip(System.in.available());
        System.out.println("\nWould you like to see a planned payment schedule? y for Yes, or x to Exit");
        answer = (char)System.in.read();
        if (answer == 'y')
          System.out.println((term[ratePlace]*12) + " monthly payments:");
          String monthlyPayment = df.format(moPay);
          for (int a = 1; a <= firstIterate; a++)
            System.out.println(" Payment Schedule \n\n ");
            System.out.println("Month Payment Balance\n");
            for (int b = 1; b <= secondIterate; b++)
              amount -= Double.parseDouble(monthlyPayment);
              System.out.println(""+ pmt++ +"\t"+ monthlyPayment + "\t"+df.format(amount));
            System.in.skip(System.in.available());
            System.out.println(("This Page Is Complete Press [ENTER] to Continue"));
            System.in.read();
    }

    here is what was commented from my instructor for my week 4...is what you sen in the code....but I fixed loan 2 tonight
    "Week 4 Great work, the numbers were a little off on the 1st and 2nd loans. Next time
    try putting the values you displayed in an array. "
    import java.text.*;           //20 May 2008, Revision ...many
    import java.io.IOException;
    class memortgage     //program class name
      public static void main(String[] args) throws IOException
        double amount,moPay,totalInt,principal = 200000; //monthly payment, total interest and principal
        double rate [ ] = {.0535, .055, .0575};          //the three interest rates
        int [ ] term = {7,15,30};                        //7, 15 and 30 year term loans
        int time,ratePlace = 0,i,pmt=1,firstIterate = 0,secondIterate = 0,totalMo=0;
        char answer,test;
        boolean validChoice;
        System.in.skip(System.in.available());           //clear the stream for the next entered character
        do
          validChoice = true;
          System.out.println("What Choice would you Like\n");
          System.out.println("1-Interest rate of 5.35% for 7 years?");       //just as it reads for each to select from
          System.out.println("2-Interest rate of 5.55% for 15 years?");
          System.out.println("3-Interest rate of 5.75% for 30 years?");
          System.out.println("4-Quit");
          answer = (char)System.in.read();
          if (answer == '1')  //7 yr loan at 5.35%
            ratePlace = 0;
            firstIterate = 4;
            secondIterate = 21;
            totalMo= 84;
          else if (answer == '2') //15 yr loan at 5.55%
            ratePlace = 1;
            firstIterate = 9;      //it helps If I have the correct numbers to calcualte as in 9*20 to equal 180...that why I was off -24333.76
            secondIterate = 20;    //now it is only of -0.40 cents....DAMN ME
            totalMo = 180;
          else if (answer == '3') //30 yr loan at 5.75%
            ratePlace = 2;
            firstIterate = 15;
            secondIterate = 24;
            totalMo = 360;
          else if (answer == '4') //exit or quit
            System.exit(0);
          else
            System.in.skip(System.in.available());               //validates choice
            System.out.println("Invalid choice, try again.\n\n");
            validChoice = false;
        }while(!validChoice);  //when a valid choice is found calculate the following, ! means not, similar to if(x != 4)
        for(int x = 0; x < 25; x++)System.out.println();
        amount = (principal + (principal * rate[ratePlace] * term[ratePlace] ));
        moPay = (amount / totalMo);
        totalInt = (principal * rate[ratePlace] * term[ratePlace]);
        DecimalFormat df = new DecimalFormat("0.00");
        System.out.println("The Interest on $" + (df.format(principal) + " at " + rate[ratePlace]*100 +
        "% for a term of "+term[ratePlace]+" years is \n" +"$"+ (df.format(totalInt) +" Dollars\n")));
        System.out.println("\nThe total amount of loan plus interest is $"+(df.format(amount)+" Dollars.\n"));
        System.out.println("\nThe Payments spread over "+term[ratePlace]* 12+" months would be $"+
        (df.format (moPay) + " Dollars a month\n\n"));
        System.in.skip(System.in.available());
        System.out.println("\nWould you like to see a planned payment schedule? y for Yes, or x to Exit");
        answer = (char)System.in.read();
        if (answer == 'y')
          System.out.println((term[ratePlace]*12) + " monthly payments:");
          String monthlyPayment = df.format(moPay);
          for (int a = 1; a <= firstIterate; a++)
            System.out.println(" Payment Schedule \n\n ");
            System.out.println("Month Payment Balance\n");
            for (int b = 1; b <= secondIterate; b++)
              amount -= Double.parseDouble(monthlyPayment);
              System.out.println(""+ pmt++ +"\t"+ monthlyPayment + "\t"+df.format(amount));
            System.in.skip(System.in.available());
            System.out.println(("This Page Is Complete Press [ENTER] to Continue"));
            System.in.read();
    }

  • Urget Help --- Please give me the core java code that connects to UNIX ser

    Can anyone provide the core java code that connects UNIX server after verifying credentials and allow to implements UNIX commands through java program?

    no, you don't want to do that.
    You want to connect yourself, which Java is quite capable of doing, rather than go through some 3rd party client program that's not only specific to a particular operating system but not guaranteed to be installed at any particular machine or if it is to be installed in such a way that you can start it from your Java program.
    And then there's the little matter of figuring out the external API to use that program in the way you intent to (if it has one).

  • Help need on System setup for java programming

    HELP BADLY NEEDED!
    I recently installed java (jdk version8 152mb) on my HP630 win7 because i want to learn java. But when practising, after using notepad to code samples like "Hello Word" and saving it with .java format, it still cannot run on my pc.
    Pls i think i need a complete and comprehensible guide on how to install and prepare my win7 laptop for java programming.
    Thanks in anticipation

    Hello,
       one suggestion is to ensure your system's environment PATH has the Java installation path included, so that it knows where to look to run Java.
     (See attached pix).
    1st) Find out where Java was installed to on your system: For example, on my Win7 PC, Java was installed to 'C:\Program Files (x86)\Java' directory.
          However, my path to the actual binaries is 'C:\Program Files (x86)\Java\jre7\bin'; this is the value I added to my system PATH.
    2nd) Check what your System's PATH has: You can do this by looking at the Environment Variables under System Properties:
       1) Search for Control Panel, then go to System & Security, then to System, then to 'Advanced System settings'.
       2) Click on 'Environment Variables...'
       3) Under the 'System variables' pane, use the scroll bar to find 'Path', and click on 'Edit...'.
       4) Here is where you add your Java path (as noted above): Note that I appended my java path to the existing Path text, taking care to separate the previous path with a semi-colon (';').
         For example, this was my existing 'Path': "C:\Program Files\CollabNet\"...and now it looks like this 'C:\Program Files\CollabNet\;C:\Program Files (x86)\Java\jre7\bin'.
       5) Click OK, OK, OK out of all those dialogs.
       Now..restart your JVM or attempt to run your Java program!.
     Good luck.
    Regards,
    HardCopy (I am employed by HP) [If this was helpful, please mark this 'Solved' or 'Accept as Solution' so others can find this too]
    How to Give Kudos | How to mark as Solved
    Attachments:
    SystemVariables.PNG ‏60 KB

  • How to get repository connection in java code

    Hi!
    I have a method in server-side java code. This is get a repository connection from Weblogic pool.
    private DataSource getDataSource() throws WavesetException {
    DataStore ds = Server.getServer().getRepository().getPrimaryDataStore();
    DataSource dataSource = null;
    if (ds instanceof RelationalDataStore) {
    dataSource = ((RelationalDataStore)ds).getDataSource();
    return dataSource;
    I would like same this, but in the client side. After connection (SessionFactory.getSession...) I get a RemoteSession object.
    How can I get a database (repository) connection?
    Thanks,
    Attila

    com.waveset.util.Util.setWavesetHome("D:\\Tomcat 5.0\\webapps\\idm"); // if you are running this java code out side idm app
    Session session = SessionFactory.getSession("configurator", new EncryptedData("configurator"));
    LighthouseContext lh = session;
    WSUser user = (WSUser) lh.getObject(Type.USER, "Testuser");
    OR use below code
         System.setProperty("waveset.home","D:\\Tomcat 5.0\\webapps\\idm");
    // here we find the path
    LighthouseContext lighthouseContext = new com.waveset.server.InternalSession();
    WSUser user = (WSUser) lighthouseContext.getObject(Type.USER, "Testuser");

  • Please help me in compiling the enclosed java code

    Iam trying to compile the below mentioned java code and iam getting this error: I have Weblogic 6.1 + sp2 installed on my machine. Please help !
    The error is :
    C:\bea\jdk131>javac Browser.java
    Browser.java:17: cannot resolve symbol
    symbol : class JIconButton
    location: class Browser
    private JIconButton homeButton;
    ^
    Browser.java:25: cannot resolve symbol
    symbol : class ExitListener
    location: class Browser
    addWindowListener(new ExitListener());
    ^
    Browser.java:26: cannot resolve symbol
    symbol : variable WindowUtilities
    location: class Browser
    WindowUtilities.setNativeLookAndFeel();
    ^
    Browser.java:30: cannot resolve symbol
    symbol : class JIconButton
    location: class Browser
    homeButton = new JIconButton("home.gif");
    ^
    4 errors
    THE CODE IS HERE :
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    public class Browser extends JFrame implements HyperlinkListener,
    ActionListener {
    public static void main(String[] args) {
    if (args.length == 0)
    new Browser("http://www.apl.jhu.edu/~hall/");
    else
    new Browser(args[0]);
    private JIconButton homeButton;
    private JTextField urlField;
    private JEditorPane htmlPane;
    private String initialURL;
    public Browser(String initialURL) {
    super("Simple Swing Browser");
    this.initialURL = initialURL;
    addWindowListener(new ExitListener());
    WindowUtilities.setNativeLookAndFeel();
    JPanel topPanel = new JPanel();
    topPanel.setBackground(Color.lightGray);
    homeButton = new JIconButton("home.gif");
    homeButton.addActionListener(this);
    JLabel urlLabel = new JLabel("URL:");
    urlField = new JTextField(30);
    urlField.setText(initialURL);
    urlField.addActionListener(this);
    topPanel.add(homeButton);
    topPanel.add(urlLabel);
    topPanel.add(urlField);
    getContentPane().add(topPanel, BorderLayout.NORTH);
    try {
    htmlPane = new JEditorPane(initialURL);
    htmlPane.setEditable(false);
    htmlPane.addHyperlinkListener(this);
    JScrollPane scrollPane = new JScrollPane(htmlPane);
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    } catch(IOException ioe) {
    warnUser("Can't build HTML pane for " + initialURL
    + ": " + ioe);
    Dimension screenSize = getToolkit().getScreenSize();
    int width = screenSize.width * 8 / 10;
    int height = screenSize.height * 8 / 10;
    setBounds(width/8, height/8, width, height);
    setVisible(true);
    public void actionPerformed(ActionEvent event) {
    String url;
    if (event.getSource() == urlField)
    url = urlField.getText();
    else // Clicked "home" button instead of entering URL
    url = initialURL;
    try {
    htmlPane.setPage(new URL(url));
    urlField.setText(url);
    } catch(IOException ioe) {
    warnUser("Can't follow link to " + url + ": " + ioe);
    public void hyperlinkUpdate(HyperlinkEvent event) {
    if (event.getEventType() ==
    HyperlinkEvent.EventType.ACTIVATED) {
    try {
    htmlPane.setPage(event.getURL());
    urlField.setText(event.getURL().toExternalForm());
    } catch(IOException ioe) {
    warnUser("Can't follow link to "
    + event.getURL().toExternalForm() + ": " + ioe);
    private void warnUser(String message) {
    JOptionPane.showMessageDialog(this, message, "Error",
    JOptionPane.ERROR_MESSAGE);

    I got this code from this forum concerning MONITORING some application. Iam working on writing something which can monitor the availabilty of my application on the browser. Iam not familiar with swings so i got confused with compiling this code.
    Please let me know if you know some code that can help me monitor my web based application.
    Thanks in advance.

  • Need advise with pdf form generator code?

    I hava a PdfFormGenerator.java file that takes a pdf document
    loops throught all the fields and creates a class file and converts
    the fieldnames into something java can use in a method name,. basically
    sets all the set and get method.
    I have specified the location of my pdf form and the location of my java code. However when run the PdfFormGenerator.java file in command prompt, I keep getting the following msg:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/PdfReader
    Any ideas how I can get this to work. Thanks
    Here is the code:
    package project.student;
    import java.io.*;
    import java.util.*;
    import com.lowagie.text.pdf.*;
    public class PdfFormGenerator {
        private String className;
        private String formName;
        private StringBuffer generatedClass = new StringBuffer();
            private String classLocation = "D:/Projects/student/code/";
            private String formLocation = "C:/student/admin/forms/";
           public static void main(String[] args){
            try{
                PdfFormGenerator gen = new PdfFormGenerator(args[0], args[1]);
                gen.writeToFiles();
            }catch(Exception ex){
                 System.out.println("PdfFormGenerator : " + ex.getMessage());
                ex.printStackTrace();
    }Edited by: zub786 on Jan 22, 2008 4:34 AM

    You have to include the jar file containing the Iowagie classes in your classpath.

  • Help:create tree node dynamically from java code...

    hi there...can anyone give me solution how to create or add tree node dynamically from java code???
    currently i am using tree node to handle my menu...i try to create tree and add treenode dynamically from .java page, but it failed...can anyone give solution how to create tree ui from java code, so i can create a dynamic menu...thanz before...

    Hi:
    Just put the statements you would normally put on a sqlplus command line in jdbc statements and execute them?
    http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html#0.1_executeUpdate
    MJG

  • Help in a part of a java code

    Can some 1 tell me what is wrong in this java code.
    please
    part of the code is
    int counter = 0;
    for(int i = 0;  i < 4; i++){
    if(secret.charAt(i) == userGuess.charAt(i)){
         counter = i+1;
    System.out.println("Exact Matches:"+counter);..........................

    actually this is part of a game that i wrote.
    the user enters a secret code secret (ABCDEF): abcd (say for eg)
    next he enters his a guess code guess  (ABCDEF):acbd (say for eg)
    now the program has to give an output exact match = 2.
    a=a and d=d
    the code i gave in the first place is a part to increase the value of the counter.
    for some reason it goes off track
    the above example gives a output
    Enter Secret code (ABCDEF):abcd
    Enter Guess code (ABCDEF):acbd
    Exact Matches:4
    Press any key to continue . . .
    the answer should be 2.
    the entire program in case you want to refer to.
    public class MyProgram {
    private String getSecretCode() {
              System.out.print("Enter Secret code (ABCDEF):");
              String secret = Keyboard.readInput();
              secret = secret.toUpperCase();
              return secret;
         private String getGuessCode(){
              System.out.print("Enter Guess code (ABCDEF):");
              String userGuess = Keyboard.readInput();
            userGuess = userGuess.toUpperCase();
            return userGuess;
         public void start() {
              String  secret = getSecretCode();
              String  userGuess = getGuessCode();
    int counter = 0;
         for(int i = 0;  i < 4; i++){
         if(secret.charAt(i) == userGuess.charAt(i)){
         counter = i+1;
    System.out.println("Exact Matches:"+counter);
    }

  • Student in need of HELP!Best application for writting java Code?

    I've been working on two different systems and need to be able to work on both..On one system the SDK is installed on a linux machine on another on a windows machine...unfortunately i cant open the linux created files on my windows machine although i can compile ad run them! What application would allow me to work on both systems wothout creating problems?

    Hi,
    I am a bit confused by this question. My colleagues here use Windows to create their files and I use a Linux machine. I have never encountered a problem as described here. Its a company policy here for everyone to save files in UNIX format, so I can readily open and edit those files created in Windows on my Linux box with NetBeans or EMACS I use. Sometimes when my colleagues forget to save their files in UNIX format, I have to apply dos2unix to mend those files, but still that isnt too teadious at all.
    Try opening the files you created in Windows with any text editor that you have available in Linux - vi, emacs, gEdit whatever. And please tell here what problems, if any you encountered, in actually editing them again.
    Correct me if I have misunderstood your question.
    hth,
    Binil

  • Urgent help needed in two clarifictions of applet code

    Hi,
    I have an applet code where I have two buttons. Now, if button A is clicked it should pass a particular query string while if button B is clicked it should pass another particular query string.
    I would like to confirm
    1) Whether the query string passed is a valid statement(/approach) and
    2) Why there is an error in assigning qryString to qryString1.
    Thanks for any help/advise in advance.
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class ReinApplet1 extends Applet implements ActionListener
    TextField text;
    Button button1;
    Button button2;
    TextArea taResults;
    public void init()
         button1 = new Button("A");
    button1.addActionListener(this);
    add(button1);
    button2 = new Button("B");
    button2.addActionListener(this);
    add(button2);
    taResults = new TextArea(2,30);
    add(taResults);
    // text = new TextField(20);
    // add(text);
    public void actionPerformed(ActionEvent e)
    Object obj = e.getSource();
    if(obj == button1)
    String qryString = "select name from test where letter = A";
    executeQuery();
    if(obj == button2)
    String qryString = "select name from test where letter = B";
    executeQuery();
    public void executeQuery()
    String qryString1 =qryString;
    try
    URL url=new URL("http://localhost:8080/examples/servlet/ReinServlet1");
    String qry=URLEncoder.encode("qry") + "=" +
    URLEncoder.encode(qryString1);
    URLConnection uc=url.openConnection();
    uc.setDoOutput(true);
    uc.setDoInput(true);
    uc.setUseCaches(false);
    uc.setRequestProperty("Content-type",
    "application/x-www-form-urlencoded");
    DataOutputStream dos=new DataOutputStream(uc.getOutputStream());
    dos.writeBytes(qry);
    dos.flush();
    dos.close();
    InputStreamReader in=new InputStreamReader(uc.getInputStream());
    int chr=in.read();
    while(chr != -1)
    taResults.append(String.valueOf((char) chr));
    chr = in.read();
    in.close();
    // br.close();
    catch(MalformedURLException e)
    taResults.setText(e.toString());
    catch(IOException e)
    taResults.setText(e.toString());

    String qryString = "select name from test where letter = A";
    ...this is a local variable ...local to your actionperformed method. The reason the assignment String qryString1 =qryString; doesn't work is because you have no scope to your actionperformed local variables from your executeQuery method. Either make qryString a class variable bty defining it outside any method ...ot, alternatively, pass the string into the executeQuery method.
    if(obj == button1)
      String qryString = "select name from test where letter = A";
      executeQuery(qryString);
    public void executeQuery(String query)
      String qryString1 = query;
    ...As for the sql statement, if you are going to refine the query through the letter column, you will need to pull it into the query when you select...
    ...such as: select name,letter from test where letter = B

  • Help needed in printing   interactive form

    Hi Friends
    I just developed an application  which access  ECC
    can any one guide me to print  the output pdfform
    i have opened result interactive form and placed a print button ...next which script i should use? formcalc  or
    java script..since my application is a java webdynpro .
    can  you give me the piece of code for that..formcalc
    already got the script..but  i dont know the exact java script for  printing.
    plz help me in this issue
    vivek chandra

    Hi Raja
    Thanks for that stuff..very helpful
    i  have 3 inputfields on one of my interactive form
    i was asked to fill those fileds  with predefined data
    so that once the app is run, input form fields should
    dispaly the predefiend values.in wdinit method i could
    do that using wdContext.currentelement.setName("xxx");
    i have 3 fields..three are text fields.from the third field need to eneter the date,its a PO Bapi..i did context binding ..i could drag the input  fields..
    but when iam trying to set predefiend date for the
    3rd field..its not accepting it..since it is of type
    date.. do i need to create any data type for the 3rd field in javadictionary????plz guide me in this issue
    regards
    vivek chandra

  • Help Needed for Resetting VoIP SPA 2100 Codes

    Yesterday afternoon, I lost power to my home for a few minutes; until then my phone worked perfectly (for the week that I had it initially installed). I have the Earthlink TrueVoice program with a ZyXEL P 600 series DSL modem and direct Ethernet cable (NO router) to my ATA adapter (Linksys VoIP model SPA 2100). My computer is an HP Pavilion 8755C with Windows Millenium Edition. I have a standard (wire) phone connection. After the power was restored to my home, I tried to use my ATA adapter (Linksys VoIP model SPA 2100) to make a phone call, but there was a five-second delay between when I spoke and when someone on the other end of the line heard me. I contacted Earthlink through online chat and was told to do the following: Dial **** 877778 # 1 to reset the adapter. I did this and nothing positive happened (though I did hear a recorded English woman’s voice repeat the numbers I dialed); I did, however, lose the dial tone and was unable to connect to the Internet with my DSL. So, to conduct more online chat, I re-routed the Ethernet cable to bypass the ATA adapter; I was successful at restoring my Internet, but, obviously, I had NO phone service. More than 8 hours of online chats to Earthlink technical service resulted in failure each time. I swapped ends of my cables numerous times – no success. I removed the power cords to the ATA adapter and to the DSL Modem MULTPILE times for for up to 5 minutes – no success. The lights on the back of the ATA lit properly, but since the first time I tried the **** 877778 # 1 code, the Status light blinks and the light indicating “Phone 1” stays dark (yes, there is astandard phoneline connected to that port). I tried multiple codes to reset the ATA (re-coding instructions are separated by semi-colons): **** 877778 # 1 ; **** 877778 # 1 # ; **** 732668 # ; *** *73738 # 1 . I unplugged the power cord and Ethernet cable (to the modem) on the ATA adapter for about 1 or 2 minutes after trying to reset the code before reattaching everything (power cord always re-attached last). I tried each of these suggestions MULTIPLE times without success. One Earthlink tech wanted more specific information – the MAC address (which I was told is a 12 digit hexa decimal number that starts with zero). I told him what it was. He asked me to try a “ping” test; I was told to click on Start -> Run, type in cmd and hit Enter. A new window would appear and I should type in ping 192.168.0.1 and hit Enter. I never got to the “new window” because after I typed in “cmd” and hit Enter, I received the message “Windows cannot find cmd.” I was told to dial the code * * * * 110 # and to hear my IP address; I heard nothing. I noticed that the last time I tried to dial **** 877778 # 1, I was interrupted before I typed the final “1” because the recorded voice told me “invalid value.” Around 1 a.m. last night I gave up in disgust and went to sleep, disconnecting everything. I have now reconnected the DSL modem and made the direct connection to my computer (the ATA adapter is still disconnected from power and all connecting cables). I am not an idiot and I have some electronics experience (I have wired several home theater systems), but I have little computer experience (and none with VoIP) and right now I am totally frustrated. The tech support at Earthlink is virtually worthless. Please help (and please keep it in simple terms so that an ignorant individual like myself might learn – I need a nice step-by-step method (including times to wait between restarts, what cables/cords to disconnect and the order to disconnect/reconnect them (if that matters) to reset this device) Thanks from a neophyte who is not afraid to be honest and show his ignorance in this area of knowledge.

    hi,
    i have a SPA-2100 it's a Sipura, and it now asks for a password. I was putting all my settings in for voip provider and now can not get in my admin? i did try the 73738 and that did not work. I was able to put my providers sip and stun all in. is it i'm locked out from my voip provider? If so why would that be, because this is not their device, it's mine? but how do I get back in my admin or can the voip provider I put in, help?
    thanks
    Message Edited by jokers32463 on 12-22-2008 06:21 PM

  • Making https: connection from java code loaded into Oracle 8i database

    A bit of a blast from the past, really, as 8i provides a JVM at 1.2.2.
    I need to provide an PL/SQL function which accesses a RESTful web service requiring https connection. Got the call working under 1.2 locally without much trouble using:
    static {
            System.setProperty("java.protocol.handler.pkgs",
                    "com.sun.net.ssl.internal.www.protocol");
            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        }The trick is to get the Oracle database to run the code internally. What libraries do I need where? I get an extremely unhelpful NoClassDefFoundError, without mention of the offending class.
    By doing loadjava with jcert.jar,. jnet.jar and jsse.jar (the libraries I'm using with the test program) I can get loadjava to accept and allegedly resolve the class.

    endasil wrote:
    malcolmmc wrote:
    Well, sadly look at the colour scheme.Yeah, sarcastic was I. The NoClassDef error seriously doesn't give a class name? I find it astonishing that any implementation would be that stupid.Seriously. The strange thing is that before I got to the NoClassDefFound I had a Initialization error (until I added a security rule for setting the Provider) and for that I got a full stack trace (in an obscure trace file, granted).

  • How to get total number of Database connections from Java code

    Hi,
    I am using Myql4.1.12.
    I am conncting to mysql through Java.
    I want to know how many active database connections were running at a specific time. Is it possible?
    Can you please help me.
    Thanks in advance.

    Seems like this would be a question for MySql, not for Java. And if it's possible you'd run some MySql utility to do that, not code it in a Java app.

Maybe you are looking for

  • Text Input Dialog

    Hello experts, How to configure the Web Item: "Text Input Dialog" to show label in different languages (Language-Dependent Text) according to languages configured in user web browser? Thanks and Regards, Pablo Moraes

  • 1.4.2_03 SDK install problem (WinXP SP1)

    I just installed j2sdk 1.4.2_03 (freshly downloaded), and installed on my WinXP SP1 laptop. * The install croaked at the point at which it tried to install the standalone JRE (threw up an error dialog, and if you hit OK on that, it exits the install

  • HT1212 Passcode-itunes-broken touchscreen

    What if my touch screen is broken and i have a passcode and i want to hook it up to itunes?

  • Fact sheet access problem in EP7.0

    Hi, We have moved our content from EP6.0 System to EP7.0 System.  We are on CRM 4.0 AND BW3.5.  After we installed the Business package on EP7.0 System we moved the content.  Every thing is working fine except Fact Sheet.  We are facing access proble

  • Issue with Texi database

    Hi there I am Using taxis database for text searching but I am getting an error.. When I am using the query like this � StrSQL = "SELECT SUM($rank) AS RANK, COUNT(CATEGORY_PATH) AS DCOUNT, HRDIVID, MAX(DIVISION_NAME) DIVNAME, MAX(DIVISION_ID) DIVID "