Internal Server Error while connecting to server in Java

6 views
Skip to first unread message

p

unread,
Oct 29, 2007, 1:48:00 PM10/29/07
to selenium-users...@googlegroups.com
Hi,
I've downloaded selenium 0.9.2. I run the server: java -jar selenium-server.jar -port 8888

than I've written a class:
class myClass{
public static void main(String[] args){

Selenium selenium=new DefaultSelenium("localhost",
8888, "*firefox", "http://gmail.com");
selenium.open("/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&ltmpl=default&ltmplcache=2");
selenium.type("Email", "xxx");
selenium.type("Passwd", "xxx");
selenium.click("signIn");
selenium.waitForPageToLoad("30000");
}}

and i get:

Exception in thread "main" com.thoughtworks.selenium.SeleniumException: Internal Server Error
at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponse(HttpCommandProcessor.java:124)
at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:82)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:68)
at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:222)
at test.main(test.java:11)

does any1 know what do I do wrong???

i got an exception on the server:
20:04:46.726 INFO - Java: Sun Microsystems Inc. 1.6.0_02-b05
20:04:46.726 INFO - OS: Windows XP 5.1 x86
20:04:46.726 INFO - v0.9.2 [2006], with Core v0.8.3 [1879]
20:04:46.835 INFO - Version Jetty/5.1.x
20:04:46.835 INFO - Started HttpContext[/selenium-server/driver,/selenium-se
/driver]
20:04:46.835 INFO - Started HttpContext[/selenium-server,/selenium-server]
20:04:46.835 INFO - Started HttpContext[/,/]
20:04:46.851 INFO - Started SocketListener on 0.0.0.0:8888
20:04:46.851 INFO - Started org.mortbay.jetty.Server@201f9
20:05:05.833 INFO - Checking Resource aliases
20:05:05.849 INFO - Command request: open[/accounts/ServiceLogin?service=mai
ssive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dh
26zy%3Dl&ltmpl=default&ltmplcache=2, ] on session null
20:05:05.849 WARN - POST /selenium-server/driver/ HTTP/1.1
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(
eGroupCommandQueueSet.java:157)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doComman
leniumDriverResourceHandler.java:476)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCo
dRequest(SeleniumDriverResourceHandler.java:375)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(S
iumDriverResourceHandler.java:123)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:98
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.j
244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
20:08:26.953 INFO - Command request: open[/, ] on session null
20:08:26.953 WARN - POST /selenium-server/driver/ HTTP/1.1
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(
eGroupCommandQueueSet.java:157)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doComman
leniumDriverResourceHandler.java:476)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCo
dRequest(SeleniumDriverResourceHandler.java:375)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(S
iumDriverResourceHandler.java:123)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:98
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.j
244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Edited by: heath on Oct 29, 2007 1:59 PM

Edited by: heath on Oct 29, 2007 2:14 PM

p

unread,
Oct 29, 2007, 5:36:31 PM10/29/07
to selenium-users...@googlegroups.com
any help???

Dennis Stinn

unread,
Oct 29, 2007, 5:53:24 PM10/29/07
to selenium-users...@googlegroups.com
seems to be puking at:
selenium.open("/accounts/ServiceLogin?service=mail&passive=true&rm=fals e&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&l tmpl=default&ltmplcache=2");

with out digging in to deep:
- open a simple url ("http://google.com")
- Do you need to have your address encoded?
- rm=fals e <- space?

/accounts/ServiceLogin?service=mail&passive=true&rm=fals e&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&l tmpl=default&ltmplcache=2
/accounts/ServiceLogin?service=mail&passive=true&rm=fals e&continue=http://mail.google.com/mail/?ui=html&zy=l&l tmpl=default&ltmplcache=2

p

unread,
Oct 29, 2007, 7:17:10 PM10/29/07
to selenium-users...@googlegroups.com
I tryed it with simple urls but it didnt help

p

unread,
Oct 29, 2007, 7:44:40 PM10/29/07
to selenium-users...@googlegroups.com
It Works!!!!!! i missed start and stop selenium:/

Reply all
Reply to author
Forward
0 new messages