LibraryService.connect() method hangs

I have a servlet application that uses IFS with Oracle IFS 9.0.1. I have a pool of LibrarySessions that are dynamically created and connected using LibraryService.connect() if a new LibrarySession is needed. Each LibrarySession uses the same login username and password. We have one username and password for the entire web app and the application uses this one user for all calls into IFS.
Here's my problem:
Servlet Thread 1:
Creates a new LibrarySession and begins to stream a file to the client by writing Document.getContent() to the servlet outputstream.
Servlet Thread 2:
While thread 1 is still busy streaming the file from IFS to the servlet output stream, servlet thread 2 attempts to create a new LibrarySession via LibraryService.connect().
Result:
Thread 1 stops streaming the file. Thread 2 hangs and no more LibrarySessions can be created from that point forward.
Questions:
1. Should you be able to perform multiple threads at the same time using different LibrarySessions for the same user name?
2. I'm guessing that thread 1's handles into IFS are somehow blocking thread 2 from connecting and creating a new LibrarySession. Why would this happen? Do LibrarySessions need to be created during a period of inactivity? Is something syncronized in the IFS API that I'm not aware of?
Thanks,
Steve Probst
Mezzia, Inc.
Indianapolis, IN

Answers:
1. Yes, you should be able to create multiple threads, each of which use different LibrarySession objects concurrently, even if the LibrarySession objects are authenticated as the same user.
2. a) I'm not sure why this would happen.
2. b) No, LibrarySession objects can be created anytime.
2. c) There are many things in the iFS API implementation that are synchronized behind the scenes, but it shouldn't be causing this problem.
Have you tried iFS 9.0.3?
By the way, the DAV server that is built in to the product works just like your servlet, and supports multiple users connecting and streaming content all at the same time.
Can you connect to the DAV server on your iFS instance and stream content concurrently with other connected users?

