Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bob McDermott
Proxy Blocking App Communications
August 16, 2012 12:25 PM
Answer

Bob McDermott

Rank: Junior Member

Posts: 34

Join Date: April 30, 2012

Recent Posts

Hi All,

I have recently downloaded the Stocks and Weather apps. I can use them fine from home, but when I try and use them from work the proxy is blocking the communication for some reason. I have already entered the correct proxy values in portal-ext.properties:

http.proxyHost=xxxx
http.proxyPort=8080
http.nonProxyHosts=xxxxx

When I try to set my preferences in either portlet, I get the following message:

Your request failed to complete.
The following are invalid cities or zip codes: 02050.

Again when i use it from home, the same values work fine. So I am assuming this is a misleading error because the source site cannot be reached.

I know that no one can help me fix the proxy but what can I tell my network folks about these apps? What kind of communication is happening and what ports is it trying to use? Interestingly, the Google maps portlet works fine. Maybe it is just the sites the weather and stocks portlets use are blocked.

Any insight on what is going on under the covers of these portlets as far as network traffic?
Thanks.
James Falkner
RE: Proxy Blocking App Communications
August 17, 2012 1:10 PM
Answer

James Falkner

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1213

Join Date: September 17, 2010

Recent Posts

Bob McDermott:
Hi All,

I have recently downloaded the Stocks and Weather apps. I can use them fine from home, but when I try and use them from work the proxy is blocking the communication for some reason. I have already entered the correct proxy values in portal-ext.properties:

http.proxyHost=xxxx
http.proxyPort=8080
http.nonProxyHosts=xxxxx

When I try to set my preferences in either portlet, I get the following message:

Your request failed to complete.
The following are invalid cities or zip codes: 02050.

Again when i use it from home, the same values work fine. So I am assuming this is a misleading error because the source site cannot be reached.

I know that no one can help me fix the proxy but what can I tell my network folks about these apps? What kind of communication is happening and what ports is it trying to use? Interestingly, the Google maps portlet works fine. Maybe it is just the sites the weather and stocks portlets use are blocked.

Any insight on what is going on under the covers of these portlets as far as network traffic?
Thanks.


The stocks portlet doesn't do anything special - it just accesses stock data from finance.yahoo.com using http on port 80 - see the source code.

I think your issue is that you need to set your HTTP proxy info in system-ext.properties - not portal-ext.properties. The portal-ext.properties are settings for Liferay, whereas system-ext.properties is for JVM properties globally (the same thing can be accomplished by changing the way Java is invoked, e.g. for Tomcat by changing the bin/setenv.[bat|sh] file to include things like -Dhttp.proxyPort=8080 -Dhttp.proxyHost=somehost).
Hitoshi Ozawa
RE: Proxy Blocking App Communications
August 17, 2012 6:45 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Check the system.properties as James said.
http://content.liferay.com/document/system.properties.html

##
## HTTP
##

#
# Set the location of the HTTP proxy that the portal will use to fetch
# external content.
#
#com.liferay.util.Http.proxy.host=192.168.0.200
#com.liferay.util.Http.proxy.port=4480

#
# Set the connection timeout when fetching HTTP content.
#
com.liferay.util.Http.timeout=5000

##
## Axis
##

#
# Urls that match the specified pattern will use the SimpleHTTPSender. Urls
# that do not match the specified pattern will use Axis' default HTTPSender.
#
com.liferay.util.axis.SimpleHTTPSender.regexp.pattern=.*mappoint\.net.*
Bob McDermott
RE: Proxy Blocking App Communications
August 20, 2012 6:40 AM
Answer

Bob McDermott

Rank: Junior Member

Posts: 34

Join Date: April 30, 2012

Recent Posts

Thanks. This worked.

Bob
Bob McDermott
RE: Proxy Blocking App Communications
August 20, 2012 7:15 AM
Answer

Bob McDermott

Rank: Junior Member

Posts: 34

Join Date: April 30, 2012

Recent Posts

It would be nice if this portlet allowed for the indexes as well as individual stocks... DJI, NASDAQ etc....

Is there a good place to provide this type of feedback?
James Falkner
RE: Proxy Blocking App Communications
August 20, 2012 7:41 AM
Answer

James Falkner

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1213

Join Date: September 17, 2010

Recent Posts

Bob McDermott:
It would be nice if this portlet allowed for the indexes as well as individual stocks... DJI, NASDAQ etc....

Is there a good place to provide this type of feedback?


Hey Bob - you can file an 'improvement' ticket at issues.liferay.com.. be sure to choose the "Plugin - Portlets" component when filing.
Hitoshi Ozawa
RE: Proxy Blocking App Communications
August 20, 2012 7:52 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I never thought anyone was actually using these portlets. The only portlet I've actually used in production is the web content portlet. All the other portlets, we've developed ourselves. :-)