scossin / ontodia-blazegraph-docker

A docker-compose to deploy blazegraph and ontodia
GNU Lesser General Public License v2.1
0 stars 0 forks source link

RDF4J - java.lang.IllegalStateException: Form too large: 2932380 > 200000 #2

Open scossin opened 2 years ago

scossin commented 2 years ago

When trying to load a RDF4J model in Java

String endpoint = "http://localhost:8889/bigdata/namespace/metadata";
SparqlConnection conn = new SparqlConnection(endpoint);
conn.getDBcon().add(main.getSubstances().getModel());

I got a java.lang.IllegalStateException error.

Adding

<Call name="setAttribute">
 <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
 <Arg>-1</Arg>
</Call>

in jetty.xml configuration file fixed the issue

scossin commented 2 years ago

Temporary fix 1fe3c694eefda903bd288c3a18b8e7715fa3126e :

docker cp jetty.xml blazegrapheds:/usr/local/jetty/etc/jetty.xml