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.
Similar Messages
-
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.
-
Altering a text file using methods, help please!
Hi I'm new to this forum so please bear with me, my problem is I have written a program for a gym using methods, my program works fine but i need to add another switch (case 5:) to my program, this new switch needs to take the information from case 4: and enable me to change any details and store these changes into a new text file, I know i need a filewriter to store new details into a new text file but i cant figure out how to get the details from case 4: into case 5: and be able to alter these details on screen??, hope this is enough information as to what my problem is. Thnx
import javax.swing.JOptionPane;
import java.io.*;
class GymProgram1
static void menu(String gym[][])
int choice = 0;
while (choice < 1 || choice > 5)
String input = JOptionPane.showInputDialog("Enter a numerical choice to...\n1: Find customers who smoke, lost weight, use cycles, treadmills, steps, skis or weights \n2: Find customers over a certain age \n3: Find average of all customers \n4: Find a customers details \n5: Exit");
if (input == null)
menu(gym);
try
choice = Integer.parseInt(input);
catch (NumberFormatException e)
switch (choice)
case 1: search(gym, choice);
break;
case 2: age(gym, choice);
break;
case 3: average(gym, choice);
break;
case 4: details(gym, choice);
break;
default: System.exit(0);
menu(gym);
static void search(String gym[][], int choice)
String output = "";
int column = 0;
boolean printed = false;
switch(choice)
case 1: int yessearch = 0;
while (yessearch < 1 || yessearch > 7)
String input = JOptionPane.showInputDialog("Enter a numerical choice to...\n1: Find customers that smoke \n2: Find customers who lost weight \n3: Find customers who use cycles \n4: Find customers who use treadmill \n5: Find customers who use steps \n6: Find customers who use ski's \n7: Find customers who use weights ");
if (input == null)
JOptionPane.showMessageDialog(null, "Cancel pressed");
menu(gym);
try
yessearch = Integer.parseInt(input);
catch (NumberFormatException e)
switch (yessearch)
case 1: column = 3;
break;
case 2: column = 4;
break;
case 3: column = 5;
break;
case 4: column = 6;
break;
case 5: column = 7;
break;
case 6: column = 8;
break;
default:column = 9;
for (int row = 0;row < gym.length ;row++ )
if (gym[row][column].equalsIgnoreCase("yes"))
output += gym[row][0] + " " + gym[row][1] + '\n';
printed = true;
if (printed == false)
output = "No data found......";
display(output);
static void age(String gym[][], int choice)
String output = "";
int column = 2;
boolean printed = false;
int ageentered=0;
int customerage=0;
String input=JOptionPane.showInputDialog("Enter an age");
if (input==null)
JOptionPane.showMessageDialog(null, "Cancel pressed");
menu(gym);
try
ageentered =Integer.parseInt(input);
catch (NumberFormatException e)
switch(choice)
case 2:
for (int row = 0;row < gym.length ;row++ )
customerage=Integer.parseInt(gym[row][column]);
if (ageentered <= customerage)
output += gym[row][0] + " " + gym[row][1] + " = " + gym[row][2] + '\n';
printed = true;
if (printed == false)
output = "No data found......";
display(output);
menu(gym);
static void display(String output)
JOptionPane.showMessageDialog(null, output);
static void average(String gym[][], int choice)
boolean printed=false;
String output="";
int column = 0;
int counter=0;
int totalage=0;
int average=0;
switch (choice)
case 3:
column = 2;
for (int row = 0;row < gym.length ;row++ )
counter++;
totalage+=Integer.parseInt(gym[row][2]);
printed = true;
average=totalage/counter;
if (printed == false)
output = "No data found......";
output="Average age = " + average;
display(output);
menu(gym);
static void details(String gym[][], int choice)
String customer = "";
String output = "";
int column = 1;
boolean printed = false;
switch (choice)
case 4: customer = JOptionPane.showInputDialog("Enter a customers surname");
if (customer == null)
JOptionPane.showMessageDialog(null, "Cancel pressed");
menu(gym);
for (int row = 0;row < gym.length ;row++ )
if (gym[row][column].equalsIgnoreCase(customer))
output += gym[row][0] + " " + gym[row][1] + "\n age = " + gym[row][2] + "\n smoke = " + gym[row][3] + "\n weight loss = " + gym[row][4] + "\n cycles = " + gym[row][5]+ "\n treadmills = " + gym[row][6] + "\n steps = " + gym[row][7] + "\n skis = " + gym[row][8] + "\n weights = " + gym[row][9] + '\n';
printed = true;
if (printed == false)
output = "No data found......";
display(output);
static String[][] inputData()
String gym[][] = new String[25][10];
try
FileReader file = new FileReader ("a:/assign.txt");
BufferedReader buff = new BufferedReader(file);
for (int row = 0;row<gym.length ;row++ )
for (int column = 0; column < 10;column ++)
gym[row][column] = buff.readLine();
buff.close();
catch (IOException e)
System.out.println("Error - - " + e.toString());
return gym;
public static void main(String[] args)
String gym[][] = inputData();
menu(gym);
for (int row = 0;row < gym.length ;row++ )
System.out.println(gym[row][0] + " " + gym[row][1] + " " + gym[row][2] + " " + gym[row][3] + " " + gym[row][4] + " " + gym[row][5] + " " + gym[row][6] + " " + gym[row][7] + " " + gym[row][8] + " " + gym[row][9]);
}Thnx for the reply TJ, I'm still confused about this problem, heres what ive done now and i still cant get the details of a customer up on the screen for me to change their details, i havnt pasted the whole program this time just what ive altered in the menu and case 5:, hope you can help.
static void menu(String gym[][])
int choice = 0;
while (choice < 1 || choice > 6)
String input = JOptionPane.showInputDialog("Enter a numerical choice to...\n1: Find customers who smoke, lost weight, use cycles, treadmills, steps, skis or weights \n2: Find customers over a certain age \n3: Find average of all customers \n4: Find a customers details \n5: Update a customers details \n6: Exit");
if (input == null)
menu(gym);
try
choice = Integer.parseInt(input);
catch (NumberFormatException e)
switch (choice)
case 1: search(gym, choice);
break;
case 2: age(gym, choice);
break;
case 3: average(gym, choice);
break;
case 4:
case 5: details(gym, choice);
break;
default: System.exit(0);
menu(gym);
static void details(String gym[][], int choice)
String customer = "";
String output = "";
int column = 1;
boolean printed = false;
switch (choice)
case 4: customer = JOptionPane.showInputDialog("Enter a customers surname");
if (customer == null)
JOptionPane.showMessageDialog(null, "Cancel pressed");
menu(gym);
for (int row = 0;row < gym.length ;row++ )
if (gym[row][column].equalsIgnoreCase(customer))
output += gym[row][0] + " " + gym[row][1] + "\n age = " + gym[row][2] + "\n smoke = " + gym[row][3] + "\n weight loss = " + gym[row][4] + "\n cycles = " + gym[row][5]+ "\n treadmills = " + gym[row][6] + "\n steps = " + gym[row][7] + "\n skis = " + gym[row][8] + "\n weights = " + gym[row][9] + '\n';
printed = true;
if (printed == false)
output = "No data found......";
display(output);
case 5:
try
String display1 = "assign.txt";
FileInputStream fi = new FileInputStream(display1);
byte inData[] = new byte[fi.available()];
fi.read(inData);
fi.close();
String text = new String(inData);
String textToAppend = "kjkjhjhKJ";
byte outData[] = textToAppend.getBytes();
FileOutputStream fo = new FileOutputStream(display1,true);
fo.write(outData);
fo.close();
catch(Exception e)
System.out.println("Error - - " + e.toString());
display(output);
menu (gym);
} -
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); -
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 -
String method index of urgent urgent help needed
I am just wondering can ne one give me a working exaple of the string metyhod indexof()
Please dont refer me to the string documentation as it makes absoloulty no sense to me at all thanksIt returns the position of a String in another String. When you've got two Strings, a = "polly" and b = "ll",a.indexOf (b)will return 2 (the first character is index 0). If the second String is not found, the method returns -1.
There is another variant, which takes a starting position as well. When you trya.indexOf (b, 3)you get -1, because "ll" does not appear in "ly".
Hope this helps you on your way.
Kind regards,
Levi -
I WANT TO PURCHASE NFS MOST WANTED GAME FROM APP STORE BUT IT DOESN'T ALLOW ME TO PROCEED FURTHER
after trying many times with two different debit cards still does not allows me to buy a game from the app store gives error "YOUR PAYMENT METHOD WAS DECLINE.PLEASE ENTER VALID PAYMENT METHOD INFORMATION" Please help me outIn most cases, you can't use a Debit card anymore. So, either redeem an iTunes gift card or use a credit card.
-
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 -
Urgent!!! Problem on the String method and File method
I would like to ask two questions:
(1) From the String method, it can use .equals() method to compare two strings whether two string exactly equal or not. But what method can i use to compare two strings see whether any words exists in the string?
(2) From the following code,
Java.io.File outFile = new java.io.File("TestProg.java");If i would like to use a variable (e.g. let the variable be name) instead of the filename "TestProg.java", do you know how to revise the above code??
If i write as following, is it correct???
Java.io.File outFile = new java.io.File(""+name+"");Please help!!!1- To check whether a word (sunstring) exists in a longer string, you can use the following String method:
indexOf(substring) on the string that you are searching. If the word does not exist, -1 is returned.
2- yes you can provide a variable (of type string) in the constrcutor of File. -
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 oIs 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();
} -
hello, i made the class and i believe its right.. well i thought it was right but wheni test the methods in my main it does not output what it should. for example if the time is 13 o clock it should go to one o clock. i think the problem is either in my class or im not testing it right. please help.
CLASS=
public class Clock
//private data
private int hours;
private int minutes;
private int seconds;
//constructors
public Clock()
hours = 0;
minutes = 0;
seconds = 0;
public Clock (int h, int m, int s)
hours = h;
minutes = m;
seconds = s;
//accessor methods
public int getHours()
return hours;
public int getMinutes()
return minutes;
public int getSeconds()
return seconds;
//methods
public String toString()
String str;
str = hours + " : " + minutes + " : " +seconds;
return str;
public void addHours(int h)
if ((h > 0 ) && (h <= 12))
hours = h;
else
hours = 0;
public void addMinutes(int m)
if ((m > 0 ) && (m <= 59))
minutes = m;
else
minutes = 0;
public void addSeconds(int s)
if ((s > 0 ) && (s <= 59))
seconds = s;
else
seconds = 0;
public void setTime(int h, int m, int s)
hours = h;
minutes = m;
seconds = s;
}MAIN=
// import statements
import javax.swing.*;
public class Clockclass
public static void main(String args[])
Clock noon = new Clock (11, 25, 54);
Clock noclock = new Clock ();
Clock morning = new Clock(5, 15, 36);
Clock night = new Clock(7, 12, 15);
System.out.println( noclock );
System.out.println( noon );
System.out.println(noon.getHours());
System.out.println(noon.getMinutes());
System.out.println(noon.getSeconds());
System.out.println("noon time is: " + noon.toString());
System.out.println(night);
night.addHours(6);
System.out.println(night);
noclock.setTime(11,30,45);
System.out.println( noclock );
System.exit(0);
}i add it in my to String
//methods
public String toString()
String str;
String h1=" ",m1=" ",s1=" ";
if (hours < 10)
h1="0";
else
h1="";
if (minutes < 10)
m1= "0";
else
m1 = "";
if (seconds < 10)
s1 = "0";
else
s1 = " ";
str = h1 + hours + " : " + m1 + minutes + " : " + s1 +seconds;
return str;
} -
Payment method declined.Please change your payment method
Hello
I have an iPad and an iPod,I am 15 years old so my uncle gave me his credit card,everything was awesome,I have been buying stuff free and paid for years and recently I have been receiving this problem "Payment method declined.Please change your payment method" .. Whenever I wan't to download an app either it is for money or free or even when I want to update an app that I have already downloaded a message saying "sign in required" I put my password again and the a message appears "there was a problem with the previous purchase,please update your payment information" I update the information and I am sure that the credit card is all good and filled,and I enter the information right even though the only bar empty was the Security code,anyway when I finish everything I tap done,but then it tells me "Payment method declined.Please change your payment method",I did everything,log out log in,waiting,trying over and over,but it didn't work,this problem happened a long time ago but unlikely it was fixed two days later,now I am facing this problem and I don't know how to fix it.I have seen lots of other threads that discuss this problem,but my problem is that I live in Jordan-Middle East,which is a problem because as one said was the solution is to change the credit to "none" and then return it back,I can't do that,because for some reason there is no "none" option in the page displayed,and for the other one who said to enter from store.apple.com and enter the billing information again,that won't work for me either because I can't find except "apple.com/us" >:(, I can't log in to my account in jordan while there's nothing but us app store on PC.
For god's sake someone help me out,I am really ****** off of this,I can't find a way to even send an email to apple .. can anybody help? it will be appreciated a lot.. I want help fast,I can't change my account because I have already bought a lot of apps (with money) and I can't just let the money worth go away :/
If anyone can help (not discuss and complain and tell me sorry) it will be very awesome,because I have no much more to do about this and now I am trying to reach for help
Thank you.We are users like you. There is nothing we can do about the credit card. Call the credit card company and ask them why the purchases have been decined. They will know for sure and will be able to tell you. Wait, it is not your credit card. Who ever is the account holder will need to call the credit card company.
-
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
Maybe you are looking for
-
Copying mail Preferences and Library from an eMac to an iMac Intel
I have copied the Preferences and the Mail folder of Library from en eMac to an iMac Intel. The accounts appears but not the mailboxes I had in the eMac. Could anybody help me please?
-
How to Reconcile Asset accounting data with R/3
Dear BI Experts, We have developed asset accounting reports in BW. For user checking need to reconcile with R/3 data.In BW reporting we capturing Asset class,transaction type depreciation are and Net book value start&end year and other values. For re
-
Apps Crashes when doing a secondary click (right click)
When I'm in iPhoto, Adobe Reader, Word, Excel, Power Point, and I do a secondary click (or right click), the app goes non-responsive and I have to force it to shut down. Is there something I should do. I'm using Mountain Lion.
-
Why are my Bridge previews so tiny?
Can anyone tell me why my Bridge previews are so tiny for vectors? My preview won't go any larger than a thumbnail size. When I use the zoom tool over the preview, the magnified preview box is so pixelated I can't even make anything out. I am using A
-
Elements Organizer unable to sign into Mobile Albums
I am using the trial version of Photoshop Elements 12 that I just downloaded and installed. I'm trying to sign into Elements Mobile Albums- I put in my adobe ID and password and click "sign in" but nothing happens- the login spinner runs but no erro