Problem using .Mac account with Mail.

About a week-and-a-half ago, the Mail app started showing the error "Cannot Get Mail: The connection to 'mail.mac.com' failed."
I'm not really sure why it's doing this, seeing as how I didn't change any of the settings or invoke the problem, as far as I can tell. I've tried removing the account on my iPod touch and then syncing to the computer, but that didn't work. Any succession of removing/adding the address again fails.
Anyone sure what the deal is? I mean, if it's something stupidly obvious that I'm just not seeing, feel free to mock me.

I just wiped the whole thing clean and started fresh. Works fine now, oddly enough.

Similar Messages

  • Problems using Mac Mini with a Sharp 60" led 1080p

    My Mac Mini is connected to a Sharp LED 60 "and I use the VGA input but when I use 1080p resolution, then the text becomes blurred and chopped up. Why does this happen?

    I don't know if this will help but doing a search I found that you have to turn sharpness off or down to 0 on the TV for the best display.  I have a 40" display and it did the trick for me.

  • Problem with .mac account and mail 2.05 (os x 10.4.4)

    hi!
    i am not able to add a .mac account in mail 2.05. system is os x 10.4.4.
    .mac settings in system preference work fine, on my cube with os 10.3.9 i can add the .mac account without problems.
    in mail under 10.4.4 i can´t even select accounts besides IMAP, POP and EXCHANGE. if i delete mails plist and even the mail file and achieving a "virginal mail" i just can select these 3 accounts (POP,IMAP,EXCHANGE). strange because if i setup .mac settings in system preferences before setting up a POP mail account (i have 3 POP accounts besides .mac), the .mac account is automatically set up in mail. but even than i can´t set up manually (another) .mac account (can´t be selected in account pulldown menue) as well as soon as i delete it it can´t be resetup.
    no way with new user, same procedure. i reinstalled mail from tiger-dvd as well as reinstalling 10.4.4 combo update and repair disc permissions. no way to get .mac to work the normal way.
    has anyone any idea?
    thanks so long,
    peter

    the empty folder ~/Library/Mail/ at root level seemed to be the problem of not being able to activating the .Mac account in mail. after copying this folder onto harddisk again (i have a new "20 iMac at work with 10.4.4) the problem was solved. no idea how to get this folder again besides installing a blank 10.4.x install onto external firewire hdd or having a second system...
    thanks so long.
    i guess i made a mistake when migrating my old mail prefs from 10.3.x to 10.4.x blank install when moving the folders to 10.4.x maybe i have first choosen the ~/Library/Mail/ folder at root level and when recognizing that mail is not working with new user, i´m sure i might have deleted the whole mail prefs and mail folder on root level and copied the whole stuff again into USER/Library/Mail/. Therefore the folder ~/Library/Mail/ at root level became empty. i purchased .Mac just a few days ago so i recognized this failure just now...

  • Cannot send email in mail app. using POP account with Wi-Fi

    I recently moved to an apartment that only has wireless internet access. Since moving I cannot send email using my POP account, although I can receive email. I was also not able to receive email using my .mac account, but I learned through this forum to change server port to 587 in .mac account and now I can send via .mac account in mail app. But I still cannot sent email with mail app. using my POP account. I changed no settings when I moved, and have never had this problem with cable. Any suggestions?

    It all depends on the policy of whoever is the ISP at your new location and the method used by the outgoing (SMTP) server to determine whether you’re a legitimate user.
    In an attempt to fight spam, many ISPs restrict the ability to send using an outgoing (SMTP) server not owned by them, usually by blocking port 25 for all traffic outside their own network, which means you cannot send with an SMTP server not owned by them if configured to use that port number. And it may happen the other way around as well, i.e. the outgoing server itself may look at the IP address you’re connecting from and refuse the connection if you’re outside its own network.
    Something that often works is changing the outgoing server port to 587 (or whatever alternate port number the outgoing server listens to) instead of 25 and using some form of authentication in Preferences > Accounts > Account Information > Outgoing Mail Server > Server Settings, but two conditions must be satisfied for this change to work: (1) the ISP must not block that port as well AND (2) the outgoing server in question must listen to that port and accept a form of authentication not based on the IP address you’re connecting from.
    Independent mail service providers not tied to a particular ISP, such as .Mac and Gmail, do allow authenticated SMTP access on port 587, which is the reason changing the outgoing server port number solves the problem for them if the ISP doesn’t block that port as well.
    The following article, for example, describes several ways to address this issue in the case of .Mac, but can be useful for other mail accounts as well (not just .Mac), and applies to all versions of Mac OS X (not just Mac OS X 10.4.2 and earlier as the article states):
    .Mac: Server timeout alert message when sending email

  • I have comcast as my email and my wife has uses the account with her own email address.  I have my address book and she has hers.  My problem is that my address book comes up on her ipad even when she's signed in to her account.

    I have Comcast as my IP.  My wife also uses my account with her own email address.  I have my address book and she has hers.  My problem is on her ipad, my address book comes up with her account.  Any ideas on how I can get her address book on her account?

    It sounds like you're both syncing with the same computer log-in so the sync mechanism thinks that you're one person.  You need to set up separate computer log-ins so that you have separate iTunes operation.

  • Changing from ".Mac" account in Mail to "IMAP"

    When I orginally set up my primary Mail account on my laptop it was ".Mac", rather than IMAP or POP. I'm finding I can't fully take advantage of the Alias features. Another posting here explains that if I delete the existing ".Mac" account and build a new one as IMAP, I'd then be able to create alias email addresses. In the present configuration I can "create them", but they don't appear as available in the pull down menu when I send mail. I'm a bit reluctant to delete my present .Mac account in Mail because I get a warning that all my mail will go away if I delete that account. To complicate matters, I sometimes work on my iMac at home, and that one's set up just the same as a ".Mac" account. Presumably I'd have to change that one too? Or is there some way I can make setting up the alias addresses work while keeping my primary account as a .Mac account? Obviously I'm not relating conceptually to what's going on here!
    Tom
    PowerBook G4   Mac OS X (10.4.8)   Also have iMac dual core

    I access my .Mac account as a .Mac type account with Tiger Mail and I use/access a single .Mac alias address at a time. I have no problems with the alias address being available as an address to choose from via the Accounts selection when composing a message.
    Do you access more than one alias address at a time?
    Does it make any difference when selecting Edit Email Aliases under the Email Address field available under the Account Information tab for the account preferences?
    Since a .Mac account is really an IMAP type account and behaves in the same way, when deleting the account in Mail, no messages available at the server in the account's Inbox or any other server stored messages will be affected when deleting the account and re-creating it as an IMAP type account.
    What you do lose when deleting an account in Mail are any locally stored mailboxes/messages for the account such as Drafts, Sent, Trash and Junk if these messages are not stored on the server.
    If you don't store Sent messages on the server, before deleting the account you need to do the following:
    Create/utilize an "On My Mac" location mailbox which is stored on the hard drive and not associated with any account. Transfer the account's Sent messages from the locally stored Sent mailbox for the account to the user created "On My Mac" location mailbox.
    Delete and re-create the account in Mail as an IMAP type account. All server stored messages in the account's Inbox mailbox will be available again in the account's Inbox mailbox and after sending a message with the newly created IMAP account which will create a new Sent mailbox for the account, you can transfer the old sent messages from the "On My Mac" location mailbox to the new Sent mailbox for the account so no messages will be lost.

  • Can't send emails using .mac accounts? Finally the solution!!! Nice & Easy!

    Found this after searching these discussions for over an hour, and it really works, but you MUST create a new account, don't edit your existing one. Very quick & easy!!! Here you go, courtesy of Guillermo Toro-Lira:
    OK guys, problem solved, at least for those with a dotMac account like me.
    You have to create a new MobileMe account in your iPhone using your new MobileMe email address ( [email protected] instead of [email protected] ).
    Select Add Account... on Settings->Mail, Contacts, Calendars. Then MobileMe, enter your name, MobileMe address, password and description and select Save. The system will validate your account first. Then go back to Accounts, select your dotMac account and select delete. Your new mails, contacts, calendars will be sync'd by your new MobileMe account.
    It looks like iPhone classic 2.0 requires your new MobileMe address ([email protected]) to send emails.

    I accessed my .Mac account with the iPhone's mail client with my first generation iPhone for over a year including for a while after the change to MM before I purchased my iPhone 3G.
    The first generation iPhone and the iPhone 3G are capable of running the same firmware so there is no difference between the two in this regard. To say the first generation iPhone requires creating and accessing the @Me account instead of the @Mac account is incorrect.
    If this is true with many, how come not a single person has chimed in with this thread saying the same thing?

  • Multiple accounts with Mail

    I am having serious trouble trying to set up several different accounts with Mail. I have arranged with my service provider to send all incoming mail from subsidiary addresses to one mailbox, but I want to be able to send from these different addresses. After setting up a first Mail account, for the address to which all incoming mail arrives, I tried to set up further accounts. These accounts all share incoming and outgoing mail servers with the primary account, but for some reason, Mail refuses to accept this, returning the error message “Trying to log in this POP account failed. Verify that the username and password are correct”, even though they are indeed correct.  The other error message returned is “An SSL error has occurred and a secure connection to the server cannot be made”.
    Further confusing the issue, if I try to edit the SMTP server list, any new server name I input is immediately branded “offline”, with no apparent option to bring it online. Finally, demands that I re-type passwords ignore the fact that I have just done so (correctly)...
    The impression I am getting is that either Mail cannot be connected to more than one POP server, and/or that two accounts cannot share the same incoming and outgoing mail servers. Is either of these correct? What is particularly confusing is that Microsoft Outlook had none of these problems with multiple accounts, and happily allowed different accounts to share servers. Is this a built-in limitation of Mail, and should I be looking elsewhere for a solution?

    Extensive search across this forum and elsewhere has sadly convinced me that Mac Mail is a badly designed, buggy and misconceived abortion. As a result, I have decided that life is too short to struggle with poor software, and have moved to using Postbox. The best $10 I ever spent in  my life...

  • Using .Mac alias in Mail

    I have created a .mac alias on the .mac website. I then created a .mac account using this alias in Mail. (In additon to my orginal .mac account) However, I am unable to send mail using it. It asks for a password. I'm assuming you use the orginial .mac account password. Any help with this would be greatly appreciated! Thank you, Sue

    You don't create a .Mac account alias as a separate account with Mail.
    All messages sent to a .Mac account alias are deposited in your .Mac account's Inbox mailbox. To send messages from a .Mac account alias, you select the alias email address from the Account selection located under the message header when composing a message.

  • TS3276 Is there a way to sync POP subfolders and download them for backup in Mail on my MBP? I tried syncing the account with Mail and only the Inbox downloads onto my computer.

    Is there a way to sync POP subfolders and download them for backup in Mail on my MBP? I tried syncing the account with Mail and only the Inbox downloads onto my computer. I have Googled enough to find out that the answer is no, but no official answer or recent answer and I am hopeful that there has been a change.

    Sure-glad to help you. You will not lose any data by changing synching to MacBook Pro from imac. You have set up Time Machine, right? that's how you'd do your backup, so I was told, and how I do my backup on my mac.  You should be able to set a password for it. Save it.  Your stuff should be saved there. So if you want to make your MacBook Pro your primary computer,  I suppose,  back up your stuff with Time machine, turn off Time machine on the iMac, turn it on on the new MacBook Pro, select the hard drive in your Time Capsule, enter your password, and do a backup from there. It might work, and it might take a while, but it should go. As for clogging the hard drive, I can't say. Depends how much stuff you have, and the hard drive's capacity.  As for moving syncing from your iMac to your macbook pro, should be the same. Your phone uses iTunes to sync and so that data should be in the cloud. You can move your iTunes Library to your new Macbook pro
    you should be able to sync your phone on your new MacBook Pro. Don't know if you can move the older backups yet-maybe try someone else, anyways,
    This handy article from Apple explains how
    How to move your iTunes library to a new computer - Apple Support''
    don't forget to de-authorize your iMac if you don't want to play purchased stuff there
    and re-authorize your new macBook Pro
    time machine is an application, and should be found in the Applications folder. it is built in to OS X, so there is nothing else to buy. double click on it, get it going, choose the Hard drive in your Time capsule/Airport as your backup Time Machine  and go for it.  You should see a circle with an arrow on the top right hand of your screen (the Desktop), next to the bluetooth icon, and just after the wifi and eject key (looks sorta like a clock face). This will do automatic backups  of your stuff.

  • When I try to sign in to iTunes, it tells me that my Apple ID has not yet been used with the iTunes Store. How do I use my account with the iTunes Store?

    When I try to sign in to iTunes, it tells me that my Apple ID has not yet been used with the iTunes Store. How do I use my account with the iTunes Store?

    Hello Daijalove97,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Using an existing Apple ID with the iTunes Store and Mac App Store
    http://support.apple.com/kb/HT2589
    To use your Apple ID at the iTunes Store
    Open the latest version of iTunes.
    Choose Store > Sign In from the Store menu.
    Enter your Apple ID and password, then click Sign In.
    Click Review when asked to review your information.
    Enter your billing information, a credit card will be required.
    Click Continue when you're done entering your credit card and billing information.
    Best of luck,
    Mario

  • Do we get a .mac account with the iphone?

    Do we get a .mac account with the iphone so we can get the folders in mail?

    I don't believe so. If you have a .Mac account you'd have to set it up manually through the iPhone. I believe it's IMAP?

  • How do you access more than one email account with Mail

    I have multiple email accounts, and have already set up my pop, and smtp servers. But I cannot figure out how to access/ login into the other account. I have had one account setup for a while now. I just setup another account, but can only access the original account. I've looked under 'preferences' I can see that the new account has been created, but how do I log in to it? Can someone please help?
    Thanx,
    Mike Dunn

    Hello Mike.
    You can access multiple accounts and account types with the Mail.app with one exception.
    You can access multiple accounts with Mail by the same provider (same account type and shares the same incoming mail server) and each account can have the same password as long as they are true accounts which means each email address or account has its own user name which is usually the portion of the email address in front of the @ sign only but with some providers it is the entire email address.
    An additional email address or account by the same provider that shares the same user name and password as the primary account is really an alias account and cannot be accessed as a separate account with Mail.
    An alias account or address to a primary account can be accessed with the primary account by adding the email address for the alias to the email address field separated by a comma under the Account Information tab for the primary account's preferences.
    All messages addressed to the alias email address will be received and delivered to the Inbox mailbox for the primary account.

  • Problem using SQL Loader with ODI

    Hi,
    I am having problems using SQL Loader with ODI. I am trying to fill an oracle table with data from a txt file. At first I had used "File to SQL" LKM, but due to the size of the source txt file (700MB), I decided to use "File to Oracle (SQLLDR)" LKM.
    The error that appears in myFile.txt.log is: "SQL*Loader-101: Invalid argument for username/password"
    I think that the problem could be in the definition of the data server (Physical architecutre in topology), because I have left blank Host, user and password.
    Is this the problem? What host and user should I use? With "File to SQL" works fine living this blank, but takes to much time.
    Thanks in advance

    I tried to use your code, but I couldn´t make it work (I don´t know Jython). I think the problem could be with the use of quotes
    Here is what I wrote:
    import os
    retVal = os.system(r'sqlldr control=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.ctl log=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.log userid=MYUSER/myPassword @ mySID')
    if retVal == 1 or retVal > 2:
    raise 'SQLLDR failed. Please check the for details '
    And the error message is:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 5, in ?
    SQLLDR failed. Please check the for details
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • Problem using CORBA clients with RMI/EJB servers..!!!???

    Hi,
    I have a question on using EJB / or RMI servers with CORBA clients using
    RMI-IIOP transport, which in theory should work, but in practice has few
    glitches.
    Basically, I have implemented a very simple server, StockTreader, which
    looks up for a symbol and returns a 'Stock' object. In the first example, I
    simplified the 'Stock' object to be a mere java.lang.String, so that lookup
    would simply return the 'synbol'.
    Then I have implemented the above, as an RMI-IIOP server (case 1) and a
    CORBA server (case 2) with respective clients, and the pair of
    client-servers work fine as long as they are CORBA-to-CORBA and RMI-to-RMI.
    But the problem arises when I tried using the RMI server (via IIOP) with the
    CORBA client, when the client tries to narrow the object ref obtained from
    the naming service into the CORBA idl defined type (StockTrader) it ends up
    with a class cast exception.
    This is what I did to achieve the above results:
    [1] Define an RMI interface StockTrader.java (extending java.rmi.Remote)
    with the method,
    public String lookup( String symbol) throws RMIException;
    [2] Implement the StorckTrader interface (on a PortableRemoteObject derived
    class, to make it IIOP compliant), and then the server to register the stock
    trader with COS Naming service as follows:
    String homeName =....
    StockTraderImpl trader =new StockTraderImpl();
    System.out.println("binding obj <" homeName ">...");
    java.util.Hashtable ht =new java.util.Hashtable();
    ht.put("java.naming.factory.initial", args[2]);
    ht.put("java.naming.provider.url", args[3]);
    Context ctx =new InitialContext(ht);
    ctx.rebind(homeName, trader);
    [3] Generate the RMI-IIOP skeletons for the Implementation class,
    rmic -iiop stock.StockTraderImpl
    [4] generate the IDL for the RMI interface,
    rmic -idl stock.StockTraderImpl
    [5] Generate IDL stubs for the CORBA client,
    idlj -v -fclient -emitAll StockTraderImpl.idl
    [6] Write the client to use the IDL-defined stock trader,
    String serverName =args[0];
    String symList =args[1];
    StockClient client =new StockClient();
    System.out.println("init orb...");
    ORB orb =ORB.init(args, null);
    System.out.println("resolve init name service...");
    org.omg.CORBA.Object objRef
    =orb.resolve_initial_references("NameService");
    NamingContext naming =NamingContextHelper.narrow(objRef);
    ... define a naming component etc...
    org.omg.CORBA.Object obj =naming.resolve(...);
    System.out.println("narrow objRef: " obj.getClass() ": " +obj);
    StockTrader trader =StockTraderHelper.narrow(obj);
    [7] Compile all the classes using Java 1.2.2
    [8] start tnameserv (naming service), then the server to register the RMI
    server obj
    [9] Run the CORBA client, passing it the COSNaming service ref name (with
    which the server obj is registered)
    The CORBA client successfully finds the server obj ref in the naming
    service, the operation StockTraderHelper.narrow() fails in the segment
    below, with a class cast exception:
    org.omg.CORBA.Object obj =naming.resolve(...);
    StockTrader trader =StockTraderHelper.narrow(obj);
    The <obj> returned by naming service turns out to be of the type;
    class com.sun.rmi.iiop.CDRInputStream$1
    This is of the same type when stock trader object is registered in a CORBA
    server (as opposed to an RMI server), but works correctly with no casting
    excpetions..
    Any ideas / hints very welcome.
    thanks in advance,
    -hari

    On the contrary... all that is being said is that we needed to provide clearer examples/documentation in the 5.1.0 release. There will be no difference between the product as found in the service pack and the product found in the 5.1.1. That is, the only substantive will be that 5.1.1 will also
    include the examples.
    "<=one way=>" wrote:
    With reference to your and other messages, it appears that one should not
    expect that WLS RMI-IIOP will work in a complex real-life system, at least
    not now. In other words, support for real-life CORBA clients is not an
    option in the current release of WLS.
    TIA
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]...
    We currently publish an IDL example, even though the IDL programmingmodel in Java is completely non-functional, in anticipation of the support
    needs for uses who need to use IDL to talk to the Weblogic server,
    generically. This example illustrates the simplest connectivity; it does not
    address how
    to integrate CORBA and EJB, a broad topic, fraught with peril, imo. I'llnote in passing that, to my knowledge, none of the other vendors attempt
    this topic either, a point which is telling if all the less happy to hear.
    For the record then, what is missing from our distribution wrt RMI-IIOPare a RMI-IIOP example, an EJB-IIOP example, an EJB-C++. In this you are
    correct; better examples are forth coming.
    Still, I would not call our RMI-IIOP implementation fragile. I would saythat customers have an understandably hard time accepting that the IDL
    programming model is busted; busted in the sense that there are no C++
    libraries to support the EJB model, and busted in the sense that there is
    simply no
    support in Java for an IDL interface to an EJB. Weblogic has nothing to doit being busted, although we are trying to help our customers deal with it
    in productive ways.
    For the moment, what there is is a RMI (over IIOP) programming model, aninherently Java to Java programming model, and true to that, we accept and
    dispatch IIOP request into RMI server objects. The way I look at it is this:
    it's just a protocol, like HTTP, or JRMP; it's not IDL and it has
    practically nothing to do with CORBA.
    ST wrote:
    Eduardo,
    Can you give us more details about the comment below:
    I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult ot
    use an idl client in java to work.It seems to me that Weblogic's RMI-IIOP is a very fragile
    implementation. We
    don't need a "HelloWorld" example, we need a concrete serious example(fully
    tested and seriously documented) that works so that we can get a betteridea
    on how to integrate CORBA and EJB.
    Thanks,
    Said
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]...
    Please post request to the news group...
    As I said, you must separate the idl related classes (class files and
    java
    files) from the rmi classes... in the rmic step, you must set a newtarget
    (as you did), emit the java files into that directory (it's not clearyou
    did this), then remove all the rmi class files from the class path... ifyou
    need to compile more classes at that point, copy the java files to theidl
    directly is you must, but you can not share the types in any way.
    I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult otuse
    an idl client in java to work.
    Harindra Rajapakshe wrote:
    Hi Eduardo,
    Thanks for the help. That is the way I compiled my CORBA client, by
    separating the IDL-generated stubs from the RMI ones, but still I
    get a
    CORBA.BAD_PARAM upon narrowing the client proxy to the interfacetype.
    Here's what I did;
    + Define the RMI interfaces, in this case a StockTrader interface.
    + Implement RMI interface by extendingjavax.rmi.PortableRemoteObject
    making
    it IIOP compliant
    + Implemnnt an RMI server, and compile using JDK1.2.2
    + use the RMI implementation to generate CORBA idl, using RMI-IIOPplugin
    utility rmic;
    rmic -idl -noValueMethods -always -d idl stock.StockTraderImpl
    + generate Java mappings to the IDL generated above, using RMI-IIOPplugin
    util,
    idlj -v -fclient -emitAll -tf src stocks\StockTrader.idl
    This creates source for the package stock and also
    org.omg.CORBA.*
    package, presumably IIOP type marshalling
    + compile all classes generated above using JDK1.2.2
    + Implement client (CORBA) using the classes generated above, NOTthe
    RMI
    proxies.
    + start RMI server, with stockTrader server obj
    + start tnameserv
    + start CORBA client
    Then the client errors when trying to narrow the obj ref from the
    naming
    service, into the CORBA IDL defined interface using,
    org.omg.CORBA.Object obj =naming.resolve(nn);
    StockTrader trader =StockTraderHelper.narrow(obj); // THIS
    ERRORS..!!!
    throwing a CORBA.BAD_PARAM exception.
    any ideas..?
    Thanks in advance,
    -hari
    ----- Original Message -----
    From: Eduardo Ceballos <[email protected]>
    Newsgroups: weblogic.developer.interest.rmi-iiop
    To: Hari Rajapakshe <[email protected]>
    Sent: Wednesday, July 26, 2000 4:38 AM
    Subject: Re: problem using CORBA clients with RMI/EJBservers..!!!???
    Please see the post on june 26, re Errors compiling... somewherein
    there,
    I suspect, you are referring to the rmi class file when you are
    obliged
    to
    completely segregate these from the idl class files.
    Hari Rajapakshe wrote:
    Hi,
    I have a question on using EJB / or RMI servers with CORBA
    clients
    using
    RMI-IIOP transport, which in theory should work, but in practice
    has
    few
    glitches.
    Basically, I have implemented a very simple server,
    StockTreader,
    which
    looks up for a symbol and returns a 'Stock' object. In the firstexample, I
    simplified the 'Stock' object to be a mere java.lang.String, so
    that
    lookup
    would simply return the 'synbol'.
    Then I have implemented the above, as an RMI-IIOP server (case
    1)
    and a
    CORBA server (case 2) with respective clients, and the pair of
    client-servers work fine as long as they are CORBA-to-CORBA andRMI-to-RMI.
    But the problem arises when I tried using the RMI server (via
    IIOP)
    with
    the
    CORBA client, when the client tries to narrow the object ref
    obtained
    from
    the naming service into the CORBA idl defined type (StockTrader)
    it
    ends
    up
    with a class cast exception.
    This is what I did to achieve the above results:
    [1] Define an RMI interface StockTrader.java (extending
    java.rmi.Remote)
    with the method,
    public String lookup( String symbol) throws RMIException;
    [2] Implement the StorckTrader interface (on a
    PortableRemoteObject
    derived
    class, to make it IIOP compliant), and then the server to
    register
    the
    stock
    trader with COS Naming service as follows:
    String homeName =....
    StockTraderImpl trader =new StockTraderImpl();
    System.out.println("binding obj <" homeName ">...");
    java.util.Hashtable ht =new java.util.Hashtable();
    ht.put("java.naming.factory.initial", args[2]);
    ht.put("java.naming.provider.url", args[3]);
    Context ctx =new InitialContext(ht);
    ctx.rebind(homeName, trader);
    [3] Generate the RMI-IIOP skeletons for the Implementation
    class,
    rmic -iiop stock.StockTraderImpl
    [4] generate the IDL for the RMI interface,
    rmic -idl stock.StockTraderImpl
    [5] Generate IDL stubs for the CORBA client,
    idlj -v -fclient -emitAll StockTraderImpl.idl
    [6] Write the client to use the IDL-defined stock trader,
    String serverName =args[0];
    String symList =args[1];
    StockClient client =new StockClient();
    System.out.println("init orb...");
    ORB orb =ORB.init(args, null);
    System.out.println("resolve init name service...");
    org.omg.CORBA.Object objRef
    =orb.resolve_initial_references("NameService");
    NamingContext naming=NamingContextHelper.narrow(objRef);
    ... define a naming component etc...
    org.omg.CORBA.Object obj =naming.resolve(...);
    System.out.println("narrow objRef: " obj.getClass() ":"
    +obj);
    StockTrader trader =StockTraderHelper.narrow(obj);
    [7] Compile all the classes using Java 1.2.2
    [8] start tnameserv (naming service), then the server to
    register
    the
    RMI
    server obj
    [9] Run the CORBA client, passing it the COSNaming service ref
    name
    (with
    which the server obj is registered)
    The CORBA client successfully finds the server obj ref in the
    naming
    service, the operation StockTraderHelper.narrow() fails in thesegment
    below, with a class cast exception:
    org.omg.CORBA.Object obj =naming.resolve(...);
    StockTrader trader =StockTraderHelper.narrow(obj);
    The <obj> returned by naming service turns out to be of the
    type;
    class com.sun.rmi.iiop.CDRInputStream$1
    This is of the same type when stock trader object is registeredin a
    CORBA
    server (as opposed to an RMI server), but works correctly with
    no
    casting
    excpetions..
    Any ideas / hints very welcome.
    thanks in advance,
    -hari

Maybe you are looking for