Foren

Liferay 7 GA3: Unable to activate Liferay IP Geocoder

thumbnail
Alessandro Candini, geändert vor 7 Jahren.

Liferay 7 GA3: Unable to activate Liferay IP Geocoder

Regular Member Beiträge: 130 Beitrittsdatum: 17.10.15 Neueste Beiträge
I have the following stacktrace booting the new Liferay 7.0.2 CE GA3:
07:08:34,253 ERROR [localhost-startStop-1][IPGeocoderImpl:108] Unable to activate Liferay IP Geocoder
java.net.ConnectException: Connection timeout
...
07:08:34,278 ERROR [localhost-startStop-1][com_liferay_ip_geocoder:97] [IPGeocoder(2362)] The activate method has thrown an exception 
java.lang.RuntimeException: Unable to activate Liferay IP Geocoder
...
	... 147 more
07:08:34,281 ERROR [localhost-startStop-1][com_liferay_ip_geocoder:97] [IPGeocoder(2362)] Failed creating the component instance; see log for reason 
07:08:34,284 ERROR [localhost-startStop-1][com_liferay_sync_web:97] [com.liferay.sync.web.internal.portlet.SyncAdminPortlet(46)] Cannot create component instance due to failure to bind reference GroupLocalService 
07:08:34,285 ERROR [localhost-startStop-1][com_liferay_sync_web:97] [com.liferay.sync.web.internal.portlet.SyncAdminPortlet(46)] Failed creating the component instance; see log for reason 
07:10:41,483 ERROR [localhost-startStop-1][IPGeocoderImpl:108] Unable to activate Liferay IP Geocoder
java.net.ConnectException: Connection timeout
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
...

The boot hangs for several minutes and in the end ( Server startup in 655858 ms) the portal comes up, but this issue is really annoying and not present in Liferay 7 GA2.
Any idea on how to solve it?
Thanks
thumbnail
Alessandro Candini, geändert vor 7 Jahren.

RE: Liferay 7 GA3: Unable to activate Liferay IP Geocoder (Antwort)

Regular Member Beiträge: 130 Beitrittsdatum: 17.10.15 Neueste Beiträge
My fault: it was a proxy issue.
Setting it in my
liferayworkspace/bundles/tomcat-8.0.32/bin/setenv.sh
solved the problem.

This file now contains the following:
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true  -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Dhttp.proxyHost=my.proxy.com -Dhttp.proxyPort=1234 -Dhttps.proxyHost=my.proxy.com -Dhttps.proxyPort=1234 -Xmx1024m -XX:MaxPermSize=384m"
thumbnail
Gaurav Joshi, geändert vor 7 Jahren.

RE: Liferay 7 GA3: Unable to activate Liferay IP Geocoder

New Member Beiträge: 8 Beitrittsdatum: 14.04.14 Neueste Beiträge
Hi,
Go to Control Panel à Configuration à SystemSettings
Go to Foundation tab.
Somewhere at last there will be IP Geocoder entry.
Click on Action menu of IP Geocoder à Edit

Download the data base by pasting the link
http://cdn.mirrors.liferay.com/geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.xz
in browser address bar.

Copy file GeoLiteCity.dat.xz to you Liferay 7 home or anywhere you like
Give location of the file GeoLiteCity.dat.xz in File Path field.
thumbnail
Jobin Mathew, geändert vor 6 Jahren.

RE: Liferay 7 GA3: Unable to activate Liferay IP Geocoder

Junior Member Beiträge: 77 Beitrittsdatum: 04.07.14 Neueste Beiträge
Alessandro Candini:
My fault: it was a proxy issue.
Setting it in my
liferayworkspace/bundles/tomcat-8.0.32/bin/setenv.sh
solved the problem.

This file now contains the following:
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true  -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Dhttp.proxyHost=my.proxy.com -Dhttp.proxyPort=1234 -Dhttps.proxyHost=my.proxy.com -Dhttps.proxyPort=1234 -Xmx1024m -XX:MaxPermSize=384m"



i tried with this one, but not working,


11:44:05,656 ERROR [localhost-startStop-1][com_liferay_ip_geocoder:97] [IPGeocoder(1734)] The activate method has thrown an exception
java.lang.RuntimeException: Unable to activate Liferay IP Geocoder
at com.liferay.ip.geocoder.internal.IPGeocoderImpl.configure(IPGeocoderImpl.java:110)
at com.liferay.ip.geocoder.internal.IPGeocoderImpl.activate(IPGeocoderImpl.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295).....
thumbnail
Santosh B Biradar, geändert vor 6 Jahren.

RE: Liferay 7 GA3: Unable to activate Liferay IP Geocoder

Junior Member Beiträge: 41 Beitrittsdatum: 04.08.15 Neueste Beiträge
Hi,
Its a proxy error Please check your Internet connection.

Thanks
Santosh B B