+3 votes
1.1k views

Hi everyone,

Before my explanation, this is our computing platform

Local machine: Windows 10 64 bits, Open openLCA 1.7.4

Collaboration server:
Unbuntu 18.04 LTS
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
javac 1.8.0_191
Elasticsearach 6.5.1
Apache Tomcat/8.5.30 (Ubuntu)

On local machine, a new database is created and the Agribalyse database is imported.

This database is connected to a remote repository (Collaboration server).

When I try to commit, openLCA (local machine) return an error.

com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: Error writing request body to server


This is an sample of log.html

Time     Thread     Level     Category     Message
0     JavaFX Application Thread     ERROR     org.openlca.app.navigation.actions.cloud.CommitAction     Error during commit action
org.openlca.cloud.util.WebRequests$WebRequestException: com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: Error writing request body to server
     at org.openlca.cloud.util.WebRequests.call(WebRequests.java:51)
     at org.openlca.cloud.api.LibraryCheckInvocation.execute(LibraryCheckInvocation.java:46)
     at org.openlca.cloud.api.RepositoryClient.lambda$performLibraryCheck$5(RepositoryClient.java:160)
     at org.openlca.cloud.api.RepositoryClient.executeLoggedIn(RepositoryClient.java:376)
     at org.openlca.cloud.api.RepositoryClient.performLibraryCheck(RepositoryClient.java:155)
     at org.openlca.app.navigation.actions.cloud.CommitAction$Runner.checkAgainstLibraries(CommitAction.java:256)
     at org.openlca.app.App.lambda$0(App.java:192)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
    Caused by: com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: Error writing request body to server
     at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)
     at com.sun.jersey.api.client.Client.handle(Client.java:652)
     at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
     at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
     at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:560)
     at org.openlca.cloud.util.WebRequests.call(WebRequests.java:60)
     at org.openlca.cloud.util.WebRequests.call(WebRequests.java:42)
     ... 7 more
    Caused by: java.io.IOException: Error writing request body to server
     at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3479)
     at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3462)
     at com.sun.jersey.api.client.CommittingOutputStream.write(CommittingOutputStream.java:90)
     at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
     at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
     at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
     at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
     at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
     at java.io.BufferedWriter.write(BufferedWriter.java:230)
     at java.io.Writer.write(Writer.java:157)
     at com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:190)
     at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:128)
     at com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:88)
     at com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:58)
     at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300)
     at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217)
     at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)

     
     
Could you fix it?

Thank you

Christophe

in LCA Collaboration Server by (370 points)
recategorized by
by (7.5k points)
I will look into this, for now you can try to disable the 'Check against libraries' feature in the openLCA preferences (Collaboration) .
by (370 points)
Thank's for your return, but i get the same error.

0     JavaFX Application Thread     ERROR     org.openlca.app.navigation.actions.cloud.CommitAction     Error during commit action

Christophe
by (7.5k points)
Can you post the complete stacktrace? It is only the message that is the same, the cause of the problem probably not
by (370 points)
This openLCA screen error, if it can help you.

com.sun.jersey.api.client.clienthandlerexception: java.ioException: error writing request body servet to server

Christophe

Christophe
by (7.5k points)
I mean the same complete error from the log.html - if you take a close look, youll find differences in the calling code. The one from before was:

at org.openlca.cloud.util.WebRequests.call(WebRequests.java:51)
     at org.openlca.cloud.api.LibraryCheckInvocation.execute(LibraryCheckInvocation.java:46)
     at org.openlca.cloud.api.RepositoryClient.lambda$performLibraryCheck$5(RepositoryClient.java:160)
     at org.openlca.cloud.api.RepositoryClient.executeLoggedIn(RepositoryClient.java:376)
     at org.openlca.cloud.api.RepositoryClient.performLibraryCheck(RepositoryClient.java:155)
     at org.openlca.app.navigation.actions.cloud.CommitAction$Runner.checkAgainstLibraries(CommitAction.java:256)

I would assume since you disabled the check, it should be different in the newer error.

Please log in or register to answer this question.

...