DataSorce getConnection() refused, please help

Discussions

EJB programming & troubleshooting: DataSorce getConnection() refused, please help

  1. DataSorce getConnection() refused, please help (1 messages)

    Hi all,

    I used Inprise Application server. When i develop a Session Bean and define a DataSource to get Connection from this, an error occur, The error is


    Sun Dec 17 11:24:59 GMT+07:00 2000 getConnection() fail: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(BUF='32-bit Windows Error: 2: No such file or directory'))))
      Sun Dec 17 11:24:59 GMT+07:00 2000 Error: GetAllRec()null
      java.lang.NullPointerException
      Sun Dec 17 11:24:59 GMT+07:00 2000 getConnection() fail: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(BUF='32-bit Windows Error: 2: No such file or directory'))))
      >>>> EJB LOG >>>>
      Throwing TransactionRolledbackException for the method: public abstract sun.jdbc.rowset.CachedRowSet Ecurrency.GetNRec(int) throws java.rmi.RemoteException,java.sql.SQLException
      java.lang.NullPointerException
       at EcurrencyBean.GetNRec(EcurrencyBean.java:131)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.inprise.ejb.ConcreteMethod.invoke(ConcreteMethod.java:25)
       at com.inprise.ejb.EJBContext.invoke(EJBContext.java:149)
       at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1043)
       at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:539)
       at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:515)
       at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:248)
       at EcurrencyPOAInvokeHandler.GetNRec(EcurrencyPOAInvokeHandler.java:57)
       at EcurrencyPOAInvokeHandler.GetNRec(EcurrencyPOAInvokeHandler.java:229)
       at EcurrencyPOA._invoke(EcurrencyPOA.java:80)
       at EcurrencyPOA._invoke(EcurrencyPOA.java:60)
       at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2154)
       at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:101)
       at com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInterceptorManager.java:56)
       at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:392)
       at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:527)
       at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:100)
       at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
      <
    I have susscessful to lookup DataSource but when ever I get connection and use this connection to process data, This Exception is fired. Any suggestion for me?

    Many thanks,

    Doan
  2. Hi

     Whats up ya . ur accssing the database from the Session bean. r u sure this is application.

     normally set properties for jdbc conn.

     from E.B. access data with field mapping through weblogic-cmp-rdbms-jar.xml