chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: JSONParseException String too long
Date Tue, 28 Feb 2017 11:44:34 GMT
Hi Dmitry,

There is a limitation to protect the client from broken or malicious 
servers. It restricts strings (usually property values) to 102,400 
characters (!!!) per string.

Do you have a property value of that size? If not, your repository (or 
your network) might have a problem.


- Florian



> Good afternoon.
> 
> When attempt to import data from alfresco I get the following error 
> message
> "JSONParseException String too long".
> 
> If there any decision to import big data?
> 
> Yours faithfully Dmitry Lewicki.
> 
> Exception in thread "main"
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:
> Parsing exception: String too long
> at org.apache.chemistry.opencmis.client.bindings.spi.browser.
> AbstractBrowserBindingService.parse(AbstractBrowserBindingService.java:387)
> at org.apache.chemistry.opencmis.client.bindings.spi.browser.
> AbstractBrowserBindingService.parseObject(AbstractBrowserBindingService.
> java:351)
> at org.apache.chemistry.opencmis.client.bindings.spi.browser.
> NavigationServiceImpl.getChildren(NavigationServiceImpl.java:71)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl$2.
> fetchPage(FolderImpl.java:279)
> at org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.
> getCurrentPage(AbstractIterator.java:131)
> at org.apache.chemistry.opencmis.client.runtime.util.
> CollectionIterator.hasNext(CollectionIterator.java:41)
> at ru.gostinfo.AlfrescoToPostgresql.App.GetChildren(App.java:179)
> at ru.gostinfo.AlfrescoToPostgresql.App.GetChildren(App.java:187)
> at ru.gostinfo.AlfrescoToPostgresql.App.main(App.java:72)
> Caused by: String too long
> at org.apache.chemistry.opencmis.commons.impl.json.parser.
> Yylex.appendYytext(Yylex.java:378)
> at org.apache.chemistry.opencmis.commons.impl.json.parser.
> Yylex.yylex(Yylex.java:540)
> at org.apache.chemistry.opencmis.commons.impl.json.parser.
> JSONParser.nextToken(JSONParser.java:310)
> at org.apache.chemistry.opencmis.commons.impl.json.parser.
> JSONParser.parse(JSONParser.java:132)
> at org.apache.chemistry.opencmis.client.bindings.spi.browser.
> AbstractBrowserBindingService.parse(AbstractBrowserBindingService.java:385)
> ... 8 more

Mime
View raw message