Problems with timeout - Jersey Client

Hi, my names is Alexandre,
I'm building a client to a restful webservice using jersey as client engine. The problem is that one of the services exposed has more then 20 seconds to bring the response. And jersey doesn´t set any timeout grater then 20 seconds..... I need a timeout of, at least, 300000 miliseconds. Does anyone know how to configure a timeout in jersey, not using the method setTimeoutConnection from the com.sun.jersey.api.client.Client? This method doesn´t work for timeouts superior to 20 seconds.
Thanks in advance.

Hi Alexandre,
we have the same problem. Have you resolved it ?
By the way we use Jersey-client 1.3 and setting a timeout greater than 20 seconds seems to work (I successfully tried with 60 seconds).
But is there a way (as you wondered) to set the timeout on something else than the Client object ?
We need to set short timeouts for usual requests, but for lengthy requests (like video upload) we need a much larger timeout.
If the Client class is the only place where we can set the timeout, then we'll have to use 2 Client instances, that is less than ideal...
I was more looking for a setTimeout() on WebResource or AsyncWebResource, or on their get() or post() methods...
I did RTFM, but I didn't find anything in the Jersey doc.
Hum... Just searched the source code... I confirm currently it's not possible to have a request-specific timeout...
Thierry

Similar Messages

  • Problem with update SCCM client to Sp1 CU3 on Windows 2008 server

    Hi all,
    I have problem with update SCCM client on Windows 2008 Server to 2012 Sp1 CU3. I have sent to deployment package with update (SP1 Cumulative Update 3 - server update) on four servers and after few minutes I have got in Monitoring\Deployment details four
    this same errors in "Asset Details":
    USER Message ID
    Status type Description
    NT\AUTHORITY\SYSTEM  1006
    Error 3003
    I love that types of error... which is har to find answer on google :-( I have tried but I haven't find any constructive :-( Did you met with something similar? Which log I should check (sorry - I'm still noob in SCCM2012) to update actual SCCM Client SP1
    (5.00.7804.1000) to SP1 CU3 (5.00.7804.1400)? 
    Thank you.

    I see in fodler with CU3 updates, are four packages:
    - SP1 Cumulative update 3 - x64 client update
    - SP1 Cumulative update 3 - x86 client update
    - SP1 Cumulative update 3 - server update 
    - SP1 Cumulative update 3 - console update
    It will be stupid but... maybe I should deploy x64 client update package? 

  • A problem with WAAS mobile client

    The customer has a problem with WAAS mobile client. When he disabled WAAS mobile client - all is working, but http is not working.:-( On the server the accelerated networks are configured.The browser send the http request, but the response is not received:-( For other clients it is working. Thank you for help.

    I have WAAS mobile server version 3.4.0.1460 on the Windows2003 server with SP1. Client OS is Windows XP. All clients who use WAAS mobile client have WinXP on their notebooks. All clients are on the same network. This client sees this problem when the waas client is active, disabled, and for now when the waas mobile client is uninstalled - it seems like waas mobile client changed registers for IE or FireFox - so all http answers are redirected to nonexisting waas mobile client:-(
    Thank you
    Roman

  • Problem with clob_write under client 9.2.0.6: UnsatisfiedLinkError

    Hi all,
    I'm running Oracle client 9.2.0.4 on Windows XP and Java 1.4.1_3.
    Writing or reading clob's works pretty well.
    As i tried to update to Oracle client 9.2.0.6, i got the error
    Communication failed: java.lang.UnsatisfiedLinkError: clob_write when i tried to write a clob. The same error appears when i tried to read a clob.
    Is there a specific problem with clobs under this client?
    All other JDBC operations work as good as before.
    Thanks.

    Here is another hint.
    In your classpath, use the jdbc driver that's under your oracle installation to which you are trying to connect to (ie, <ORACLE_HOME>\ora92\jdbc\lib\ojdbc14.jar).
    I had the same problem in 9.2.0.6 and its gone when I replaced the ojdbc14.jar. I copied the ..\ora92\jdbc\lib\ojdbc14.jar to my java client program's classpath, and ran the java client without getting the UnsatisfiedLinkError.
    It looks like the ocijdbc9.dll under ora92\bin has to match correctly with the jdbc drivers you would be using. I got this idea from this link:
    http://episteme.arstechnica.com/groupee/forums/a/tpc/f/6330927813/m/705001068631/inc/-1
    Hope this helps.

  • Problems with transmision torrent client

    Dear all,
    I have Iomega EZ-3 and on it running transmission torrent client.
    lenovoemc_Torrent 3.2.19250  Up to date
    The problem is the destination of downloaded torrents. It's not on desired destination. On selected folder 2 subfolders were created - "add torrents here" and "incomplete". And when torrent is downloaded, there is no file. In web gui double click on torrent gives some additions informations:
    Location: /mnt/pools/A/A0/Documents/Downloads
    Where is this location and how can I access it? I have a lot more problems with built-in torrent download client so this one problem should be easier to solve... I have latest firmware on Iomega EZ-3: 4.0.8.23976
    Kind regards,
    Ziga

    I'm not sure why the completed file would not end up in the destination folder. Have you searched the all the folders on the device to see if it ended up in another folder somehow? The built-in torrent client has some issues on some devices, which is why we added support for Transmission.
    Maybe try asking their support forums? - https://forum.transmissionbt.com/
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • Problem with Oracle 9i client to access multiple oracle databases

    I am having problem setting up oracle client 9i to access multiple oracle db. When I finish installing Oracle 8.x client, I simply replace the tnsnames.ora that the installation created with the ones that I have. I can access three different databases. I only need to add three diffrent entries in the tnsnames.ora file. I cannot be able to do this with Oracle 9i client. I follow the instruction from the CD installation to use local naming method. It appears that Oracle client try to create multiple entries on my tnsnames.ora file but I can only be able to access one db.
    Any help is appreciated.
    Thanks! HD

    the old tnsnames.ora is working with Oracle 8 client. The new tnsnames.ora (if I use the Oracle Net config) have two entries, one is dev and the other is prod.
    Thanks!

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • Problem with e-mail-client on Nokia X6

    I'm experiencing a problem with the built-in e-mail client (NOT nokia e-mail) on my Nokia X6. When I try to Connect to my Gmail-Inbox (IMAP), it begins to trigger a connection. But just when it is connected the phone disconnects and the two arrows on the tab disappear.
    Does any one have the same problem? Nokia E-Mail isn't a suitable alternative for me.
    Thanks in advance.
    Solved!
    Go to Solution.

    Yes I installed it. But it doesn't supports notifications or push-e-mail. And it's just a Java Client.
    But I fixed the problem: If you set the number of e-mails to fetch to another number than 50, it will not work. It really confuses me, because it worked without any problems on my 5800 XM and (in the beginning) also on my X6.
    I'll report this bug to Nokia.

  • Problem with iPad Mail Client

    Most people have a normal mail server, meaning that when you login with your mail client, it starts up IMAP processes on your mail server to give you the email.
    So ... I use my desktop, to login to read mail mostly. I use Thunderbird because it lets you control somethings that the Mail app on the Mac does not ... like the number of cached connections. In an enterprise context, both Apple's and Microsoft's mail clients are total pigs. They start up these IMAP connections and they never drop them, putting a huge load and creating tons of connections so that email users can check their email ever few minutes. This is a very poor design.
    Thunderbird allows you to take the client offline so that those connections are cleared and the resources on the server are not monopolized, but Outlook Express and Mail do not ... at least as far as I can tell.
    So ... when you check your mail you create these connections, and then when you check your mail from the your iPad, your double what you just probably have running from your desktop, or laptop, or whatever computer you normally use and are not at because you are using your iPad.
    When you switch from the iPad Mail app to another app, it does not clear those connections, and it maintains the connection even if you are not using it.
    Is there some way to configure this OFF, so that your mail is not maintaining these connections?
    And ... don't tell me to go into
    Settings
    -> Mail/Contacts/Calendars
    -> Fetch New Data (turn push off) (switch schedule to manual)
    -> Advanced
    -> <individual account>
    ->(switch to manual)
    Which is by the way a very complex thing to do, remember, and configure ... but it does not work as far as I can tell.
    Companies, at least many of them in an enterprise context need these things to not waste cycles and resources on their servers ... not to mention ISP's and websites don't like it either.
    Why is it that a free mail client like Thunderbird can do better than both Apple and Microsoft at solving this problem ... though it is not completely solved by either?

    bruxxx wrote:
    Why is it that a free mail client like Thunderbird can do better than both Apple and Microsoft at solving this problem ... though it is not completely solved by either?
    Because most users have no idea what cached connections are. They just want it to work.
    Perhaps you should submit a bug report to Apple

  • Problem with Oracle XE client (erreur 126 in ODBC driver)

    Hello
    When I want connect to the server with SQL (XE Client) I wrote :
    SQL> connect SYS
    password : *********
    ERROR
    ORA-12560: TNS: erreur d'adaptateur de protocole
    SQL>
    When I want to install ODBC Driver (Oracle in XEClient), the system return an error : "System error code 126"
    Whitch is the problem ?
    Please help me !
    Regards,
    Alexandre

    Hello,
    Thank you for your help,
    XE is installed on Linux Server (192.168.19.30) and is started
    XPClient is installed on Windows XP Client (192.168.19.100)
    I can connect to XE using http://192.168.19.30:8080/apex
    The problem is that I can't use ODBC driver
    In other hand, I can connect to the server in SQL command line, using :
    CONNECT SYSTEM/*******@192.168.19.30
    I saw in Oracle documentation that in Windows it's necessarie to use environnement variables to setup XEClient.
    Do you have any idea on how to configure client and ODBC driver ?
    Alexandre

  • [solved] problems with timeouts and tcp retransmission

    I've recently upgraded my archlinux and am having real problems with the network.
    I have checked the configuation and all seems ok.
    Everything like DNS/Gateways/IPs all seem to be setup (not changed anything from when it was working before)
    I read about setting the MTU manually
    ifconfig eth0 mtu 1492
    I tried this but it doesn't seem to make any difference
    Looking at the packetflow on wireshark it seems that there are a huge amount of TCP Dup ACK and TCP Retransmission when trying to POST
    If I boot into windows everything is fine so unfortunately it seems that it might be something with linux
    Everything in linux seemed to be working ok before I upgraded
    Last edited by equilibrium (2009-12-05 15:13:14)

    seems that I am still unable to post from my arch system
    $ dmesg | grep sky2
    sky2 driver version 1.23
    sky2 0000:02:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
    sky2 0000:02:00.0: setting latency timer to 64
    sky2 0000:02:00.0: Yukon-2 EC chip revision 2
    sky2 0000:02:00.0: irq 29 for MSI/MSI-X
    sky2 eth0: addr xx:xx:xx:xx:xx:xx
    sky2 eth0: enabling interface
    sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
    $ ifconfig
    eth0 Link encap:Ethernet HWaddr 00:17:31:F4:ED:A2
    inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1170 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1362 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1101154 (1.0 Mb) TX bytes:197742 (193.1 Kb)
    Interrupt:19
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:4595 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4595 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:541498 (528.8 Kb) TX bytes:541498 (528.8 Kb)
    /etc/rc.conf
    eth0="eth0 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255"
    INTERFACES=(eth0)
    gateway="default gw 192.168.1.1"
    ROUTES=(gateway)

  • Problem with Cisco VPN client and HP elitebook 2530p windows 7 64-bit

    Hi there
    I have a HP Elitebook 2530p which i upgraded to windows 7 64-bit. I installed the Cisco VPN client application (ver. 5.0.07.0290 and also 64-bit) and the HP connection manager to connect to the internet through a modem Qualcomm gobi 1000 (that is inside the laptop). When I connect to the VPN, it connects (I write the username and password) but there is no traffic inside de virtual adapter for my servers. When I connect to the internet through wire or wireless internet, I connect de VPN client and there is no problem to establish communication to my servers.
    I tried everything, also change the driver and an earlier version of the HP connection manager application. I also talked to HP and they told me that there was a report with this kind of problem and it was delivered to Cisco. I don’t know where is the problem.
    Could anyone help me?
    Thanks to all.

    You can try to update Deterministic Network Enhancer to the below listed release which supports
    WWAN Drivers.
    http://www.citrix.com/lang/English/lp/lp_1680845.asp.
    DNE now supports WWAN devices in Win7.  Before downloading the latest version of DNEUpdate from the links below,  be sure you have the latest
    drivers for your network adapters by downloading them from the vendors’ websites.
    For 64-bit: ftp://files.citrix.com/dneupdate64.msi
    Hope that helps.

  • ODBC Connection problem with SQL Native Client driver with CR 11

    I am having an issue connecting my crystal reports to an ODBC connection that uses the SQL Native Client driver (Version 2005.90.2047.00).  My reports work fine when using the SQL Server driver (Version 2000.85.3006.00).   The ODBC connection is setup to use Integrated Windows Authentication and is defaulted to go to the correct database.  When I test the ODBC connection in the 'ODBC Data Source Adminstrator' it connects fine.
    The reports are trying to connect to stored procedures on a SQL Server 2005 database.  I can log onto the ODBC connection in CR X1.  When I try to set the Datasource connection for one of my reports to the ODBC connection I created, I get the following error:
    'Some tables could not be replaced, as no match was found in the new data source.  Please specify the table required for any unmodified tables.'
    When I drill down to the SP and try to update the datasource location of the SP directly I get the following errors:
    'Data Object cannot be opened/accessed'
    and
    'Unknown Database Connector Error'
    As I said, I don't have any problems when using the SQL Server 2000 driver.  One other thing to mention, when I initially connect to the ODBC connection in CR X1 with the SQL Native Client driver, it asks for a username and password.  I leave these blank since I'm using Windows Authentication.
    Any advice would be appreciated.
    System:
    Windows XP
    Service Pack 3
    Crystal Reports XI:
    Product Version 11.0.0.1282

    Hi Jeff,
    I just tried to create a new report using the native driver and there is no option to use Trusted Authentication. This would be why it's failing.
    I don't believe we fully supported Native driver in Cr XI. Try downloading CR Xi R2 and install SP6 from this info:
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    I tested it in R2 and the Trusted Authentication option is there so your reports should work.
    Thank you
    Don

  • Problem with built mail client E66

    Hi, today I noticed a problem that I just disappeared built mail client and with mails. When I will create a new mailbox, it still gives me the opportunity, only Nokia Messaging ...
    Can you help me with this??
    THX

    bruxxx wrote:
    Why is it that a free mail client like Thunderbird can do better than both Apple and Microsoft at solving this problem ... though it is not completely solved by either?
    Because most users have no idea what cached connections are. They just want it to work.
    Perhaps you should submit a bug report to Apple

  • Open Directory or LDAP Problem with 10.5 Client and 10.4 Server

    Yesterday, the client-server setup we've been using successfully FOR YEARS decided not to work on a v10.5.8 MacBook Pro client. Did not do anything to the v10.5 client recently (other than to boot it up). Not sure if any software was updated on the server recently (where do I check for this?). Curiously, a v10.4.11 client running on a Mac Pro (tower) continues to work fine/as though nothing's changed. It appears as though the only difference is v10.4 client (working) vs. v10.5 client (not working).
    Here is what IS working:
    1) Network Home Directories on dedicated drive partition of Mac running OS X Server v10.4.11. AFP, DNS, and Open Directory are all up and running (normally, I think) as shown in Server Admin application.
    2) Mac Pro (tower) client running v10.4.11 binds to and authenticates at v10.4.11 server. Any valid user can access their home directory on the server seamlessly when logging in at this v10.4.11 client Mac.
    3) That same v10.4.11 client Mac also contains a LOCAL admin user with its home directory on the local hard drive. That LOCAL admin account is used to update software on a per machine basis (and preclude users from adding unauthorized software, needing to use a specific machine, etc.).
    Here is what IS NOT working:
    4) On a MacBook Pro client running v10.5.8, the LOCAL admin account looses access to the partition containing its local home directory. The drive partition literally disappears. The only "solution" I've been able to find (and it's not truly a solution) is to turn off the Open Directory/LDAP binding (using the Directory Utility application). With binding turned off, the LOCAL admin user has no problem accessing their home directory on the local hard drive partition. Turn binding on again (using Directory Utility application), and the LOCAL admin user can no longer see its local home directory.
    Again, binding is necessary to allow regular users to use the v10.5 MacBook Pro with Network Home Directories (as in items 1-3 above). Binding should be turned on for this reason. However, with binding on, the LOCAL admin user cannot manage the computer because the local partition containing the admin home directory disappears/is inaccessible. Turn binding off, and the partition containing the admin home directory reappears.
    Perhaps there's something in the sever logs that will help. I don't really know how to read these, so if your help involves the logs, please refer to them explicitly (e.g., "in Server Admin, go to Open Directory->Logs->LDAP log" or similar).
    Any help greatly appreceated.

    Nope. Never used sso_util.
    I try to use Apple's GUI server management tools unless absolutely necessary/at the end of my rope (i.e., last step before re-install etc.). I figure there's just too many things going on under the hood: using the command line may fix one setting, but not re-configure the two or three others that Apple NEEDS in order to have the whole thing working in harmony. Unless you really know what's going on with all the configuration files, it's best to let the GUI manage the settings.
    In my particular circumstance, I've now got ALL Leopard clients, one Leopard v10.5 server, and one Tiger v10.4 server. Everything is working fine now, but it was not a simple matter getting the Tiger v10.4 server re-integrated into the otherwise ALL Leopard environment. OD/Kerberos is on the Leopard v10.5 server. Home directories are still on the Tiger v10.4 server.
    Two keys to getting THIS/MY set-up working:
    1) Tiger v10.4 server needs to have Open Directory set to "Connected to a Directory System" and has to be joined to the Kerberos realm that was set-up on the Leopard v10.5 server (use Server Admin to do all of this).
    2) Sharepoint on Tiger v10.4 server has to have SOME, but NOT ALL checkboxes for guest access enables/checked. See:
    http://discussions.apple.com/message.jspa?messageID=10903468#10903468
    Number 2 immediately above is contrary to what Apple manual for User Management reads, but this is what worked for me/my set up, after pulling my hair out following the manual's instructions to the letter and not getting the thing to work!

Maybe you are looking for

  • How to covert before and after image details from logdump to SQL

    Hi, Through logdump,i am able to retrieve below before and after image details for an update statement. Instead of below ascii format output, i need to know the complete sql statement before update and after update. Is there any command to covert bel

  • I cannot open pdf docs despite downloading acrobat pro

    I cannot open pdf docs despite downloading acrobat pro  do I have to log of and on before it works

  • Premier Elements 11 Output Audio?

    I just upgraded to Version 11. What is the highest level of audio output does it support?  The project starting option selections imply it supports 5.1 surround sound. Is this true or does the sound get collapsed to two channels upon output? Premier

  • WCCP on lower end switches

    Hi - I'm searching for a lower end switch that supports WCCP. According to the feature navigator the 3550 is the only one that supports wccp. The only 3550 still available is the DC version, for which you can only get the SMI version and not the EMI

  • Error:RJVM has already been shutdown in weblogic 9.0

    Hi,<br> <p> I'm facing this error in weblogic 9.0 during launching the server.This problem wasnt seen until now <br> </p> <p> java.rmi.RemoteException: EJB Exception: ; nested exception is:<br> javax.ejb.EJBException: nested exception is: <br>java.rm