Unexpected ClassCastException when looking up Home using JNDI

J2EE Gurus,
In the attached sample program, a EJB (named MyScheduler in package mytest) is
used to install a java code dynamically in weblogic service (8.1sp1), as well
as to invoke a test java code (MyTest.run()) in it using Java reflection. Another
EJB (named MyEJB in package myejb) is deployed dynamically using Weblogic console
with its client side packaged with dynamically deployed java code. When invoked
through MyScheduler, MyTest.run() simply looks up the home of MyEJB using JNDI,
and when it is cast to MyEJBHome, a ClassCastException is thrown.
Can someone explain why this exception occurs? Does this mean that a (dynamically)
deployed code (java or EJB) cannot call other (dynamically) deployed EJBs, even
when it has the client side of EJB packaged with it?
Any help will be deeply appreciated.
Thanks,
Abhay
[testjava.jar]

"Nick" <[email protected]> wrote in message news:40343200$[email protected]..
Because returned instance implements javax.sql.DataSource.Ha ha.
No kidding :-)No. One could have found it himself by printing out returned type class
or just by going to google and typing XADataSource weblogic +ClassCastException...
Why would you want to do it? weblogic takes care of all the XA
connection pooling, resource enlistments etc.Yeah, true.
I should know this - I just got a little confused ... :-)
I have just come from doing all the XA stuff myself... and got used to having
XADataSources around...Thanks to J2EE, there is no need for low level plumbing when transaction
support is needed.
Also, with JMS resources, you DO have to have the XAQueueConnection etc etc for
XA - even in an appserver.Per my knowledge weblogic allows you creating XA-aware JMS resources.
Regards,
Slava Imeshev
>
Thanks.
"Slava Imeshev" <[email protected]> wrote:
"Nick" <[email protected]> wrote in message news:403121e2$[email protected]..
I am getting a ClassCast exception when I lookup a "Global Transaction"enabled
JDBC DataSource.
XADataSource xads = (XADataSource) ctx.lookup("jdbc/MyDS");
Why is this?Because returned instance implements javax.sql.DataSource.
How do I configure an XADataSource in JNDI?Why would you want to do it? weblogic takes care of all the XA connection
pooling, resource enlistments etc.
Regards,
Slava Imeshev

