String manipulation help please

I need to write a Java program that will find the sum of the digits in a 7-digit integer. The input has to be taken by JOptionPane in 1 single integer variable.
e.g if the input value was 4209632, my output should look like:
Value = 4209632
and the sum of each digits in 1 variable.
Sum of digits = 26
Please help. I need to use modulus function to do this but i dont know how to get all digits individually out of the single variable and add them together.

Oh, i didn't notice that you want to use the modulus function...it's not necessary, but if you have to use it for some reason, than use the Integer class to help.
Use the static methord parseInt(String s) of the Integer class to get an int value of a string. parseInt return an int with the integer value of the string s.
Here is the syntax:
int intValue = Integer.parseInt(numericString);

Similar Messages

  • String Methods Help Please~```

    Hi, I have a question that goes like this:
    Write a Java class called KillWhiteSpace, which defines a main() method that asks the user to enter a String s, and displays a new String consisting of all the characters in s, but with the leading and trailing white space removed. In addition, every sequence of spaces within the String is reduced to one space only. You MUST NOT use any methods defined in the String class other than charAt() and length().
    So far, I wrote
    import java.until.Scanner;
    public class KillWhiteSpace{
    public static void main(String args[]){
    System.out.println("Please enter a bunch of texts");
    Scanner keyboard=new Scanner(System.in);
    String w=keyboard.nextLine();
    Now I know what charAt() and length() does but I don't know how to use it to satisfy the requirements above. Any helps?
    Edited by: Lillian_Cao on Oct 20, 2008 8:17 PM

    I don't want to give you too much since this is clearly an educational exercise, but to get you going, it looks like you you want to iterate over all the characters in the string, analyze each one, keeping track of previous characters and construct your new string as you go.
    Good luck and have fun.

  • [JS - CS3]  Can't REPLACE A with B within a string? Help Please...

    Hello Experts,
    First off - I'm a newbee to all this JS and especially with CS3.
    I have a string: '
    b myDocumentName
    which can have it's value as: '
    b 00000en_ Generator WX/WY
    Problem is, backshlashes ( / )are a bad thing for me...
    b Question:
    How can I do a 'replace' operation to replace the '/' from the string with a '_'?
    I have at the moment:
    > var myDocSaveName = oneResult[3]+oneResult[4]+oneResult[5];
    > myDocSaveName.replace(what "/", with "");
    > myDoc.save ("C:/DATA/"+myDocSaveName, undefined, undefined, true)
    I get an error Nr. 25... Offending text:"/"
    What am I doing wrong?

    'what' and 'with' are the names of those arguments. They should not be included in the statement:
    myDocSaveName.replace("/", "");
    But that still won't work because replace doesn't operate on a string in situ, it returns the modified string. So:
    myDocSaveName = myDocSaveName.replace("/", "");
    This too has its limitations. It'll change only the first instance of "/", not all of them. To change all of them, you need to restate the 'what' as a RegExp:
    myDocSaveName = myDocSaveName.replace(/\//g, "_");
    A RegExp literal is delimited by the "/" character, so to have it, alone, as the character to be sought you must use the backslash to escape the character. Then, to indicate you want the replace to happen globally within the string, you add the 'g' after the RegExp.
    Dave

  • Cannot publish from iWeb to .Mac, Help please!

    I am trying to publish to my site from here in Australia. I was able to publish in the country at the beggining of the trip, but can not now. I get the message "Publish Error - an error occurred while publishing file /Web/Site/iWeb/Site/Blog". I had updated two blog entries and changed the date on an entry. Since then in trying to fix the issue I deleted both of those entries. I have been through .mac support troubleshooting steps to ensure it is not a network error. I have been able to publish to a folder, but when I try to copy the Blog folder from that folder to my iDisk I get "The Finder cannont complete the operation because some data in "" could not be read or written (Error code -36)". Since then they asked that I try to publish from a trial .Mac account or from a new OS X user account on my machine. Both of those attempts failed as well, which they say indicates it's not a .mac account or OS X user set up issue. They asked that I put a copy of my domain file out in the public drive for them to look at, but when I try to do that it goes through and does the copying and then freezes at "Copying Domain.zip to Public, Copied 599.5MB of 599.5MB (Closing file...) - Please wait". Then I get the same error code -36 and am disconnected from iweb. Can anyone out there help please?
    Thanks!

    Thanks and Merry Christmas to you too! I have experienced both modem/network problems and was unable to publish in Tahiti and Cook Islands because of that and now these problems which have nothing to do with network it seems - so yours may or may not be network related. I was able to cheat and copied my "Site" folder from my hard drive to my iDisk rather then publishing. I can't remember if you've tried this or not (read a lot of strings today) but you can publish to a folder and then copy that folder to your iDisk at /Web/Sites/iWeb/Site as "Site" after first renaming the one that is out there now. Let me know if you have any questions on how to do it. It sounds like you are traveling like we are and anxious to communicate with friends and family back home. When you are bored, our site is web.mac.com/baganworldtour.
    At least we now have our first update out there in two weeks. But it took almost two hours to copy the folder and this won't work forever. Hopefully we, whether by the discussion room or .mac support next week, will be able to fix the problem for real.
    Thanks. Good Luck. Merry Christmas

  • Help Please I am new to programming Java1.3.1

    I am having the following problem with the appletviewer for the following code and screen print of error message. I would greatly aperciate any help i can get.Thanks Adera...
    my e-mail address is [email protected]
    Sorry the screen print will not copy into here so i will type it out.
    java.lang.ClassCastException:Calculator
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
    at sun.applet.AppletPanel.run(AppletPanel.java:293)
    at java.lang.Thread.run(Thread.java:484)
    Here is my code..
    //Adera Currie Student Id# 31248
    //Course Title: Internet Programming
    //Due Date: August 13th, 2002
    //calculator.Java
    //Hilltop Library Calculator Java Project
    //import javax.swing.*;
    //import javax.swing.JOptionPane;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    //import java.awt.Container;
    public class Calculator extends JFrame implements ActionListener
    int chioce, i;
    //integer variable to hold stringnums in
    double calcone, calctwo;
    //variables for mouse clicks
    double numone, numtwo, total, holdnum, decimalCount;
    String calctot, calctot1, calctot2, negnum, holdnumonetwo;
    //declare text area
    TextField text1;
    //declare button array
    Button calcbutton[], clear;
    //string array to convert textfield values, string manipulation
    String textfield;
    String bpressedEvaluated;
    //declare panel object
    Panel bpanel,text2,Cpanel;
    //declare variable arrays to hold the name and numbers of the buttons that
    //will be created on the applet
    String bnames[] = {"7","8","9","/","Sin","4","5","6",
    "*","Cos","1","2","3","-","Tan",
    "0",".","=","+","Neg"};
    //arrays for holding the items to check for when the action click event is called
    String holdOperatorVisual[] = {"/","*","-","=","+"};
    String holdNumNames[] = {"0","1","2","3","4","5","6","7","8","9",".","Neg"};
    String holdSciFiVisuals[] = {"Sin","Cos","Tan"};
    //declare boolean values to keep track of numbers and operators either
    //in use or what should be terminated
    boolean operators,operators2;
    boolean firstnum;
    boolean secondnum;
    boolean numberpressed,decimalPressed,negPressed;
    public void init()
    //create the panels to hold applet objects
    bpanel = new Panel();
    text2 = new Panel();
    Cpanel = new Panel();
    //set up the applet layout for the buttons and such
    //BorderLayout layout = new BorderLayout(5,5);
    setLayout(new BorderLayout(5,5));
    //create a container object
    //Container c = this.getContentPane();
    //c.setLayout(new FlowLayout());
    //this.setLayout( new FlowLayout() );
    //set up the panels with layout manager
    bpanel.setLayout( new GridLayout (4,5));
    text2.setLayout(new GridLayout(1,1));
    Cpanel.setLayout(new GridLayout(1,1));
    //create my text field to hold the display for the user
    text1 = new TextField(20);
    //make it so the user cannot enter text from the keyboard
    text1.setEditable(false);
    text1.setBackground(Color.cyan);
    text2.add(text1);
    //add teh panel to the container
    add(text2, BorderLayout.NORTH);
    //instantiate button object
    calcbutton = new Button[bnames.length];
         for ( int i = 0; i < bnames.length; i++ )
    calcbutton[i] = new Button(bnames);
    calcbutton[i].addActionListener(this);
    //(new ActionListener()
         calcbutton[i].setBackground(Color.cyan);
    //add the new button from teh array into the panel for buttons
    bpanel.add(calcbutton[i]);
    //add the button panel to the container object
    add(bpanel, BorderLayout.CENTER);
    //create the clear button to be displayed at the bottom of the screen
    clear = new Button("Clear");
    //add the action listener for this object
    clear.addActionListener(this);
    clear.setBackground(Color.cyan);
    //add the clear button to the panel for the clear button
    Cpanel.add(clear);
    //add the clear button panel to the container
    add(Cpanel, BorderLayout.SOUTH);
         public void actionPerformed(ActionEvent e)
         String bpressed = (e.getActionCommand());
         checkButtonPressed(bpressed);
         if(bpressedEvaluated=="notFound")
    //JOptionPane.showMessageDialog(null, "Invalid button selection!",
    // "System Message", JOptionPane.INFORMATION_MESSAGE);
    public void checkButtonPressed(String valueIn)
              String me;
              String takeValueIn = valueIn;
              double tot=0;
              String tat;
              for (i=0;i<holdNumNames.length;i++)
         if(takeValueIn == holdNumNames[i])
         //if there is a second operator in memory, then clear the contents of the
         //text box and start over adding in new numbers from the user
         if (takeValueIn == ".")
         if (decimalPressed == true)
    //JOptionPane.showMessageDialog(null, "This function cannot be used with any other operatorsdecimalPressed== " + decimalPressed,"System Message.", JOptionPane.INFORMATION_MESSAGE);
    break;
    else
    decimalPressed = true;
    if(takeValueIn == "Neg")
         if(numberpressed == false && negPressed == false)
    negPressed = true;
    takeValueIn = "-";
    else
    break;
    if (operators2 == true)
         String nothing;
         nothing = "";
         text1.setText(nothing);
         operators2 = false;
    //if there is no data in the text box, then set this number as the new text
         if (text1.getText().length() == 0)
    text1.setText(takeValueIn);
    //if there is text contained in the text field, then append this number to
    //to the text field and set the new text view for the user
    else if (text1.getText().length() != 0)
    holdnumonetwo = text1.getText();
    holdnumonetwo += takeValueIn;
    text1.setText(holdnumonetwo);
    numberpressed = true;
    bpressedEvaluated = "Found";
    break;
    for (i=0;i<holdOperatorVisual.length;i++)
    if(takeValueIn == holdOperatorVisual[i])
    if (takeValueIn == "=")
    if (operators == true)
    //convert text to number two for calculation
    numtwo = Double.parseDouble(text1.getText());
    //do the math
    if(calctot1=="-")
    tot = numone-numtwo;
    else if(calctot1=="+")
    tot = numone+numtwo;
    else if(calctot1=="/")
    tot = numone/numtwo;
    else if(calctot1=="*")
    tot = numone*numtwo;
    //convert total to string
    tat = String.valueOf(tot);
    //set the visual value to the screen for the user
    text1.setText(tat);
    //update the new number one to be used in the next calculation
    numone = tot;
    decimalPressed = false;
    negPressed = false;
    numberpressed = false;
    break;
    else
    if (operators != true && text1.getText().length()!= 0)
    calctot1 = takeValueIn;
    numone = Double.parseDouble(text1.getText());
    String t;
    t = "";
    text1.setText(t);
    firstnum = true;
    operators = true;                                    decimalPressed = false;
    negPressed = false;                               numberpressed = false;                                    break;
    else if (operators == true && text1.getText().length()!= 0)
    {                                                                                                                                                     calctot2 = takeValueIn;                                                                                                                                                     numtwo = Double.parseDouble(text1.getText());                                                                                                                                                     //do the math                                                                                                                                                if(calctot1=="-")                                                                                                                                                       {                                                                                                                                                     tot = numone-numtwo;                                                                                                                                                    }                                    else if(calctot1=="+")                                    {                                                                                                                                                        tot = numone+numtwo;                                                                                                                                                        }                                    else if(calctot1=="/")                                    {                                                                                                                                                            tot = numone/numtwo;                                                                                                                                                            }                                    else if(calctot1=="*")                                    {                                                                                                                                                                tot = numone*numtwo;                                                                                                                                                               }                                    //convert total to string                                    tat = String.valueOf(tot);                                    //set the visual value to the screen for the user                                    text1.setText(tat);                               //update the new number one to be used in the next calculation                               numone = tot;                               operators2 = true;                               decimalPressed = false;                               negPressed = false;                               }                               calctot1 = calctot2;                               //set the flags                               firstnum = true;                               decimalPressed = false;                               negPressed = false;                               numberpressed = false;                               bpressedEvaluated = "found";                               break;                               }                          }                     }                          for(i=0;i<holdSciFiVisuals.length;i++)                     {                                                                                                                                                         if(takeValueIn == holdSciFiVisuals[i])                     {                                                                                                                                                        if (text1.getText().length()!= 0 && operators != true)                                                                                                                                                            {                                                                                                                                                               double s=0;                                                                                                                                                                numone = Double.parseDouble(text1.getText());                                                                                                                                                            if(takeValueIn == "Sin")                                                                                                                                                                 s = Math.sin(numone);                                                                                                                                                            if(takeValueIn == "Cos")                                                                                                                                                                  s = Math.cos(numone);                                                                                                                                                            if(takeValueIn == "Tan")                                                                                                                                                                  s = Math.tan(numone);                                                                                                                                                                  firstnum = true;                                                                                                                                                                  String ch;                                                                                                                                                                  ch = String.valueOf(s);                                                                                                                                                                  text1.setText(ch);                                                                                                                                                                  operators2 = true;                                                                                                                                                            }                     else if (operators == true)                     {                                                                                                                                                                 //JOptionPane.showMessageDialog(null, "This function cannot be used with any other operators",                                                                                                                                                          //"System Message", JOptionPane.INFORMATION_MESSAGE);                                                                                                                                                                     break;                                                                                                                                                               }                          bpressedEvaluated = "found";                          decimalPressed = false;                          negPressed = false;                          numberpressed = false;                     }                }                          bpressedEvaluated = "notFound";                     if(takeValueIn == "Clear")
    //reset all the values that are either presently in use, or that will be the
    //first values to be used after the text field is cleared, to start from square one
    numone = 0;
    numtwo = 0;
    //set the flags
    firstnum = false;
    secondnum = false;
    operators = false;
    operators2 = false;
    decimalPressed = false;
    negPressed = false;
    numberpressed = false;
    //declare string to help clear the text field
    String cn;
    cn = "";
    //set the text field to nothing, an empty string
    text1.setText(cn);
         //execute application
         public static void main (String args[])
         Calculator application = new Calculator();
    //     addMouseListener(this);
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    //Adera Currie Student Id# 31248
    //Course Title: Internet Programming
    //Due Date: August 13th, 2002
    //calculator.Java
    //Hilltop Library Calculator Java Project
    //import javax.swing.*;
    //import javax.swing.JOptionPane;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    //import java.awt.Container;
    public class Calculator extends JFrame implements ActionListener
         int chioce, i;
         //integer variable to hold stringnums in
         double calcone, calctwo;
         //variables for mouse clicks
         double numone, numtwo, total, holdnum, decimalCount;
         String calctot, calctot1, calctot2, negnum, holdnumonetwo;
         //declare text area
         TextField text1;
         //declare button array
         Button calcbutton[], clear;
         //string array to convert textfield values, string manipulation
         String textfield;
         String bpressedEvaluated;
         //declare panel object
         Panel bpanel,text2,Cpanel;
         //declare variable arrays to hold the name and numbers of the buttons that
         //will be created on the applet
         String bnames[] = {"7","8","9","/","Sin","4","5","6",
    "*","Cos","1","2","3","-","Tan",
    "0",".","=","+","Neg"};
         //arrays for holding the items to check for when the action click event is called
         String holdOperatorVisual[] = {"/","*","-","=","+"};
         String holdNumNames[] = {"0","1","2","3","4","5","6","7","8","9",".","Neg"};
         String holdSciFiVisuals[] = {"Sin","Cos","Tan"};
         //declare boolean values to keep track of numbers and operators either
         //in use or what should be terminated
         boolean operators,operators2;
         boolean firstnum;
         boolean secondnum;
         boolean numberpressed,decimalPressed,negPressed;
         public Calculator()
              //create the panels to hold applet objects
              bpanel = new Panel();
              text2 = new Panel();
              Cpanel = new Panel();
              //set up the applet layout for the buttons and such
              //BorderLayout layout = new BorderLayout(5,5);
              getContentPane().setLayout(new BorderLayout(5,5));
              //create a container object
              //Container c = this.getContentPane();
              //c.setLayout(new FlowLayout());
              //this.setLayout( new FlowLayout() );
              //set up the panels with layout manager
              bpanel.setLayout( new GridLayout (4,5));
              text2.setLayout(new GridLayout(1,1));
              Cpanel.setLayout(new GridLayout(1,1));
              //create my text field to hold the display for the user
              text1 = new TextField(20);
              //make it so the user cannot enter text from the keyboard
              text1.setEditable(false);
              text1.setBackground(Color.cyan);
              text2.add(text1);
              //add teh panel to the container
              getContentPane().add(text2, BorderLayout.NORTH);
              //instantiate button object
              calcbutton = new Button[bnames.length];
              for ( int i = 0; i < bnames.length; i++ )
                   calcbutton[0] = new Button(bnames[0]);
                   calcbutton[0].addActionListener(this);
                   //(new ActionListener()
                   calcbutton[0].setBackground(Color.cyan);
                   //add the new button from teh array into the panel for buttons
                   bpanel.add(calcbutton[0]);
              //add the button panel to the container object
              getContentPane().add(bpanel, BorderLayout.CENTER);
              //create the clear button to be displayed at the bottom of the screen
              clear = new Button("Clear");
              //add the action listener for this object
              clear.addActionListener(this);
              clear.setBackground(Color.cyan);
              //add the clear button to the panel for the clear button
              Cpanel.add(clear);
              //add the clear button panel to the container
              getContentPane().add(Cpanel, BorderLayout.SOUTH);
              pack();
              show();
         public void actionPerformed(ActionEvent e)
              String bpressed = (e.getActionCommand());
              checkButtonPressed(bpressed);
              if(bpressedEvaluated=="notFound")
                   //JOptionPane.showMessageDialog(null, "Invalid button selection!",
                   // "System Message", JOptionPane.INFORMATION_MESSAGE);
         public void checkButtonPressed(String valueIn)
              String me;
              String takeValueIn = valueIn;
              double tot=0;
              String tat;
              for (i=0;i<holdNumNames.length;i++)
                   if(holdNumNames.equals(takeValueIn + ""))
                        //if there is a second operator in memory, then clear the contents of the
                        //text box and start over adding in new numbers from the user
                        if(takeValueIn == ".")
                             if (decimalPressed == true)
                                  //JOptionPane.showMessageDialog(null, "This function cannot be used with any other operatorsdecimalPressed== " + decimalPressed,"System Message.", JOptionPane.INFORMATION_MESSAGE);
                                  break;
                             else
                                  decimalPressed = true;
                        if(takeValueIn == "Neg")
                             if(numberpressed == false && negPressed == false)
                                  negPressed = true;
                                  takeValueIn = "-";
                             else
                                  break;
                        if (operators2 == true)
                             String nothing;
                             nothing = "";
                             text1.setText(nothing);
                             operators2 = false;
                        //if there is no data in the text box, then set this number as the new text
                        if(text1.getText().length() == 0)
                             text1.setText(takeValueIn);
                        //if there is text contained in the text field, then append this number to
                        //to the text field and set the new text view for the user
                        else if (text1.getText().length() != 0)
                             holdnumonetwo = text1.getText();
                             holdnumonetwo += takeValueIn;
                             text1.setText(holdnumonetwo);
                        numberpressed = true;
                        bpressedEvaluated = "Found";
                        break;
              for (i=0;i<holdOperatorVisual.length;i++)
                   if(holdOperatorVisual.equals(takeValueIn+""))
                        if (takeValueIn == "=")
                             if (operators == true)
                                  //convert text to number two for calculation
                                  numtwo = Double.parseDouble(text1.getText());
                                  //do the math
                                  if(calctot1=="-")
                                       tot = numone-numtwo;
                                  else if(calctot1=="+")
                                       tot = numone+numtwo;
                                  else if(calctot1=="/")
                                       tot = numone/numtwo;
                                  else if(calctot1=="*")
                                       tot = numone*numtwo;
                                  //convert total to string
                                  tat = String.valueOf(tot);
                                  //set the visual value to the screen for the user
                                  text1.setText(tat);
                                  //update the new number one to be used in the next calculation
                                  numone = tot;
                                  decimalPressed = false;
                                  negPressed = false;
                                  numberpressed = false;
                             break;
                        else
                             if (operators != true && text1.getText().length()!= 0)
                                  calctot1 = takeValueIn;
                                  numone = Double.parseDouble(text1.getText());
                                  String t;
                                  t = "";
                                  text1.setText(t);
                                  firstnum = true;
                                  operators = true; decimalPressed = false;
                                  negPressed = false; numberpressed = false; break;
                             else if (operators == true && text1.getText().length()!= 0)
                             { calctot2 = takeValueIn; numtwo = Double.parseDouble(text1.getText()); //do the math if(calctot1=="-") { tot = numone-numtwo; } else if(calctot1=="+") { tot = numone+numtwo; } else if(calctot1=="/") { tot = numone/numtwo; } else if(calctot1=="*") { tot = numone*numtwo; } //convert total to string tat = String.valueOf(tot); //set the visual value to the screen for the user text1.setText(tat); //update the new number one to be used in the next calculation numone = tot; operators2 = true; decimalPressed = false; negPressed = false; } calctot1 = calctot2; //set the flags firstnum = true; decimalPressed = false; negPressed = false; numberpressed = false; bpressedEvaluated = "found"; break; } } } for(i=0;i<holdSciFiVisuals.length;i++) { if(takeValueIn == holdSciFiVisuals) { if (text1.getText().length()!= 0 && operators != true) { double s=0; numone = Double.parseDouble(text1.getText()); if(takeValueIn == "Sin") s = Math.sin(numone); if(takeValueIn == "Cos") s = Math.cos(numone); if(takeValueIn == "Tan") s = Math.tan(numone); firstnum = true; String ch; ch = String.valueOf(s); text1.setText(ch); operators2 = true; } else if (operators == true) { //JOptionPane.showMessageDialog(null, "This function cannot be used with any other operators", //"System Message", JOptionPane.INFORMATION_MESSAGE); break; } bpressedEvaluated = "found"; decimalPressed = false; negPressed = false; numberpressed = false; } } bpressedEvaluated = "notFound"; if(takeValueIn == "Clear")
                                       //reset all the values that are either presently in use, or that will be the
                                       //first values to be used after the text field is cleared, to start from square one
                                       numone = 0;
                                       numtwo = 0;
                                       //set the flags
                                       firstnum = false;
                                       secondnum = false;
                                       operators = false;
                                       operators2 = false;
                                       decimalPressed = false;
                                       negPressed = false;
                                       numberpressed = false;
                                       //declare string to help clear the text field
                                       String cn;
                                       cn = "";
                                       //set the text field to nothing, an empty string
                                       text1.setText(cn);
         //execute application
         public static void main (String args[])
              Calculator application = new Calculator();
              // addMouseListener(this);
              application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

  • String Manipulation in BI Publisher Report Paramater

    Hi,
    My Problem is that I am not able to do string manipulation on BI Publisher report Prameters.
    Actually I want to Show Deptno-Dname in Menu(LOV).and when I select Certain combination like '10-Accounting',and while passing the parameter:Dept I wanted to Cut the department no(10) using string manipulation functions provided by oracle in Data Model(Query) in where clause like (where deptno=to_number(substr(:Dept,1,2)).
    This query is working fine in other application like TOAD,But not giving results in BI Publisher Report.
    It's also not giving any error while saving or running the report.
    Please suggest any solution.

    even I tried the following query in data model..
    select DISTINCT EMP.EMPNO as EMPNO,
    EMP.ENAME as ENAME,
    EMP.JOB as JOB,
    DEPT.LOC as LOC
    from SCOTT.DEPT DEPT,
    SCOTT.EMP EMP
    where emp.DEPTNO=DEPT.deptno
    and DEPT.deptno=nvl(to_number(substr(:department,1,2)),DEPT.deptno)
    But the Parameter which I want to pass say Department('10-Accounting'),
    Still it is showing employees from all departments.

  • Unsatisfied link when callind dll from run method Help Please?

    Hi,
    I get an unsatisfied link error while trying to calling a dll at a certain time period in a run method. The same dll works fine called in another setup and even called in a loop.
    Can anyone help please?
    import java.util.Timer;
    import java.util.TimerTask;
    * Schedule a task that executes once every second.
    public class TimeRetrieve {
        Timer timer;
        public TimeRetrieve() {
                 timer = new Timer();
            timer.schedule(new RemindTask(),
                        0,        //initial delay
                        1*1000);  //subsequent rate
        class RemindTask extends TimerTask
           String string_A;
           double d1;
         double d2;
         double d3;
         double d4;
         double d5;
         double d6;
         double d7;
         double d8;
         int numIter = 3;
         int start = 1;
            public void run()
                  if (numIter > 0) {
                  cinterface(start, string_A, d1, d2, d3, d4, d5, d6, d7, d8 );
              System.out.println("In Java action performed start button, after call to dll  \n");
              System.out.println("   string_A =  :" +string_A );
              System.out.println("doubles , \t  d1  \t d2  \t  d3  \t d4 \t d5 \t d6 \t d7 \t d8");
              System.out.println(d1 +"\t" +d2+"\t"+d3+"\t"+d4+"\t"+d5+"\t"+d6+"\t"+d7+"\t"+d8);
              numIter--;
                 } else
                 System.out.println("End Looping!");
                    System.exit
                 System.exit(0);  
        public static void main(String args[]) {
                   System.out.println("Starting Data Retrieval.");
                 new TimeRetrieve();
    // Load shared library which contains implementation of native methods
                    public native void cinterface(int start, String string_A, double d1, double d2, double d3, double d4,
                    double d5, double d6, double d7, double d8 );
                    static
                          try
                               System.out.println ("load cinterface"); //unsatisfied link
                               System.loadLibrary("cinterface");
                          catch (UnsatisfiedLinkError ee)
                               System.out.println
                                    ("Caught unsatisfied link error for dlls" );
                               System.out.println
                                    ("get local msg = " + ee.getLocalizedMessage() );
                               System.out.println ("getMessage " + ee.getMessage() );
                                   // System.out.println ("print Stack Trace " +ee.printStackTrace() );

    My mistake! I found it. Had some wrong names.

  • Little help please with forwarding traffic to proxy server!

    hi all, little help please with this error message
    i got this when i ran my code and requested only the home page of the google at my client side !!
    GET / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    Accept-Language: en-us
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)
    Host: www.google.com
    Connection: Keep-Alive
    Cookie: PREF=ID=a21457942a93fc67:TB=2:TM=1212883502:LM=1213187620:GM=1:S=H1BYeDQt9622ONKF
    HTTP/1.0 200 OK
    Cache-Control: private, max-age=0
    Date: Fri, 20 Jun 2008 22:43:15 GMT
    Expires: -1
    Content-Type: text/html; charset=UTF-8
    Content-Encoding: gzip
    Server: gws
    Content-Length: 2649
    X-Cache: MISS from linux-e6p8
    X-Cache-Lookup: MISS from linux-e6p8:3128
    Via: 1.0
    Connection: keep-alive
    GET /8SE/11?MI=32d919696b43409cb90ec369fe7aab75&LV=3.1.0.146&AG=T14050&IS=0000&TE=1&TV=tmen-us%7Cts20080620224324%7Crf0%7Csq38%7Cwi133526%7Ceuhttp%3A%2F%2Fwww.google.com%2F HTTP/1.1
    User-Agent: MSN_SL/3.1 Microsoft-Windows/5.1
    Host: g.ceipmsn.com
    HTTP/1.0 403 Forbidden
    Server: squid/2.6.STABLE5
    Date: Sat, 21 Jun 2008 01:46:26 GMT
    Content-Type: text/html
    Content-Length: 1066
    Expires: Sat, 21 Jun 2008 01:46:26 GMT
    X-Squid-Error: ERR_ACCESS_DENIED 0
    X-Cache: MISS from linux-e6p8
    X-Cache-Lookup: NONE from linux-e6p8:3128
    Via: 1.0
    Connection: close
    java.net.SocketException: Broken pipe // this is the error message
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
    at java.io.DataOutputStream.writeBytes(DataOutputStream.java:259)
    at SimpleHttpHandler.run(Test77.java:61)
    at java.lang.Thread.run(Thread.java:595)
    at Test77.main(Test77.java:13)

    please could just tell me what is wrong with my code ! this is the last idea in my G.p and am havin difficulties with that cuz this is the first time dealin with java :( the purpose of my code to forward the http traffic from client to Squid server ( proxy server ) then forward the response from squid server to the clients !
    thanx a lot,
    this is my code :
    import java.io.*;
    import java.net.*;
    public class Test7 {
    public static void main(String[] args) {
    try {
    ServerSocket serverSocket = new ServerSocket(1416);
    while(true){
    System.out.println("Waiting for request");
    Socket socket = serverSocket.accept();
    new Thread(new SimpleHttpHandler(socket)).run();
    socket.close();
    catch (Exception e) {
    e.printStackTrace();
    class SimpleHttpHandler implements Runnable{
    private final static String CLRF = "\r\n";
    private Socket client;
    private DataOutputStream writer;
    private DataOutputStream writer2;
    private BufferedReader reader;
    private BufferedReader reader2;
    public SimpleHttpHandler(Socket client){
    this.client = client;
    public void run(){
    try{
    this.reader = new BufferedReader(
    new InputStreamReader(
    this.client.getInputStream()
    InetAddress ipp=InetAddress.getByName("192.168.6.29"); \\ my squid server
    System.out.println(ipp);
    StringBuffer buffer = new StringBuffer();
    Socket ss=new Socket(ipp,3128);
    this.writer= new DataOutputStream(ss.getOutputStream());
    writer.writeBytes(this.read());
    this.reader2 = new BufferedReader(
    new InputStreamReader(
    ss.getInputStream()
    this.writer2= new DataOutputStream(this.client.getOutputStream());
    writer2.writeBytes(this.read2());
    this.writer2.close();
    this.writer.close();
    this.reader.close();
    this.reader2.close();
    this.client.close();
    catch(Exception e){
    e.printStackTrace();
    private String read() throws IOException{
    String in = "";
    StringBuffer buffer = new StringBuffer();
    while(!(in = this.reader.readLine()).trim().equals("")){
    buffer.append(in + "\n");
    buffer.append(in + "\n");
    System.out.println(buffer.toString());
    return buffer.toString();
    private String read2() throws IOException{
    String in = "";
    StringBuffer buffer = new StringBuffer();
    while(!(in = this.reader2.readLine()).trim().equals("")){
    buffer.append(in + "\n");
    System.out.println(buffer.toString());
    return buffer.toString();
    Edited by: Tareq85 on Jun 20, 2008 5:22 PM

  • Help with loading dynamic classes ..need help please

    i'm trying to design a program where by i can load dynamic classes
    the problem i'm getting is that only one class is loading.
    classes are loaded by their names,and index numbers of public methods from a linklist
    .When the program runs only the first class is ever loaded and only the methods of that class ..
    help please
    //class loader
    import java.lang.reflect.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class Test2 extends Thread
         public Class c;
         public Class Ray;
         public Class[] x;
         public static Object object = null;
         public Method[] theMethods;
         public static Method[] method,usemethod;
         public int methodcount;
         public static int MethodCt;     
         public static JList list;
    public Method[] startClass(String SetMethodName)
         try
              c = Class.forName(SetMethodName);
              object = c.newInstance();
              theMethods = c.getDeclaredMethods();
              // number of methods
              //methodcount = theMethods.length;
         catch (Exception e)
              e.printStackTrace();
    // return the array then invoke the particular method later
    return theMethods ;
    public void RunMethod(Method[] SomeMethod, int methodcount)
         try
              SomeMethod[methodcount].invoke( object,null );
         catch (Exception e)
              e.printStackTrace();
    // end class loader
    //main calling program
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing .*;
    import java.lang.reflect.*;
    public class JFMenu extends JFrame
         public static JMenu pluginMenu;
         public static JMenuBar bar;
         public static final Test2 w = new Test2();
    public static Method[] setmethod;
    private static ClassLinkList startRef = null;
    private static ClassLinkList linkRef3 = null;
    private static ClassLinkList startRef2 = null;
    private String ClassName,ShortCut;
    private int MethodNumber;
    private JMenuItem PluginItem;
         JFMenu()
              super (" JFluro ");     
              JMenu fileMenu = new JMenu("File");
              fileMenu.setMnemonic('F');
              JMenuItem exitItem = new JMenuItem("Exit");
              exitItem.setMnemonic('X');
              fileMenu.add(exitItem);
              exitItem.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent event )
                             System.exit(0);
              JMenu pluginMenu = new JMenu("Plugins");
              pluginMenu.setMnemonic('P');
              startRef = new ClassLinkList ("Hello","Hello ",2,1926,"Painter");
              addToList("Foo","Foo ",0,1930,"Author");
              while (startRef.linkRef5 != null)
                   //pluginMenu.addSeparator();
                   ClassName = startRef.linkRef5.className;
                   ShortCut = startRef.linkRef5.shortcutName;
    MethodNumber = startRef.linkRef5.methodNumber;
    AddMenuItem(pluginMenu,ShortCut,ClassName,MethodNumber);
                   startRef.linkRef5 = startRef.linkRef5.next;
              // create menu bar and add JFMenu window to it
              JMenuBar bar = new JMenuBar();
              setJMenuBar(bar);
              bar.add(fileMenu);
              bar.add(pluginMenu);
              //attributes for JFMenu frame
              setSize(500,200);
              setVisible(true);
         }// end JFMenu constructor
         public void AddMenuItem(JMenu MainMenu, String shortcut,String className, final int methodCount )
              if (MainMenu==null)
                   return;
              //JMenuItem item;
              JMenuItem item = new JMenuItem(shortcut);
              MainMenu.add(item);
              setmethod = w.startClass(className);
              item.addActionListener
                   new ActionListener()
                        public void actionPerformed(ActionEvent event )
                             w.RunMethod(setmethod,methodCount);
              //item.addActionListener(ij);
         public JMenuItem AddMenuItem2(JMenu MainMenu, String shortcut)
              //if (MainMenu==null)
              //     return Main;
              //JMenuItem item;
              JMenuItem item = new JMenuItem(shortcut);
              MainMenu.add(item);
              //setmethod = w.startClass(className);
              //item.addActionListener(this);
                   new ActionListener()
                        public void actionPerformed(ActionEvent event )
                             w.RunMethod(setmethod,methodCount);
              //item.addActionListener(ij);
         return item;
         public void ReloadMenu(JMenuBar Bar, JMenu PluginMenu)
              if (Bar==null)
                   return;
              //     setJMenuBar(Bar);
              Bar.add(PluginMenu);
              //item.addActionListener(ij);
    public static void main (String args[])
              JFMenu menapp = new JFMenu();
    public static void addToList(String clname, String shcutname, int metnumber, int year2,
                                  String description) {
         // Create instance of class ClassLinkList
    ClassLinkList newRef = new ClassLinkList(clname,shcutname,metnumber,year2,
                                       description);
    // Add to linked list;
         startRef = startRef.addRecordToLinkedList(newRef);
    // end main calling program
    class Hello extends Thread
    public int getNum()
    System.out.println("I can be ");
    return 5;
    public void rayshowName()
    System.out.println("anything i want ");
    public void rayshowName3()
    System.out.println("to be ");
    class Foo extends Thread
    public int getNum()
    System.out.println("IMHOFF");
    return 5;
    public void rayshowName()
    System.out.println("raYMOND");
    // FAMOUS PERSONS LINKED LIST EXAMPLE
    // Frans Coenen
    // Saturday 15 January 2000
    // Depaertment of Computer Science, University of Liverpool
    class ClassLinkList {
    /* FIELDS */
    public String className;
    public String shortcutName;
    public int methodNumber;
    public int yearOfDeath;
    public String occupation;
    public ClassLinkList next = null;
    public ClassLinkList linkRef5 = this;
    public ClassLinkList startRef = null;
    /* CONSTRUCTORS */
    /* FamousPerson constructor */
    public ClassLinkList(String classname, String shortcutname, int methodnumber, int year2,
                                  String description) {
         className = classname;
         shortcutName = shortcutname;
         methodNumber = methodnumber;
         yearOfDeath = year2;
         occupation = description;
         next = null;
    /* METHODS */
    /* Output famous person linked list */
    public void outputClassLinkedList()
         //public ClassLinkList outputClassLinkedList() {
         ClassLinkList linkRef = this;
         // Loop through linked list till end outputting each record in turn
    while (linkRef != null)
         //System.out.println(linkRef5);
         System.out.println(linkRef.className + ", " + linkRef.shortcutName +
                   " (" + linkRef.methodNumber + "-" + linkRef.methodNumber +
                   "): " + linkRef.occupation);
         linkRef = linkRef.next;     
    //return linkRef;
    //public String ShowCasname()
    //return String ;     
    /* Add a new record to the linked list */
    public ClassLinkList addRecordToLinkedList(ClassLinkList newRef) {
         ClassLinkList tempRef, linkRef;
         // Test if new person is to be added to start of list if so return
    if (newRef.testRecord(this) ) {
         newRef.next = this;
         return(newRef);
         // Loop through remainder of linked list
         tempRef = this;
         linkRef = this.next;
         while (linkRef != null) {
         if (newRef.testRecord(linkRef)) {
         tempRef.next = newRef;
              newRef.next = linkRef;
              return(this);
         tempRef = linkRef;
         linkRef = linkRef.next;
    // Add to end
    tempRef.next = newRef;
         return(this);
    /* Delete a record from the linked list given the first and last name. Four
    posibilities:
    1) Record to be deleted is at front of list
    2) Record to be deleted is at end of list
    3) Record to be deleted is in middle of list
    4) Record not found. */
    public ClassLinkList deleteRecord(String lName, String fName) {
    ClassLinkList tempRef, linkRef;
    // Record at start of list
    if ((this.className == lName) & (this.shortcutName == fName))
         return(this.next);
         // Loop through linked list to discover if record is in middle of list.
         tempRef = this;
    linkRef = this.next;
    while (linkRef != null) {
         if ((linkRef.className == lName) & (linkRef.shortcutName == fName)) {
    tempRef.next = linkRef.next;
    return(this);
    tempRef = linkRef;
    linkRef = linkRef.next;
    // Record at end of list, or not found
    if ((linkRef.className == lName) & (linkRef.shortcutName == fName))
                        linkRef = null;
         else System.out.println("Record: " + lName + " " + fName + " not found!");
         return(this);
    /* TEST METHODS */
    /* Test whether new record comes before existing record or not. If so return
    true, false otherwise. */
    private boolean testRecord(ClassLinkList existingRef) {
         int testResult = className.compareTo(existingRef.className);
         if (testResult < 0) return(true);
         else {
         if ((testResult == 0) & (shortcutName.compareTo(existingRef.shortcutName) < 0 ))
                             return(true);
         // Return false
         return(false);
         public void addToList(String clname, String shcutname, int metnumber, int year2,
                                  String description)
         // Create instance of class Famous Person
    ClassLinkList newRef = new ClassLinkList(clname,shcutname,metnumber,year2,
                                       description);
    // Add to linked list;
         startRef = startRef.addRecordToLinkedList(newRef);

    I have a similar problem. I am writing a program to read the class names from database and instantiate several classes which extends from ServiceThread (an abstract class extending from Thread).
    rs = pStmt.executeQuery();
    while(rs.next()) {
    String threadclassname = rs.getString("classname").trim();
    try{
    ServiceThread threadinstance = (ServiceThread)Class.forName(threadclassname).newInstance();
    }catch ...
    So far, only the first class is ever instantiated and runs fine. But subsequent classes do not even get pass the "... ... Class.forName(...).newInstance();" line.
    Funny thing is that there are also no exceptions. The JVM just seem to hang there.

  • Tomcat won't work after XP SP2 install?? help, please

    Help please!
    Hi, I installed a fresh JDK (1_5_0_02-windows-i586-p), JRE (1.5.0_01), J2EE (1.4_2005Q1), Apache web server (2.0.53-win32-x86-no_ssl) and Tomcat (5.5.7) . Everything seemed to work. I installed XP Service Pack 2 and now Tomcat won't compile JSPs. (I don't know if the SP2 install was the cause).
    The service Starts okay, but when I try to hit a jsp, Tomcat takes over my processor (at like 80%) and it starts writing to the stdout log (stdout was set to auto), repeatedly. After being up for like 20 min the log was well over 1 GB in size. It showed the below exceptions repeating ad infinitum.
    I uninstalled and reinstalled Tomcat, repaired the Apache installation (that shouldn't matter, should it?), and I am going to try reinstalling JDK/JRE/J2EE, but does anyone have any ideas of how I can fix this?
    Mar 13, 2005 9:15:13 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 13, 2005 9:15:13 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 984 ms
    Mar 13, 2005 9:15:13 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 13, 2005 9:15:13 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
    Mar 13, 2005 9:15:13 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Mar 13, 2005 9:15:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    Mar 13, 2005 9:15:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Mar 13, 2005 9:15:14 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Mar 13, 2005 9:15:15 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Mar 13, 2005 9:15:15 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Mar 13, 2005 9:15:15 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Mar 13, 2005 9:15:15 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
    SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: select failed
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:406)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Mar 13, 2005 9:15:15 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/32 config=null
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM org.apache.jk.common.ChannelSocket acceptConnections
    WARNING: Exception executing accept
    java.net.SocketException: select failed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
         at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
         at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:849)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Mar 13, 2005 9:15:15 PM o

    Is it possible this is resulting from classpaths not
    being setup correctly? Could someone please tell me
    what my CLASSPATH and PATH enviro variables should be
    fod JDK, J2EE, JRE, etc...? Both in general and
    specifically to be found by Tomcat. They are
    installed in:
    C:\Program Files\Java\jdk1.5.0_02
    C:\Program Files\Java\jre1.5.0_02
    C:\Sun\AppServer
    Thanks!Could be.
    I think installing anything in directories whose path has spaces in it is a terrible idea. I'd reinstall the JDK to c:\SDKs or something like that.
    There's no need for a system CLASSPATH - ever. You shouldn't have one. Use -classpath when you run javac.exe and java.exe to set the CLASSPATH. Tomcat has its own class loaders. You should deploy your Web apps in WAR files - they'll have the CLASSPATH set for you that way.
    Your PATH should include the JAVA_HOME\bin.
    set JAVA_HOME=C:\SDKs
    set CATALINA_HOME=c:\Tools\Tomcat, or wherever you installed Tomcat.
    %

  • Servlet not inserting into Access Databse. help please

    I have the following code which is inserting three fields into a database. The database name is contacts.mdb, and the table is contacts. I have setup the ODBC connection on the server, of which I have both IIS and Tomcat running. The form.html that I am accessing is on the tomcat server root and that code is below as well. After hitting the submit button on the form I get forwarded to the servlet, and the page is blank. However, when I open the database, no updates have occured. Please help. I hope I have provided enough detail. Thanks so much.
    -------- servlet code start --------------
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class WebServlet
    extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL = "jdbc:odbc:terry_web_contacts";
    Connection databaseConnection = DriverManager.getConnection(sourceURL);
    Statement stmt = databaseConnection.createStatement();
    String jname = request.getParameter("Name");
    String jemail = request.getParameter("Email");
    String jcomments = request.getParameter("Comments");
    String sqlInsertString ="INSERT INTO contacts (name, email, comments) VALUES ('" + jname +"', '" jemail "', '" + jcomments + "')";
    stmt.executeUpdate(sqlInsertString);
    databaseConnection.close();
    catch(ClassNotFoundException cnfe)
    System.err.println("Error loading Driver");
    catch (SQLException sqle){
    System.err.println("SQL Error");
    ---------- servlet code end ---------------------
    ---------- html form code start ------------------
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="WHITE">
    <TABLE BORDER="2" CELLPADDING="2">
    <TR><TD WIDTH="275">
    <H2>I'm a Simple Form</H2>
    <FORM METHOD="POST" ACTION="/servlet/WebServlet">
    <p>
    <INPUT NAME="Name" TYPE="TEXT" id="Name" SIZE=30>
    </p>
    <p>
    <INPUT NAME="Email" TYPE="TEXT" id="Email" SIZE=30>
    </p>
    <p>
    <textarea name="Comments" id="Comments"></textarea>
    </p>
    <P>
    <INPUT TYPE="SUBMIT" VALUE="Click Me">
    <INPUT TYPE="RESET">
    </FORM>
    </TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    ------------- html code end ------------------

    Okay, here is my modified code. However, I catch a sql error. It prints out "sql error". If I try to isolate the different lines of code with try catch blocks, the compiler says it does not recognize the symbols for example stmt, or databaseConnection. Arggh, what can I do? Help please.
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class WebServlet
        extends HttpServlet {
      public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException,IOException
         PrintWriter out = response.getWriter();
         String jname = (String) request.getParameter("Name");
         String jemail = (String) request.getParameter("Email");
         String jcomments = (String) request.getParameter("Comments");
    try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException e)
         out.println("class error");
    try
         Connection databaseConnection = DriverManager.getConnection("jdbc:odbc:terrycontacts");
         Statement stmt = databaseConnection.createStatement();
         String sqlInsertString ="INSERT INTO contacts(name,email,comments) VALUES('"+jname+"','"+jemail+"','"+jcomments+"')";
         stmt.executeQuery(sqlInsertString);
         databaseConnection.commit();
         databaseConnection.close();
    catch(SQLException e)
         out.println("sql error");
         out.close();
    }

  • Database don't delete prom the table, help please !!

    there is my code :
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection con=DriverManager.getConnection(jdbc:odbc:Medic);
    con.setReadOnly(false);
    try{
    Statement st=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    int res=st.executeUpdate("DELETE FROM PATIENT WHERE PATIEN_ID="+id+";");
    System.out.println(String.valueOf(res)+" rows deleted");
    st.close();
    }catch(Exception exc){
    System.out.print(exc+"\n");
    the code execute with no error or exception , the message that i recieve is "1 rows deleted" and i want delete just one row, it's ok until the moment but whene i read the table i see that the row is not deleted.
    I use dBase database, help please !!!
    Thanks

    Don't trust the return value.
    Because you got no exception it means that the SQL executed. SQL can execute without deleting anything however if the where clause does not match.
    As posted your code is not valid java so anything else is meaningless.

  • ALMOST NO STORAGE HELP PLEASE!

    I was uploading my video to youtube from imove and i have almost no storage left it was fine before i did it i had 85.73 gb and now i have 22.21 gb I REALLY NEED HELP PLEASE i deleted the video and the files i have no idea what it did please someone help and fast and dont say get omni disk sweeper because i cant find the files that are taking up space i dont know what files are important so please help !

    You need to change the premise of your SSD use.
    see here:
    Your Solid State Drive and having enough space inside your Macbook Air & Pro
    Solid State Drive usage premise, or the “more space / upgrade SSD” question
    There have been questions posed and positions taken by many people who are trying to use their Macbook Air or Pro’s solid state drive (SSD) as a mass media storage device, for either pictures, videos, massive music collections or all three combined; but this should not be the working premise of a ‘limited’ SSD and its use.
    In which, it’s the case of those users with either 128GB, 256GB, or even 512GB of internal SSD space, that have or are running “out of space”, that questions are raised. The immediate premise of some users can sometimes be “(how to / if) upgrading my SSD” when in fact in nearly all instances another approach is the logical and sensible one that needs to be looked into and exercised.
    Any Macbook containing a SSD should be idealized as a ‘working platform’ notebook containing all your applications, documents, and weekly or bi-weekly necessary files. All collections of media files such as pictures, music, and videos, unless directly needed should be kept off the notebook and on an external hard drive or likewise. While the ‘working platform’ premise is also the case with larger internal conventional hard drives of 1TB+, its implementation isn't as critical except in terms of data protection.
    Realistically, you should at most coordinate roughly 20 to 25% of your total SSD space to all audio-video personal use media (picture / music / video collections), leaving the remaining amount on an external HD.
    Nobody should consider any notebook a data storage device at any time under any circumstance, rather a data creation, sending, and manipulation device; and in the case of a SSD, this is more important for purposes of having sufficient working space on the SSD and reducing SSD ‘bloat’ in which cases someone is wrongly attempting to use the SSD space as a large media storage nexus.
    The rare exception to the collective usage and premise of SSD use in which a much larger SSD is truly needed are for those in video and photography professions that require both the extremely fast speeds of the SSD and the onboard storage for large and or many video and photography files. However this also falls under the premise of a ‘working platform’ for such peoples rather than the intent of many who are using the SSD as passive and static data storage for media files very infrequently needed or accessed.
    All on-notebook data collections should be logically approached as to necessity, and evaluated as to whether it is active or passive data that likely doesn’t need to be on the notebook, allocations of space-percentages to as-needed work and use, apportioning space for your entertainment media, and questioning whether it should it be on the notebook for more than short-term consumption.
    Considerations should be made in the mind of any user in differentiating the necessary system data (System hub) comprising the Mac OSX, applications, necessary documents that both must and should be on your internal SSD, and that of the users personal data (Data hub) comprising created files, pictures, music, videos, PDF files, data created or being created and otherwise, that likely unless being used soon or often should be parked on an external hard drive for consumption, or temporarily loading onto the internal SSD.
    You both can and should purchase whichever SSD size you need or see fit, but even in the case of the largest of SSD, unless use-considerations are made, and SSD spaces are allocated as should be the case indicated above, one can easily and immediately run into this quandary of “needing more internal SSD space”, in which instance a different approach in usage must then be implemented.
    However it is almost always the case, that such large media files are wanted to be stored internally rather than actually needed, in which case the external HD is both prudent as well as necessary. Additionally costs per MB are infinitely less on an external HD than an internal SSD in any consideration of data expansion needs.
    A Professional Example
    In the case of a Macbook Air or Macbook Pro Retina with ‘limited’ storage on the SSD, this distinction becomes more important in that in an ever rapidly increasing file-size world, you keep vital large media files, pics, video, PDF collections, music off your SSD and archived on external storage, for sake of the necessary room for your system to have free space to operate, store future applications and general workspace. 
    You should also never be put in the position of considering “deleting things” on your Macbook SSD in order to ‘make space’. This is especially what your external HD is for.
    Professionals who create and import very large amounts of data have almost no change in the available space on their notebooks internal SSD because they are constantly archiving data to arrays of external or networked HD.
    Or in the case of the consumer this means you keep folders for large imported or created data and you ritually offload and archive this data for safekeeping, not only to safeguard the data in case your Macbook has a SSD crash, or gets stolen, but importantly in keeping the ‘breathing room’ open for your notebook to operate, expand, create files, add applications, for your APPS to create temp files, and for general operation.
    Slim USB3 1TB external hard drive
    External Hard Drives
    External hard drives are both extremely cheap and regardless of the size of your internal SSD (or even internal hard drive if the case), you need an external hard drive with your SSD equipped Macbook for several reasons:
    1. Data backup and protection.
    2. Redundancy for important data.
    3. Necessitated ideal space for large media files for collections of pictures, videos, and music etc.
    While ever changing in price, typical portable 2.5” external hard drives in USB3 run roughly $65 for 1TB or $120 for 2TB small portable USB3 hard drives. Such drives range in thickness between 5mm and 15mm, with recent improvements in storage of 500GB drives in 5mm profiles.
    There is almost no premise in which a small 12mm thick 1 Terabyte USB hard drive cannot be taken along with any Macbook as an external large storage extension inside any Macbook carry case or pouch. Typically such external HD profiles are not much bigger than a deck of cards.
    External hard drives are a foregone necessity for purchase with any Macbook for at the very least Time Machine backups, data redundancies, and ideally for large media storage.

  • String manipulation in JSTL

    Hello All
    I'm a just a beginner and I'm need to write a web page that is totally based on JSTL. I found out that the standard java tab lib in JSTL doesnt really support string manipulation or regular expression like in perl.
    As such, I would like to know what are the different options (like adding servlets/javabeans/etc) can i add to my JSTL page so that i can perform complex string manipulation to a data entered by the user in the text box?
    Some of the operations that I wish to carry out on the data are:
    1. check if data contains certain characters, strings
    2. joining and spliting strings
    3. find length of the string
    4. find the position of certain character in a string
    5. check if string match certain pattern.
    and many more.
    Would greatly appreciate if you guys can help to provide some light.
    Regards
    Beginner....

    You might find MicroNova YUZU JSP tag library (http://sourceforge.net/projects/micronova-yuzu) useful, especially if you need to support both JSP 1.2 and 2.0. Hope this helps.

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

Maybe you are looking for

  • Incorrect PO number in the subject line of a email

    Dear All, Our customer has implemented the PO be email functionality. Configuration is done to get the PO number on the subject line. This works fine when individual release is done. But when we perform the collective release, only One PO number is p

  • Placing Caption under the image (photo)

    I have Photoshop Elements 5.0.2 running under Windows Vista Ultimate on an HP Pavilion having 4GB RAM. Would like to place a caption directly under 4x6 or 6x4 photo. How do I do this? I have spent hours on this. For printing the photo there seems to

  • Camera to iPod?

    Is it possible to download a digital camera directly to an iPod without a computer? Special adapter needed? iPod video   Mac OS X (10.3.9)  

  • Howto:pass an ado.recordset to a stored procedure

    Hi, I need to pass an adodb.recordset to a stored procedure in Oracle 8.0.5. I am programming with visualbasic 6, an exe application. I don4t know how to setting the parameter for the adodb.command which execute the procedure. Any idea?? Thanks, Cesa

  • Centering a page on the screen, why's it not working??

    Hi, I'm trying to centre my whole site so that it appears in the centre of the screen, no matter what size of screen it's being viewed on. I've had a look at other messages about this, and thought I'd done what they said but it's not working. I'm usi