Forums

Home » Liferay Sync

Combination View Flat View Tree View
Threads [ Previous | Next ]
Johan de jong
Setup fails: For input string: "ay P"
January 4, 2013 4:17 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 36

Join Date: February 6, 2012

Recent Posts

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:

 104 jan 2013 12:24:31,621 INFO  [DesktopSyncClient:247] Starting Liferay Sync
 204 jan 2013 12:24:32,279 DEBUG [DesktopSyncClient:264] Configuration loaded from disk.: false
 304 jan 2013 12:24:32,373 DEBUG [DesktopSyncClient:289] Sync not configured, prompting user.
 404 jan 2013 12:27:12,133 ERROR [AccountSettingsCompositeHandler:470] For input string: "ay P"
 5java.lang.NumberFormatException: For input string: "ay P"
 6    at java.lang.NumberFormatException.forInputString(Unknown Source)
 7    at java.lang.Integer.parseInt(Unknown Source)
 8    at java.lang.Integer.parseInt(Unknown Source)
 9    at com.liferay.sync.util.ServerReleaseInfo._setPortalVersion(ServerReleaseInfo.java:191)
10    at com.liferay.sync.util.ServerReleaseInfo._validateProductId(ServerReleaseInfo.java:214)
11    at com.liferay.sync.util.ServerReleaseInfo.getServerReleaseInfo(ServerReleaseInfo.java:47)
12    at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler.doTestConnection(AccountSettingsCompositeHandler.java:412)
13    at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler$1.run(AccountSettingsCompositeHandler.java:251)
14    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
15    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
16    at java.util.concurrent.FutureTask.run(Unknown Source)
17    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
18    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
19    at java.lang.Thread.run(Unknown Source)
2004 jan 2013 12:27:26,691 ERROR [AccountSettingsCompositeHandler:470] For input string: "ay P"
21java.lang.NumberFormatException: For input string: "ay P"
22    at java.lang.NumberFormatException.forInputString(Unknown Source)
23    at java.lang.Integer.parseInt(Unknown Source)
24    at java.lang.Integer.parseInt(Unknown Source)
25    at com.liferay.sync.util.ServerReleaseInfo._setPortalVersion(ServerReleaseInfo.java:191)
26    at com.liferay.sync.util.ServerReleaseInfo._validateProductId(ServerReleaseInfo.java:214)
27    at com.liferay.sync.util.ServerReleaseInfo.getServerReleaseInfo(ServerReleaseInfo.java:47)
28    at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler.doTestConnection(AccountSettingsCompositeHandler.java:412)
29    at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsCompositeHandler$1.run(AccountSettingsCompositeHandler.java:251)
30    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
31    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
32    at java.util.concurrent.FutureTask.run(Unknown Source)
33    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
34    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
35    at java.lang.Thread.run(Unknown Source)
Hitoshi Ozawa
RE: Setup fails: For input string: "ay P"
January 4, 2013 4:24 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Try connection to Liferay 6.1.1 GA2 to check if that'll work.
Johan de jong
RE: Setup fails: For input string: "ay P"
January 4, 2013 4:30 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 36

Join Date: February 6, 2012

Recent Posts

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
RE: Setup fails: For input string: "ay P"
January 4, 2013 5:34 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 36

Join Date: February 6, 2012

Recent Posts

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
RE: Setup fails: For input string: "ay P"
January 4, 2013 5:47 AM
Answer

Johan de jong

Rank: Junior Member

Posts: 36

Join Date: February 6, 2012

Recent Posts

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!
Michael Young
RE: Setup fails: For input string: "ay P"
January 4, 2013 6:47 AM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 842

Join Date: August 4, 2004

Recent Posts

Liferay Sync is only supported under Liferay Portal 6.1.1 GA2. You will have unreliable behavior under GA1.
Anonymous
RE: Setup fails: For input string: "ay P"
January 4, 2013 7:17 AM
Answer

Anonymous

What is the url and port you are trying to connect to?
Dennis Ju
RE: Setup fails: For input string: "ay P"
January 4, 2013 9:25 AM
Answer

Dennis Ju

LIFERAY STAFF

Rank: Regular Member

Posts: 118

Join Date: September 30, 2010

Recent Posts

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