Similar Messages

  • ClassCastException while looking up Home

    I have created a CMP Customer Bean, whose persistence fields are ID(PK), name, password and address inside the package navin.ejb.ecommerce.
    The bean has been deployed successfully.
    Now I have made an Login servlet also in the same package which allows login to customers whose name and password match with those in the database.
    But in the init() method when I lookup the bean, it gives the ClassCastException. The lookup should return a class of type navin.ejb.ecommerce.CustomerHome but it gives error as:
    java.lang.ClassCastException: navin.ejb.ecommerce.CustomerBeanHomeImpl_ServiceStub
    Can anyone tell me the possible solution. I am using Weblogic.

    Hello Navin,
    Try this out
    Object obj = ctx.lookup(<bean_jndi_name>);
    CustomerHome home = (CustomerHome) PortableRemoteObject.narrow(obj, CustomerHome.class)
    Also checkout the JNDI tree of the server, so that you are sure that teh name you are looking for in the lookup method is bound to the bean you want.
    Hope this helps.
    regards,
    Abhishek.

  • Problem looking up datasorce using JNDI

    Hi, I'm trying to access the oracle 8i database using datasource JNDI.My problem is connection was successful.but fetching operation failed..not able to get the values from the database.
    Pls find below the method used in bean and error returned.
    public Connection getConnection()
                        InitialContext ctx = null;
                        String dsname = "jdbc/gpadb";
                        try
                        Hashtable parms = new Hashtable();
              parms.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
                        ctx = new InitialContext(parms);
                        datasource = (DataSource)ctx.lookup(dsname);
                        objConnection = datasource.getConnection();
                        com.netscape.server.jdbc.DataSourceImpl dsi = (com.netscape.server.jdbc.DataSourceImpl)datasource;
              if(objConnection != null)
              System.out.println("*********Connection Successful*********"+objConnection);
                   System.out.println("dsi.getUserName(): >" + dsi.getUserName() + "<");
                   System.out.println("dsi.getPassWord(): >" + dsi.getPassWord() + "<");
                   System.out.println("dsi.getDataBase(): >" + dsi.getDataBase() + "<");
                   System.out.println("dsi.getDataSource(): >" + dsi.getDataSource() + "<");
                   System.out.println("dsi.getDriverType(): >" + dsi.getDriverType() + "<");
                   return objConnection;
                   else
              System.out.println("*********Connection not Successful*********");
                   return objConnection;
         catch(SQLException e) {
         e.printStackTrace(System.out);
         }catch(Exception e){
         e.printStackTrace(System.out);
    return objConnection;
    public java.util.Vector getAllCountries(int intLanguageid) {
              Vector                objVcountry=new Vector();
              Connection               objConn =null;
              CallableStatement     objCstmt =null;
              ResultSet                objRs =null;
              try
              objConn = getConnection();
              if (objConn != null)
                        String query = "begin ? := Pkg_common.Fn_GetCountries(?,?,?,?); end;";
                        objCstmt = objConn.prepareCall(query);
                        objCstmt.registerOutParameter(1,OracleTypes.CURSOR);          //To register result set as out parameter
                        objCstmt.registerOutParameter(2,Types.INTEGER);                    //To register Error No as out parameter
                        objCstmt.registerOutParameter(3,Types.VARCHAR);                    //To register Error desc as out parameter
                        objCstmt.registerOutParameter(4,Types.INTEGER);                    //To register Record count as out parameter
                        objCstmt.setInt(5,intLanguageid);                                   //To pass the Language id as i/p parameter
                                                                                                   // 1 - English , 2 - Arabic
                        objCstmt.execute();
                   int intErrnum = objCstmt.getInt(2);                              //Fetch the Error no returned by the DB
                   int intRowcount = objCstmt.getInt(4);                              //To know the no.of records returned by Db
                   if (objVcountry != null)
                        objVcountry.removeAllElements();
                        objVcountry.addElement(objCstmt.getInt(2)+" ");                    //To return the error no
                   objVcountry.addElement(objCstmt.getString(3));                    //To return error description
                   if ((intErrnum == 0) && (intRowcount >0))
                        objRs = (ResultSet) objCstmt.getObject(1);
                             while (objRs.next())
                                  objVcountry.addElement(objRs.getString("COUNTRY_ID"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_NAME"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_CHAR"));
                        } else {
                        System.out.println("Failed to fetch the Countries :" + objCstmt.getString(3));
                        return objVcountry;
              } else {
                        System.out.println("Failed to get database connection in the Online Track & Trace service");
                                  objVcountry.addElement("-9999");
                        objVcountry.addElement(" Database connection Failed ");
                        return objVcountry;
              } catch (SQLException e){
                        System.out.println("Failed to fetch the Countries " );
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } catch (Exception e){
                        System.out.println("Failed to fetch the status of Ministry Of Labour cards.");
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } finally{
                        try{
                                  if(objRs!=null)      objRs.close();
                                  if(objCstmt!=null)     objCstmt.close();
                                  if(objConn!=null)     objConn.close();
                             } catch(Exception e){
                                  System.out.println("Got Exception while releasing the objects in getAllCountries() method");
                                  e.printStackTrace();
              return objVcountry;
    This was the error thrown when i run my application
    Going *********
    Executing getHomeObject()method in Wrapper class
    Retrieving JNDI initial context
    Looking up Online track trace bean home interface
    Looking up: java:comp/env/ejb/onlinetracktrace
    *********Connection Successful*********com.netscape.server.jdbc.Connection@7b4703
    dsi.getUserName(): >mack<
    dsi.getPassWord(): >mack<
    dsi.getDataBase(): >gpa.world<
    dsi.getDataSource(): >gpa<
    dsi.getDriverType(): >ORACLE_OCI<
    Failed to fetch the Countries
    Error Occured in the OnlinetracktraceBean method getAllCountries()
    Going *********
    Going *********
    Null text data??
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    [03/Jan/2002 17:11:36:4] info: jsp.APPS.gpatracktrace.TTMOIncoming: init
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    Going *********
    [03/Jan/2002 17:12:32:4] error: EB-serialize_ex: instance gpa.onlinetracktrace.SBSLOnlinetracktraceBean@3f5555 threw an exception
    during serialization, ex = java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    [03/Jan/2002 17:12:32:4] error: Exception Stack Trace:
    java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at com.kivasoft.eb.EBObjectBase.serializeImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.releaseStatefulImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.isTimeout(Unknown Source)

    Hi, I'm trying to access the oracle 8i database using datasource JNDI.My problem is connection was successful.but fetching operation failed..not able to get the values from the database.
    Pls find below the method used in bean and error returned.
    public Connection getConnection()
                        InitialContext ctx = null;
                        String dsname = "jdbc/gpadb";
                        try
                        Hashtable parms = new Hashtable();
              parms.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
                        ctx = new InitialContext(parms);
                        datasource = (DataSource)ctx.lookup(dsname);
                        objConnection = datasource.getConnection();
                        com.netscape.server.jdbc.DataSourceImpl dsi = (com.netscape.server.jdbc.DataSourceImpl)datasource;
              if(objConnection != null)
              System.out.println("*********Connection Successful*********"+objConnection);
                   System.out.println("dsi.getUserName(): >" + dsi.getUserName() + "<");
                   System.out.println("dsi.getPassWord(): >" + dsi.getPassWord() + "<");
                   System.out.println("dsi.getDataBase(): >" + dsi.getDataBase() + "<");
                   System.out.println("dsi.getDataSource(): >" + dsi.getDataSource() + "<");
                   System.out.println("dsi.getDriverType(): >" + dsi.getDriverType() + "<");
                   return objConnection;
                   else
              System.out.println("*********Connection not Successful*********");
                   return objConnection;
         catch(SQLException e) {
         e.printStackTrace(System.out);
         }catch(Exception e){
         e.printStackTrace(System.out);
    return objConnection;
    public java.util.Vector getAllCountries(int intLanguageid) {
              Vector                objVcountry=new Vector();
              Connection               objConn =null;
              CallableStatement     objCstmt =null;
              ResultSet                objRs =null;
              try
              objConn = getConnection();
              if (objConn != null)
                        String query = "begin ? := Pkg_common.Fn_GetCountries(?,?,?,?); end;";
                        objCstmt = objConn.prepareCall(query);
                        objCstmt.registerOutParameter(1,OracleTypes.CURSOR);          //To register result set as out parameter
                        objCstmt.registerOutParameter(2,Types.INTEGER);                    //To register Error No as out parameter
                        objCstmt.registerOutParameter(3,Types.VARCHAR);                    //To register Error desc as out parameter
                        objCstmt.registerOutParameter(4,Types.INTEGER);                    //To register Record count as out parameter
                        objCstmt.setInt(5,intLanguageid);                                   //To pass the Language id as i/p parameter
                                                                                                   // 1 - English , 2 - Arabic
                        objCstmt.execute();
                   int intErrnum = objCstmt.getInt(2);                              //Fetch the Error no returned by the DB
                   int intRowcount = objCstmt.getInt(4);                              //To know the no.of records returned by Db
                   if (objVcountry != null)
                        objVcountry.removeAllElements();
                        objVcountry.addElement(objCstmt.getInt(2)+" ");                    //To return the error no
                   objVcountry.addElement(objCstmt.getString(3));                    //To return error description
                   if ((intErrnum == 0) && (intRowcount >0))
                        objRs = (ResultSet) objCstmt.getObject(1);
                             while (objRs.next())
                                  objVcountry.addElement(objRs.getString("COUNTRY_ID"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_NAME"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_CHAR"));
                        } else {
                        System.out.println("Failed to fetch the Countries :" + objCstmt.getString(3));
                        return objVcountry;
              } else {
                        System.out.println("Failed to get database connection in the Online Track & Trace service");
                                  objVcountry.addElement("-9999");
                        objVcountry.addElement(" Database connection Failed ");
                        return objVcountry;
              } catch (SQLException e){
                        System.out.println("Failed to fetch the Countries " );
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } catch (Exception e){
                        System.out.println("Failed to fetch the status of Ministry Of Labour cards.");
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } finally{
                        try{
                                  if(objRs!=null)      objRs.close();
                                  if(objCstmt!=null)     objCstmt.close();
                                  if(objConn!=null)     objConn.close();
                             } catch(Exception e){
                                  System.out.println("Got Exception while releasing the objects in getAllCountries() method");
                                  e.printStackTrace();
              return objVcountry;
    This was the error thrown when i run my application
    Going *********
    Executing getHomeObject()method in Wrapper class
    Retrieving JNDI initial context
    Looking up Online track trace bean home interface
    Looking up: java:comp/env/ejb/onlinetracktrace
    *********Connection Successful*********com.netscape.server.jdbc.Connection@7b4703
    dsi.getUserName(): >mack<
    dsi.getPassWord(): >mack<
    dsi.getDataBase(): >gpa.world<
    dsi.getDataSource(): >gpa<
    dsi.getDriverType(): >ORACLE_OCI<
    Failed to fetch the Countries
    Error Occured in the OnlinetracktraceBean method getAllCountries()
    Going *********
    Going *********
    Null text data??
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    [03/Jan/2002 17:11:36:4] info: jsp.APPS.gpatracktrace.TTMOIncoming: init
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    Going *********
    [03/Jan/2002 17:12:32:4] error: EB-serialize_ex: instance gpa.onlinetracktrace.SBSLOnlinetracktraceBean@3f5555 threw an exception
    during serialization, ex = java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    [03/Jan/2002 17:12:32:4] error: Exception Stack Trace:
    java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at com.kivasoft.eb.EBObjectBase.serializeImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.releaseStatefulImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.isTimeout(Unknown Source)

  • Unexpected result when parsing a datetime using sap.ui.core.format.DateFormat

    I am parsing datetime values in order to use them in an makit Chart.
    My x axis is a time axis with values in the JavaScript datetime format like 1408177125000.
    I wondered about a time shift in my axis and see the following result:
    console.log(Date(fValue) ): Thu Aug 28 2014 18:01:44 GMT+0200 (Mitteleuropäische Sommerzeit)
    console.log(oDateFormat.format(new Date(fValue))): 16.08.2014 11:23:33
    The date in line 01 is correct, the second one (16.8.) is not correct.
    I tried to simulate this behaviour in jsbin but there line 02 only states an error!?
    http://jsbin.com/sodetoyoqaba/1/edit?html,js,console
    I have no clue what is going wrong here. Any ideas?
    P.S. My app is running in SAP HCP Trial with sap.ui.version 1.22.6 while on jsbin it is version 1.22.7
    P.P.S When hitting the code manually in the jsbin console then I also get the wrong date 16.08.2014 there. So you can see the behaviour also there.

    That pretty much makes sense (although ignoring things is not very kind) 
    Good thing: Question is answered.
    Bad thing: The converted date is not what I expected from my datasource :-( At least I know where to search further now .
    Thanks,
    Mark

  • CORBA error when looking up Home on WLS7sp2

    Hi,
    I've just upgraded to WLS7 sp2.
    I get the following error when trying to access a session bean from a remote client
    <exceptionStackTrace>
    java.lang.ExceptionInInitializerError:
    org.omg.CORBA.INITIALIZE: cannot instantiate
    com.sun.corba.se.internal.javax.rmi.CORBA.Util
    minor code: 0 completed: No
    at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:303)
    at javax.rmi.CORBA.Util.<clinit>(Util.java:48)
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:177)
    at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:56)
    etc... (my app's classes here)
    </exceptionStackTrace>
    I use the default EJBC options when deploying my JAR.
    Is this familiar to anyone?
    Olivier

    Found the bug.
    My java client was called thru the <java> task in ANT.
    Apparently this was causing a conflict.
    I turned the "fork" property to "true" and now everything works
    fine.
    "Olivier" <[email protected]> wrote:
    >
    Hi,
    I've just upgraded to WLS7 sp2.
    I get the following error when trying to access a session bean from a
    remote client
    <exceptionStackTrace>
    java.lang.ExceptionInInitializerError:
    org.omg.CORBA.INITIALIZE: cannot instantiate
    com.sun.corba.se.internal.javax.rmi.CORBA.Util
    minor code: 0 completed: No
    at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:303)
    at javax.rmi.CORBA.Util.<clinit>(Util.java:48)
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:177)
    at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:56)
    etc... (my app's classes here)
    </exceptionStackTrace>
    I use the default EJBC options when deploying my JAR.
    Is this familiar to anyone?
    Olivier

  • NameNotFoundException when looking up datasource jndi from standalone clien

    Hi,
    I'm trying to lookup datasource jndi from standalone client, but always get exceptions.
    I configured an oralce datasource with jndi name "oracleDataSource". When looking it up in servlet, I can get connection.
    In order to test it from standalone client, I created following code:
    public class DataSourceTest
    * Attempt to authenticate the user.
    public static void main(String[] args)
    String datasource = null;
    if (args.length == 1 ) {
    datasource = args[0];
    System.out.println("datasource = "+datasource);
    if(datasource == null)
    datasource = "oracleDataSource";
    try{
    Connection conn = null;
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:3700");
    Context initial = new InitialContext(env);
    if(datasource != null){
    DataSource ds = (DataSource)initial.lookup(datasource);
    conn = ds.getConnection();
    if(conn != null){
    System.out.println("datasource is gotten.");
    conn.close();
    else
    System.out.println("datasource is error.");
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    When running, I get following exception:
    [java] datasource = oracleDataSource
    [java] Caught an unexpected exception!
    [java] javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
    [java] at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
    [java] at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    [java] at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    I also tried many other methods but always got exceptions. What's wrong with it? How can I lookup the datasource jndi from standalone client?
    Thanks in advance!

    Thank Tuan!
    I tried. When running, the server will read security.properties and ejb.properties. But I didn't use ejb and I didn't know how to configure ejb.properties, so I let ejb.properties empty. The security.properties is as following:
    client.sendpassword=true
    server.trustedhosts=*
    interop.ssl.required=false
    interop.authRequired.enabled=false
    interop.nameservice.ssl.required=false
    The result is:
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    Also, I tried it with ACC. In sun sample ConverterClient.java under rmi-iiop/simple, I added following code under with ACC and without ACC. With ACC, I can get connection. But without ACC, I can't get it.
    try{
              DataSource ds = (DataSource)initial.lookup("oracleDataSource");
              Connection conn = ds.getConnection();
              if(conn != null){
              System.out.println("datasource oracleDataSource gotten.");
              conn.close();
              else
              System.out.println("oracleDataSource is error.");
    Does it means that we must lookup datasource jndi with ACC?

  • How to use Mail to sent messages when away from home

    How do I have to configure my "Mail" on my PowerBook G-4 (OS 10.4.5) in order to use it in a WIFI enviroment?
    At home when connected via Airport to my own Outgoing Mail Server (smtp 8. sympatico.ca) I have absolutely no problems. However, last year I was on a Cruise Ship and tried to use the existing WiFi System. I could receive messages using Mail, but I could not send messages using Mail.
    At the moment I'm visiting my son in the Boston area and I'm having the same problem. I was forced to use the Sympatico Web Mail in order to sent E-mail messages. (receiving mail using "Mail", represents no problem)
    There has to be a way to configure Mail to originate messages and sent them as well, but I cannot find anything which tells me how to do that.
    The version presently installed for Mail is 2.0.7.
    Any help in this regard would be greatly appreciated!
    Best Regards,
    Hank
    iMac 20 G-5, 768 of RAM; 12 PowerBook G-4   Mac OS X (10.4.5)  

    Hank,
    The problem here is your ISP (looks like its Sympatico) blocking connections to their mail server from computers not connected directly to their network. I wouldn't blame your ISP though b/c as I understand it almost ALL ISPs block these type of connections to cut down on SPAM being sent.
    What you need to do is to find the outgoing mail server for the network you are on.
    For example, if you look on the "Mail" settings on your Son's computer and note his "Outing Mail Server" (in the "Accounts" pain of "Mail" prefs) settings and then go to your machine and put in that same "Outgoing Mail Server" info then you should be fine.
    You can do this on your machine by selecting "Add Server..." from the "Outgoing Mail Server" drop down menu. When the window comes up just type in the same settings your Son uses. If he does not have a machine with mail setup on it then you can call his ISP and they'll tell you.
    Remember to switch the "outgoing mail server" back to your home server when you return home. By the way, most places (like hotels) will give you their outgoing mail server info if you ask them, so next time you're on a cruise with wifi you might try asking the IT people.
    Best of luck,
    Allen

  • When I send emails using my iPad, recipients are telling me that I am sending them blank emails.  I've had some of them forward the emails back to me so I can take a look and it seems that my message is actually there but the text is white...

    When I send emails using my iPad, some recipients are telling me that I am sending them blank emails.  I've had some of them forward the emails back to me so I can take a look and it seems that my message is actually there but the text is white.  Interestingly enough, I was a Windows user just a few months ago and I was on the receiving end of this same problem with someone who was sending emails from her iPhone.  I don't believe it is happening every time but if it happens even once it's a problem.  Any idea what's going on? 

    Oddly enough, having reported the problem it appears to have fixed itself. There may be some combination swipe gesture that triggers it is all I can think because I suddenly manged to zoom my display x3 by double tapping three fingers. Took me a while to sort this out but then when I got back home I could suddenly see all my emails again. Bizarre!

  • ClassCastException - While type casting Home object after EJB JNDI Lookup

    Sun One Application Server throws a ClassCastException when I try to type cast Home object to it's respective interface type.
    Here is the code ---
    ==============================================
    Object obj = PortableRemoteObject.narrow( context.lookup( jndiName ), homeClass);
    System.out.println("Remote Object - obj : "+obj);
    if (obj != null) {
       System.out.println("obj.getClass().getName() : "+obj.getClass().getName());
       System.out.println("obj.getClass().getSuperclass() : "+obj.getClass().getSuperclass());
       Class[] interfaces = obj.getClass().getInterfaces();
       if (interfaces != null) {
          for (int count = 0; count < interfaces.length; count++) {
             System.out.println("interfaces[ " + count + " ].getName() : " + interfaces[ count ].getName());
    }==============================================
    The class name is dislpayed as the Stub class name.
    While displaying the interfaces, the Home Interface name is displayed.
    But later when I try to type cast it into Home Interface type, it throws a ClassCastException.
    Can somebody please check this?

    Please post the stack trace. Also, take a look at our EJB FAQ to make sure you're doing the
    recommended lookup :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

  • HT1199 Two new programmes loaded from different companies fail when I try to use them -quit unexpectedly messages

    Two new programmes from differant companies have loaded ok but when I try to use them I get an imediate error message -quit unexpectedly- and the programme closes. What is wrong? 

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post other kinds of diagnostic report — they're very long and not helpful.

  • When i try to use my ipod it looks like the brightness was turned wayyyyy down. Like more than normal. I cant see anything. How do i fix it?

    When i try to use my ipod it looks like the brightness was turned wayyyyy down. Like more than normal. I cant see anything. How do i fix it?

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar

  • Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    ... when i click go - connect to server, it comes up with connection failed.
    If you're trying to connect to a Bonjour server on the remote network, that won't work over a layer 3 VPN. Use something like Hamachi or one of the SSH-tunnelling Bonjour proxy apps for that.

  • Using Outlook 2007 I want to receive emails on my iPhone 4 only when Outlook is NOT open on my computer, as when away from home or want to quickly check email when computer is not turned on. Either ALL emails come to my iPhone or none at all.

    Using Outlook 2007 I want to receive emails on my iPhone 4 only when Outlook is NOT open on my computer, as when away from home or want to quickly check email when computer is not turned on. Either ALL emails come to my iPhone or none at all. Is the setting I need to change in Outlook or on the iPhone or is it somewhere else?  I used to have this setting but transferring Outlook to a new laptop somehow turned it off.

    No. You really can't do that. Not easily at any rate. You would have to set them both up to use POP3, but even then there is no way to guarantee that the phone won't poll the server prior to your computer doing so, pulling down the message from the server.

  • My safari keeps closing unexpectedly and when it does it tells me that it quite while using the .GameHouseBeachParty.so plugin. I have no idea what this means! Can someone please help me fix this?

    My safari keeps closing unexpectedly and when it does it tells me that it quite while using the .GameHouseBeachParty.so plugin. I have no idea what this means! Can someone please help me fix this?

    You have the Flashback trojan.
    Check out the replies in this thread for what to do;
    https://discussions.apple.com/message/18114958#18114958

  • I charged my nano on my work PC, when i went to use it at home it is now unresponsive and I get a message that the device cannot be recognized by windows?

    I charged my nano on my work PC, when i went to use it at home it is now unresponsive and I get a message that the device cannot be recognized by windows? How do I restore it

    Try placing the iPod in recovery mode (I think that is what you were try to do) and then try to restore the iPod.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

Maybe you are looking for

  • New page from template

    When I try to create a new page via File>New>Page from Template, I get the error message saying it is nested inside itself. How do I get around this? Thanks, George Here's the code from the template: << <?php session_cache_limiter('none'); session_st

  • Transaction Handling (URGENT)

    I m facing this problem. I have a bean which is CMT it's method(Ba) is being called from the client for which the Tx attrib is Required. which is calling same bean's method(Bb) which is running in RequiresNew Tx. The method (Bb) calls another session

  • Result text is displaying in German as "Ergebnis"

    Hi All, In my BW reports, the "result" text is displaying as "Ergebnis". (German Language of result). Is there any settings need to maintain in the query designer. Thanks.

  • I have no purchased button in my app store !!,

    please help me !!

  • Beats/IDT Audio not working on Pavilion dv6 running Windows 7

    A few months ago my speakers would stop responding midway through audion or video. I assumed a restart was in order and did just that. Problem solved, many times over. Tonight, however, my audio would not work upon restart plus iTunes wouldn't open c