Foros de discusión

Setup fails: For input string: "ay P"

Johan de jong, modificado hace 11 años.

Setup fails: For input string: "ay P"

Junior Member Mensajes: 41 Fecha de incorporación: 6/02/12 Mensajes recientes
When i try conect to my server running Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January 6, 2012) it fails with a strange message:

04 jan 2013 12:24:31,621 INFO  [DesktopSyncClient:247] Starting Liferay Sync
04 jan 2013 12:24:32,279 DEBUG [DesktopSyncClient:264] Configuration loaded from disk.: false
04 jan 2013 12:24:32,373 DEBUG [DesktopSyncClient:289] Sync not configured, prompting user.
04 jan 2013 12:27:12,133 ERROR [AccountSettingsCompositeHandler:470] For input string: "ay P"
java.lang.NumberFormatException: For input string: "ay P"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at com.liferay.sync.util.ServerReleaseInfo._setPortalVersion(ServerReleaseInfo.java:191)
	at com.liferay.sync.util.ServerReleaseInfo._validateProductId(ServerReleaseInfo.java:214)
	at com.liferay.sync.util.ServerReleaseInfo.getServerReleaseInfo(ServerReleaseInfo.java:47)
	at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler.doTestConnection(AccountSettingsCompositeHandler.java:412)
	at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler$1.run(AccountSettingsCompositeHandler.java:251)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
04 jan 2013 12:27:26,691 ERROR [AccountSettingsCompositeHandler:470] For input string: "ay P"
java.lang.NumberFormatException: For input string: "ay P"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at com.liferay.sync.util.ServerReleaseInfo._setPortalVersion(ServerReleaseInfo.java:191)
	at com.liferay.sync.util.ServerReleaseInfo._validateProductId(ServerReleaseInfo.java:214)
	at com.liferay.sync.util.ServerReleaseInfo.getServerReleaseInfo(ServerReleaseInfo.java:47)
	at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler.doTestConnection(AccountSettingsCompositeHandler.java:412)
	at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler$1.run(AccountSettingsCompositeHandler.java:251)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Try connection to Liferay 6.1.1 GA2 to check if that'll work.
Johan de jong, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"

Junior Member Mensajes: 41 Fecha de incorporación: 6/02/12 Mensajes recientes
i just started downloading the latest 6.1.1 but i need to install a new virtual server first, since an update of my existing servers is not so easy
Johan de jong, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"

Junior Member Mensajes: 41 Fecha de incorporación: 6/02/12 Mensajes recientes
I got Liferay Portal Community Edition 6.1.1 CE GA2 (Paton / Build 6101 / July 31, 2012) running now
it runs on glassfish with a MySQL database.

but still no luck, i see the same errors
Johan de jong, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"

Junior Member Mensajes: 41 Fecha de incorporación: 6/02/12 Mensajes recientes
WAAAAAA emoticon emoticon

Sorry

I just found out what bugged me. I have a standard portal-ext.properties and to prevent hackers from knowing which server the visit i had the following line in this file:
http.header.version.verbosity=partial

I finaly noticed this line in my synctool log:
at com.liferay.sync.util.ServerReleaseInfo.getServerReleaseInfo

removing the line from portal-ext.properties solved it!
thumbnail
Michael Young, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"

Liferay Master Mensajes: 846 Fecha de incorporación: 5/08/04 Mensajes recientes
Liferay Sync is only supported under Liferay Portal 6.1.1 GA2. You will have unreliable behavior under GA1.
thumbnail
Dennis Ju, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"

Regular Member Mensajes: 228 Fecha de incorporación: 30/09/10 Mensajes recientes
Johan de jong:
WAAAAAA emoticon emoticon

Sorry

I just found out what bugged me. I have a standard portal-ext.properties and to prevent hackers from knowing which server the visit i had the following line in this file:
http.header.version.verbosity=partial

I finaly noticed this line in my synctool log:
at com.liferay.sync.util.ServerReleaseInfo.getServerReleaseInfo

removing the line from portal-ext.properties solved it!


This will be resolved in the next version of Liferay Sync (a warning message will appear if the version can't be detected). See SYNC-597
Gail Hernandez, modificado hace 11 años.

RE: Setup fails: For input string: "ay P"