Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6458A17D8B for ; Fri, 4 Sep 2015 13:12:27 +0000 (UTC) Received: (qmail 27209 invoked by uid 500); 4 Sep 2015 13:12:26 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 27137 invoked by uid 500); 4 Sep 2015 13:12:26 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 27120 invoked by uid 99); 4 Sep 2015 13:12:26 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2015 13:12:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BA5A8F182D for ; Fri, 4 Sep 2015 13:12:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=basistech.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Q_k2jcRzkOtx for ; Fri, 4 Sep 2015 13:12:20 +0000 (UTC) Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C0F5C5070D for ; Fri, 4 Sep 2015 13:12:19 +0000 (UTC) Received: by oiev17 with SMTP id v17so11492754oie.1 for ; Fri, 04 Sep 2015 06:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basistech.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kYpwoJaeGDK207IECudRFeMJyU1U2h5/br/s/ct+GIY=; b=VhVe5c/dFk4yfvNGP1akd4e9vhiXpyU/NiOkT6hKpFU9bWTCRBes47CvmJIIEaMWjo Ys97X1iN+M5XVwWXwbQL+jobIPpFkjxu6jx8Zi/hRvLJ2gO067/h49/+oAlKswRJQPkh orxkEO1UXM9esoOiwm0E8Lz97wItqHaEygEm8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=kYpwoJaeGDK207IECudRFeMJyU1U2h5/br/s/ct+GIY=; b=SBt/MLb9m56quYAwC1L8Mij3I6VGvUdVHWqgzPyFB+7wedy/SAlkyAOBmJKFZGKNEc DO/AZFMUNkl2OgqR3xGxE0VfYL5YueJeCK8+AXhoEx3IOJl0FXaaSdAoo2/OJnTu1bOP BrznAuZHyRjT7OfY4Oxmqx0QgEsTewHutsEcS2v3ERyeMUs18YgyXJfVKRic4MncJDNX xGJKV5YxgnIThki9oCwJiL0ZliHBPn4pJZZqLiGWYKDCragZa/23+OlZvdTVUi4WeHyv WGdKUdTBRbiuJ5XPl4e5zXdNriK3jhDAfKxnYf49nkyIY49uRs++px4z5PRUjo3KvYfF skDw== X-Gm-Message-State: ALoCoQnm9RdbpMq8jQ0d1NydoQFEpWs2ghg9QCbvbgbqHboFmcnBCxnSpAphYIUinki48uygW5bI MIME-Version: 1.0 X-Received: by 10.202.224.130 with SMTP id x124mr2954904oig.110.1441372339071; Fri, 04 Sep 2015 06:12:19 -0700 (PDT) Received: by 10.76.150.134 with HTTP; Fri, 4 Sep 2015 06:12:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Sep 2015 09:12:19 -0400 Message-ID: Subject: Re: local transport -- confused -- anyone seen anything like it? From: Benson Margulies To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 I tried the experiment of switching to HTTP, and received: javax.ws.rs.ProcessingException: java.net.SocketException: SocketException invoking http://localhost:62475/raas/entitiesfoo/bar: Invalid argument at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:569) at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:551) at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1142) at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1092) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865) at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:428) at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:458) at com.basistech.ws.frontend.service.RaasRsServiceTestCommon.testWebAppExceptionWrapping(RaasRsServiceTestCommon.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) Caused by: java.net.SocketException: SocketException invoking http://localhost:62475/raas/entitiesfoo/bar: Invalid argument at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1359) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1343) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:652) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:636) at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1091) ... 10 more Caused by: java.net.SocketException: Invalid argument at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:150) at java.net.SocketInputStream.read(SocketInputStream.java:121) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) at java.io.BufferedInputStream.read(BufferedInputStream.java:345) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:276) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1559) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1532) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1330) ... 16 more Followed by: java(20387,0x10d7c1000) malloc: *** error for object 0x100000002: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug I've got no JNI. On Fri, Sep 4, 2015 at 8:26 AM, Benson Margulies wrote: > I've got a family of tests that have just developed a pathology. > > @Before creates a service on the local transport and a WebClient set > to talk to it. > > @After shuts it down. > > I can run any single test as many times as I like, all is well. > > If I use IntelliJ or maven-surefire to run the whole bag, a few will > fail with symptoms indicating that the wrong request ended up at the > service; one from a prior or different test case. > > The failure moves around from test to test from run to run. > > I've seen this with 3.1.1 and 3.1.2. > > We do have DIRECT_DISPATCH turned on. > > This whole thing was working in the middle of yesterday, and I seem to > have, well, breathed on it. I certainly changed the timing by > eliminating a lot of noisy logged backtraces.