You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "aki yoshida (JIRA)" <ji...@apache.org> on 2015/08/26 12:46:45 UTC
[jira] [Commented] (OLINGO-767) TriPinService Test fails sometimes
in maven build
[ https://issues.apache.org/jira/browse/OLINGO-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14712928#comment-14712928 ]
aki yoshida commented on OLINGO-767:
------------------------------------
Could this be of the port that the test is used?
I noticed that many (maybe all) tests on olingo are using some
constant port number instead of generating a free port number.
Maybe this is not related directly to the actual problem of
TripPinService, but I had often problems in running the olingo
builds/tests where something else is running.
So, I think it would be nice to have a test utility class somewhere in
oligo so that any test can use it to find a free port to run its
tests?.
here is such a utility class used in apache camel.
https://github.com/apache/camel/blob/master/components/camel-test/src/main/java/org/apache/camel/test/AvailablePortFinder.java
regards, aki
> TriPinService Test fails sometimes in maven build
> -------------------------------------------------
>
> Key: OLINGO-767
> URL: https://issues.apache.org/jira/browse/OLINGO-767
> Project: Olingo
> Issue Type: Bug
> Components: odata4-ext
> Affects Versions: (Java) V4 4.0.0-beta-03
> Reporter: Christian Amend
>
> The server-ext module fails to built sometimes due to an error in a test. This only happens when executing the maven commands "mvn clean install" and it does not happen every time. I have not been able to reproduce this bug within eclipse.
> This is the stacktrace:
> Test
> testAddDelete2ReferenceCollection(org.apache.olingo.server.example.TripPinServiceTest) Time elapsed: 0.007 sec <<< ERROR!
> java.net.SocketException: Software caused connection abort: recv failed
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:150)
> at java.net.SocketInputStream.read(SocketInputStream.java:121)
> at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
> at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
> at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
> at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92)
> at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61)
> at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
> at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
> at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
> at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
> at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
> at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
> at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)
> at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:827)
> at org.apache.olingo.server.example.TripPinServiceTest.httpSend(TripPinServiceTest.java:95)
> at org.apache.olingo.server.example.TripPinServiceTest.testAddDelete2ReferenceCollection(TripPinServiceTest.java:694)
> Results :
> Tests in error:
> TripPinServiceTest.testAddDelete2ReferenceCollection:694->httpSend:95 ╗ Socket
> Tests run: 74, Failures: 0, Errors: 1, Skipped: 2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)