Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
OpenCMIS 0.5.0
Description
If execute this code i got an error.
Session session = getCMISSession();
try{
Folder folder = (Folder) session.getObjectByPath("/");
for (int i = 0; i < 100; i++)
}catch (CmisBaseException e)
{ e.printStackTrace(); System.err.println(e.getErrorContent()); }
Maybe because in org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils after open connection
don't close the connection.
HttpURLConnection conn = (HttpURLConnection) (new URL(url.toString())).openConnection();
if I add this code everythings work fine.
conn.setRequestProperty("connection", "close");