2017-02-09 7 views
0

IBMでコードラリーサーバーをインストールしました。ローカルサーバー上でレースに参加できません

実行すると、サーバー情報ページにアクセスしてリーダーボードを表示できます。 しかし、私は、Eclipseを入力しようとすると、私はまた、GitHubの上で見つかったnodeclientに接続しようが、私もそこに認証することができません

「ローカルホスト上Keepertjeを入力することができません」

を取得します。何か不足していますか?

大切にお考えください。 シンディ

私は、Server.xml:

<!-- Enable features --> 
<featureManager> 
    <feature>webProfile-7.0</feature> 
    <feature>localConnector-1.0</feature> 
    <feature>websocket-1.1</feature> 
</featureManager> 

<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" --> 
<httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/> 

<!-- Automatically expand WAR files and EAR files --> 
<applicationManager autoExpand="true"/> 


<applicationMonitor updateTrigger="mbean"/> 

<webApplication id="CodeRallyWeb" location="CodeRallyWeb.war" name="CodeRallyWeb"/> 

エラー:

------Start of DE processing------ = [9-2-17 15:17:13:214 CET] 
Exception = javax.servlet.ServletException 
Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters 
probeid = 1064 
Stack Dump = javax.servlet.ServletException: java.lang.IllegalArgumentException: There is no value matching -1 id 
    at com.ibm.coderally.web.service.DatabaseServletUbi.doPost(DatabaseServletUbi.java:64) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1290) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:778) 
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475) 
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1157) 
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4956) 
    at com.ibm.ws.webcontainer31.osgi.webapp.WebApp31.handleRequest(WebApp31.java:525) 
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(DynamicVirtualHost.java:315) 
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1014) 
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:280) 
    at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:967) 
    at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.wrapHandlerAndExecute(HttpDispatcherLink.java:359) 
    at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:318) 
    at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471) 
    at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405) 
    at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285) 
    at com.ibm.ws.http.channel.internal.inbound.HttpICLReadCallback.complete(HttpICLReadCallback.java:66) 
    at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504) 
    at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574) 
    at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929) 
    at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.IllegalArgumentException: There is no value matching -1 id 
    at com.ibm.coderally.api.ai.CheckpointAI.getById(CheckpointAI.java:109) 
    at com.ibm.coderally.web.service.SubmitVehicle.buildIntermediateRaceCar(SubmitVehicle.java:421) 
    at com.ibm.coderally.web.service.SubmitVehicle.doPost(SubmitVehicle.java:307) 
    at com.ibm.coderally.web.service.DatabaseServletUbi.doPost(DatabaseServletUbi.java:61) 
    ... 25 more 

Dump of callerThis 
null 

Make Vehicle All Vehicles in the corner

Server.json

{"servers":[{"alias":"IBM Cloud","host":"http://www.coderallycloud.com","username":"someone","oauthType":null,"logoutURL":null,"port":80,"userId":77},{"alias":"NA Contest Server","host":"http://challenge-na.coderallycloud.com","username":"","oauthType":null,"logoutURL":null,"port":80,"userId":-1},{"alias":"EU Contest Server","host":"http://challenge-eu.coderallycloud.com","username":"","oauthType":null,"logoutURL":null,"port":80,"userId":-1},{"alias":"Brazil Contest Server","host":"http://challenge-br.coderallycloud.com","username":"","oauthType":null,"logoutURL":null,"port":80,"userId":-1},{"alias":"India Contest Server","host":"http://challenge-in.coderallycloud.com","username":"","oauthType":null,"logoutURL":null,"port":80,"userId":-1},{"alias":"China Contest Server","host":"http://challenge-cn.coderallycloud.com","username":"","oauthType":null,"logoutURL":null,"port":80,"userId":-1},{"alias":"MyOwnServer","host":"http://localhost","username":"Keepertje","oauthType":null,"logoutURL":null,"port":9080,"userId":1}]} 

答えて

0

OKこれで、エラーメッセージに従ってサーバーにまだログインしていません。これを行うには、Eclipseのサーバーブラウザ(新しいAIを作成するための緑の+の横にある灰色の四角形のアイコン)をクリックしてください。ローカルサーバーを選択し、右側のログインボタンを使用してログインします。ユーザー名が存在しない場合は、作成してログインします。ログインすると新しいレースをリクエストできますあなたがログインしていなければ-1というIDのエラーメッセージが表示されます - この状況のた​​めにテキストを変更して見せてくれます)。

+0

ログインしています(画像を追加しました)。同じユーザー名で再度ログインすると、そのユーザーはサーバーに存在し、実際には私のものであると表示されます。 – CodingCindy

+0

しかし、これはうまくいきませんでした:( – CodingCindy

+0

右クリックメニューでトップオプションを選択した場合、またはサーバーを選択した場合は2番目のオプションを選択しましたか?トップオプションでは、 2番目のオプションを使用した場合、 /user/.coderallyに移動できますか(OSで隠しフォルダを表示する必要があるかもしれません)。そのフォルダはservers.jsonファイルです - そのファイルの内容を貼り付けることができますか? –

関連する問題