GetConnection error

guys plz help. theres an error on my program on the line:
dbcon= DriverManager.getConnection(url);
i already have my database connection and everything is set on my Data sources. ty
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Registration extends HttpServlet
String url = "jdbc:odbc:mds";
     Connection dbcon;
     public void doPost(HttpServletRequest req, HttpServletResponse res)
          throws ServletException, IOException {
          res.setContentType("text/html");
          PrintWriter out = res.getWriter();
          try {
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
     dbcon= DriverManager.getConnection(url);
     System.out.println("Connection established");
          } catch (Exception e) {
               System.out.println(e);
          String firstname=req.getParameter("firstname");
          String lastname=req.getParameter("lastname");
          String address=req.getParameter("address");
          String loantype=req.getParameter("loantype");
          String income=req.getParameter("annualincome");
     String phonenumber=req.getParameter("phonenumber");               
     String amount = req.getParameter("amountapplied");
     double annualincome = 0.0;
     double amountapplied = 0.0;
     Double temp = Double.valueOf(income);
     annualincome = temp.doubleValue();
     temp = Double.valueOf(amount);
     amountapplied = temp.doubleValue();
     boolean valuescorrect = true;
     String t1 = "";
     try {
          PreparedStatement prd = dbcon.prepareStatement("SELECT MAX(cLoan_Registration_ID) FROM loan_registration");
          ResultSet rs = prd.executeQuery();
          rs.next();
          t1 = rs.getString(1);
     } catch(Exception e) {
          System.out.println(e);     
     t1.trim();
     String t2 = t1.substring(2,5);
     int i = Integer.parseInt(t2);
     int num = i + 1;
     num = num + 10000;
     String s1 = String.valueOf(num);
     StringBuffer s2 = new StringBuffer(s1);
     s2.setCharAt(0,'L');
     s2.setCharAt(1,'D');
     String regid = "";
     regid = s2.toString();
     int rows = 0;
     try {
          PreparedStatement prd = dbcon.prepareStatement("INSERT loan_registration VALUES (?,?,?,?,?,?,?,?)");
          prd.setString(1, regid);
          prd.setString(2, firstname);
          prd.setString(3, lastname);
          prd.setString(4, address);
          prd.setString(5, loantype);
          prd.setString(6, phonenumber);
          prd.setDouble(7, annualincome);
          prd.setDouble(8, amountapplied);
          rows = prd.executeUpdate();     
     } catch(Exception e) {
          System.out.println(e);     
     if (rows == 0) {
          System.out.println("Error inserting rows in the Account-Holder-Transaction table");     
     out.println("<html>");
     out.println("<head><title>Loan Details</title></head>");
     out.println("<body bgcolor=\"lightblue\">");
     out.println("Your loan application details have been recorded. Pls use the loan registration ID in all you transactions.");
     out.println("<br>");
     out.println("Your load ID is <b>" + regid + "</b>.");
     out.println("</body>");
     out.println("</html>");
     out.close();

Im using Netbeans and I have an error in the following codes:
dbcon= DriverManager.getConnection(url);
PreparedStatement prd = dbcon.prepareStatement("SELECT MAX(cLoan_Registration_ID) FROM loan_registration");
PreparedStatement prd = dbcon.prepareStatement("INSERT loan_registration VALUES (?,?,?,?,?,?,?,?)");
but when I execute the codes on MSDOS, it worked. I think I have a problem with my Netbeans properties. By the way im using Netbeans 3.6 and JSDK 1.4.2_04. please help.

Similar Messages

  • Weblogic (unhandled Exception) and getConnection error

    hi all,
    yesterday weblogic server was running today i came and checked the logs there was a disconnection between application and database due to maintenance issue.
    i just new that some one from support team did restart only the deplyments installed inside the server not the whole weblogic server.
    i keep getting this error on the logs but no one reported any issue on application side (end users) but i need to know why it keeps generating
    cookie exists
    cookie exists
    com.progressoft.psecc.dao.exception.DAOException: NamingException @ getConnection()
    at com.progressoft.psecc.utils.ECCUtils.getConnection_aroundBody58(ECCUtils.java:694)
    at com.progressoft.psecc.utils.ECCUtils$AjcClosure59.run(ECCUtils.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.utils.ECCUtils.getConnection(ECCUtils.java:687)
    at com.progressoft.psecc.dao.AbstractDAO.getConnection_aroundBody8(AbstractDAO.java:138)
    at com.progressoft.psecc.dao.AbstractDAO$AjcClosure9.run(AbstractDAO.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.dao.AbstractDAO.getConnection(AbstractDAO.java:127)
    at com.progressoft.psecc.dao.AbstractDAO.getConnection_aroundBody6(AbstractDAO.java:117)
    at com.progressoft.psecc.dao.AbstractDAO$AjcClosure7.run(AbstractDAO.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.dao.AbstractDAO.getConnection(AbstractDAO.java:110)
    at com.progressoft.psecc.dao.AbstractDAO.getConnection_aroundBody0(AbstractDAO.java:87)
    at com.progressoft.psecc.dao.AbstractDAO$AjcClosure1.run(AbstractDAO.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.dao.AbstractDAO.getConnection(AbstractDAO.java:86)
    at com.progressoft.psecc.dao.AbstractDAO$AbstractProcedureCaller.executeQuery_aroundBody0(AbstractDAO.java:934)
    at com.progressoft.psecc.dao.AbstractDAO$AbstractProcedureCaller$AjcClosure1.run(AbstractDAO.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.dao.AbstractDAO$AbstractProcedureCaller.executeQuery(AbstractDAO.java:927)
    at com.progressoft.psecc.dao.tools.NewsDAO.listNews_aroundBody2(NewsDAO.java:178)
    at com.progressoft.psecc.dao.tools.NewsDAO$AjcClosure3.run(NewsDAO.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.dao.tools.NewsDAO.listNews(NewsDAO.java:99)
    at com.progressoft.psecc.delegate.ManagementDelegate.listNews_aroundBody30(ManagementDelegate.java:283)
    at com.progressoft.psecc.delegate.ManagementDelegate$AjcClosure31.run(ManagementDelegate.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.delegate.ManagementDelegate.listNews(ManagementDelegate.java:282)
    at com.progressoft.psecc.rssfeed.RssFeeder.getRssFeed_aroundBody0(RssFeeder.java:36)
    at com.progressoft.psecc.rssfeed.RssFeeder$AjcClosure1.run(RssFeeder.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.rssfeed.RssFeeder.getRssFeed(RssFeeder.java:26)
    at com.progressoft.psecc.rssfeed.job.execute_aroundBody2(job.java:66)
    at com.progressoft.psecc.rssfeed.job$AjcClosure3.run(job.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.rssfeed.job.execute(job.java:61)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
    Caused by: javax.naming.NameNotFoundException: While trying to look up comp/env/jdbc/CC in /app/webapp/ZZ.war/1924642865.; remaining name 'comp/env/jdbc/CC'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:388)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at com.progressoft.psecc.dao.ds.DataSourceFactory.getDataSource_aroundBody2(DataSourceFactory.java:87)
    at com.progressoft.psecc.dao.ds.DataSourceFactory$AjcClosure3.run(DataSourceFactory.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.dao.ds.DataSourceFactory.getDataSource(DataSourceFactory.java:68)
    at com.progressoft.psecc.utils.ECCUtils.getConnection_aroundBody58(ECCUtils.java:689)
    ... 46 more
    Mar 31, 2011 11:01:35 AM org.quartz.core.JobRunShell run
    SEVERE: Job DEFAULT.myJob threw an unhandled Exception:
    java.lang.NullPointerException
    at com.progressoft.psecc.rssfeed.RssFeeder.getRssFeed_aroundBody0(RssFeeder.java:48)
    at com.progressoft.psecc.rssfeed.RssFeeder$AjcClosure1.run(RssFeeder.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.rssfeed.RssFeeder.getRssFeed(RssFeeder.java:26)
    at com.progressoft.psecc.rssfeed.job.execute_aroundBody2(job.java:66)
    at com.progressoft.psecc.rssfeed.job$AjcClosure3.run(job.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.rssfeed.job.execute(job.java:61)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
    Mar 31, 2011 11:01:35 AM org.quartz.core.ErrorLogger schedulerError
    SEVERE: Job (DEFAULT.myJob threw an exception.
    org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:210)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
    Caused by: java.lang.NullPointerException
    at com.progressoft.psecc.rssfeed.RssFeeder.getRssFeed_aroundBody0(RssFeeder.java:48)
    at com.progressoft.psecc.rssfeed.RssFeeder$AjcClosure1.run(RssFeeder.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.rssfeed.RssFeeder.getRssFeed(RssFeeder.java:26)
    at com.progressoft.psecc.rssfeed.job.execute_aroundBody2(job.java:66)
    at com.progressoft.psecc.rssfeed.job$AjcClosure3.run(job.java:1)
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    at com.progressoft.psecc.aspectj.ProfilerAspect.doBasicProfiling(ProfilerAspect.java:25)
    at com.progressoft.psecc.rssfeed.job.execute(job.java:61)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
    ... 1 more
    another question is that if the database was disconnected do we have to restart all the server again.
    Edited by: 847896 on Mar 31, 2011 1:31 AM

    Contact the app developer. Stanza is NOT an Apple product.

  • Connection pooling error (Tomcat 5.5 Oracle 9i)

    Can someone please help,
    For the last 3 hours been search all past thread but no luck with my issue.
    I get error on line 4:
    == mytest.jsp
    Context initContext = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:comp/env");
    OracleDataSource ds = (OracleDataSource)envContext.lookup("jdbc/nidev");
    ds.getConnection();
    ==
    Error:
    root cause
    javax.servlet.ServletException: invalid arguments in call
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         org.apache.jsp.common.configurations_jsp._jspService(configurations_jsp.java:101)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    root cause
    java.sql.SQLException: invalid arguments in call
         oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
         oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
         oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:200)
         oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
    My Context:
    <Context reloadable="true"
    path="/dbbuild/nidev"
    debug="1"
    docBase="/home/nazrul/nidev/webapps/jsp">
    <Resource name="jdbc/nidev"
    auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@192.168.10.2:1521:NIDEV"
    username="nislam"
    password="nislam"
    removeAbandoned="true"
    removeAbandonedTimeout="30"
    maxActive="50"
    maxIdle="3"
    maxWait="10000" />
    </Context>

    Any idea anyone?

  • RunMigrate.sh Java error for patch AddrBook migration to UWC

    Hello All --
    The MigratePab java app appears to core dump half-way through "batch" migration of PAB entries to new UWC AB Server.
    /tmp/migrate.log to shows the pabMigrate finds all users for domain and correctly constructs new AB entry for o=piserverdb, and correctly updates user object in Directory (ie. all users have correct 'psroot' attribute added to user object).
    Then -- apparently when actual data migration supposed to happen (ie. the MigratePab.run method -- the app throws Java exception (see below).
    Note: this pabMigrate utility appears to be very "bleeding edge" (read that: "not ready for prime time") -- any ideas where more recent version of pabMigrate code resides??
    Note2: each "Thread" below corrsponds to separate connection to Directory.
    Thanks --GA
    /var/opt/SUNWuwc/WEB-INF/classes> ./runMigrate.sh
    Exception in thread "Thread-5" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-6" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-9" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-7" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-3" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-10" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-4" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-1" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-8" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    Exception in thread "Thread-2" java.lang.NoClassDefFoundError: com/sun/comclient/calendar/PropertiesException
    at com.iplanet.iabs.ldapplug.iLDAP.initConnection(iLDAP.java:72)
    at com.iplanet.iabs.coresrv.DBPluginMap.getDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.DBPluginMap.getPSDBPlugin(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStore.<init>(Unknown Source)
    at com.iplanet.iabs.coresrv.CorePersonalStoreFactory.newSessionObject(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.migrate(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.initMigration(Unknown Source)
    at com.sun.uwc.common.util.MigratePab.run(Unknown Source)
    =

    Example of LDAP connection setup and first entry in /tmp/migrate.log
    Note: in this particular entry, the 'prroot' attribute already set -- hence the LDAP error.
    ds-sun1:/tmp> head -40 ./migrate.log
    TRACE [Fri Oct 07 12:26:41 MDT 2005] Pool doesn't exists for -> ds-sun1.domain.com:389:cn=Directory Manager so creating a new one
    TRACE [Fri Oct 07 12:26:41 MDT 2005] in initUgLdap
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Creating DBPluginMap for key:ldapplug
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Creating DBPluginMap for key:idir
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-1 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-2 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-3 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-4 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-5 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-6 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-7 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-8 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-9 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Thread-10 is started
    TRACE [Fri Oct 07 12:26:42 MDT 2005] in getConnection
    TRACE [Fri Oct 07 12:26:42 MDT 2005] number users undergoing migration:44
    TRACE [Fri Oct 07 12:26:42 MDT 2005] NEW Request to Migrate: uid=ServiceAdmin,domain=domain.com,dn=uid=ServiceAdmin, ou=People, o=domain.com,o=users
    TRACE [Fri Oct 07 12:26:42 MDT 2005] USER LOCKED:uid=ServiceAdmin, ou=People, o=domain.com,o=users
    TRACE [Fri Oct 07 12:26:42 MDT 2005] in initUgLdap
    TRACE [Fri Oct 07 12:26:42 MDT 2005] IN initPabServiceAdmin:domain.com
    ERROR [Fri Oct 07 12:26:42 MDT 2005] user DN = uid=ServiceAdmin, ou=People, o=domain.com,o=users:Exception while setting value of psRoot as null:null
    TRACE [Fri Oct 07 12:26:42 MDT 2005] USER UNLOCKED:uid=ServiceAdmin, ou=People, o=domain.com,o=users
    TRACE [Fri Oct 07 12:26:42 MDT 2005] NEW Request to Migrate: uid=admin,domain=domain.com,dn=uid=admin, ou=People, o=domain.com,o=users
    TRACE [Fri Oct 07 12:26:42 MDT 2005] USER LOCKED:uid=admin, ou=People, o=domain.com,o=users
    TRACE [Fri Oct 07 12:26:42 MDT 2005] in initUgLdap
    TRACE [Fri Oct 07 12:26:42 MDT 2005] IN initPabadmin:domain.com
    TRACE [Fri Oct 07 12:26:42 MDT 2005] com.iplanet.xslui.auth.LDAPUserSession@c2ff5
    TRACE [Fri Oct 07 12:26:42 MDT 2005] admin
    TRACE [Fri Oct 07 12:26:42 MDT 2005] uid=admin, ou=People, o=domain.com,o=users
    TRACE [Fri Oct 07 12:26:42 MDT 2005] ds-sun1.domain.com
    TRACE [Fri Oct 07 12:26:42 MDT 2005] ldap://ds-sun1.domain.com:389/ou=admin,ou=People,o=domain.com,o=users,o=pab
    TRACE [Fri Oct 07 12:26:42 MDT 2005] pabdn=ou=admin, ou=People, o=domain.com,o=users ,o=pab
    TRACE [Fri Oct 07 12:26:42 MDT 2005] pab initiated successfully
    TRACE [Fri Oct 07 12:26:42 MDT 2005] hostport of abs set for ds-sun1.domain.com.389 is:ds-sun1.domain.com:389
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Warning:getDBHandler - Can't open Personal Store : DBHandler: couldn't open configuration file at /var/opt/SUNWuwc/WEB-INF/domain/domain.com : PropertyReader: config is not a file: /var/opt/SUNWuwc/WEB-INF/domain/domain.com/personalstore.properties
    TRACE [Fri Oct 07 12:26:42 MDT 2005] returning DBHandler for default
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Setting psroot to:uid=admin, ou=People, o=domain.com,o=users with psRoot value as:ldap://ds-sun1.domain.com:389/piPStoreOwner=admin,o=domain.com,o=PiServerDb
    TRACE [Fri Oct 07 12:26:42 MDT 2005] in getConnection
    ERROR [Fri Oct 07 12:26:42 MDT 2005] user DN = uid=admin, ou=People, o=domain.com,o=users:LDAPException while setting value of psRoot as ldap://ds-sun1.domain.com:389/piPStoreOwner=admin,o=domain.com,o=PiServerDb:error result:20
    TRACE [Fri Oct 07 12:26:42 MDT 2005] Setting psroot to uid=admin, ou=People, o=domain.com,o=users is successful
    ds-sun1:/tmp>

  • Connection Refused Error!! Please help to resolve

    I am using Oracle 9i in Windows 2000. I have created a new db called DTSDB. And I have used the following program for getting connection
    code:
    package com.example; import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;      public class ConnectionPool{          public ConnectionPool(){}          public Connection getConnection(){          Connection con = null;          try{               Class.forName("oracle.jdbc.driver.OracleDriver");                         con = DriverManager.getConnection("jdbc:oracle:thin:@mike-dm210ghop:1521:DTSDB","scott","tiger");                              System.out.println("con ::##############"+con);          }catch(SQLException e){               e.printStackTrace();          }catch(Exception e){               e.printStackTrace();          }          return con;     }      public static void main(String[] args) {          System.out.println(new ConnectionPool().getConnection());     }     }
    Error I am getting:
    code:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12537)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=507)(EMFI=4))(ERROR=(BUF='32-bit Windows Error: 109: Unknown error'))))     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)     at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)     at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)     at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)     at java.sql.DriverManager.getConnection(Unknown Source)     at java.sql.DriverManager.getConnection(Unknown Source)     at com.example.ConnectionPool.getConnection(ConnectionPool.java:17)     at com.example.ConnectionPool.main(ConnectionPool.java:28)null
    I have also tried to create a connection thru ODBC and given the DSN name as "reg" and username and password and I am getting the error as
    TNS:listener could not start a dedicated server error
    My tnsnames.ora File
    ====================
    code:
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora# Generated by Oracle configuration tools. DTSDB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DTSDB) ) ) INST1_HTTP = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = MODOSE) (PRESENTATION = http://HRService) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) ORACLE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE) ) )
    My listener.ora File:
    ======================
    code:
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora# Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mike-dm210ghop)(PORT = 1521)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\ora92) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = ORACLE) (ORACLE_HOME = D:\oracle\ora92) (SID_NAME = ORACLE) ) (SID_DESC = (GLOBAL_DBNAME = DTSDB) (ORACLE_HOME = D:\oracle\ora92) (SID_NAME = DTSDB) ) )
    PLease help to reolve my problem

    Did you started the Oracle Net Listener for your database instance ?
    Can you connect with SQL*Plus to your database instance ?
    If no, what are the errors message do you get ?
    Did you have a look to the Oracle Net Services Administrator's Guide relevant section.

  • Programmatically connecting to BI server

    Hi,
    I have to connect to the BI server using JDBC to run BI query.
    Connection details (BIAnalytics)
    ConnectionType: BI (JDBC)
    Username: <private>
    Password: <private>
    BI Host: <private>
    BI port: 9703
    I am using the following code to get this connection from data source
    Object obj = ADFContext.getCurrent().getConnectionsContext().lookup("TMBISrvConn");
    if (obj instanceof DatabaseProvider) {
    DatabaseProvider BIDB = (DatabaseProvider)obj;
    String userName = BIDB.getProperty(DatabaseProvider.USERNAME_CLASS_REFTYPE);
    String password = BIDB.getProperty(DatabaseProvider.PASSWORD_CLASS_REFTYPE);
    String hostName = BIDB.getProperty(DatabaseProvider.HOSTNAME_CLASS_REFTYPE);
    String port = BIDB.getProperty(DatabaseProvider.PORT_CLASS_REFTYPE);
    String connString = "jdbc:oraclebi://"+ hostName + ":" + port + "/user=" + userName + ";password=" + password + ";Catalog=";
    Connection con = BIDB.getConnection();
    Error: "Unrecognized JDBC URL subtype: BI_JDBC"
    I tried using Driver manager
    String connString = "jdbc:oraclebi://"+ hostName + ":" + port + "/user=" + userName + ";password=" + password + ";Catalog="; Class bclass = Class.forName("oracle.bi.jdbc.AnaJdbcDriver");
    Connection connection = DriverManager.getConnection(connString);
    Error: "cannot find suitable driver"
    Thanks

    I am able to get this working by installing MS sqljdbc4 on weblogic and specifying the readonly parameter.

  • Tomcat 5 con pool, Oracle, servlet error on Connection ocon = ds.getConnect

    Hello,
    I am trying to create a connection pool to my Oracle db using the documentation provided for
    Tomcat 5. In the servlet shown below, the servlet fails at this line:
    Connection ocon = ds.getConnection();
    The servlet stops with no error message. Also, I'm not sure what is supposed to go in
    this line:
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    which may be where the real problem begins. Any suggestions are greatly appreciated.
    Here is the servlet:
    package CraigsClasses;
    import javax.servlet.*;
    import javax.servlet.jsp.*;
    import java.net.*;
    import java.util.*;
    import java.io.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.Date;
    import java.text.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    public class CraigsMain extends HttpServlet {
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    // Process the http Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
    try {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    Context initContext = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("jdbc/CraigsList");
    Connection ocon = ds.getConnection();
    String sql = "select formtitle from checkboxforms where cbformid = 157";
    PreparedStatement pStmt = ocon.prepareStatement(sql);
    ResultSet rs1 = pStmt.executeQuery();
    rs1.next();
    out.println("<br><br><br>" + rs1.getString(1) + "<br>");
    } catch(SQLException sqle) {
    System.err.println("sql exception error: " + sqle);
    } catch(NamingException sqln) {
    System.err.println("naming exception error: " + sqln);
    // A post request calls the get request because they do the same thing
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doGet(request, response);
    Thank you,
    Logan

    Hello,
    I am trying to create a connection pool to my Oracle db using the documentation provided for
    Tomcat 5. In the servlet shown below, the servlet fails at this line:
    Connection ocon = ds.getConnection();
    The servlet stops with no error message. Also, I'm not sure what is supposed to go in
    this line:
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    which may be where the real problem begins. Any suggestions are greatly appreciated.
    Here is the servlet:
    package CraigsClasses;
    import javax.servlet.*;
    import javax.servlet.jsp.*;
    import java.net.*;
    import java.util.*;
    import java.io.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.Date;
    import java.text.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    public class CraigsMain extends HttpServlet {
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    // Process the http Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
    try {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    Context initContext = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("jdbc/CraigsList");
    Connection ocon = ds.getConnection();
    String sql = "select formtitle from checkboxforms where cbformid = 157";
    PreparedStatement pStmt = ocon.prepareStatement(sql);
    ResultSet rs1 = pStmt.executeQuery();
    rs1.next();
    out.println("<br><br><br>" + rs1.getString(1) + "<br>");
    } catch(SQLException sqle) {
    System.err.println("sql exception error: " + sqle);
    } catch(NamingException sqln) {
    System.err.println("naming exception error: " + sqln);
    // A post request calls the get request because they do the same thing
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doGet(request, response);
    Thank you,
    Logan

  • XA error: XAER_RMERR on getConnection()

    I am using WLS 6.1 SP2 and Oracle 8.0.6, Type 4 Driver. I have a connection pool
    that works fine from a javabean, servlet, jsp, etc.
    I am trying to create a BMP EJB, and the call to getConnection returns the following
    error. JNDI seems to resolve the DataSource name okay, but I get back a null connection
    handle. I am not sure if I have a problem with my deployment descriptors or a
    jdbc problem.
    Dec 30, 2002 09:26:53 PersonEJB() - Person.ejbCreate called.
    Dec 30, 2002 09:26:53 create() Got DataSource from JNDI
    Dec 30, 2002 09:26:53 create() Oracle Error: java.sql.SQLException: XA error:
    XAER_RMERR : A resource manager error has occured in the transaction branch start()
    failed on resource 'Thin_Pool' Unexpected error during start for XAResource 'Thin_Pool':
    null
    Any suggestions appreciated.
    Thanks.
    Jeff

    I am using WLS 6.1 SP2 and Oracle 8.0.6, Type 4 Driver. I have a connection pool
    that works fine from a javabean, servlet, jsp, etc.
    I am trying to create a BMP EJB, and the call to getConnection returns the following
    error. JNDI seems to resolve the DataSource name okay, but I get back a null connection
    handle. I am not sure if I have a problem with my deployment descriptors or a
    jdbc problem.
    Dec 30, 2002 09:26:53 PersonEJB() - Person.ejbCreate called.
    Dec 30, 2002 09:26:53 create() Got DataSource from JNDI
    Dec 30, 2002 09:26:53 create() Oracle Error: java.sql.SQLException: XA error:
    XAER_RMERR : A resource manager error has occured in the transaction branch start()
    failed on resource 'Thin_Pool' Unexpected error during start for XAResource 'Thin_Pool':
    null
    Any suggestions appreciated.
    Thanks.
    Jeff

  • Error in getConnection method

    In the following code...
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection(
              "jdbc:oracle:thin:@url:1521:PINDB","jvikas","jvikas123");
    followin error is coming ... during execution.. i have included class path for driver etc..
    exception in main thread .. java.lang.NoclassFoundError : java/sql/Savepoint..
    at java.lang.classLoader.defineclass0<native0 method >
    at java.lang.classLoader.defineclass0<Unknown Source >
    plz tell what's the error is .
    thanks in advance
    Vikas

    we need more info. what does "during execution" mean? a specific sql query? specific JDBC code? are you using JDK 1.4? if not, you have to use the JDK 1.2/1.3 compatible JDBC driver from ORACLE because the interface Savepoint was introduced in JDK 1.4.

  • Error  in DataSource.getConnection() !

    Hello to u all,
    I'm trying to make an application that uses database connection pooling and i've followed
    closely the tutorial:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html
    The code in the tutorial worked just fine, however, later when i tried to use it in my (servlet)application a get an error in the datasource.getconnection! Here's my code:
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <servlet>
    <servlet-name>ServletContactosControllerDB</servlet-name>
    <servlet-class>ServletContactosControllerDB</servlet-class>
    <init-param>
         <param-name>event</param-name>
         <param-value>event</param-value>
         </init-param>
         <init-param>
         <param-name>error_event</param-name>
         <param-value>error</param-value>
         </init-param>
         <init-param>
         <param-name>new_user_event</param-name>
         <param-value>newuser</param-value>
         </init-param>
         <init-param>
         <param-name>dbLookup</param-name>
         <param-value>java:comp/env/jdbc/DBContactos</param-value>
         </init-param>
              <init-param>
         <param-name>login_event</param-name>
         <param-value>login</param-value>
         </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServletContactosControllerDB</servlet-name>
    <url-pattern>/index.html</url-pattern>
    </servlet-mapping>
    </web-app>
    I know that the configuration in the server.xml is fine because the example in the tutorial worked!!
    so my code in the doPost method in the servlet is:
         Context initCtx = new InitialContext();
    DebugUtility.println("POST 2 ");
    DataSource dataSource = (DataSource)initCtx.lookup("java:comp/env/jdbc/TestDB");
    DebugUtility.println("POST 3 ");
    Connection con = dataSource.getConnection();
                        DebugUtility.println("POST 4");
    it fails in getconnection with the following error:
    Cannot create JDBC driver of class '' for connect URL 'null'
    can anyone figure it out what is happening ? Is my web.xml with a wrong configuration !!
    thx in advance to all of u !

    Finally i have discover the error !!!
    In fact the error reports some irony cause i had said with conviction that
    the error wasn't in the server.xml , but it was :
    <Context path="/contactos_sb" docBase="contactos_sb"
    debug="5" reloadable="true" crossContext="true">
    i was keeping the tutorial path and not my application path so my servlet wasn't able
    to get the class driver and the url !!
    So. it works fine now ! :)�

  • Getconnected.exe runtime error

    Hi!
    When i execute the phone connection configurator (by the pc suite app or directly to getconnected.exe), a runtime error is raised, and i can't configure my phone.
    I spent a lot of time installing and uninstalling both pc suite, toshiba bluetooth stack and vcredist. This error was present on the older versions of pc suite and bluetooth stack, so I wait to the newest (as you can see at the bottom info) but the error comes too with the new versions.
    Help, please!
    Kepa.
    (sorry my poor english)
    System info:___________________________
    Phone: 2630 (well connected by bluetooth, i can send/receive files well)
    Windows XP Pro X64 2003 SP2 (Intel)
    PC Suite info:
    >Solución de conexión a PC:
    >Versión 8.15.0.0
    >
    >Nokia Connectivity Cable Driver:
    >Versión 6.86.11.0
    >Sistema operativo:
    >Microsoft Windows XP Edición de 64 bits, Service Pack 2
    >Idioma: español
    >Idioma para programas no unicode: Español
    >Navegadores de Internet detectados:
    > - Microsoft Internet Explorer 7.0 (Navegador >predeterminado)
    >Stacks Bluetooth detectados:
    > - Microsoft (Versión: 5.2.3790, Compilación: 3959)
    > - Toshiba ([Version: 6.0.7y19.0)
    Error info:______________________
    AppName: getconnected.exe AppVer: 6.86.74.2 ModName: msvcr80.dll
    ModVer: 8.0.50727.1433 Offset: 000046b4

    Yes, it is the version 6.86.9.3, but the prior version (6.85.14.1) give me the same error. Perhaps the connect part of the software (getconnected.exe) is the same...

  • Teradata connection error in jdbc -- DriverManager.getConnection()

    I have issue while connecting to teradata DB from a sampel jave jdbc code.
    the code is as below.
    String url="jdbc:teradata://10.33.22.27/AMRROCD";
    Class.forName("com.teradata.jdbc.TeraDriver");
    Properties x = new Properties();
    x.put("user","user123");
    x.put("password","pwd123");
    Connection con = DriverManager.getConnection (url, x);--> i am getting error at this line as
    GSSException: Failure unspecified at GSS-API level (Mechanism level: UserFile parameter null)
    at com.teradata.tdgss.jtdgss.TdgssParseXml.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssConfigApi.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssManager.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssManager.getInstance(DashoA1*..)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getGSSM(GenericTeraEncrypt.java:583)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getConfig(GenericTeraEncrypt.java:601)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getUserNameForOid(GenericTeraEncrypt.java:694)
    at com.teradata.jdbc.AuthMechanism.<init>(AuthMechanism.java:50)
    at com.teradata.jdbc.jdbc.GenericInitDBConfigState.action(GenericInitDBConfigState.java:105)
    at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:49)
    at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:195)
    at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalConnection.<init>(TeraLocalConnection.java:94)
    at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:55)
    at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:216)
    at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:149)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at dbValidation.main(dbValidation.java:25)
    Error java.lang.NullPointerException
    could anybody have an idea on this , its urgent for me to solve this.
    I am able to execute the code in windows OS . this error is occourring in UNIX system

    You'd have to pursue Teradata for support/help with their JDBC driver. This has nothing
    to do with Oracle though...

  • GetConnection-- Network Adaptor Error

    Hello there
    I am running many client thread calling methods in EJB beans. I get Network Adaptor Error when trying to get connection. This only happens when many clients running concurrently.
    I wonder whether other people have come accross the same problem.
    If this is a driver's bug, will it be fixed soon?
    Thanks,
    Shuping

    Hello there
    I am running many client thread calling methods in EJB beans. I get Network Adaptor Error when trying to get connection. This only happens when many clients running concurrently.
    I wonder whether other people have come accross the same problem.
    If this is a driver's bug, will it be fixed soon?
    Thanks,
    Shuping

  • Thread DataSources & Database getConnection timeout error

    I'm usig pool connections in the application for database access.
    At the moment i have max number of pool connections set to 1.
    I'm using Oracle JDBC driver 10.2.0.1.0 and Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production With the Partitioning option JServer Release 9.2.0.5.0 - Production.
    Running JRE/SDK 1.4.2
    WAS6, Rational 6.0.0
    I'm trying to get the connection inside a thread but I get this exception:
    J2CA0045E: The connection is not available when you invoke the method createOrWaitForConnection for the resource jdbc/DBDS
    and then this: Connection not available, Timed out waiting for 10000
    The function in the main class is like:
    PrT cnxT=new PrT(); Thread hilo=new Thread(cnxT, "cnxT"); hilo.start();
    the runnable class is like:
    public class PrT implements Runnable { public PrT(){ super(); } public void run(){ try{ InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup("jdbc/DBDS"); Connection con=ds.getConnection(); /** here my sql sentences **/ con.close(); } catch(Exception e){ } } }
    If I change the max number of pool connections to 2 this executes pretty well and if I change the code and make the connection outside the runnable class there's no problem. But I need to make a new connection inside the runnable class because I'm gonna run multiple threads at once.
    Why do I need to put the max connections pool in 2 if there're not connections opened?
    What should I do to open the connection inside the thread?
    Sorry for my english, is not my native language.
    I'll appreciate any help.
    Thanks.

    RoVis wrote:
    Hi, got you some ideas? Thanks.One - don't post new questions to old threads.

  • Error in getConnection() of Dataource

    Hi,
    I am using the datasource for connecting to the database.
    When I use the getConnection() method of DataSource without any parameters then it gets executed correctly .
    But the problem is that I cannot use the method getConnection() without
    parameters. I need to use the method getConnection(String username,String password);
    When I use this method it throws UnsupportedOperationException.
    Can any one help me in solving this problem.
    Regards
    Rakesh

    we need more info. what does "during execution" mean? a specific sql query? specific JDBC code? are you using JDK 1.4? if not, you have to use the JDK 1.2/1.3 compatible JDBC driver from ORACLE because the interface Savepoint was introduced in JDK 1.4.

Maybe you are looking for

  • Purchase Requisition attachments should not be modified when it is released

    Hi Gurus, I've requirement that i should restrict the Users not to modify, delete, and add any attachments when PR is released. pl help me in this -Rajiv.

  • Preview shows some text incorrectly in pdfs

    I have recently had problems viewing pdfs in Preview. This applies to new pdfs that I have downloaded as well as old ones that were already on my computer. I am a graduate student in biology, so I download and read many scientific articles as pdfs on

  • Order management queries

    Hi all, Can we restrict inventory organization to responsibilities ? what profile option need to be set? Can we have one operating unit with two different item master organizations? Can we restrict(hide from other inv orgs in same O U) Purchase Order

  • Movie Playback crashes ITouch

    I have one movie that will consistently cause the ITouch to crash. It will do this at the same point in the movie every time. The movie plays fine before and after the trouble spot. The movie plays back fine on ITunes. I have the latest updates insta

  • Path to download the  SAP-INTDIR content

    Hi friends, Can anybody please tell the path to dowload Xi content, SAP-INTDIR from the service marketplace? Thanks.