XOWA using latest dump file from enwiki dumps site and imported using XOWA importer as XML file type.
Using latest XOWA version.
Windows Server 2012 R2.
Java 1.8
HTTP Server listening on port 8282 as I have WAMP running on port 80.
When running XOWA HTTP Server on windows 64 all is fine.
I can do a single word search "block" and works fine. If I do a two word search "the block" I get the error:
loading categories: count=19Request: GET /en.wikipedia.org/wiki/Special:Search?search=the+blockfulltext=y HTTP/1.1 java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.write(Unknown Source) at gplx.xowa.servers.http.HttpRequest.sendBytes(Unknown Source) at gplx.xowa.servers.http.HttpRequest.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Any help would be appreciated.
Matthew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! Sorry for the delay, and thanks for the detail.
I tried now but was unable to reproduce it. My setup is a Windows 7 box with Java 1.7. The code is pretty straightforward, so I can't explain why it works on one platform but not another.
I'll try to reproduce, but it may take some time. I'll post again when I find something.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-11-22
Would you recommend downgrading the Java version to 1.7 from 1.8? Would it make a difference?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, it turned out I did have Java 1.8 on my Windows 7 box (1.8.0_05-b13). I also tried just now on a Windows XP machine with Java 1.7 and port 8282 -- still the same result.
I noticed that your output drops the & in the Request GET. See the text below and the & just before "fulltext=y":
Request: GET /en.wikipedia.org/wiki/Special:Search?search=the+block&fulltext=y HTTP/1.1
Can you confirm if this is the case? This might be some sort of clue.
Furthermore, I'm trying the search from within en.wikipedia.org. See the following url:
In addition, I don't have access to a Windows Server 2012 R2. I don't think this should be an issue, but I would like to see if this is reproducible on other machines on your side. Can you try installing on a Windows 7 machine?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-11-24
Okay I just tried something.
If I use localhost:8282 as the web url the search function works correctly.
If I use MY_IP_ADD:8282 as the web url the search function fails on two or more words.
Possible got to do with the HTTP_SERVER not knowing where to look for the search scripts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you post your full url? If you're concerned about exposing your IP Address then email me the url at gnosygnu at gmail dot com
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-11-24
Howzit, my IP is behind my ISP NAT so wont be able to give you my IP. Since you searched for the "The Block" it works...try searching for "The doors of life" random text i know :) That didnt work for me on 172.18.221.130:8282 but did work on localhost:8282
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
my IP is behind my ISP NAT so wont be able to give you my IP.
That's okay. I'm not interested in connecting to your server. :) I just wanted to see if your full url (with IP address) had any clues. I'm particularly interested in which wiki you're on when you do the search.
try searching for "The doors of life"
Hmmm... This threw an out of memory error on my side. I'll look at this more later, and post more details.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HTTP Server started: Navigate to http://localhost:8282
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at gplx.xowa.servers.http.Http_server_wkr.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread:xowa.http_server" java.lang.NullPointerException
at gplx.xowa.servers.http.Http_server_wkr.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry again for the late reply and thanks for the example. The error means that there are two XOWA servers running. (Address already in use). Try restarting the machine or ending all "java" processes in Task Manager. If it still doesn't work, I'll look further. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
XOWA using latest dump file from enwiki dumps site and imported using XOWA importer as XML file type.
Using latest XOWA version.
Windows Server 2012 R2.
Java 1.8
HTTP Server listening on port 8282 as I have WAMP running on port 80.
When running XOWA HTTP Server on windows 64 all is fine.
I can do a single word search "block" and works fine. If I do a two word search "the block" I get the error:
loading categories: count=19Request: GET /en.wikipedia.org/wiki/Special:Search?search=the+blockfulltext=y HTTP/1.1 java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.DataOutputStream.write(Unknown Source) at gplx.xowa.servers.http.HttpRequest.sendBytes(Unknown Source) at gplx.xowa.servers.http.HttpRequest.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Any help would be appreciated.
Matthew
Hi! Sorry for the delay, and thanks for the detail.
I tried now but was unable to reproduce it. My setup is a Windows 7 box with Java 1.7. The code is pretty straightforward, so I can't explain why it works on one platform but not another.
I'll try to reproduce, but it may take some time. I'll post again when I find something.
Thanks.
Would you recommend downgrading the Java version to 1.7 from 1.8? Would it make a difference?
Thanks
Actually, it turned out I did have Java 1.8 on my Windows 7 box (1.8.0_05-b13). I also tried just now on a Windows XP machine with Java 1.7 and port 8282 -- still the same result.
I noticed that your output drops the & in the Request GET. See the text below and the & just before "fulltext=y":
Request: GET /en.wikipedia.org/wiki/Special:Search?search=the+block&fulltext=y HTTP/1.1
Can you confirm if this is the case? This might be some sort of clue.
Furthermore, I'm trying the search from within en.wikipedia.org. See the following url:
Can you let me know which URL you are using?
In addition, I don't have access to a Windows Server 2012 R2. I don't think this should be an issue, but I would like to see if this is reproducible on other machines on your side. Can you try installing on a Windows 7 machine?
Thanks.
Okay I just tried something.
If I use localhost:8282 as the web url the search function works correctly.
If I use MY_IP_ADD:8282 as the web url the search function fails on two or more words.
Possible got to do with the HTTP_SERVER not knowing where to look for the search scripts?
Hmm... I wasn't able to reproduce this on my side. I used the following url:
Can you post your full url? If you're concerned about exposing your IP Address then email me the url at gnosygnu at gmail dot com
Thanks.
Howzit, my IP is behind my ISP NAT so wont be able to give you my IP. Since you searched for the "The Block" it works...try searching for "The doors of life" random text i know :) That didnt work for me on 172.18.221.130:8282 but did work on localhost:8282
That's okay. I'm not interested in connecting to your server. :) I just wanted to see if your full url (with IP address) had any clues. I'm particularly interested in which wiki you're on when you do the search.
Hmmm... This threw an out of memory error on my side. I'll look at this more later, and post more details.
Thanks.
Hi,
Heres the IP
http://172.18.221.130:8282/en.wikipedia.org/wiki/Special:Search?search=hillary+clinton&fulltext=y
Heres some more info from my CMD:
HTTP Server started: Navigate to http://localhost:8282
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at gplx.xowa.servers.http.Http_server_wkr.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread:xowa.http_server" java.lang.NullPointerException
at gplx.xowa.servers.http.Http_server_wkr.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Sorry again for the late reply and thanks for the example. The error means that there are two XOWA servers running. (Address already in use). Try restarting the machine or ending all "java" processes in Task Manager. If it still doesn't work, I'll look further. Thanks.