Similar Messages

  • LibraryService.connect - very quick question :-)

    I have a quick query on the LibraryService.connect method. If I have 10 threads calling this method one after the other (Basically using a synchronised wrapper method) will this method return a new Library session for each call OR is it possible that an existing session will be returned. If an existing session is returned and subsequently two threads try to perform a task simultaneouly on the same LibrarySession will this cause a problem?
    many thanks in advance
    Trev.

    a call to LibraryService.connect will always create a new LibrarySession
    the LibrarySession class is thread-safe, but certain operations are not synchronized, such as starting and ending transactions. if you have multiple threads using a single LibrarySession, you must ensure that your transaction management is synchronized, otherwise you may end up with transactions being committed out of order, which causes an error.
    here is some more info:
    BIN$$ Tables in target shema

  • What is the direct connect method for transfering photos from my macbook pro to my iphone without using iTunes syncronization? (iow: a simple photo copy from mac to iphone?)

    I feel like I should know the answer to this. I can't believe it is a hard question.
    What is the direct connect method for transfering photos from my macbook pro to my iphone without using iTunes syncronization? (iow: a simple photo copy from mac to iphone?)
    Easy? Right?
    Just plug my iphone in to a mac and copy a photo from the mac to my iphone.
    I don't have internet access - I can't email it, or mobileme it, or dropbox it.

    iTunes. Other than that there is no direct method. However, do try the iPhone forums.

  • Parse method hangs

    I am trying to to parse a file using DocumentBuilder. The parse() method hangs for no reason. There are no errors or exceptions thrown. I even used a StringReader but in vain. Pl see code below:
    The file is read correctly and i could even print the XML string out.
    System.out.println("Parsing XML file from performParsing():" +s);
              Document doc = null;
              DocumentBuilderFactory factory = null;
              DocumentBuilder builder = null;
              try{
                   factory = DocumentBuilderFactory.newInstance();
                   System.out.println("Parsing XML factory:" +factory);
                   builder = factory.newDocumentBuilder();
                   System.out.println("Parsing XML builder:" +builder);
                   URL url = new URL(s);
                   URLConnection urlConnection = url.openConnection();
                   InputStream in = urlConnection.getInputStream();
                   String XMLStr = getStringReaderFromFile(in); //private method that gives a string
                   StringReader stReader = new StringReader(XMLStr);
                   InputSource ins = new InputSource(stReader);
         doc = builder.parse(ins);--->IT HANGS HERE

    Not an expert on this but presumably you have the properties set up correctly.
    From javadoc ...
    DocumentBuilderFactory uses the system property javax.xml.parsers.XmlDocumentParserFactory to find the class to load. So you can change the parser by calling:
    System.setProperty("javax.xml.parsers.XmlDocumentParserFactory",
    "com.foo.myFactory");

  • InputStreamReader read(char[] cbuf, int offset, int length) method hangs

    Hi all,
    I am posting this message again.
    I would appreciate any help, as I am stuck with a customer issue.
    This method hangs for the following values
    read(xchar, 0, 1)
    Does not throw any exception.
    The inputstream does have data in it.
    the characterset is cp037.
    I know for sure that the InputStream has data in it. In fact the read method reads couple of fields with length greater than 1 and hangs when it tries to read data with length 1.
    Bug # 4401798 talks about some error similar to this being fixed. Any one has any idea, which jdk had this problem and which one has a fix for this?
    Thanks.

    You should have continued in your original thread, rather than starting a new one. What you have posted in this new thread could have gone in the old one:
    http://forum.java.sun.com/thread.jspa?threadID=665303

  • InputStreamRead read(char[] cbuf, int offset, int length) method hangs

    This method hangs for the following values
    read(xchar, 0, 1)
    Does not throw any exception.
    The inputstream does have data in it.
    the characterset is cp037.

    So the problem is probably in your implementation of InputStream. Do you implement the available() method? What will your class do if you attempt to read more bytes than there are? (say, call read(chars, 0, 1000000))
    The InputStreamReader keeps an internal buffer (of 1024 bytes?) which it uses for decoding the bytesto characters..if your stream blocks when InputStreamReader is filling its buffer you'd get this sort of behaviour.

  • Dequeue method hangs

    All,
    on our sun solaris OS 5.6 we run oracle database server 8.1.6 and AQ server 8.1.6. We use jdbc thin (classes12.zip) oracle8i 8.1.6.2.0 JDBC Driver for jdk 1.2.x .
    We use the AQ api from our java backend to dequeue messages from the AQ server. It happens time to time that this method hangs. The error is hard to reproduce and does happen after the backend has been running for a while, usually a few hours.
    Any hints for the reason of this are greatly appreciated.
    Thanks Ben: [email protected]
    Below is the stack thrace of the thread that hangs:
    Thread-2:
    [1] java.net.SocketInputStream.socketRead (native method)
    [2] java.net.SocketInputStream.read (SocketInputStream:90)
    [3] oracle.net.ns.Packet.receive (pc 32)
    [4] oracle.net.ns.NetInputStream.getNextPacket (pc 48)
    [5] oracle.net.ns.NetInputStream.read (pc 21)
    [6] oracle.net.ns.NetInputStream.read (pc 5)
    [7] oracle.net.ns.NetInputStream.read (pc 6)
    [8] oracle.jdbc.ttc7.MAREngine.unmarshalUB1 (MAREngine:718)
    [9] oracle.jdbc.ttc7.MAREngine.unmarshalSB1 (MAREngine:690)
    [10] oracle.jdbc.ttc7.Oall7.receive (Oall7:372)
    [11] oracle.jdbc.ttc7.TTC7Protocol.doOall7 (TTC7Protocol:1330)
    [12] oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch (TTC7Protocol:757)
    [13] oracle.jdbc.driver.OracleStatement.executeNonQuery (OracleStatement:1313)
    [14] oracle.jdbc.driver.OracleStatement.doExecuteOther (OracleStatement:1232)
    [15] oracle.jdbc.driver.OracleStatement.doExecuteWithBatch (OracleStatement:1353)
    [16] oracle.jdbc.driver.OracleStatement.doExecute (OracleStatement:1760)
    [17] oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout (OracleStatement:1807)
    [18] oracle.jdbc.driver.OraclePreparedStatement.executeUpdate (OraclePreparedStatement:332)
    [19] oracle.jdbc.driver.OraclePreparedStatement.executeQuery (OraclePreparedStatement:283)
    [20] oracle.AQ.AQOracleQueue.dequeue (AQOracleQueue:1356)
    [21] oracle.AQ.AQOracleQueue.dequeue (AQOracleQueue:1132)

    Folks,
    I have read this post with great interest related to the AQ dequeue problems reported. We got the same problem and I am wondering that whether you have found the solution to the problem.
    Your help is highly appreciated.
    Thanks,
    Yibing

  • Unable to use "easy connect" method to XE database

    All,
    I have an XE database running on Oracle Enterprise Linux. If I create a tnsnames.ora entry I can connect to the server fine. However, if I try to connect via the easy connect method
    sqlplus user@host:port:sid it fails with
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    the hostname I am using is definitely correct and I've also tried with ip address and get same error message. If I change from SID to SERVICE_NAME
    sqlplus user@host:port/service
    I get the following error message
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    I've used both XE and xe as service name. The service name in my tnsnames.ora entry that works uses lower case xe for service name.
    Any help out there would be appreciated.

    Maybe this is more significant for you ?
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\User1>sqlplus test/test@xe
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Feb 3 14:05:49 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name: test/[email protected]/xe
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>

  • The selected printer connection method is incorrect. Select the....... ERRO

    Just upgraded to 10.5. I'm setting up a few printers and a plate maker. Got everything setup as far as I could tell but one machine wont work. It's an ImageRunner 8500 from Canon. When I try to print to that printer I get this:
    The selected printer connection method is incorrect. Select the correct printer connection method in printer list, and then try to add the printer again.
    Not what thats about. In the printer list, It shows up there with everything else that is connected via Appletalk. I got the PPD for the Konika Minolta CPP500 installed and it prints fine... any ideas? Thanks,
    Chris

    Hi John
    I tried Appletalk but that printer does not appear. However LPD does work. I think the problem was on checking my other Macs in the office, there is no way of telling whether they are connect via IPP or LPD as the set up appears the same, i.e. IP address. When I tried to add my the printer again, I had forgotten how we set it up originally.
    Many thanks for pointing me in the right direction.

  • Connection method

    Hi Hussein and Helios,
    What is the default connection method in ebs whether shared server or dediacted server?
    can i change that?
    Edited by: user3266490 on Feb 26, 2010 8:11 PM

    Hi,
    What is the default connection method in ebs whether shared server or dediacted server?I believe it is dedicated server in 11i/R12.
    can i change that?What is the point of changing it? I am not sure if this is supported, so I would suggest you log a SR to confirm this with Oracle support.
    Regards,
    Hussein

  • Sessions/connections gets hang during update and select operations.

    A table with 3 million records, which has customer details data.
    Everyday application is executing select and update queries on that table.
    Sessions/connections gets hang during update and select operations.
    After checking ADDM report, following are the findings:
    Please suggest the solutions
    Findings and Recommendations
    Finding 1: Row Lock Waits
    Impact is 145.22 active sessions, 99.77% of total activity.
    SQL statements were found waiting for row lock waits.
    Recommendation 1: Application Analysis
    Estimated benefit is 145.22 active sessions, 99.77% of total activity.
    Action
    Significant row contention was detected in the TABLE
    "AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
    row contention in the application logic using the given blocked SQL.
    Related Object
    Database object with ID 82155.
    Rationale
    The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
    Related Object
    SQL statement with SQL_ID 974vg65j29pmv.
    UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
    WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
    Rationale
    The session with ID 50 and serial number 34525 in instance number 1 was
    the blocking session responsible for 100% of this recommendation's
    benefit.
    Symptoms That Led to the Finding:
    Wait class "Application" was consuming significant database time.
    Impact is 145.22 active sessions, 99.77% of total activity.
    Finding 2: Top SQL Statements
    Impact is 46.39 active sessions, 31.87% of total activity.
    SQL statements consuming significant database time were found. These
    statements offer a good opportunity for performance improvement.
    Recommendation 1: SQL Tuning
    Estimated benefit is 46.39 active sessions, 31.87% of total activity.
    Action
    Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
    possible performance improvements. You can supplement the information
    given here with an ASH report for this SQL_ID.
    Related Object
    SQL statement with SQL_ID 974vg65j29pmv.
    UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
    WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
    Rationale
    The SQL spent only 0% of its database time on CPU, I/O and Cluster
    waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
    Look at performance data for the SQL to find potential improvements.
    Rationale
    Database time for this SQL was divided as follows: 100% for SQL
    execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
    execution.
    Rationale
    SQL statement with SQL_ID "974vg65j29pmv" was executed 212 times and had
    an average elapsed time of 2494 seconds.
    Rationale
    Waiting for event "enq: TX - row lock contention" in wait class
    "Application" accounted for 100% of the database time spent in
    processing the SQL statement with SQL_ID "974vg65j29pmv".

    **addm report **
              ADDM Report for Task 'TASK_7526'
    Analysis Period
    AWR snapshot range from 5003 to 5004.
    Time period starts at 08-JUL-13 11.00.27 AM
    Time period ends at 08-JUL-13 12.00.45 PM
    Analysis Target
    Database 'AVAYADB' with DB ID 2878789264.
    Database version 11.2.0.1.0.
    ADDM performed an analysis of instance avayadb, numbered 1 and hosted at
    NG-LA04AVAYA01.
    Activity During the Analysis Period
    Total database time was 563062 seconds.
    The average number of active sessions was 155.63.
    Summary of Findings
       Description         Active Sessions      Recommendations
                           Percent of Activity
    1  Row Lock Waits      155.44 | 99.88       1
    2  Top SQL Statements  26.67 | 17.14        1
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Findings and Recommendations
    Finding 1: Row Lock Waits
    Impact is 155.4 active sessions, 99.88% of total activity.
    SQL statements were found waiting for row lock waits.
       Recommendation 1: Application Analysis
       Estimated benefit is 155.44 active sessions, 99.88% of total activity.
       Action
          Significant row contention was detected in the TABLE
          "AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
          row contention in the application logic using the given blocked SQL.
          Related Object
             Database object with ID 82155.
       Rationale
          The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
          Related Object
             SQL statement with SQL_ID 974vg65j29pmv.
             UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
             WHERE  ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
       Rationale
          The session with ID 167 and serial number 6084 in instance number 1 was
          the blocking session responsible for 100% of this recommendation's
          benefit.
       Symptoms That Led to the Finding:
          Wait class "Application" was consuming significant database time.
          Impact is 155.45 active sessions, 99.88% of total activity.
    Finding 2: Top SQL Statements
    Impact is 26.66 active sessions, 17.14% of total activity.
    SQL statements consuming significant database time were found. These
    statements offer a good opportunity for performance improvement.
       Recommendation 1: SQL Tuning
       Estimated benefit is 26.67 active sessions, 17.14% of total activity.
       Action
          Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
          possible performance improvements. You can supplement the information
          given here with an ASH report for this SQL_ID.
          Related Object
             SQL statement with SQL_ID 974vg65j29pmv.
             UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
             WHERE  ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
       Rationale
          The SQL spent only 0% of its database time on CPU, I/O and Cluster
          waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
          Look at performance data for the SQL to find potential improvements.
       Rationale
          Database time for this SQL was divided as follows: 100% for SQL
          execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
          execution.
       Rationale
          SQL statement with SQL_ID "974vg65j29pmv" was executed 707 times and had
          an average elapsed time of 794 seconds.
       Rationale
          Waiting for event "enq: TX - row lock contention" in wait class
          "Application" accounted for 100% of the database time spent in
          processing the SQL statement with SQL_ID "974vg65j29pmv".
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Additional Information
    Miscellaneous Information
    Wait class "Commit" was not consuming significant database time.
    Wait class "Concurrency" was not consuming significant database time.
    Wait class "Configuration" was not consuming significant database time.
    Wait class "Network" was not consuming significant database time.
    Wait class "User I/O" was not consuming significant database time.
    Session connect and disconnect calls were not consuming significant database
    time.
    Hard parsing of SQL statements was not consuming significant database time.

  • Internet Connect Consistently Hangs On Startup

    Anytime the computer is shut down and has to be restarted, Internet Connect always hangs without fail. It appears to actually connect, but quickly thereafter, I get the prompt that tells me that it's unexpectedly quit. When I try again, I'm successful. All disconnects and connections thereafter work until I shut my computer down and have to restart.
    I've gone so far as to reinstall from the DVD, backing up, and selectively reinstalling third party apps, but the problem persists. Anyone else encountering this problem, which came bundled with my new 20" G5 iMac and Tiger?

    Hi, WildBill —
    I hope you'll forgive if it takes me a moment to get acquainted. It's been a long time since I used Internet Connect.
    How are you using it — Bluetooth, AirPort, PPoE, VPN, etc.? (I'm wondering whether something like a signal delay or connection problem may factor in to the behavior...)
    Have you tried logging in to a temporary, "test" user account (with administrative privileges) in an effort to determine whether the problem is restriced to your user account or system-wide? This and other general troubleshooting tactics are described in KnowledgeBase Article Mac OS X: How to troubleshoot a software issue.
    When you say "I get the prompt that tells me that it's unexpectedly quit" —are we talking about the application actually "crashing" ?  If so, have you used Console to look in ~/Library/Logs/ for an Internet Connect.crash.log? This may help to identify the specific sequence that's causing the problem.
    Looking forward to hearing back from you.
    Hope this helps... and
    Good luck!
    Dean

  • Java Socket bind() and connect() method

    Hi,
    I'm running a windows xp machine and have set it up (using the raspppoe protocol) to make simultaneous dial-up connections to the internet. Each of these dial-up connections then has its own IP address.
    When I create a new Socket, bind it to one of these IP addresses and invoke the connect() method (to a remote host), the socket times out. Only when i bind it to the most recent dial-up connection that has been established, the socket connects.
    I'm welcome for any ideas :)
    thanks

    If you'll excuse the lengthy post it has alot of code and outputs :)
    Ok Wingate really doesnt have much to do with the program, let me get back to the point and then post the code I have.
    Goal of the application:
    To use multiple simultaneous dial-up interfaces connected to the internet by binding each of them (using Socket class .bind() method) to its associated Socket object.
    Method:
    I use the RASPPPOE protocol for Windows XP to allow these multiple simultaneous ADSL dial-up connections. Each of these dial-up instances gets assigned an IP address. I use the NetworkInterface class to retrieve these interfaces/IP addresses and then run a loop to bind each Socket to its associated interface.
    The code I am pasting here is over-simplified and is just to illustrate what it is i'm trying to do.
    Firstly, this is a cut & paste of the tutorial from the Java website on how to list the Network interfaces on an operating system and the associated output:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import static java.lang.System.out;
    public class ListNIFs
        public static void main(String args[]) throws SocketException
            Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();       
            for (NetworkInterface netint : Collections.list(nets))
                displayInterfaceInformation(netint);       
        static void displayInterfaceInformation(NetworkInterface netint) throws SocketException {
            out.printf("Display name: %s\n", netint.getDisplayName());
            out.printf("Name: %s\n", netint.getName());
            Enumeration<InetAddress> inetAddresses = netint.getInetAddresses();       
            for (InetAddress inetAddress : Collections.list(inetAddresses))
                out.printf("InetAddress: %s\n", inetAddress); 
            out.printf("Up? %s\n", netint.isUp());
            out.printf("Loopback? %s\n", netint.isLoopback());
            out.printf("PointToPoint? %s\n", netint.isPointToPoint());
            out.printf("Supports multicast? %s\n", netint.supportsMulticast());
            out.printf("Virtual? %s\n", netint.isVirtual());
            out.printf("Hardware address: %s\n", Arrays.toString(netint.getHardwareAddress()));
            out.printf("MTU: %s\n", netint.getMTU());       
            out.printf("\n");
    }For which the output is:
    Display name: MS TCP Loopback interface
    Name: lo
    InetAddress: /127.0.0.1
    Up? true
    Loopback? true
    PointToPoint? false
    Supports multicast? true
    Virtual? false
    Hardware address: null
    MTU: 1520
    Display name: Intel(R) PRO/Wireless 3945ABG Network Connection - Packet Scheduler Miniport
    Name: eth0
    InetAddress: /192.168.1.10
    Up? true
    Loopback? false
    PointToPoint? false
    Supports multicast? true
    Virtual? false
    Hardware address: [0, 25, -46, 93, -13, 86]
    MTU: 1500
    Display name: WAN (PPP/SLIP) Interface
    Name: ppp0
    InetAddress: /196.209.42.125
    Up? true
    Loopback? false
    PointToPoint? true
    Supports multicast? true
    Virtual? false
    Hardware address: null
    MTU: 1492
    Display name: WAN (PPP/SLIP) Interface
    Name: ppp1
    InetAddress: /196.209.248.25
    Up? true
    Loopback? false
    PointToPoint? true
    Supports multicast? true
    Virtual? false
    Hardware address: null
    MTU: 1492
    Display name: WAN (PPP/SLIP) Interface
    Name: ppp2
    InetAddress: /196.209.249.4
    Up? true
    Loopback? false
    PointToPoint? true
    Supports multicast? true
    Virtual? false
    Hardware address: null
    MTU: 1492The part to take notice of is the three WAN (PPP/SLIP) Interfaces named ppp0, ppp1 and ppp2. They are simultaneous dial-up connections to the internet, each with a unique IP. I will now attempt to use one of these interfaces to establish a connection to www.google.com on port 80 (purely for illustration).
    In the code printed below, I simply hard coded the above listed IP address of the interface for simplification:
    import java.net.*;
    import java.io.*;
    public class SockBind {
         private Socket connection;     
         private void start() throws IOException
              while (true)
                   try {
                        connection = new Socket();
                        connection.bind(new InetSocketAddress("196.209.42.125", 12345));
                        connection.connect(new InetSocketAddress("www.google.com", 80));
                        connection.close();
                   } catch (SocketException e) {
                        System.err.println(e.getMessage());
         public static void main(String args[])
              try {
                   SockBind s = new SockBind();
                   s.start();
                   System.out.println("Program terminated.");
              } catch (IOException e) {
                   e.printStackTrace();
                   System.exit(1);
    }Once the program reaches the connection.connect() method, it pauses a while until it throws a SocketException with a "timed out" message. I have already tested the dial-up connection (using a wingate, which is irrelevant) just to confirm that the connection is in working order.
    EJP if you have any suggestions I will welcome it, many thanks :)

  • MSFT_ISCSITarget.Connect() Method is throwing System.Management.ManagementException "not found"

    I am using c# wmi calls to connect to connect to ISCSI LUN through ISCSI initiator. I am using windows server 2012 r2. From server manager I am able to connect through ISCSI initiator. From GUI every thing is working fine.  I am able to list ISCSISessions
    through ISCSISession.GetInstances() in c# code. WmiExplorer is also showing that connect method is there. Generated class contains the connect() method.
    System.Management.ManagementException was unhandled by user code
      HResult=-2146233087
      Message=Not found  
      Source=System.Management
      StackTrace:
           at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
           at System.Management.ManagementObject.Initialize(Boolean getObject)
           at System.Management.ManagementObject.get_ClassPath()
           at System.Management.ManagementObject.GetMethodParameters(String methodName, ManagementBaseObject& inParameters, IWbemClassObjectFreeThreaded& inParametersClass, IWbemClassObjectFreeThreaded& outParametersClass)
           at System.Management.ManagementObject.GetMethodParameters(String methodName)
           at ROOT.MICROSOFT.WINDOWS.STORAGE.ISCSITarget.Connect(String AuthenticationType, String ChapSecret, String ChapUsername, String InitiatorInstanceName, String InitiatorPortalAddress, Boolean IsDataDigest, Boolean IsHeaderDigest,
    Boolean IsMultipathEnabled, Boolean IsPersistent, String NodeAddress, Boolean ReportToPnP, String TargetPortalAddress, UInt16 TargetPortalPortNumber, ManagementBaseObject& CreatediSCSISession) at ROOT.Microsoft.Windows.Storage.MSFT_iSCSITarget.cs:line
    402

    Hi,
    The issue is related to C# language, I suggest you ask for help from MSDN forum for better and accurate answer to the question.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • New Secure Connect Method

    Hi all
    For more information about the new secure connect method for SAP processes to connect to the Oracle database, see [our homepage|SAP on Oracle].
    Best regards, Aidan
    Follow us on [Facebook |http://www.facebook.com/SAPonOracle#!/SAPonOracle] and [Twitter|http://twitter.com/#!/SAPonOracle].

    Its pretty easy. Perform the steps mentioned in this link
    http://docs.oracle.com/cd/E23507_01/Platform.20073/ATGConsCommRefGuide/html/s0604shippingcalculators01.html
    -karthik

Maybe you are looking for