Can't connect to more then one server in a java appl.

Hi:
I'm connecting to OCS via java as the administrator without problems. But, even if I close the first connection
I can't open the second one without getting an user unknown error. If I connect only to one or the other everything works.
Here's part of the code:
// Get system properties
Properties props = System.getProperties();
props.setProperty("oracle.mail.sdk.esmail.encryption", "false");
props.setProperty("oracle.mail.sdk.esmail.driver_type", "thin");
props.setProperty("oracle.mail.ldap.connectssl","true");
props.setProperty("oracle.mail.ldap.sslport","636");
props.setProperty("oracle.mail.ldap.admin_dn","cn=xxxx");
props.setProperty("oracle.mail.ldap.admin_password",xxxx);
session = Session.getDefaultInstance(props, new OracleAuthenticator());
// Connect to the mailstore (Oracle)
OracleStore store = (OracleStore)session.getStore("esmail"); // esmail is the Oracle provider name
store.connect(owserver, -1, owuser, null);
store.close();
owserver="anothermachine";
owuser="anotheruser";
store.connect(owserver, -1, owuser, null);
System.exit(0);
Please help.
Regards,
Jerry

Almost forgot, here is the error I am getting.
ESDS error code - 10010] User Doesn't Exist
at oracle.mail.ldap.ESDSContext.cacheUserAttrs(ESDSContext.java:690)
at oracle.mail.ldap.ESDSContext.cacheCallerParams(ESDSContext.java:534)
at oracle.mail.ldap.ESDSContext.<init>(ESDSContext.java:145)
at oracle.mail.ldap.ESDSDirServerAccess.ESDSClientLogon(ESDSDirServerAccess.java:829)
at oracle.mail.sdk.esmail.OracleStore.connect(OracleStore.java:921)
at WriteOJMA.connect(WriteOJMA.java:52)
at ReadOJMA.main(ReadOJMA.java:123)
Exception in thread "main" javax.mail.MessagingException: [ESDS error code - 10010] User Doesn't Exist
at oracle.mail.sdk.esmail.OracleStore.connect(OracleStore.java:1023)
at WriteOJMA.connect(WriteOJMA.java:52)
at ReadOJMA.main(ReadOJMA.java:123)

