chaoshxxu / virtual-judge Goto Github PK
View Code? Open in Web Editor NEWHolding contests using problems from other OJs!!
Holding contests using problems from other OJs!!
2016-06-21 15:35:02 INFO RetryExec:95 - I/O exception (java.net.SocketException) caught when processing request to {}->http://codeforces.com:80: connect timed out
2016-06-21 15:35:02 INFO RetryExec:111 - Retrying request to {}->http://codeforces.com:80
2016-06-21 15:35:02 INFO RetryExec:95 - I/O exception (java.net.SocketException) caught when processing request to {}->http://codeforces.com:80: connect timed out
2016-06-21 15:35:02 INFO RetryExec:111 - Retrying request to {}->http://codeforces.com:80
2016-06-21 15:35:07 INFO SubmitCodeManager:40 - Create submit: #2961014 | POJ - 1112 | 2142B
2016-06-21 15:35:07 INFO RetentiveLoginer:27 - Login: POJ | Takeoffyang | SUBMIT_CODE_1112
2016-06-21 15:35:07 INFO RetryExec:95 - I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->http://poj.org:80: The target server failed to respond
2016-06-21 15:35:07 INFO RetryExec:111 - Retrying request to {}->http://poj.org:80
2016-06-21 15:35:08 INFO FileTool:104 - Write file: /home/admin/vj/tomcat/500-302
2016-06-21 15:35:32 INFO RetryExec:95 - I/O exception (java.net.SocketException) caught when processing request to {}->http://codeforces.com:80: connect timed out
2016-06-21 15:35:32 INFO RetryExec:95 - I/O exception (java.net.SocketException) caught when processing request to {}->http://codeforces.com:80: connect timed out
2016-06-21 15:35:32 INFO RetryExec:111 - Retrying request to {}->http://codeforces.com:80
2016-06-21 15:35:32 INFO RetryExec:111 - Retrying request to {}->http://codeforces.com:80
2016-06-21 15:36:00 INFO SessionCleaner:68 - Clean sessions: TOTAL:2 LOGIN:1 TRANSIENT:0 LEAVE:0 ABUSE:0
2016-06-21 15:36:02 INFO RetryExec:95 - I/O exception (java.net.SocketException) caught when processing request to {}->http://codeforces.com:80: connect timed out
2016-06-21 15:36:02 INFO RetryExec:111 - Retrying request to {}->http://codeforces.com:80
Finally the virtual oj works under Win7.
The new virtual oj has not the ui to crawl the problems from other real oj such as uva,poj and sgu etc.
The problems presently used are former vhoj, but they are only parts.
How to add problems to the virtual OJ?
以后来的人看
还有就是进入contest后就会一直弹窗error
I started a new virtual judge, and can craw problems of poj and others like zoj.And I have also modified remote_accounts.json,but when I submit the problem, zoj answered like AC,WA.But poj was always submited failed.How to sovle this?And I looked up the logs in tomcat, exception is like this:
java.lang.RuntimeException: java.lang.RuntimeException: org.apache.http.NoHttpResponseException: poj.org:80 failed to respond
at judge.httpclient.DedicatedHttpClient.execute(DedicatedHttpClient.java:42)
at judge.httpclient.DedicatedHttpClient.execute(DedicatedHttpClient.java:51)
at judge.httpclient.DedicatedHttpClient.post(DedicatedHttpClient.java:120)
at judge.remote.provider.poj.POJLoginer.loginEnforce(POJLoginer.java:32)
at judge.remote.loginer.RetentiveLoginer.login(RetentiveLoginer.java:33)
at judge.remote.submitter.CanonicalSubmitter$SubmitTask.call(CanonicalSubmitter.java:122)
at judge.remote.submitter.CanonicalSubmitter$SubmitTask.call(CanonicalSubmitter.java:96)
at judge.remote.account.RemoteAccountRepository$1.call(RemoteAccountRepository.java:183)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.RuntimeException: org.apache.http.NoHttpResponseException: poj.org:80 failed to respond
at judge.httpclient.MultipleProxyHttpClient.execute(MultipleProxyHttpClient.java:69)
at judge.httpclient.DedicatedHttpClient.execute(DedicatedHttpClient.java:30)
... 12 more
Caused by: org.apache.http.NoHttpResponseException: poj.org:80 failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:256)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:199)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:87)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:109)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:73)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
at judge.httpclient.MultipleProxyHttpClient.execute(MultipleProxyHttpClient.java:61)
Note: I can craw problems from poj.
So I don't know how to solve it.
Thanks!
Using VPN to download the schema,http_client.json and remote_accounts.json successfully!
But I have some other questions:
Question 1:
How to modify the config.properties?below is my modification:
remote OJ(absolute path)
remoteAccountsConfig.location= D:\java\Tomcat 8.0\webapps\vjudge\WEB-INF\classes\remote_accounts.json
HTTP client(absolute path)
httpClientConfig.location= D:\java\Tomcat 8.0\webapps\vjudge\WEB-INF\classes\http_client.json
Are they correct?
Questions 2:
How to modify the http_client.json?Below are parts of mime:
"proxies" :
[
["direct"],
["http", "acm.fzu.edu.cn", 25],
["http", "5.6.7.8", 25, "user", "pwd"],
["socks", "2.3.4.5", 26]
]
the number 25 means for what?
the "user" is for which?
May you give an example?
Thanks a lot!
I only need the contents of the table t_problem.
Thanks a lot!
Please add this 2 site to vjudge. This two sites arrange all onsite/online contest in Bangladesh.
schema, http_client.json, remote_accounts.json can't be downlaoded. why?
http://pastebin.com/iANwTPGh
How to put that file, and what it should contain.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.