|
|
Index
| Recent Threads
| Who's Online
| User List
| Search
| Help
| |
|
Forum has been closed down This forum has been closed down due to extensive spamming activities. Please use the mailing list instead. |
![]() |
openRDF.org Forum » AliBaba & Elmo: Help » Thread: Maximum to strings? |
|
Total posts in this thread: 4 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Feb 14, 2008 9:44:38 AM
semlab Regular Joined: Apr 11, 2007 Posts: 44 Status: Offline |
Hello, Is there a max to the length of a string that can be set through elmo? Because when trying to set strings larger than 3400 characters I consistently get the following error: Exception in thread "main" org.openrdf.elmo.exceptions.ElmoPersistException: org.openrdf.repository.RepositoryException: org.apache.commons.httpclient.NoHttpResponseException: The server 192.168.150.15 failed to respond at org.openrdf.elmo.sesame.SesameProperty.contains(SesameProperty.java:141) at org.openrdf.elmo.sesame.SesameProperty.add(SesameProperty.java:86) at org.openrdf.elmo.sesame.SesameProperty.addAll(SesameProperty.java:105) at org.openrdf.elmo.sesame.SesameProperty.setAll(SesameProperty.java:290) at org.openrdf.elmo.sesame.SesameProperty.setSingle(SesameProperty.java:302) at elmobeans.mappers.nl.vicore.SemlabResourceMapper.setBody(SemlabResourceMapper.java) at elmobeans.proxies._$9d8a3c595246a464._$EntityProxy5eb0266e0c1f05ce.setBody(_$EntityProxy5eb0266e0c1f05ce.java) at nl.semlab.ElmoTest.<init>(ElmoTest.java:110) at nl.semlab.ElmoTest.main(ElmoTest.java:124) Caused by: org.openrdf.repository.RepositoryException: org.apache.commons.httpclient.NoHttpResponseException: The server 192.168.150.15 failed to respond at org.openrdf.repository.http.HTTPRepositoryConnection.exportStatements(HTTPRepositoryConnection.java:159) at org.openrdf.repository.http.HTTPRepositoryConnection.getStatements(HTTPRepositoryConnection.java:142) at org.openrdf.repository.base.RepositoryConnectionBase.hasStatement(RepositoryConnectionBase.java:155) at org.openrdf.repository.base.RepositoryConnectionWrapper.hasStatement(RepositoryConnectionWrapper.java:278) at org.openrdf.repository.base.RepositoryConnectionWrapper.hasStatement(RepositoryConnectionWrapper.java:278) at org.openrdf.repository.contextaware.ContextAwareConnection.hasStatement(ContextAwareConnection.java:475) at org.openrdf.elmo.sesame.SesameProperty.contains(SesameProperty.java:139) ... 8 more Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server 192.168.150.15 failed to respond at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.openrdf.http.client.HTTPClient.getRDF(HTTPClient.java:1030) at org.openrdf.http.client.HTTPClient.getStatements(HTTPClient.java:532) at org.openrdf.repository.http.HTTPRepositoryConnection.exportStatements(HTTPRepositoryConnection.java:156) ... 14 more ---------------------------------------- -- http://www.semlab.nl |
||
|
|
Feb 15, 2008 8:47:55 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
Sesame, and probably Elmo too, doesn't have any restriction to the length of strings. This looks like an http communication problem to me. This still might be related to the length of the string though as the string is encoded in the URI for the http request, and some servers can't handle such long URIs. But in that case, I would expect a 414 (Request URI too long) error code. Any clues the server's log files? ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
|
Feb 18, 2008 1:58:19 PM
semlab Regular Joined: Apr 11, 2007 Posts: 44 Status: Offline |
server logs, good point, unfortunately there was nothing useful there... the sesame server was running in a glassfish app server. So to take that out of the loop I created a new local tomcat to run sesame on to reproduce the error. This initially seemed to fix the problem, until the strings saved became longer still <6500 characters, now the error is: Exception in thread "main" org.openrdf.elmo.exceptions.ElmoPersistException: org.openrdf.repository.RepositoryException: java.net.SocketException: Connection reset at org.openrdf.elmo.sesame.SesameProperty.contains(SesameProperty.java:141) at org.openrdf.elmo.sesame.SesameProperty.add(SesameProperty.java:86) at org.openrdf.elmo.sesame.SesameProperty.addAll(SesameProperty.java:105) at org.openrdf.elmo.sesame.SesameProperty.setAll(SesameProperty.java:290) at org.openrdf.elmo.sesame.SesameProperty.setSingle(SesameProperty.java:302) at elmobeans.mappers.nl.semlab.SemlabResourceMapper.setBody(SemlabResourceMapper.java) at elmobeans.proxies._$66b95b3e0bca1ae4._$EntityProxy76569cfe79de3782.setBody(_$EntityProxy76569cfe79de3782.java) at nl.semlab.ElmoTest.<init>(ElmoTest.java:130) at nl.semlab.ElmoTest.main(ElmoTest.java:153) Caused by: org.openrdf.repository.RepositoryException: java.net.SocketException: Connection reset at org.openrdf.repository.http.HTTPRepositoryConnection.exportStatements(HTTPRepositoryConnection.java:159) at org.openrdf.repository.http.HTTPRepositoryConnection.getStatements(HTTPRepositoryConnection.java:142) at org.openrdf.repository.base.RepositoryConnectionBase.hasStatement(RepositoryConnectionBase.java:155) at org.openrdf.repository.base.RepositoryConnectionWrapper.hasStatement(RepositoryConnectionWrapper.java:278) at org.openrdf.repository.base.RepositoryConnectionWrapper.hasStatement(RepositoryConnectionWrapper.java:278) at org.openrdf.repository.contextaware.ContextAwareConnection.hasStatement(ContextAwareConnection.java:475) at org.openrdf.elmo.sesame.SesameProperty.contains(SesameProperty.java:139) ... 8 more Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.openrdf.http.client.HTTPClient.getRDF(HTTPClient.java:1030) at org.openrdf.http.client.HTTPClient.getStatements(HTTPClient.java:532) at org.openrdf.repository.http.HTTPRepositoryConnection.exportStatements(HTTPRepositoryConnection.java:156) ... 14 more which seems like it might be related to the previous error. Is this error reproducible or am I the only one with this problem? Thanks ---------------------------------------- -- http://www.semlab.nl |
||
|
|
Feb 20, 2008 12:51:12 PM
james OpenRDF.org Consultant Canada Joined: Jul 21, 2005 Posts: 650 Status: Offline |
I created an issue for this: http://www.openrdf.org/issues/browse/SES-525 ---------------------------------------- Sesame Consultant http://leighnet.ca http://jamesrdf.blogspot.com |
||
|
| [Show Printable Version of Thread] |