Similar Messages

  • Switched from DSL to cable modem. My Airport light won't turn green. Keeps blinking orange. No wireless now and can't connect to more than one computer! ?????

    Switched from DSL to cable modem. My Airport light won't turn green. Keeps blinking orange. No wireless now and can't connect to more than one computer! ?????

    Hmmmm.
    If you reset the AirPort Extreme by holding in the reset button for 9-10 seconds and then releasing, the AirPort should be back in default settings which would allow mutliple computers to connect to the LAN ports on the AirPort.
    Power off the cable modem for now and leave it off at least 15 minutes.
    With the AirPort Extreme still powered on, hold in the rest button on the back for 9-10 seconds and release. Allow a full minute for the AirPort Extreme to restart to a slow, blinking abmer light.
    Then, power off the AirPort Extreme.
    Check to make sure that the Ethernet cable from the modem is connected to the WAN "O" port on the AirPort Extreme.
    After the modem has been powered off for at least 15 minutes, power it up and let it run for 5 minutes by itself.
    Now, power up the AirPort Exteme and let it run for 2-3 minutes
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Connect an Ethernet cable from your Mac to one of the LAN <-> ports on the AirPort Express
    Click on the AirPort Exteme, then click Continue to follow the guided setup tp configure the AirPort Extreme.  You can use the same wireless network name, password, etc that you used before, or set up a new name and password, etc.

  • How can I talk with more then one person at a time?

    How can I talk with more then one person at a time? With Faxe time? Is thier software needed to do this or can it be done with the basic package?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Can I connect with more than one iTunes acct

    Can I connect with more than one iTunes acct

    Laxman25 wrote:
    If its multiple apple id's on one computer you can't because you have to log out of one and login on another.
    I've only got one ID so I can't test but Winston says you can be signed into iTunes with multiple AppleIDs (i.e authorise iTunes for more than one ID content) at the same time, and that even different account content will stream so long as Home Sharing ID in iTunes matches AppleTV Home Sharing ID.
    AC

  • Can i back up more then one computer

    can i back up more then one computer to my Time Capsule?
    if so, how do i set it up?

    Time Machine will create a separate file for each computer.
    Are the two computers with a same name ?

  • Can a .jsp contain more then one jsp:forward page

    Can a .jsp contain more then one jsp:forward page if it's conditional.
    ie. if condition true
    forward to pageA
    else
    forward to pageB?
    Thank you.

    gimbal2,
    Thanks for the response. I did try it and I got a
    compile error. I just realized that the error was
    regarding a different issue.
    JJIn that case, it would have been appropriate to post the actual problem.

  • Connection of more then one device to a PC

    Hi,
    I have a product which need to work with 4 devices (no specific model - each time can be a different device[s]), at the moment we are using the PC Suite, and we found a limitation that only one device can be connected to each server.
    Is there is away to connect more then one device to a PC using the PC suite?
    Thanks,
    Idan

    As far as I know the short answer is no. The same applies with acyive sync and windows mobile. You can only sync one device at a time as far as I know.

  • Can printer connect to more than one network?

    Hello.
    I just bought the wireless HP deskjet 3050 printer. I've connected it to the internet (network) and it's working perfectly. Is it possible to connect to more than one network? We have more than one internet line in the house so I was wondering if I can set it up for both lines. I understand that I can print with multiple computers on the same network (and I am able to do so), but how about on different networks?
    Thanks.

    No, it only has one network connection device so can only connect to one at time, sorry.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How can I connect to more than one computer from external ip

    Hi
    I have been using remote desktop for some time and have a port forward set so I can connect to our mail server from anywhere else externally from my macbook pro, but how can I connect to other macs in the office when there only seems to be the two ports available for use 5900 and 3283. I can only port forward to one computer? How can I connect to multiple computers when not within the same network? are there other ports available?
    Cheers
    Tony

    If your workstations get their addresses from an NAT device rather than being "real", the ports also need to be forwarded in the router to the workstation's internal IP address.  ARD uses port 3283 for the reporting and updating function, so if your Macs are getting their IP addresses through NAT, since you can only forward a port to a single workstation, you can only get reports, push package/files to etc. for a single workstation.
    ARD uses the VNC protocol for observation and control, though, and there are a range of IP addresses for that protocol, starting with 5900. ARD uses 5900 by default, so that port would be forwarded to the first workstation. You would, I believe,  need to install third-party VNC software on the systems (since the ARD client cannot listen on any port other than 5900 while other VNC systems can be set for other ports such as 5901, 5902, etc. You would then  forward 5901 to the second workstation (and on to 5902, 5903, etc.). You can then use the following information:
    http://docs.info.apple.com/article.html?path=RemoteDesktop/3.0/en/ARDC715.html  to connect.
    The only other options are: 1) to run the ARD administrator on a workstation on the network, and then take control of that system from outside, either via VNC or another copy of ARD, or 2) set up a virtual private network (VPN) so that when you connect from outside, your admin system is officially part of the local network.
    Hope this helps.

  • Is Apple TV able to connect to more then one tv

    I was wanting to get Apple TV but I have 3 TVs can I connect Apple TV to all of them or do I have to buy a seaprate Apple TV for each tv.

    Ideally you'd need one for each TV unless you want to unplug and move it around for each set you want to watch on.
    It only has one TV output, which is HDMI - you might find some kind of HDMI splitter to run HDMI to all 3 TVs but that would not be cheap when you'd payed for all the boxes and cables, plus you'd have the same content on each TV.
    AC

  • Unable to connect error while connecting to more than one server in a cluster

              hi,
              I have a weblogic cluster of two servers. The stateless session bean is deployed
              on both these servers as well as the cluster. The weblogic used is 6.0 sp2. I'm
              using a custom router class which redirects the calls to bean's business methods
              in a round-robin fashion to all the servers in the cluster.
              When both the servers (say s1 and s2) are up and running a request comes from
              a servlet deployed on admin server, the request is first sent to s1 which is fulfilled
              but in the same servlet a second call is made to the bean which the custom router
              class directs to s2, but here the exception comes as, unable to connect to JVM
              of the remote server s2.
              Now if I shutdown s1 and retry then, the request is nicely routed to s2 and fulfilled.
              And if s1 is up again and request is sent to it, this time it gives same error
              for the s1.
              So on the whole the admin is able to talk only to one of the servers. why is this
              happening ?
              Here all the three servers s1, s2 and admin server are on different physical machines.
              any pointers ?
              regards,
              Nikhil.
              

    Opps!
    Sorry, I had an error in the 3rd SQL statement. Works fine
    PP

  • How can I connect many client in  one server ?

    Hello, My name is Fabio, i live in Brazil.
    I need that two or more conect the ane server socket.
    Who can help me ?

    Hello, My name is Fabio, i live in Brazil.
    I need that two or more conect the ane server
    socket.
    Who can help me ?Do you mean the common idiom?
    // server code
    while (true){
      Socket s = serverSocket.accept();
      new Thread(new ClientHandler(s)).start();
    class ClientHandler implements Runnable{
      Socket soc;
      public ClientHandler(Socket so){
        soc = so;
      public void run(){
        // do io using soc's io streams
    }

  • Can i back up more then one imac in home to 2T time capsule

    Can i back up 2 imacs to 2T time capsule.  all my music is on the mac in a room away from the time capsule

    if my second imac is wireless how do i hook up to time capsule to back it up or share and then confirm that it is saved to time capsule

  • Why can I not use more then one sim card with my iphone?

    I want to use different service providers.

    Why is unlocking the iphone an issue?
    It's not, if you bought your iPhone from a provider that offers unlocking.
    AT&T have made a business decision to lock iPhones they sell to their network. That is their policy, and they haven't changed it for anyone. That is their decision.
    If, for instance, you had bought your iPhone from O2 in the UK, you would've been able to get it unlocked, as O2 have made a business decision to offer unlocking to their customers if they want it.
    Different mobile networks around the world have different policies on:
    a) whether to sell the phone locked or unlocked to their customers
    b) whether to offer after-sales unlocking as a service to their customers
    Also, in some countries there are laws governing the locking and unlocking of phones. Networks have to abide be these local laws too.
    Unfortunately, you didn't do any research on AT&T's policies before buying your iPhone for their network, which is why you are in this predicament.
    Your only option is to sell your iPhone and buy one for the country you want to use it in.

  • Since iTunes 7 can't import more then one song at a time

    When I use File> Add file to library, I can no longer import more then one song. If I select more then one file, iTunes wont import anything. I have my music download to my main iTunes folder, therefor I dont want to use add a folder, also there often is other songs I dont want to import at that time. I can drag and drop from explorer, but its annoying.
    Not a terrible bug, but another in the long list for iTunes 7.
    custom   Windows XP Pro   P4 2.8, 1 Gig Ram, Radeon x1600pro, Asus mobo

    Thanks Rachyl, I'll try that when I get off of work. What about the album art? How can I make sure I get it every time in the future. Can I rip my CD's using another software to make sure they are tagged right?
    BTW I used to live in NC not too long ago and went to school there....GO HEELS!

Maybe you are looking for

  • To save the sales order number in custom table while creation of the order.

    Hi Experts, Does there exist any exit to save the sales order number in a custom table while the sales order is created in VA01. The requirement is to capture the sales order number in a Z table when a field (payment terms ) is changed during the sal

  • File Adapter - FTP Error

    Hi, I have a Sender File Adapter using FTP which polls a server every 60 seconds looking for a file. Intermittently the adapter will connect and pick up the waiting file. However, more often than not it gives an error: An error occurred while connect

  • Build Error

    I have a very strange problem with workshop. I'm working on an application that contains several control projects, several java projects and a web project. Last week everything was working perfectly and suddenly on Thursday whenever I tried to build

  • Compressor, 24p, and 2-pass acting really weird

    I am having a heck of a time using Compressor (1.2.1) with 24p footage and 2-pass. I encode it, then DVDSP gives me a "bit rate too high" error. To make a long story short, if I go into Finder and preview the MPEG movie, at the end the last part repe

  • HT201269 how can i get my pictures back on my iphone

    my friend deleted all my pictures off my iphone4s, i tryied reseting it and backed it from a previous day where i had all the pictures, some came back but not all of them is there something else i can do?