]
Gary Brown updated GADGETS-38:
------------------------------
Attachment: server.log
Gadget web exception when using port offset
-------------------------------------------
Key: GADGETS-38
URL:
https://issues.jboss.org/browse/GADGETS-38
Project: Gadget Server and Gadgets
Issue Type: Bug
Reporter: Gary Brown
Assignee: Jeff Yu
Fix For: 1.0.0.M4
Attachments: server.log
When trying to use the port offset during server startup, e.g.
./standalone.sh -c standalone-full.xml -Djboss.socket.binding.port-offset=1000
I get the following exception when attempting to add gadgets to the webpage (using
http://localhost:9080/gadget-web). First sign is that the images for the bam gadgets are
missing, and then when going back to the web page it is blank.
{noformat}
14:20:54,395 INFO [org.hibernate.tool.hbm2ddl.SchemaExport]
(http-localhost.localdomain-127.0.0.1-9080-6) HHH000230: Schema export complete
14:21:19,045 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6)
org.apache.http.conn.HttpHostConnectException: Connection to
http://localhost:8080
refused
14:21:19,046 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
14:21:19,050 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
14:21:19,050 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
14:21:19,050 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
14:21:19,051 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
14:21:19,051 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
14:21:19,052 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
14:21:19,052 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:109)
14:21:19,053 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:39)
14:21:19,053 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40)
14:21:19,054 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:45)
14:21:19,054 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:443)
14:21:19,055 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:674)
14:21:19,055 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.client.ClientRequest.post(ClientRequest.java:565)
14:21:19,055 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.client.ClientRequest.post(ClientRequest.java:570)
14:21:19,056 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.jboss.resteasy.client.ClientRequest.postTarget(ClientRequest.java:577)
14:21:19,056 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.overlord.gadgets.web.server.ShindigGadgetMetadataService.getMetadata(ShindigGadgetMetadataService.java:154)
14:21:19,057 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.overlord.gadgets.web.server.ShindigGadgetMetadataService.getGadgetMetadata(ShindigGadgetMetadataService.java:47)
14:21:19,057 ERROR [stderr] (http-localhost.localdomain-127.0.0.1-9080-6) at
org.overlord.gadgets.web.server.UserController.getPageModels(UserController.java:126)
{noformat}
Possibly a related issue - when using a server with a port offset, when an existing
server is also running at port 8080 (so manages to avoid this exception), the gadgets
don't appear to issue the requests to the offset port.
I've issued a REST query to the server and it returns data - but when using the
gadget web, the gadgets are blank.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: