AP server client connection on SoH with System Replication

Hi Experts
I'm using Business Suite on HANA with  System Replication for HA purpose.
As client access from ABAP server to HANA DB, I use DNS redirection.
When I takeover to secondary system & after DNS redirection, the working process of user client (SAPGUI)  remains for a while until rdisp/max_wprun_time's limit.
(means it not automatically restart process.)
After creating new session from SAPGUI, it works correctly.
Is this normal procedure?
If it automatically re-connect with new DB connection, it would be useful.
BR
Yoh

Thanks for the response
I think I understand what you are saying, I just want to make sure I get it fully. I need to create a separate thread that runs just my connection process to make sure that the processes actually occur? If so, how would I go about doing this?
Thanks again

Similar Messages

  • Server/Client connection using an actionListener

    Hey guys,
    New to this board, so hopefully I can be of assistance :)
    What I am currently working on is a networked Monopoly game. My part of the assignment is to create a simple game lobby (just GUI based, buttons, action listeners, etc) where players can create games and join games already created.
    What I have is this. When a player clicks on the "Create Game" button, an anonomus inner action listener will detect the push and create a hosted game (Server side connection). When a player clicks on the newly created game, they will be a joined player (Client side connection).
    The problem is this, keep in mind that I have created a very, very simple server/client chat to test this out. When a Socket is created for the clients to connect to upon the Create Game button push, my program essentially just hangs. Nothing happens at all.
    Here are the 3 classes I used. I understand this is probably not the most efficient way to post, but this is the only way you can see what I exactly have. I took out all my GUI stuff to make it easier to follow (if you want me to post full classes I can):
    Thanks for all the help!
    - Ry
    //package Mackopoly;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.BorderLayout;
    import java.io.EOFException;
    import java.io.IOException;
    import java.net.ServerSocket;
    import java.io.EOFException;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.JFrame;
    public class gameList extends JFrame {
        MackPlayer tc1;
        MackPlayer tc2;
        MackPlayer tc3;
        HostPlayer ts1;
        HostPlayer ts2;
        HostPlayer ts3;
        private String temp = ""; //used to display chat area
        private int gameCounter = 0; //number of games created
        private boolean game1Started = false;
        private boolean game2Started = false;
        private boolean game3Started = false;
        public void start()
        //Sets up the screen
            enterField.addActionListener(
            new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    if (ae.getSource() == enterField)
                        temp = enterField.getText();
                        chatBox.append(temp + "\n");
                        enterField.setText("");
            createGame.addActionListener(
            new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    if (ae.getSource() == createGame)
                        gameCounter++;
                        if(gameCounter == 1)
                            //create a new host game on the server
                            //instanciate an object accordingly
                            game1.setText("Game " + gameCounter + "started!");
                            game1Started = true;
                                  ts1 = new HostPlayer();
                            ts1.execute();
                        else if(gameCounter == 2)
                            game2.setText("Game " + gameCounter + "started!");
                            game2Started = true;
                                  ts2 = new HostPlayer();
                            ts2.execute();
                        else if(gameCounter == 3)
                            game3.setText("Game " + gameCounter + "started!");
                            game3Started = true;
                                  ts3 = new HostPlayer();
                             ts3.execute();
                        else
                            System.out.println("games full");
            joinGame1.addActionListener(
            new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    if (ae.getSource() == joinGame1)
                        if(game1Started == false)
                            JOptionPane.showMessageDialog(null,"Start a game!");
                        if(game1Started == true)
                            JOptionPane.showMessageDialog(null,"Joined!");
                            tc1 = new MackPlayer("Game 1");
                            tc1.startClient();
            joinGame2.addActionListener(
            new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    if (ae.getSource() == joinGame2)
                        if(game2Started == false)
                            JOptionPane.showMessageDialog(null,"Start a game!");
                        if(game2Started == true)
                             JOptionPane.showMessageDialog(null,"Joined!");
                            tc2 = new MackPlayer("Game 2");
                            tc2.startClient();
            joinGame3.addActionListener(
            new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    if (ae.getSource() == joinGame3)
                        if(game3Started == false)
                            JOptionPane.showMessageDialog(null,"Start a game!");
                        if(game3Started == true)
                             JOptionPane.showMessageDialog(null,"Joined!");
                            tc3 = new MackPlayer("Game 3");
                            tc3.startClient();
        }//End start method
    }//End of my class
    import java.awt.*;
    import java.awt.event.*;
    import java.net.Socket;
    import java.net.InetAddress;
    import java.io.IOException;
    import javax.swing.*;
    import java.util.Formatter;
    import java.util.Scanner;
    import java.util.concurrent.Executors;
    import java.util.concurrent.ExecutorService;
    //Imports necessary packages
    public class MackPlayer extends JFrame implements Runnable
    //Client class
         private JTextField idField;
         private JTextArea displayArea;
         private JTextField guessArea;
         private JPanel panel2;
         private Socket connection;
         private Scanner input;
         private Formatter output;
         private String Host;
         private String myMark;
         private boolean myTurn;
         private final String X_MARK = "1";
         private final String O_MARK = "2";
         public MackPlayer(String host)
              Host = host;
              displayArea = new JTextArea(10,30);
              displayArea.setEditable(false);
              add(new JScrollPane(displayArea), BorderLayout.SOUTH);
              //Creates the message area
              idField = new JTextField();
              idField.setEditable(false);
              add(idField, BorderLayout.NORTH);
              //Creates the name field
              guessArea = new JTextField(10);
              guessArea.setEditable(false);
              add(new JScrollPane(guessArea), BorderLayout.CENTER);
              //Creates the guess area
              panel2 = new JPanel();
              panel2.add(guessArea, BorderLayout.CENTER);
              add(panel2, BorderLayout.CENTER);
              setSize(350, 275);
              setVisible(true);
              TextHandler tHandler = new TextHandler();
              idField.addActionListener(tHandler);
              guessArea.addActionListener(tHandler);
              //Adds the area's to the handler
              startClient();
         public void startClient()
         //Gets connection and starts thread
              try
                   connection = new Socket(InetAddress.getByName(Host), 12345);
                   input = new Scanner(connection.getInputStream());
                   output = new Formatter(connection.getOutputStream());
              catch(IOException e)
                   e.printStackTrace();
              ExecutorService worker = Executors.newFixedThreadPool(1);
              worker.execute(this);
         public void run()
              myMark = input.nextLine();
              SwingUtilities.invokeLater(
              new Runnable()
                   public void run()
                        idField.setText("Enter name here");
                        guessArea.setText("Enter guess");
                        //Default text
              );//end call
              myTurn = (myMark.equals(X_MARK));
              while(true)
                   if(input.hasNextLine())
                        processMessage(input.nextLine());
         private void processMessage(String message)
         //Handles all possible messages from the server
              if(message.equals("Guess too low."))
                   displayMessage("Guess too low\n");
              else if(message.equals("Guess too high."))
                   displayMessage("Guess too high\n");
              else if(message.equals("You Win!"))
                   displayMessage("You Win!\n");
              else if(message.equals("Other player connected.  Your turn."))
                   displayMessage("Other player connected.  Your turn\n");
                   guessArea.setEditable(true);
              else if(message.equals("Name1"))
                   displayMessage("Enter your name.\n");
                   idField.setEditable(true);
              else if(message.equals("Name2"))
                   displayMessage("Enter your name.\n");
                   idField.setEditable(true);
              else if(message.equals("Player 2 has entered name"))
                   displayMessage("Player 2 has entered name.  Your turn\n");
                   guessArea.setEditable(true);
              else if(message.equals("Invalid guess, try again"))
                   displayMessage(message + "\n");
                   myTurn = true;
                   guessArea.setEditable(true);
              else if(message.equals("Opponent guessed"))
                   int sw = input.nextInt();
                   displayMessage("Opponent guessed " + sw);
                   sendGuess(sw);
                   displayMessage("\nOpponent moved.  Your turn.\n");
                   guessArea.setEditable(true);
              else if(message.equals("Opponent guessed and won"))
                   int sw = input.nextInt();
                   displayMessage("Opponent guessed and won with number " + sw);
                   sendGuess(sw);
                   guessArea.setEditable(false);
              else
                   displayMessage(message + "\n");
         private void displayMessage(final String messageToDisplay)
              SwingUtilities.invokeLater(
              new Runnable()
                   public void run()
                        displayArea.append(messageToDisplay);
         public void sendGuess(int guess)
              if(myTurn)
                   output.format("%d\n", guess);
                   output.flush();
         private class TextHandler implements ActionListener
         //Handles the fields
              public void actionPerformed(ActionEvent event)
                   if(event.getSource() == idField)
                        idField.setEditable(false);
                        output.format("%s\n", idField.getText());
                        output.flush();
                        myTurn = false;
                        //Sends the name to the server
                        //Sets text to the name and sets it uneditable and sets turn to false
                   if(event.getSource() == guessArea)
                        guessArea.setEditable(false);
                        output.format("%s\n", guessArea.getText());
                        output.flush();
                        guessArea.setText("");
                        myTurn = false;
                        //Send the guess to the server
                        //Clears the past guess from the screen
    import java.awt.BorderLayout;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.io.IOException;
    import java.util.*;
    import javax.swing.*;
    import java.util.concurrent.*;
    import java.util.concurrent.locks.*;
    //Imports necessary packages
    public class HostPlayer extends JFrame
    //Server class
         private JTextArea outputArea;
         private Player[] players;
         private ServerSocket server;
         private int currentPlayer;
         private final static int PLAYER_1 = 0;
         private final static int PLAYER_2 = 1;
         private final static String[] MARKS = { "1", "2"};
         private ExecutorService runGame;
         private Lock gameLock;
         private Condition otherPlayerConnected;
         private Condition otherPlayerTurn;
         private Random generator = new Random();
         private int randomNumber;
         private String p1Name, p2Name;
         //Variables
         public HostPlayer()
              super("Guessing game");
              //Title of server window
              runGame = Executors.newFixedThreadPool(2);
              //Hanldes up to two clients
              gameLock = new ReentrantLock();
              //The lock
              otherPlayerConnected = gameLock.newCondition();
              otherPlayerTurn = gameLock.newCondition();
              //The condition variables
              players = new Player[2];
              currentPlayer = PLAYER_1;
              //The players
              try
                   server = new ServerSocket(12345, 2);
              catch(IOException e)
                   e.printStackTrace();
                   System.exit(1);     
              //Establishes server
              randomNumber = generator.nextInt(10);
              //The number to be guessed 0-10
              outputArea = new JTextArea();
              add(outputArea, BorderLayout.CENTER);
              outputArea.setText("Server awaiting connections \n");
              //The output area
              displayMessage("The number is " + randomNumber + " \n");
              //Prints out what the number is
              setSize(300, 300);
              setVisible(true);
              //Sets the size of the server window
         public void execute()
              for(int i = 0; i < players.length; i++)
                   try     
                        players[i] = new Player(server.accept(), i);
                        runGame.execute(players);
                        //Runs the threads to handle clients
                   catch(IOException e)
                        e.printStackTrace();
                        System.exit(1);
              gameLock.lock();
              try
                   players[PLAYER_1].setSuspended(false);
                   otherPlayerConnected.signal();
              finally
                   gameLock.unlock();
         private void displayMessage(final String messageToDisplay)
         //Function that displays messages
              //Class + method that can update the GUI for threads
              SwingUtilities.invokeLater(
              new Runnable()
                   public void run()
                        outputArea.append(messageToDisplay);
         public boolean validateAndMove(int guess, int player)
         //Function that determines what the output should be based on the guess
              while(player != currentPlayer)
              //The player can only guess if it is his turn
                   gameLock.lock();
                   try
                        otherPlayerTurn.await();
                   catch(InterruptedException e)
                        e.printStackTrace();
                   finally
                        gameLock.unlock();
              if(correctRange(guess))
              //If the guess is a valid guess
                   currentPlayer = (currentPlayer + 1) % 2;
                   //Switches player turn
                   players[currentPlayer].otherPlayerGuessed(guess);
                   gameLock.lock();
                   try
                        otherPlayerTurn.signal();
                        //Signals other player
                   finally
                        gameLock.unlock();
                   return true;
              else
                   return false;
         public boolean correctRange(int guess)
         //Tests for a valid guess between 0-10
              if(guess >= 0 && guess <= 10)
                   return true;
              else
                   return false;
         private class Player implements Runnable
         //Player class
              private Socket connection;
              private Scanner input;
              private Formatter output;
              private int playerNumber;
              private String mark;
              private boolean suspended = true;
              private boolean game = true;
              public Player(Socket socket, int number)
                   playerNumber = number;
                   mark = MARKS[playerNumber];
                   connection = socket;
                   try
                   //Tries to get the data streams
                        input = new Scanner(connection.getInputStream());
                        output = new Formatter(connection.getOutputStream());
                   catch(IOException e)
                        e.printStackTrace();
                        System.exit(1);
              public void otherPlayerGuessed(int guess)
              //Function that detemines whether the guess is too high/low or correct
                   if(guess == randomNumber)
                        output.format("Opponent guessed and won\n");
                        output.format("%d\n", guess);
                        output.flush();
                   else
                        output.format("Opponent guessed\n");
                        output.format("%d\n", guess);
                        output.flush();
              public void run()
              //The start of the threads, at the beginning messages go back and forth to set up the connection
              //and player names
                   try
                        displayMessage("Player " + mark + "connected \n");
                        output.format("%s\n", mark);
                        output.flush();
                        //Sends the message that the player has connected
                        if(playerNumber == PLAYER_1)
                             output.format("%s\n%s", "Player 1 connected ", "Waiting for another player\n");
                             output.flush();
                             gameLock.lock();
                             try
                                  while(suspended)
                                       otherPlayerConnected.await();
                                       //Waits for player 2
                             catch(InterruptedException e)
                                  e.printStackTrace();
                             finally
                                  gameLock.unlock();
                             output.format("Name1\n");
                             output.flush();     
                             p1Name = input.nextLine();
                             displayMessage("Player 1 = " + p1Name + "\n");
                             //Sends a message to enter the name and puts the received name
                             //in the variable p1Name
                             output.format("Other player connected. Your turn.\n");
                             output.flush();
                             //Starts the game when the other player has connected
                             //A lot of the turn base is done with message handling
                             //on the client side     
                        else
                             output.format("Name2\n");
                             output.flush();
                             p2Name = input.nextLine();
                             displayMessage("Player 2 = " + p2Name + "\n");
                             output.format("Player 2 connected. Please wait.\n");
                             output.flush();
                             //Sets up player 2's name and turn
                        while(game)
                        //while the game is not over
                             int guess = 0;
                             if(input.hasNext())
                                  guess = input.nextInt();
                             }//Gets next input
                             if(validateAndMove(guess, playerNumber))
                             //Sends the correct output based on the guess
                                  if(guess < randomNumber)
                                       if(playerNumber == 0)
                                            displayMessage(" \n"+p1Name+ " guess: " + guess);
                                       else
                                            displayMessage(" \n" p2Name " guess: " + guess);
                                       output.format("Guess too low.\n");
                                       output.flush();
                                  else if(guess > randomNumber)
                                       if(playerNumber == 0)
                                            displayMessage(" \n"+p1Name+ " guess: " + guess);
                                       else
                                            displayMessage(" \n" p2Name " guess: " + guess);
                                       output.format("Guess too high.\n");
                                       output.flush();
                                  else
                                       if(playerNumber == 0)
                                            displayMessage(" \n"+p1Name+ " guess: " + guess);
                                       else
                                            displayMessage(" \n" p2Name " guess: " + guess);
                                       output.format("You Win!\n");
                                       output.flush();
                                       game = false;
                                       //Ends game
                             else
                                  output.format("Invalid guess, try again\n");
                                  output.flush();
                   finally
                        try
                             connection.close();
                        catch(IOException e)
                             e.printStackTrace();
                             System.exit(1);
              }//End run
              public void setSuspended(boolean status)
                   suspended = status;
         }//End player class
    }//End Server class
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks for the response
    I think I understand what you are saying, I just want to make sure I get it fully. I need to create a separate thread that runs just my connection process to make sure that the processes actually occur? If so, how would I go about doing this?
    Thanks again

  • \\SERVER\Clients\Setup\setup.exe with Windows Vista Error

    I added the first Vista client to an SBS 2003, SP1 domain.  Until now, all clients were WinXP, SP2.  Office 2003 is installed on the XP clients, and the Vista client, which may not be pertinent to this problem.
    As is normal, "\\SERVER\Clients\Setup\setup.exe /s SERVER" is executed when a user logs on to any domain client.  On the Vista client, I always get the dialog -- regardless of the account privilege -- asking for permission to run Setup.exe.  It is annoying.  Occasionally, the Program Compatiblity Assistant will appear and advise there's a known compatiblity issue with Setup.exe.  It points to KB article 926505 for resolution.  The title of the KB is, "Windows Small Business Server 2003: Windows Vista and Outlook 2007 compatibility update."
    When I run the SBS2003SP1-KB926505-X86-ENU.EXE fix, I get the error:  "This update cannot be installed.  Either it is already installed as part of an existing service pack, or it requires a more recent service pack.  For more information, see the systems requirements on the download page."
    I installed Windows Server 2003 SP2 and run the KB926505 fix, but I get the same error  "This update cannot be installed.  Either it is already installed as part of an existing service pack" After a reboot of te SBS server the same  problem on the Vista client, I always get the dialog -- regardless of the account privilege -- asking for permission to run Setup.exe.  It is annoying.  Occasionally, the Program Compatiblity Assistant will appear and advise there's a known compatiblity issue with Setup.exe.  It points to KB article 926505 for resolution.
    The problem is Windows Vista Business, because all windows XP clients have no problem at all.

    PNP,
    You do not say whether if you accept the permission dialog whether the setup continues or not, but the short answer to the question revolves around UAC.
    Remember that EVERY user (except the actual Administrator account) has only Standard user rights regardless of group.  When a task that requires Admin rights is executed, one of three things will happen: 1) If you are THE Administrator, then your task will continue.  2) If you have Admin rights, you will be prompted that a process is trying to use elevated rights and ask for permission, or 3) If you are a Standard user, you will either be denied flatly or prompted to supply credentials.  Which of these happen depend on GPO settings, but the default is to prompt.
    In any event, I believe that this is what you are running into, and is one of the big feature improvements in Vista.  Yes, it can be a bit annoying (Try deleting an "All Users" icon from the Start Menu!) but is there to place one more barrier between virus and malware writers and your OS.
    If it's TOO annoying to bear, you can turn off UAC by going into your profile and disabling it. (It requires Admin rights, of course. )  It is not recommended as you do a very effective job or nutering the Vista Security Model by doing so.
    If it, of course, your choice.  we IT Admins have a lot more issues with this than the standard user, but for me, I gladly take the tradeoff because I worry a lot less about those few I HAVE to give Admin rights to.
    Good luck!

  • Server / Client connection

    Hi guys i want to know that what is the process of client server connect
    i install database 10g in server version (10.2.0.1.0) and i also download same client version my tns names.ora file is
    +# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_3\network\admin\tnsnames.ora+
    +# Generated by Oracle configuration tools.+
    LIVE =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = COMPUTER1)(PORT = 1521))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = live.ss64.com)+
    +)+
    +)+
    So how can i connect with client if i install same version of client in client system ?
    What is tns_admin role in client system?
    What is listneer role in client system?
    Please send some detail
    Regards
    Shahzaib ismail

    I would recommend you read thru the excellent documentation for an understanding of these concepts - http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/dist_pro.htm#i4059
    HTH
    Srini

  • Thin client connection to Unix with RMI

    Hi All and thanks for reading this.
    I am trying to run an application with a swing user interface on the client - a Windows box, and the work engine on the server - a unix box. I am trying to use rmi to communicate between the two. When I stay in the windows world, everthing works just fine. Unfortunately, not so fine when mixing the windows and unix worlds.
    I have started the rmi registry on the server and am able to bind the work engine to the registry.
    When I start up the client GUI and submit a job to the server, using an oracle jdbc thin client, I get the following null pointer exception at the time the application asks for its first connection:
    // message when rebind occurs
    DrillDownEngine bound
    // start of execution of Implementation class
    [dde.DrillDownEngine] Entered DrillDownEngine.executeTask [dde.OrderEntryList] Entered execute() in OrderEntryList
    [dde.OrderEntryList] Have a new thread LIST: Order: 084146Qty: 1.0
    // from within the thread as it is run by the server
    [dde.OrderEntryList] Entered run() for thread in OrderEntryList
    [dde.OrderEntryList] Value of currentThread = LIST: Order: 084146Qty: 1.0
    [dde.OrderEntryList] About to look for sales report with report name = Cost Of S
    ales
    [dde.OrderEntryList] About to execute SalesDrilldownRun
    [dde.SalesDrilldownRun] Entered DrilldownRun with runType of Cost of Sales
    // just prior to first attemp to get a connection
    [dde.SalesDrilldownRun] Run initialization prior to Table Instantiation
    [dde.SalesDrilldownRun] Drilldown Run terminated
    Error: null
    Stack:
    java.lang.NullPointerException
    at oracle.jdbc.ttc7.O3log.marshal(O3log.java:612)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:258)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:362)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:536)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    // from here down the stack is in my application code
    at pool.JDBCConnectionPool.getConnection(JDBCConnectionPool.java:132)
    at data.DbTbl.<init>(DbTbl.java:92)
    at ifsData.IfsDetTbl.<init>(IfsDetTbl.java:45)
    at dde.DrilldownRun.init(DrilldownRun.java:121)
    at dde.DrilldownRun.<init>(DrilldownRun.java:103)
    at dde.SalesDrilldownRun.<init>(SalesDrilldownRun.java:36)
    at dde.OrderEntryList.run(OrderEntryList.java:131)
    None of the 3 arguments passed in the getConnection method is null.
    Couldn't find anything about this type of error in Java or Oracle documentation.
    Do you think this is a JDBC problem or an RMI problem?
    Am now trying to make a connection using oci instead of thin client, but am now encountering security permissions problems - which I will ask about in another post just to try to keep things simpler.
    Thanks in advance for any suggestions.

    It turns out that there is a problem with the Oracle 9.2 dirvers for jdbc. If anyone experiences similar problems, roll back to version 9.0.1
    I was using jdk1.4 and Oracle 9i.
    Thanks

  • Error connecting GSM Modem with system using java (error no is 20)

    hi!
    I'm new to jms, i want to send sms using GSM Modem.I used sony Ericsion mobile. I got one sample application , when i run it thows the following exceptions.
    Feb 27, 2008 4:31:27 PM org.jsmsengine.CSerialDriver open
    INFO: Connecting...
    Feb 27, 2008 4:31:28 PM org.jsmsengine.CSerialDriver close
    INFO: Disconnecting...
    Connection to mobile failed, error: -20
    i used the following code
    import org.jsmsengine.*;
    class SendMessage
    public static void main(String[] args)
    int status;
    // Create jSMSEngine service.
    CService srv = new CService("COM6",9600);
    System.out.println();
    System.out.println("SendMessage(): sample application.");
    System.out.println(" Using " + srv._name + " " + srv._version);
    System.out.println();
    try
    // Initialize service.
    srv.initialize();
    // Set the cache directory.
    srv.setCacheDir(".");
    // Set the phonebook.
    // srv.setPhoneBook("../misc/phonebook.xml");
    // Connect to GSM device.
    status = srv.connect();
    // Did we connect ok?
    if (status == CService.ERR_OK)
    // Set the operation mode to PDU - default is ASCII.
    srv.setOperationMode(CService.MODE_PDU);
    // Set the SMSC number (set to default).
    srv.setSmscNumber("");
    // Print out GSM device info...
    System.out.println("Mobile Device Information: ");
    System.out.println(" Manufacturer : " + srv.getDeviceInfo().getManufacturer());
    System.out.println(" Model : " + srv.getDeviceInfo().getModel());
    System.out.println(" Serial No : " + srv.getDeviceInfo().getSerialNo());
    System.out.println(" IMSI : " + srv.getDeviceInfo().getImsi());
    System.out.println(" S/W Version : " + srv.getDeviceInfo().getSwVersion());
    System.out.println(" Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
    System.out.println(" Signal Level : " + srv.getDeviceInfo().getSignalLevel() + "%");
    // Create a COutgoingMessage object and dispatch it.
    // *** Please update the phone number with one of your choice ***
    COutgoingMessage msg = new COutgoingMessage("+919830645175", "Ripon");
    // Character set is 7bit by default - lets make it UNICODE :)
    // We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    // this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    // Disconnect from GSM device.
    srv.disconnect();
    else System.out.println("Connection to mobile failed, error: " + status);
    catch (Exception e)
    e.printStackTrace();
    System.exit(0);
    In my jre path i added win32.dll to use comm.jar
    please help me

    Thanks so much; you just helped me fit together the last few pieces of this puzzle. I did a little more digging and found a [url http://support.webecs.com/KB/a375/how-do-i-configure-sql-server-express-to-allow-remote.aspx]knowledge base article that explains how to set a static TCP port. According to the article, SQL Server 2005 selects a random dynamic port on installation, and my experience bears out the fact that it does survive server reboots.
    TheAvalanche wrote:
    If you don't want that, make sure the SQL Server Browser service is running and connect to your SQL Server using the instance name, and not use a port in the JDBC-url.
    BTW: I am not sure if jtds supports usage of the browser service, the Microsoft SQL Server JDBC drivers since version 1.2 (I think) do.It would appear that jTDS doesn't support the browser service, at least not by default, because I tried using the instance name rather than the port to connect (along with just about every other possible combination) and it didn't work. In my opinion, using a static port makes a lot more sense anyway, since you don't have to rely on the browser service, and you'll always know what port to set in your firewall exceptions. (For anyone out there wondering about firewall exceptions, in addition to the static port for the server, an exception has to be created for the browser on UDP 1434 if you're going to use it, which most programs apparently do.)
    Once again, thanks for all the good information!
    Edited by: javadecaf on May 27, 2011 8:03 AM
    Insert link button on toolbar generated link syntax that doesn't work: text. What's up with that?

  • Server/Client program to work with a handheld windows device and a laptop

    Hi, I am trying to develop a program for work. I basically need to test the life of a handheld device by essentially having the device "ping" a server. I need the device (Client) to make a connection to the server, and if it works, I want it to write out to the server the time. Every thing that I have tried has failed, so far. I have experience with Java, but not a whole lot in Networking. I am still a student (and a lowly one at that). Can anyone help me with this? Should I use an applet? A socket? I'm not even really sure how to go about doing this.
    Thanks,
    Shawna

    Okay, the device is a scanning device used in warehouses. It has Windows CE 5. I'm trying to get in contact with the person that manages these handhelds to make sure that they support Java. Assuming they do, however, What do you believe is my best option? .Net was the preferred language, but I was having too much trouble trying to get Visual Studio on to my laptop computer, which I use for work, and I also don't have any experience using .Net. I tried creating Sockets, but I don't think I did it correctly. The only thing I have to go off of is an Introduction to Java book that I use for school, and the examples don't really help me for this situation. If I create sockets, do I need the client to have buttons to initiate the connection? How would I go about using a URL? I just need the server text pane to update every second letting me know that the handheld was able to connect to it, indicating that the battery hasn't died, yet. Later on, I would like to add some other information, but right now, I just need it to send that information. I can mess around with any modifications later on. Thanks for your help!

  • Web server refuses connections - Service exited with abnormal code: 1

    I have upgraded to yosemite 10.10.1, my web server refuses to allow connections and I get - Service exited with abnormal code: 1, in the log file. I have reloaded server software and I have rebooted and power restarted my Mac Mini many times

    Fixed this stupid iTunes issue with the following procedure. YMMV
    - Open the Activity Monitor (LaunchPad, Other, Activity Monitor)
    - Force Quit the iTunes Helper app (I had multiply ones running, so quit them all)
    - Install the iTunes .pkg from the Apple website.
    - Force Quit the iTunes Helper again after install
    - Shut Down the MacBook
    - Start again (watch for the progress bar, that’s the fix for permissions working)
    - Start iTunes
    You mileage may vary, but it worked for me.

  • Clients connect to wifi with certificate that expires every month - correct way to handle expired certificates?

    Hi all
    I'm sorry if this is the wrong forum to ask this question. Also my knowledge in this area is somewhat limited, which I why I need your help :-)
    We use wireless networks primarily in my company for all our clients and use a certificate to authenticate to the network. This certificate expires after 1 month and we automatically renew them 1 week before expiry. Relatively often we have users that
    are not connected to the network for a few weeks or more and then the certificate expires before being renewed. Then we have to connect them to the wired network to get the certificate updated, so they can connect to the wireless network again.
    What is the correct approach to solve this issue? We feel extending the life of the certificate would be a too big security compromise. Is there some way you could automatically allow an expired certificate briefly with the sole purpose of renewing the certificate?
    Or how would you normally resolve this issue?
    Thanks for any help/knowledge you can provide :-)

    > Setting the validity period that high, means that the certificate could be cracked before expiry.
    then you should be scary of CAs which validity is 10 or more years. And they use the same cryptography as end-entity certificates (key length and signature algorithms). It is a paranoya. Just make sure if client certificates use at least 2048 bit long
    keys and use SHA1 (or better) signature algorithm. In this case there is a little chance that certificate will be successfully cracked in 2 years.
    If there is an evidence (or indications) of client private key compromise -- immediately revoke the certificate and publish new CRL ASAP. You cannot protect clients from key compromise by using short-living certificates, because key compromise is ususally
    achieved by gaining a control over the private key (malware on client computer). Therefore, there is nothing wrong in issuing client certificates with 1 or 2 year validity.
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • Oracle server - client connection question

    This is my problem:
    Server A : oracle server (behind the firewall)
    Server B: the bridge server
    Server C: my application is on who need to connect to the database on A
    C can not connect to A directly. But it can connect to B. What are my options? If I install an oracle client on B, then can I connect to the client who will connect to the db server on A? Do I need to install a client on C as well? does it work?
    Thanks,
    Chau

    user626162 wrote:
    So I need to install the oracle client on C and the Oracle Connection Manager on server B? Would you point me to the document on how to do this?Correct. A good place to start is probably the [Configuring and Administering Oracle Connection Manager|http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/cman.htm#NETAG011] chapter in the Net Services Administrator's Guide.
    Justin

  • Add a new employee - Connection is busy with results for another command

    Hi all,
    I try to add a new employee in my SAP Business One system, but I get an error message like that : [Microsoft][SQL Native Client] Connection is busy with results for another command * (HEM5) (HEM5)
    So I try to see if I get the same message when I update an employee, and I don't get this message.
    Do you have an idea, why I get this error message when I add a new employee ?
    Message was edited by:
            Marc Riar

    Hello,
    I am afraid there maybe two users / workstations using the same user code and one of them is creating (add) and other is update. Try to ask the users/wrokstations.
    Another way out is try to run this query :
    select * from HEM5
    Rgds,
    JM
    http://groups.yahoo.com/group/SBO_Knowledge_Village
    [email protected]

  • Remote access VPN clients connected to Internet from VPN

    Greetings,
    I need to let remote VPN clients to connect to Internet from the same ASA VPN server
    " client connects to ASA through VPN tunnel from outside interface then access Internet from the same ASA from outside interface again
    thanks

    you'll need to configure 'same-security-traffic permit intra-interface' on the ASA .
    Also, need to setup the corresponding nat statements for your clients pool range.
    i.e.
    global (outside) 1 interface
    nat (outside) 1 access-list anyconnectacl
    where anyconnectacl is the pool for your clients:
    access-list anyconnectacl permit ip 172.16.1.0 255.255.255.0 any

  • Error:java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection

    Hi,
    while running jsp page i m getting error as follows:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt..
    what is this error...
    what should i do to solve this problem...
    plz let me know what is this error & how to solve this...
    Thanx in advance....

    Why don't you do a search in google with the excpetion?
    If you cannot then try this link
    [http://www.idssoftware.com/faq-e.html]

  • Regarding mountain lion server: clients experience intermittent service connections. the server system log has the following error- Client handshake failed (6):113: Server not accepting client connections (any ideas???)

    regarding mountain lion server: clients experience intermittent service connections. the server system log has the following error- Client handshake failed (6):113: Server not accepting client connections. any suggestions would be greatly appreciated - thank you

    Hi Jason
    I was getting the same behavior after Apple support had me delete some plist files to get Airplay going. I was also getting the following error:
    the error occurred while processing a command of type 'writesettings' in the plug-in 'server vpn'
    I went into ~/Library/Preferences/ and /Library/Preferences/ and deleted every plist contating the word server. I had to re-set up my server (meaning walk through some intial steps) but all of my settings were still there after that and everything started working again.
    Just a thought, obviously try at your own risk but it worked for me.
    Kellen

  • Problem with client connect to server

    Hello
    I'm having problems trying to connect a Windows NT client to an Oracle 8.1.5.0.2 server running on
    Redhat linux 6.1
    I've setup the listener, which seems to allow a sqlplus client running on the server to connect to the
    database through the listener.
    <snip>
    $ sqlplus scott/tiger@8idb
    SQL*Plus: Release 8.1.5.0.0 - Production on Mon Apr 10 16:44:57 2000
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Release 8.1.5.0.2 - Production
    With the Java option
    PL/SQL Release 8.1.5.0.0 - Production
    SQL>
    </snip>
    Listener.log
    <snip>
    10-APR-00 16:44:57 *
    (CONNECT_DATA=(SERVICE_NAME=8idb)(CID=(PROGRAM=)(HOST=dbserver)(USER=oracle))) *
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.10)(PORT=2816)) * establish * 8idb * 0
    <snip>
    But when I try to test the connection from the NT client using "Net8 Easy Config"
    <snip>
    Initializing first test to use userid: scott, password: tiger
    Attempting to connect using userid: scott
    The test did not succeed.
    ORA-12571: TNS:packet writer failure
    There may be an error in the fields entered,
    or the server may not be ready for a connection.
    </snip>
    Even though I have the following entry in the listener.log.
    <snip>
    10-APR-00 16:58:37* (CONNECT_DATA=(SERVICE_NAME=8idb)(CID=(PROGRAM=C:\Program
    Files\Oracle\jre\1.1.7\bin\jrew.exe)(HOST=NTclient)(USER=NTuser))) *
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.20)(PORT=2465)) * establish * 8idb * 0
    </snip>
    Though sqlnet.log is logging the follow
    <snip>
    Fatal NI connect error 12537, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
    TNS for Linux: Version 8.1.5.0.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 8.1.5.0.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 8.1.5.0.0 - Production
    Time: 10-APR-00 16:58:37
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12537
    TNS-12537: TNS:connection closed
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    </snip>
    The listener.ora is as follows
    <snip>
    listener=
    (description=
    (address_list=
    (address=(protocol=tcp)(host=10.0.0.10)(port=1521))
    sid_list_listener=(sid_list=
    (sid_desc=
    (global_dbname=8idb)
    (sid_name=8idb)
    (oracle_home=/home/oracle/product/8.1.5)
    </snip>
    Clients Tnsnames.ora file
    <snip>
    # Generated by Oracle Net8 Assistant
    8IDB=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(PORT = 1521)(HOST = 10.0.0.10))
    (CONNECT_DATA =
    (SERVICE_NAME = 8idb)
    </snip>
    Any Help would be greatly appreciated
    Thanks
    Regards
    Tom
    null

    Hi Hasan,
    Firstly, please make sure that the software is compatible with the Windows Server 2012. Have you updated this software to the latest version?
    Secondly, please check if the software is listening on the proper port. To verify this, please use the command below:
    netstat -an
    Also, please disable the firewall and try again.
    Best regards.
    Steven Lee
    TechNet Community Support

Maybe you are looking for