[ptt-users] java.lang.IllegalStateException: Already connecte
d
Dyer, Kevin
kevin.dyer at matrixone.com
Fri Mar 4 10:11:04 PST 2005
Nathan,
Sorry about that, I jumped on the follow redirection and didn't completely
look at the problem.
java.lang.IllegalStateException: Already connected states "Unchecked
exception thrown when an attempt is made to connect a SocketChannel that is
already connected".
On closer inspection it looks as if the URI /home/members performs some sort
of redirection and the first socket hasn't been closed. So a logged response
or sniffer trace would be very useful.
Kevin
-----Original Message-----
From: Nathan J. Mehl [mailto:testmaker at memory.blank.org]
Sent: Thursday, March 03, 2005 3:48 PM
To: users at lists.pushtotest.com
Subject: [ptt-users] java.lang.IllegalStateException: Already connected
I'm attempting to set up a unit test for my company's website using
testmaker 4.3.
The initial step of recording the test through the proxy seems to work
perfectly, but when I run the test, I get an interesting failure:
=======================================================
example legacy top articles: Functional test of a Web application
=======================================================
Test created by TestMaker from http://www.pushtotest.com
example legacy top articles: Initialize
test: setUp
test: runTest
Request step: 1, http://www.example.com/
Request step: 2, http://www.example.com/home/example.css
Request step: 3, http://www.example.com/flashdetector.js
Request step: 4, http://ads.example.com/adjs.php
Request step: 5, http://ads.example.com/adjs.php
Request step: 6, http://ads.example.com/adjs.php
Request step: 7, http://www.example.com/home/login.html
Request step: 8, http://www.example.com/
Request step: 9, http://www.example.com/flashdetector.js
Request step: 10, http://www.example.com/home/example.css
Request step: 11, http://ads.example.com/adjs.php
Request step: 12, http://ads.example.com/adjs.php
Request step: 13, http://ads.example.com/adjs.php
Request step: 14, http://ads.example.com/adjs.php
Request step: 15, http://www.example.com/home/members/article.html
java.net.MalformedURLException: no protocol:
/home/access.html?R=/home/members/article.html?id=974224997
Error while loading page:
http://www.example.com:80/home/members/article.html?id=974224997
['Traceback (most recent call last):\n', ' File "C:\\Documents and
Settings\\nmehl\\Desktop\\TestMaker43\\.\\lib\\.\\agentbase.py", line 189,
in connect\n self.response = self.handler.connect( self.follow_redirects
)\n', 'java.lang.IllegalStateException: java.lang.IllegalStateException:
Already connected\n']
...and every subsequent call to article.html produces the same error.
The line of code which appears to produce that error is simply:
self.params = [ [ '''id''', '''974224997''' ] ]
self.get( '''http://www.example.com/home/members/article.html''',
self.params)
...which makes the "malformed URL" error hard to take seriously, since
that's self-evidently a perfectly valid URL. The reference to
self.follow_redirects suggests that the server is handing back a 3xx error
(is testmaker not keeping the cookie that login.html is offering?), but even
with debuglevel set to 3, I'm not seeing any indication on the console of
what that might be -- what I cut and pasted above is the whole of the
debugging output.
Am I, um, missing something obvious here?
-n
------------------------------------------------------------<memory at blank.or
g>
"What you want -- and I think you are very strange for wanting it, by the
way,
but I will supply you a solution anyway..." (--Sean M.
Doran)
<http://blank.org/memory/>--------------------------------------------------
--
_______________________________________________
Users mailing list
Users at lists.pushtotest.com
http://lists.pushtotest.com/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20050304/c378ecd0/attachment.htm
More information about the Users
mailing list