The connect function in the socket class has problems

when i call this function connect(SocketAddress endpoint, int timeout)
the timeout variable doesnt wait for the specific time that i tell it
example
connect(endpoint, 10000);
this call should wait for this amount of time but it doesnt wait that amount
any body has a answer ???

yes that is exactly what I am saying
I specify 10 sec, as 10000 milli sec's in the connect function but I get an exception almost imediately when i run my java program...
run this code
import java.net.*;
public class Test
public static void main(String [] args)
{ Socket s = null;
int port = 2000;
try
s = new Socket();
InetSocketAddress i = new InetSocketAddress("localhost",port);
//this next line should wait 10 sec's then throw and exception
//but it throws and exception upon running the this code
s.connect(i,10000);
catch(Exception e){ System.out.println(e.toString()); }
}//main
}//Test
I have also tried setting the setSoTimeout(10000) in the Socket class but
still with no success...
I dont know why this doesnt wait 10 sec's then through an exception on it
and when i try it with a java server it connects instantly...
any help anyone???

Similar Messages

  • On Apple TV, my pictures have loaded, but I cannot get the slideshow function to work.  It has been "loading" 28 pictures for over 5 minutes.  What is wrong?

    On Apple TV, my pictures have loaded, but I cannot get the slideshow function to work.  It has been "loading" 28 pictures for five minutes.  What am I doing wrong?  I have Windows 7 on my PC.

    I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
    Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
    Use the AirPort Utility to configure the Time Capsule.
    One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router.

  • The search function in the itunes store does not work.  It will accept a request and suggest searches but then it locks up and will not search.  Clicking on the magnifying glass or a suggested search does nothing.  Re-installing itunes has not helped.

    The search function in the itunes store does not work.  It will accept a request and suggest searches but then it locks up and will not search.  Clicking on the magnifying glass or a suggested search does nothing.  Re-installing itunes has not helped.

    everything you stated here is exactly what i have done and have got nowhere. i have windows 7 64 bit on a hp 8 g of ram desktop. im also looking for help

  • I was processing pictures and the Basic function on the right has disapeared ( the one that has Exposure etc) I know see the Histogram, then Tone Curve, HSL/Color/B

    I was processing pictures and the Basic function on the right has disappeared, the one that contains Exposure, Contrast etc. I now have only the Histogram, Paint Brush etc, then it goes to Tone Curve, HSL/Color/B&W and all others down to Camera Calibration. How can I recuperate Basic ?? Thanks for your help

    i have now found where the OS permission is located but cannot find a way to change it. Here is what I have done:
    - Selected the Local Disk Folder
    - Chose  File>Get Info
    - Click on Sharing and Permissions (It shows Read Only)
    Now this is where I am stuck, the instruction in Apple Support says "Select a user or Group from the Name Column then choose the following Pop-Up menu in the Priviliges column(this is where the Read &Write option should be. I can't choose a user or group under the name column, all I have in the Name column is "Local Disk"
    Can someone help me from here to convert to Read & Write, thanks

  • You may need to configure the connection settings in the deployment descrip

    Hi All
    I am new to BPEL and going through Order Booking Tutorial (using 10.1.3.4 version of opmn ) .
    I have a problem in 'Designing the Database Adapter to Insert Data' Chapter.
    I have installed Oracle 10g Express Edition and BPEL Process Manager on my local system.
    In the Example it has been asked to create a daabase connection with Third Party JDBC Driver. Instead I have created a database connection with Oracle(JDBC) Driver.So i didnt have to register any third party driver.
    I cud access the Order/OrderItems table as well .
    I Deployed the same on the server.But while running the process I get following error--
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    nested exception is:
         ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Listener refused the connection with the following error:
    ORA-12519, TNS:no appropriate service handler found
    The Connection descriptor used by the client was:
    localhost:1521:XE
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    I have checked several post on this error but every post talks about third party database.I have used Oracle Database only so why/What shud I change anything in oc4j-ra.xml?? This is my doubt .
    Pls help me on this .Also Let me knowe in my case is there any need to create the datasource.?I am low at concept of database.
    Pls help
    Regards
    Naveen

    Hi
    I am trying to insert orader and order Items as given in the Order booking tutorial..
    Here are the files description
    .wsdl file looks like
    <service name="DBInsert">
    <port name="DBInsert_pt" binding="tns:DBInsert_binding">
    <jca:address location="eis/DB/MyConnection"
    UIConnectionName="MyConnection"
    ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
    mcf.DriverClassName="oracle.jdbc.OracleDriver"
    mcf.PlatformClassName="oracle.toplink.platform.database.oracle.OraclePlatform"
    mcf.ConnectionString="jdbc:oracle:thin:@localhost:1521:XE"
    mcf.UserName="system"
    mcf.Password="6672B62098892995C8B651EFDF798A59"
    />
    </port>
    </service>
    data source file looks like
    <connection-pool name="MyConnection">
    <!-- (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=nakhanna)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=XE))) below is in the form: [hostname]:[port]:[oracle sid]" -->
    <connection-factory factory-class="oracle.jdbc.OracleDriver" user="orabpel" password="->pwForOrabpel" url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=nakhanna)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=XE)))"/>
    </connection-pool>
    <managed-data-source name="MyConnection" connection-pool-name="MyConnection" jndi-name="jdbc/MyConnectionDS"/>
    </data-sources>
    oc4j-ra.xml looks like
    <connector-factory location="eis/DB/MyConnection" connector-name="Database Adapter">
              <config-property name="xADataSourceName" value="jdbc/MyConnectionDS"/>
              <config-property name="dataSourceName" value=""/>
              <config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
              <config-property name="usesNativeSequencing" value="true"/>
              <config-property name="sequencePreallocationSize" value="50"/>
              <config-property name="defaultNChar" value="false"/>
              <config-property name="usesBatchWriting" value="true"/>
              <connection-pooling use="none">
              </connection-pooling>
              <security-config use="none">
              </security-config>
         </connector-factory>
    ##################################################################3
    Still I get the same error .
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_FulfillOrder_4.0_e77c64251e45eb4711a3a093f92e6a86.tmp/DBInsert.wsdl [ DBInsert_ptt::merge(OrdersCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: java.util.MissingResourceException
    java.util.MissingResourceException
    ; nested exception is:
         ORABPEL-00001
    java.util.MissingResourceException
    java.util.MissingResourceException
    java.util.MissingResourceException
    </summary>
    </part><part name="detail"><detail>null</detail>
    </part></bindingFault>
    Pls let me know if something looks wrong in the above files
    Thanks
    naveen

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • How to know the connected users to the Content Server Instance?

    Hello
    I need to know that in order to be able to run long tasks (specially with the archiver) in the lowest used hours. The number of connected contributors really represents the true use of the CS.
    I am lookin for this for 10g (UCM) and 11g (WCC)
    Thank you
    Carlos

    You could use some statistics such as netstat from the Apache web server (see e.g. here for more details). You could also use tools such as Google Analytics to monitor website traffic for you.
    However, even though there is certainly a correlation between the number of the connected users and the workload on the server, the real workload depends rather on the number and the type of operations that has to be performed (e.g. a checkin is more costly than just displaying a page, conversions might be more costly than anything else) and a single system user (such as running the Archiver some other batch processes) could produce much higher workload (due to missing waiting time) than a hundred of human users.
    Besides, the fact that at the moment the number of users is low does not necessarily mean that it will be low until the end of your batch job - unless you know the behavior of your users, which often is not a rocket science even without any analytic tool - e.g. a public organization operation in 5x8 working regime (let's say from 8am to 6pm) won't produce much human generated workload in quiet hours on week days or on weekends. If you operate in 7x24 mode with unpredictable user's behavior, none of such tools will help you anyway.
    Because, what you really need to monitor is not web stats, but user experience. Oracle has a tool for that - it's called Real User Experience Insight. In addition to monitoring, it can alert you, or your application (even a 3rd party via SNMP traps). If you want to automate also recovery (for 11g), you could expose private cloud functionality as available in via the Enterprise Manager and management packs - e.g. you could start a new server in the cluster, throttle resource to your batch jobs, etc. Unless you need to comply with strict SLAs, this kind of a solution would probably be an overkill, but it is possible.
    This reasoning also shows what questions you should ask to choose the right solution - if no one cares that the performance goes, why should you? If someone cares, you will know how big problem it is - you may just add a new node to the cluster to increase the performance, use free tools or your common sense to re-organize the batch jobs to distribute the workload more evenly, or if it is a real issue, you may search for some sophisticated enterprise-level solution.

  • I have downloaded IOS7 on my iPhone and all calendar events have disappeared. The general functions of the calendar have changed and are definitely not 'user friendly'. How can I retrieve my calendar events. Will Apple improve the calendar function

    I have downloaded IOS7 on my iPhone and all calendar events have disappeared. The general functions of the calendar have changed and are definitely not 'user friendly'. How can I retrieve my calendar events. Will Apple improve the calendar function or revert to the previous system. Even the typing function on IOS 7 is faulty - very slow to respond to the keyboard. I no longer enjoy using my iPhone. Can anyone assist. Thank you

    Very strange! All of my calendar events have reappeared. This has happened one week after downloading iOS 7
    The calendar however,  is not easy to use.
    The typing function on the phone has  become even slower. Have to wait for each letter to show on screen.

  • PUT BACK THE MISSING THE SCREEN FUNCTION IN THE PRINT DIALOG BOX!!!!

    Hello all...
    I am a creative director in the screen print (garment industry) for over 20 years.  We have always used PS to directly print and control our halftone screens and angles through the screen function in the print dialog box.  Now it has miraculously disappeared after so many versions previous.
    I emplore Adobe and their team to please update this function back into CS5.
    Although it is a function many might not even understand how to use, it is IMPERATIVE to the screen printer/artist in this industry.
    There are workarounds, of course, but they are much more tedious and time consuming.
    I truly cannot convince enough that we folks in this industry want this function back!!!!!

    You might want to also post in these Fora:
    Photoshop Feature Requests
    http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop

  • Web Page Composer:How to get the "SendTo" function in the header of a Site?

    Hi,
    when creating a web site in WPC one can choose out 5 addtional options which are shown in the runtime in the header of the web site in the portal. The 5 functions are the following:
    1) Send Feedback
    2) RSS
    3) E-Mail
    4) Print
    5) Add to Favorites
    When choosing the "E-Mail" option an external Email client (e.g. Outlook,Lotus Notes) starts.
    However, I would like to use the Portal´s "Send To"-Function when clicking on "E-Mail" instead of starting an external email-client. The Portal´s own "SendTo" email function is more comfortable because one can use the Portal´s own groups as Reciepients.
    It there any way to configure the "email"-option in wpc which method to use?
    Is there any way to configure futher options which then can be visible in the header of a web site?
    Thanks in advance.
    Thomas

    Hello,
    use below method to check whether view is editable/display mode ...
    me-->view_group_context->is_view_in_display_mode( me ). here "me" refers to the implementation class of view.
    Regards,
    Sandeep Kumar B

  • Does anyone have an example VI about how to call the animatewindow function in the user32.dll using CLN in Labview?

      I want to call the WinAPI function-animatewindow in user32.dll to produce some special effect when showing or hidding windows, but i don't know how to using this Win API to achieve my purpose?
      Does anyone have an example VI about this application?
      Thanks in advance for your help.

    You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.

  • Where can I find the SSL function on the iPad mail - having trouble with AOL sending e-mail out

    Where can I find the SSl function on the iPad mail - I am having trouble sending out e-mails on my AOL account on the iPad - no trouble with the MacBook Pro?

    Under the line where it has the SSL button, is Authintication set to password?  and the line below that, is there a server port number?  A typical outgoing server port number is 25.

  • Cannot select the connection type on the Nokia PC ...

    Operating System: MS Windows 7 (x64) Home Basic Service Pack 1
    Mobile Phone:        Nokia 5130 Xpress Music Edition (V.10.10) and Nokia E66
    Connection type:   USB Cable (CA-101) with Nokia PC Suite 7.1
    Problem:    I cannot select the connection type on the Nokia PC Suite after running the programme and connecting them 
    Description: It was connected only one device, and it found that I cannot select the type of connection; however, I can run well on the Mass Storage of the both devices. Now, I guess that the problem is capability of MS Windows in Home Basic Edition because Ovi Suite cannot work on the version (Nokia's website shows on the systematic requirement)
    Thank you
    Solved!
    Go to Solution.

    Operating System: MS Windows 7 (x64) Home Premium
    Mobile Phone:        Nokia 5230
    Connection type:   USB Cable with Nokia PC Suite 7.1.60
    Problem with the Nokia Connectivity Manager - no connections are listed and the reinstall error goes away after running repair for the Nokia Connectivity Cable Driver.  Have tried the
    PC Suite Cleaner
    CC Cleaner
    many PC Suite reinstallations after disabling anti-virus
    On some installations, I would get an error "Service cannot be started" but when I cancel and restart the installation it goes straight through - I always end up with a blank window in the Connection Manager.  Looked for some other issues found in older forums addressing older versions, nothing has worked yet.  More help, please.

  • Does the trial version of Lightroom have the full functionality as the paid version

    Does the trial version of Lightroom have the full functionality as the paid version please

    Yes, it has. if you have specific issues, simply explain them.
    Mylenium

  • How to provide the F4 functionality to the files on application server

    Hi,
    How to provide the F4 functionality to the files on application server at selection screen.as it is F4_FILENAME for files on desktop , is there any Function module for this purpose also. I did a search in R/3 but didnt get any FM .Please advise.
    Regards,
    sam.

    You can get to it  using frontend class CL_GUI_FRONTEND_SERVICES if you know the host name and have the correct permissions, for example, this program works great for me in my system.
    report zrich_0001 .
    data: ifiletable type filetable.
    data: xfiletable like line of ifiletable.
    data: rc type i.
    parameters: p_file1 type localfile default'\sapprdusr'.
    at selection-screen on value-request for p_file1.
    call method cl_gui_frontend_services=>file_open_dialog
       EXPORTING
    *    WINDOW_TITLE            =
    *    DEFAULT_EXTENSION       =
    *    DEFAULT_FILENAME        =
    *    FILE_FILTER             =
         INITIAL_DIRECTORY       = '\sapprdusr'
    *    MULTISELECTION          =
      changing
        file_table              = ifiletable
        rc                      = rc
    *    USER_ACTION             =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        others                  = 4.
    read table ifiletable into xfiletable index 1.
    if sy-subrc = 0.
      p_file1 = xfiletable-FILENAME.
    endif.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Can't sync my Macbook with my new Nokia Lumia 900.

    I spent two hours with a couple of the tech folks at the AT&T store yesterday, trying to get my new Nokia Lumia 900 to sync to my Macbook... but with no luck. No matter what we did, I kept getting a message that the server was not secure, and so the

  • How to add a button in a Xaxis intsead of labels in an ultrachart

    Hi I have a composite chart. I want to add buttons in place of all levels in the X axis.So that i can perform some action on click on of buttons. Like text change and all. Please suggest. How can i get the location value of X axis data point.

  • Help w/ ADF UIX event parameters

    Is there any way to add a parameter when firing an event like this: ==========code============= <link text=" Accounts " destination="${ctrl:eventUrl(uix,'changePage')}"/> =========================== Bellow is how I used to fire events using a link bu

  • Infoobject used in Lookups

    Hi All, I have an infoobject. I want to know where is it used as a Look Up (in update rules). How can I find the list? Pls. help. Thanks In Advance

  • ? at top of window

    there is a question mark at the top of each window inside the grey header. when i click it says finder. what do i do?