Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-14 Thread Sergey Beryozkin
atch", book.getName()); wc.close(); } and after putting a breakpoint in BookStore patchBook method I see it staying on the breakpoint without timing out... Cheers, Sergey On 12/04/16 14:01, Sergey Beryozkin wrote: Hi I've only opened an issue to make sure this issue is bein

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-04-12 Thread Sergey Beryozkin
: http://cxf.547215.n5.nabble.com/CXF-JAXRS-Client-HttpAsyncClient-and-KeepAlive-tp5747402p5767808.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: [ 2.7.15] Matrix parameter followed by query parameter are merged?

2016-04-07 Thread Sergey Beryozkin
Just double checked that using WebClient directly (in that test I pointed out to) works as well. So IMHO the problem is somewhere at the lower level. Sergey On 07/04/16 12:24, Sergey Beryozkin wrote: Hi One thing I'd like to point out - CXF checks the matrix parameters on the request URI

Re: [ 2.7.15] Matrix parameter followed by query parameter are merged?

2016-04-07 Thread Sergey Beryozkin
17:20, Sergey Beryozkin wrote: Hi Christian I simply updated this test: https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java#L1954 I tried "http://localhost:; + PORT + "/bookstore/segment/matrix;first=12;se

Re: [ 2.7.15] Matrix parameter followed by query parameter are merged?

2016-04-06 Thread Sergey Beryozkin
d you maybe share your test project with us, so we can compare what you are doing, please? :-) Kind regards, Christian On Tue, Apr 5, 2016 at 1:37 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Hi I've experimented with a local test, I can not reproduce it. Can you please add some logging

Re: [ 2.7.15] Matrix parameter followed by query parameter are merged?

2016-04-05 Thread Sergey Beryozkin
id, @QueryParam("loc") String loc, MySchema mySchema, @HeaderParam("bar") String header, @Context UriInfo uriInfo) throws Exception { This results in loc being set to "abc" and id to "123?loc=abc"... :-( Any help is much appreciated! Kind regards, Christian -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Dealing with Jettison array serialization issues

2016-04-04 Thread Sergey Beryozkin
Hi Jettison is XMLStreamWriter, no type information is available. If it does accumulate more than one value for a given property it can guess it must be a list, otherwise it does not know if it is a simple or complex property. Sergey On 04/04/16 12:56, Vjacheslav V. Borisov wrote: Hi!

Re: URL that contains "service" returns CXF Service List in Karaf

2016-03-29 Thread Sergey Beryozkin
iling list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: streaming in a large post body

2016-03-28 Thread Sergey Beryozkin
in memory all at once (with REST), what's recommended? -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: URL that contains "service" returns CXF Service List in Karaf

2016-03-28 Thread Sergey Beryozkin
.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: oauth2 server side cxf configuration

2016-03-23 Thread Sergey Beryozkin
Can you clarify please what you'd like to do, as far as enabling OAuth2 is concerned ? Cheers, Sergey -- View this message in context: http://cxf.547215.n5.nabble.com/oauth2-server-side-cxf-configuration-tp5767107p5767152.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-03-23 Thread Sergey Beryozkin
Well, I suppose you set as per the documentation. I'm not sure why it has no effect with HttpAsyncClient, I'll experiment a bit later Sergey -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-JAXRS-Client-HttpAsyncClient-and-KeepAlive-tp5747402p5767151.html Sent from the

Re: CXF JAXRS Client : HttpAsyncClient and KeepAlive

2016-03-23 Thread Sergey Beryozkin
: http://cxf.547215.n5.nabble.com/CXF-JAXRS-Client-HttpAsyncClient-and-KeepAlive-tp5747402p5767130.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-23 Thread Sergey Beryozkin
://issues.apache.org/jira/browse/CXF-6840 -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Signing and encrypting JSON payload for REST requests over a browser

2016-03-19 Thread Sergey Beryozkin
queries. Thanks, Giriraj Thanks, Giriraj On Mar 17, 2016 6:10 PM, "Sergey Beryozkin" <sberyoz...@gmail.com> wrote: Or a browser may ask a trusted server to help with it, and get this server returning a String representing a JOSE payload, then script then forward it somewhere else...

Re: Signing and encrypting JSON payload for REST requests over a browser

2016-03-19 Thread Sergey Beryozkin
this in a wrong way? Thanks, Giriraj. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Apache CXF 3.0.7 Webclient is taking too long to process the response

2016-03-19 Thread Sergey Beryozkin
to create the HTTP client webclient.get()to get the response. The response is returned in more than 10 mins whereas in the browser it takes seconds. Thanks, Aparna -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Signing and encrypting JSON payload for REST requests over a browser

2016-03-19 Thread Sergey Beryozkin
Or a browser may ask a trusted server to help with it, and get this server returning a String representing a JOSE payload, then script then forward it somewhere else... Sergey On 17/03/16 21:35, Sergey Beryozkin wrote: Hi You may be talking about WebCrypto. If you have a CXF client sending

Re: How to manage resource owner login in CXF

2016-03-12 Thread Sergey Beryozkin
-resource-owner-login-in-CXF-tp5766808p5766837.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: WebClient getting connection already closed

2016-03-12 Thread Sergey Beryozkin
) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1332) ... 59 more -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: How to manage resource owner login in CXF

2016-03-12 Thread Sergey Beryozkin
formed transparently by CXF JAASAuthenticationFilter, right? Thank you very much. matteo - matteo -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-manage-resource-owner-login-in-CXF-tp5766808p5766839.html Sent from the cxf-user mailing list archive at Nabble.com. --

Re: How to manage resource owner login in CXF

2016-03-11 Thread Sergey Beryozkin
eo -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-manage-resource-owner-login-in-CXF-tp5766808.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Percent encoded string in @QueryParam

2016-03-10 Thread Sergey Beryozkin
of '+' in Path and Query You can also experiment with RestEasy. That will help see how different implementations deal with it on the client side. Sergey On 08/03/16 17:58, Sergey Beryozkin wrote: I started another thread on why '+' is encoded because this thread has been all about encoding

Re: Why proxies encode '+' query parameters

2016-03-08 Thread Sergey Beryozkin
On 08/03/16 17:16, Sergey Beryozkin wrote: On 08/03/16 16:56, Sergey Beryozkin wrote: "+" value also allowed in query representation, but is encoded for some reason by UriBuilder. Well, this is not CXF specific. So there would be problems with stored in db values if they contain

Why proxies encode '+' query parameters

2016-03-08 Thread Sergey Beryozkin
"+" value also allowed in query representation, but is encoded for some reason by UriBuilder. So there would be problems with stored in db values if they contains "+" I'm not using jerecy, only org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean to create proxies. I found

Re: Percent encoded string in @QueryParam

2016-03-08 Thread Sergey Beryozkin
o make it clearer, "%D1" and expect CXF do "%25D1", then no, it won't work. UriBuilder does not touch percent-encoded sequences %XX. May be try building the query with UriBuilder before passing it to the proxy, something like UriBuilder.fromUri("{a}%D21").build("

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Sergey Beryozkin
Interesting, I guess more analysis may be needed. Perhaps Jetty does take few seconds to get 'really' ready after sf.create() returns, may be it is Jetty version specific ? Sergey On 06/03/16 12:51, Benson Margulies wrote: On Sun, Mar 6, 2016 at 7:08 AM, Sergey Beryozkin <sberyoz...@gmail.

Re: How CXF helps to redirect to non-matching http request to a static HTML page

2016-03-06 Thread Sergey Beryozkin
Arora <sumit1...@gmail.com>: As CXF provides configuration to set default page from : static-welcome-file /main.html This is working fine. My question : *How to redirect to non-matching http request to a static HTML page ?* 'Sumit -- Sergey Ber

Re: Percent encoded string in @QueryParam

2016-03-04 Thread Sergey Beryozkin
e it clearer, "%D1" and expect CXF do "%25D1", then no, it won't work. UriBuilder does not touch percent-encoded sequences %XX. May be try building the query with UriBuilder before passing it to the proxy, something like UriBuilder.fromUri("{a}%D21").build("%

Re: Percent encoded string in @QueryParam

2016-03-04 Thread Sergey Beryozkin
newUri.toString()); } Note a 'q' query parameter has 2 values, one of them is "q2+q3%20" so here we have a valid %-encoded representation. The test asserts it is encoded as: "q2%2Bq3%20" i.e it stays untouched. I nearly 100% sure this test was added as pa

Re: Percent encoded string in @QueryParam

2016-03-04 Thread Sergey Beryozkin
he. So I'd be surprised if I had to fix UriBuilder further given that a lot of TCK tests are targeted at UriBuilder. If Jersey does encode it then I'll review it and see what may need to be done Sergey On 04/03/16 10:56, Sergey Beryozkin wrote: As I said, CXF proxy runtime uses JAX-RS

Re: Percent encoded string in @QueryParam

2016-03-04 Thread Sergey Beryozkin
er does not touch percent-encoded sequences %XX. May be try building the query with UriBuilder before passing it to the proxy, something like UriBuilder.fromUri("{a}%D21").build("%").toString() Though not sure it will be cheaper. Sergey On 03/03/16 21:27, Sergey Beryozkin wrote: Fr

Re: Percent encoded string in @QueryParam

2016-03-04 Thread Sergey Beryozkin
passing it to the proxy, something like UriBuilder.fromUri("{a}%D21").build("%").toString() Though not sure it will be cheaper. Sergey On 03/03/16 21:27, Sergey Beryozkin wrote: From the original post in this thread: When I pass string "т" (Cyrillic symbol) to gene

Re: Percent encoded string in @QueryParam

2016-03-03 Thread Sergey Beryozkin
to the proxy, something like UriBuilder.fromUri("{a}%D21").build("%").toString() Though not sure it will be cheaper. Sergey On 03/03/16 21:27, Sergey Beryozkin wrote: From the original post in this thread: When I pass string "т" (Cyrillic symbol) to generat

Re: Percent encoded string in @QueryParam

2016-03-03 Thread Sergey Beryozkin
ttpUtils#encodePartiallyEncoded don't encode characters that looks like percent encoded. Is it bug? Is there any way to transfer %D1%82 trough @QueryParam? There is annotation javax.ws.rs.Encoded which as said in javadoc prevent @QueryParams from encoding, but with in that case I have to encode it manually in all places where generated method is used. -- Сергей Волков serg-v@ -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Percent encoded string in @QueryParam

2016-03-03 Thread Sergey Beryozkin
if you use Http centric API then indeed you can have @Encode on service interfaces but pass %D1%82 directly to 2.0 Client API or WebClient. If you have a proxy: it actually does not do @Encode processing either - the reason is that it is irrelevant for the proxy, it uses

Re: Asking for comments about cxf-rs with oneway jms transport

2016-03-01 Thread Sergey Beryozkin
://issues.apache.org/jira/browse/CXF-6810. Note that in a comment, Sergey Beryozkin writes "So now we have WebClient and proxies being able to use HTTP Api to send the messages over JMS which is unusual ;-)" Because I'm new to cxf, I would like to ask the community whether they

Re: Registering a message body reader

2016-02-26 Thread Sergey Beryozkin
ours when confronted with it? (It's really just json in disguise.) -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: JAX-RS CookieHeaderProvider with httpOnly cookie doesn't work

2016-02-24 Thread Sergey Beryozkin
in context: http://cxf.547215.n5.nabble.com/JAX-RS-CookieHeaderProvider-with-httpOnly-cookie-doesn-t-work-tp5766083p5766290.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: No support for FailoverFeature in CXF Rest Client implementation (version 3.1.0)

2016-02-24 Thread Sergey Beryozkin
Hi Please create a CXF JIRA issue, not sure how to qualify it, 'Task' I guess. As I said though it is unlikely to be addressed in the short term unless one of colleagues or yourself will look at it. Cheers, Sergey On 24/02/16 16:36, ranadeep.sha...@gmail.com wrote: Hi Sergey, Thanks for

Re: Proxy-based API genaration (two or more interaces)

2016-02-24 Thread Sergey Beryozkin
OneResourceInterface, TwoResourceInterface Yes, this is how it can be done, please make sure cglib-nodep dependency is on the classpath Cheers, Sergey -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: No support for FailoverFeature in CXF Rest Client implementation (version 3.1.0)

2016-02-24 Thread Sergey Beryozkin
eventually. 2) Is the CXF implementation of Failover Retry (for both SOAP client and REST client) thread-safe? I haven't seen any thread-safety related issues reported so far Cheers, Sergey Regards, Ranadeep. Regards, Ranadeep. On Wed, Feb 10, 2016 at 5:42 PM, Sergey Beryozkin [via CXF] <

Re: NullPointerException in OAuthRequestFilter

2016-02-24 Thread Sergey Beryozkin
Guava and HK2 in maven, why CXF doesn't declare these two dependencies althought it need them? Thank you again and again, very nice from you for the support :) 2016-02-23 19:13 GMT+01:00 Sergey Beryozkin <sberyoz...@gmail.com>: Hi, in most cases you'd like to configure it somehow, so may

Re: JAX-RS CookieHeaderProvider with httpOnly cookie doesn't work

2016-02-23 Thread Sergey Beryozkin
Hi I'm sorry I still do not understand. Cookie header (as opposed to Set-Cookie) is not supposed to include HttpOnly, this is why I'm curious, how does this Cookie header ends up with HttpOnly ? Thanks, Sergey On 23/02/16 20:46, cc75005++ wrote: Hi Sergey, Thank you for your response. In

Re: NullPointerException in OAuthRequestFilter

2016-02-23 Thread Sergey Beryozkin
question, i see that the doc uses Spring, can we use CXF and OAuth implementation totaly without Spring?? :) Thanks 2016-02-23 10:33 GMT+01:00 Sergey Beryozkin <sberyoz...@gmail.com>: Hi, well, Jersey is of course a quality JAX-RS RI, but indeed, given its close integration with Glassfish,

Re: Adding NCSARequestLog via JAXRSServerFactoryBean

2016-02-23 Thread Sergey Beryozkin
h, the configuration way works, something like On Feb 23, 2016, at 8:13 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Hi I guess you may want to write a Jetty specific code directly, may be as in

Re: Adding NCSARequestLog via JAXRSServerFactoryBean

2016-02-23 Thread Sergey Beryozkin
Hi I guess you may want to write a Jetty specific code directly, may be as in this demo server: https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Server.java Not sure how to do it with the code below, may be

Re: Support both Bearer and JWT tokens

2016-02-23 Thread Sergey Beryozkin
On 23/02/16 10:27, Sergey Beryozkin wrote: Hi On 23/02/16 07:24, Rajan1311 wrote: Hi Sergey, I think I have understood what you mean, so the JWT has nothing to do with the OAuth flows. I did not quite imply that JWT was not related to OAuth flows, rather I said the JWTAuthenticationFilter

Re: Support both Bearer and JWT tokens

2016-02-23 Thread Sergey Beryozkin
Hi On 23/02/16 07:24, Rajan1311 wrote: Hi Sergey, I think I have understood what you mean, so the JWT has nothing to do with the OAuth flows. I did not quite imply that JWT was not related to OAuth flows, rather I said the JWTAuthenticationFilter you were thinking of using was not related.

Re: NullPointerException in OAuthRequestFilter

2016-02-23 Thread Sergey Beryozkin
an anwser mail for my original question so i resent the same question, then i saw your answer in my SO :) And as you said, Jersey is the problem, you have saved us alots of time. Thank you so much :) 2016-02-22 18:35 GMT+01:00 Sergey Beryozkin <sberyoz...@gmail.com>: Hi I replied to your or

Re: conflicts with the registered path

2016-02-22 Thread Sergey Beryozkin
.n5.nabble.com/conflicts-with-the-registered-path-tp5766073p5766158.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: NullPointerException in OAuthRequestFilter

2016-02-22 Thread Sergey Beryozkin
it on Glassfish 4.1.1 and TomEE 7.0.63 on Oracle JDK 1.8.0_66 Thank you all. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: conflicts with the registered path

2016-02-22 Thread Sergey Beryozkin
om the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: JAX-RS CookieHeaderProvider with httpOnly cookie doesn't work

2016-02-22 Thread Sergey Beryozkin
083.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Support both Bearer and JWT tokens

2016-02-22 Thread Sergey Beryozkin
list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: WebClient - Content-Type Override?

2016-02-16 Thread Sergey Beryozkin
:49, "Sergey Beryozkin" <sberyoz...@gmail.com> wrote: Hi Christian Starting with CXF 3.1.5 (or may be even 3.1.4) you should be able to set a custom Content-Type and it will go on the wire Cheers, Sergey On 16/02/16 17:43, Christian wrote: Hi Sergey, We are facing a similar issu

Re: WebClient - Content-Type Override?

2016-02-16 Thread Sergey Beryozkin
Sergey Beryozkin wrote Ok, thanks for this info. You've found the workaround which is good, another option is to register a custom CXF out interceptor which would reset Content-Type to the required value, it can be registered with JAXRSClientFactoryBean: JAXRSClientFactoryBean bean = new

Re: NullPointerException in OAuthRequestFilter

2016-02-16 Thread Sergey Beryozkin
Hi Jersey is loaded and it is auto-scanning the providers. Are you using Jersey but only would like to use CXF OAuth2 ? if only CXF is meant to be used then you need to disable Jersey somehow, some info is here: http://cxf.apache.org/docs/jax-rs-deployment.html#JAX-RSDeployment-Glassfish but

Re: CXF ignoring custom headers

2016-02-09 Thread Sergey Beryozkin
le.com/CXF-ignoring-custom-headers-tp5765711.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Sub-Agent in logs telling the version of apache cxf

2016-02-09 Thread Sergey Beryozkin
, Khare, Aparna wrote: Thanks a lot Sergey. I tried both the options Setting browser type did not work but setting the Sub-Agent in header worked Thanks for the help, Aparna -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Sunday, February 7, 2016 9:46 PM

Re: Sub-Agent in logs telling the version of apache cxf

2016-02-07 Thread Sergey Beryozkin
client makes a call the logs are writtern with CXF agent and the version which is a security concern.Can you tell me how to override the agent information. Best Regards, Aparna -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Limit connection/threads for CXF endpoint?

2016-02-01 Thread Sergey Beryozkin
r endpoint and the connection size extends the limit, the caller receives connection timeout or some other connection status. And our application remains stable. Thank you in advance. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Accessing init-param in spring with servlet transport

2016-01-26 Thread Sergey Beryozkin
ration, the SpEL reference #{contextParameters['filesystemBaseDirectory']} expands to null. If I add context-param declaration to web.xml then the SpEL expression expands to the correct value. Any ideas how to get init-param to work? Cheers, Paul. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: AW: CXF 3.0.7 JAXRS POST application/x-www-form-urlencoded

2016-01-26 Thread Sergey Beryozkin
copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Sonntag, 6. Dezember 2015 18:47 An: users@cxf.apache.org B

Re: How to limit concurrent requests served by resource?

2016-01-22 Thread Sergey Beryozkin
ther JAXWS or JAXRS mappers can then map it to 503 Sergey On 18/01/16 11:08, Sergey Beryozkin wrote: Hi, jaxrs:server can have features or native CXF interceptors registered within jaxrs:features and jaxrs:inInterceptors (or jaxrs:outInterceptors), so that demo should work the same way with JAX

Re: WADL and Swagger

2016-01-21 Thread Sergey Beryozkin
Hi wadl-to-java generates a Java code and optionally converts WADL docs into JavaDocs too - and with the latest improvements to the feature done by Francesco the source (+ docs) will be converted into Swagger JSON, without necessarily adding Swagger annotations... As a side note, if the

Re: How to generate episode file using wadl2java ?

2016-01-21 Thread Sergey Beryozkin
s. Perhaps the similar approach can help with episodes ? Cheers, Sergey On 21/01/16 05:00, Vjacheslav V. Borisov wrote: I am talking about my progress is slow :) Where can I find xml catalog resolution code in cxf wadl2java ? May be i can patch it to enable debugging info 2016-01-20 18:24 GMT+04

Re: How to generate episode file using wadl2java ?

2016-01-20 Thread Sergey Beryozkin
1-24 19:48 GMT+04:00 Sergey Beryozkin <sberyoz...@gmail.com>: I'll look in detail at one of the existing tests where an external binding is applied (I recall copying some JAXWS tooling code which modifies the binding files), and will let you know, a bit later though Found temporal workaro

Re: Accessing init-param in spring with servlet transport

2016-01-19 Thread Sergey Beryozkin
ers, Paul. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: How to limit concurrent requests served by resource?

2016-01-18 Thread Sergey Beryozkin
services? Which is there jax-rs analogs to AbstractPhaseInterceptor ? 2016-01-15 16:19 GMT+04:00 Sergey Beryozkin <sberyoz...@gmail.com>: Hi CXF ships its own throttling feature, Dan did it, see https://fisheye6.atlassian.com/browse/cxf/distribution/src/main/release/samples/thro

Re: How to limit concurrent requests served by resource?

2016-01-15 Thread Sergey Beryozkin
-to-the-number-of-concurrent-request-in-servlet Should i do something like showed in accepted answer, or cxf has his limit configuration ? -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
ession. Other calls are working, this is the only one I've found that isn't, but it fails consistently. It does work when run in a junit that isn't using tomcat. Can anyone suggest where I should start to look for the cause of this problem? Thanks. Jim -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
that LOG expression. Other calls are working, this is the only one I've found that isn't, but it fails consistently. It does work when run in a junit that isn't using tomcat. Can anyone suggest where I should start to look for the cause of this problem? Thanks. Jim -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
On 13/01/16 13:53, Sergey Beryozkin wrote: Hi On 13/01/16 13:05, Jim Talbut wrote: Gaah You're right. Thank you. I haven't touched this code for a long while and didn't realise I had overloaded that method (I've now renamed the methods to help me out next time). I'm surprised

Re: CXF remove some namespaces

2016-01-13 Thread Sergey Beryozkin
cxf.interceptor.transform.TransformOutInterceptor transformOutInterceptor = new org.apache.cxf.interceptor.transform.TransformOutInterceptor(); transformOutInterceptor.setOutTransformElements(outTransformMap); client.getOutInterceptors().add(transformOutInterceptor); Thanks! -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
) is selected add 'qs=0.9' to text/html in Produces and you will get a method with application/json selected Cheers, Sergey On 13/01/16 14:22, Jim Talbut wrote: No q, no text/html, this is coming from AngularJS using its default Accept header. Jim On 13/01/2016 13:57, Sergey Beryozkin wrote

Re: Attaching context to an AsyncResponse

2016-01-11 Thread Sergey Beryozkin
class to complete processing, the injected message context could be long gone. I'm wishing that AsyncResponse had a 'put', but no such luck. Am I missing anything? -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Exceptions and Async

2016-01-11 Thread Sergey Beryozkin
Hi Benson The very first call into this method does not suspend the continuation, so there's no need to resume it if the exception is returned. Do you see a mapped exception response not being returned ? Please clarify Cheers, Sergey On 02/01/16 02:01, Benson Margulies wrote: If I am in a

Re: Exceptions and Async

2016-01-11 Thread Sergey Beryozkin
exception is thrown. Perhaps when the exception escapes immediately then something needs to be tweaked Cheers, Sergey On 11/01/16 11:56, Benson Margulies wrote: On Mon, Jan 11, 2016 at 6:49 AM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Hi Benson On 11/01/16 11:42, Benson Margulies

Re: CXF Web Client Proxy Exception

2016-01-11 Thread Sergey Beryozkin
Hi Can you clarify please, how does it work for you if say a plain HttpUrlConnection is used directly ? Sounds like CXF HttpConduit proxy configuration might be applied, but I'd like to get more information first Thanks, Sergey On 04/01/16 20:14, williamo...@ups.com.INVALID wrote: Hi all,

Re: MultipartBody Content-Type attributes dropped on upgrade from CXF 2.4.0 to 3.4.1

2016-01-11 Thread Sergey Beryozkin
ation][2]. Any guidance on what might be causing the different behaviour? [1]: http://cxf.apache.org/docs/migration-guides.html [2]: http://cxf.apache.org/docs/jax-rs-multiparts.html#highlighter_731760 -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: org.apache.cxf.interceptor.Fault: DISPATCHED,initial

2016-01-11 Thread Sergey Beryozkin
appreciate some help with this issue, as aim out of ideas on this one. Greetings Lukasz Bialy -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Exceptions and Async

2016-01-11 Thread Sergey Beryozkin
, but of course a method can immediately do asyncResponse.resume(myResponse). Cheers, Sergey On Mon, Jan 11, 2016 at 5:17 AM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Hi Benson The very first call into this method does not suspend the continuation, so there's no need to resume it if the exc

Re: async problem ; Illegal State Exception

2015-12-30 Thread Sergey Beryozkin
150310] -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: async problem ; Illegal State Exception

2015-12-30 Thread Sergey Beryozkin
Hi On 30/12/15 13:13, Benson Margulies wrote: On Wed, Dec 30, 2015 at 6:28 AM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Hi Benson Does it happen only when org.jolokia.osgi.security.BasicAuthenticationHttpContext.handleSecurity Sergey, there are no credentials anywhere that

Re: Playing with readEntity(String.class)

2015-12-29 Thread Sergey Beryozkin
triggered when it should. Thanks in advance for your help, Vincenzo -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Log empty message (with HTTP status code only)

2015-12-29 Thread Sergey Beryozkin
ponses to the service). According the contract, these messages are needed to be sent. How could I log them? -- *Sergey Maslov* -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Log empty message (with HTTP status code only)

2015-12-29 Thread Sergey Beryozkin
/15 18:00, Sergey Maslov wrote: Sergey, thank you. But how could I log the fact of 202 response? Segery Maslov On Tue, Dec 29, 2015 at 11:55 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: I think it might be because 202 is handled by a oneway processor and the outbound chain is not i

Re: Unit-testing jaxrs:server created by spring

2015-12-28 Thread Sergey Beryozkin
901 [main] INFO org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be / how can I connect to it using WebClient? what URL should I use? -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

New OAuthDataProvider methods on the trunkk/3.1.x

2015-12-28 Thread Sergey Beryozkin
Hi I had to update OAuthDataProvider interface and add two methods for listing the access and refresh tokens associated with a given OAuth2 client. Also, AuthorizationCodeDataProvider which extends OAuthDataProvider has a new method for listing the pending code grants associated with a given

Re: How to handle ClientAbortException in CXF ?

2015-12-23 Thread Sergey Beryozkin
tp://X.X.X.X } - It was package name string ,which I hve replaced with X.X.X.X -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: How to handle ClientAbortException in CXF ?

2015-12-23 Thread Sergey Beryozkin
RVER_ERROR) .header("Content-Type", "application/json") .entity(errorMessage) .build(); } } On Wed, Dec 23, 2015 at 9:35 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Try registering ExceptionMapper and see what happen

Re: How to handle ClientAbortException in CXF ?

2015-12-23 Thread Sergey Beryozkin
ionCallback.html 'Sumit On Wed, Dec 23, 2015 at 7:13 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Hi JAXRSOutInterceptor.handleWriteException checks JAX-RS ExceptionMapper so perhaps you can intercept that Exception and return Response with the code only from this exception mapper. A

Re: How to handle ClientAbortException in CXF ?

2015-12-23 Thread Sergey Beryozkin
ot;) // .build(); } } I tried to various stuff, but still throw the error, any guess here ? On Wed, Dec 23, 2015 at 9:45 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: Well, first thing to check is whether this mapper is invoked, note it is not auto-discovered by d

Re: FIQL query validation

2015-12-22 Thread Sergey Beryozkin
I've prototyped PropertyNameConverter and did some basic documentation here: https://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS+Search#JAX-RSSearch-Dealingwithmistypedpropertynames Cheers, Sergey On 04/11/15 11:07, Sergey Beryozkin wrote: Hi Thanks for experimenting with it, I've

Re: CXF JAX-RS response chunk/buffer size

2015-12-18 Thread Sergey Beryozkin
immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: RS service method accepting 2 parameters

2015-12-16 Thread Sergey Beryozkin
List((Object)options)); Response resp = getClient(USER_SERVICE_URL) .path("/hash") .form(map); //throws no body wrapper for LinkedHashMap class I cannot use .form(new Form().) due to it can only accepts string parameters can someone please point me to an example or provide with the hint

Re: Async in OSGi / pax-web

2015-12-14 Thread Sergey Beryozkin
Hi Benson I suspect you may need to avoid depending on the default CXF HTTP Transport and deploy your bundle as a web bundle (with web.xml). Do you work with Aries ? If yes then use CXFBlueprintServlet:

Re: CXF 3.0.7 JAXRS POST read body

2015-12-14 Thread Sergey Beryozkin
eived this e-mail by mistake and delete this e-mail from your system. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Async in OSGi / pax-web

2015-12-14 Thread Sergey Beryozkin
. I think I'll do some sleuthing. On Mon, Dec 14, 2015 at 9:22 AM, Benson Margulies <ben...@basistech.com> wrote: I have avoided blueprint in favor of DS but both are in karaf so I can probably go there. On Dec 14, 2015 12:00 PM, "Sergey Beryozkin" <sberyoz...@gmail.com>

<    2   3   4   5   6   7   8   9   10   11   >