error running server

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error running server

Sachi
Hi,

I am trying to run the server using mvn -Pcli and mvn -Pweb, but after the broker logs in, it is throwing this error saying connection refused since it cannot retrieve the weather report. I am running the 0.6.0 snapshot version. It was running perfectly few days back, but i am suddenly getting this error. Could someone help me with this? Im not sure why this is happening?

3170 [Thread-3] INFO org.apache.activemq.broker.BrokerService - ActiveMQ JMS Message Broker (simJmsProvider, ID:unknown-e0-f8-47-00-aa-20.home-57216-1344771396706-0:1) started
Exception Raised: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
        at sun.net.www.http.HttpClient.New(HttpClient.java:307)
        at sun.net.www.http.HttpClient.New(HttpClient.java:324)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
        at org.powertac.server.WeatherService.webRequest(WeatherService.java:399)
        at org.powertac.server.WeatherService.activate(WeatherService.java:316)
        at org.powertac.server.CompetitionControlService.step(CompetitionControlService.java:690)
        at org.powertac.server.CompetitionControlService.access$8(CompetitionControlService.java:676)
        at org.powertac.server.CompetitionControlService$SimRunner.run(CompetitionControlService.java:955)
Exception in thread "Thread-10" org.powertac.common.exceptions.PowerTacException: Attempt to retrieve report before data available
        at org.powertac.common.repo.WeatherReportRepo.currentWeatherReport(WeatherReportRepo.java:71)

The sim.trace log file reports the following error:
22611 ERROR server.WeatherService: Exception Raised during newtork call: java.net.ConnectException: Connection refused
22612 ERROR repo.WeatherReportRepo: Weather Service has yet to run, cannot retrieve report

Reply | Threaded
Open this post in threaded view
|

Re: error running server

LEE SEHOON
Hello,

I have a same problem with running the server.

When we start the simulation, the weather reports should be downloaded from the server.
But now it is blocked.
 
"7679 INFO  server.WeatherService: Timeslot 575 WeatherService reports time to make network request for weather data in blocking = true mode."

I will be appreciate it, if there is someone who can fix it.

*****************************************************************************
java.net.ConnectException: Connection refused: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
Exception Raised: java.net.ConnectException: Connection refused: connect
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
        at sun.net.www.http.HttpClient.New(HttpClient.java:290)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
        at org.powertac.server.WeatherService.webRequest(WeatherService.java:399)
        at org.powertac.server.WeatherService.activate(WeatherService.java:316)
        at org.powertac.server.CompetitionControlService.step(CompetitionControlService.java:691)
        at org.powertac.server.CompetitionControlService.access$8(CompetitionControlService.java:677)
        at org.powertac.server.CompetitionControlService$SimRunner.run(CompetitionControlService.java:956)
Exception in thread "Thread-9" org.powertac.common.exceptions.PowerTacException: Attempt to retrieve report before data available
        at org.powertac.common.repo.WeatherReportRepo.currentWeatherReport(WeatherReportRepo.java:71)
        at org.powertac.householdcustomer.customers.Village.weatherCheck(Village.java:2074)
        at org.powertac.householdcustomer.customers.Village.step(Village.java:2039)
        at org.powertac.householdcustomer.HouseholdCustomerService.activate(HouseholdCustomerService.java:510)
        at org.powertac.server.CompetitionControlService.step(CompetitionControlService.java:691)
        at org.powertac.server.CompetitionControlService.access$8(CompetitionControlService.java:677)
        at org.powertac.server.CompetitionControlService$SimRunner.run(CompetitionControlService.java:956)
10186 [ActiveMQ Transport: tcp:///127.0.0.1:50908] WARN org.apache.activemq.broker.TransportConnection.Service - Async error occurred: java.lang.IllegalStateException: Cannot remove a consumer from a connection that had not been registered: ID:Lee-PC-50907-1344837482141-1:1
java.lang.IllegalStateException: Cannot remove a consumer from a connection that had not been registered: ID:Lee-PC-50907-1344837482141-1:1
        at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:582)
        at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:76)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:150)
        at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
        at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:229)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:222)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:204)
        at java.lang.Thread.run(Thread.java:722)

********************************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: error running server

grampajohn
Administrator
In reply to this post by Sachi
I assume this was because of a temporary network outage at Minnesota. It is currently working for me. Is this resolved?

John