Error while connecting to Teradata from Java using Type4 Driver

Tools & Utilities

Error while connecting to Teradata from Java using Type4 Driver

HI I am getting the following error while connecting to Teradata from Java using Type 4 driver,
here intresting thing is the same program working in the same environment as a standalone but when ever tried to run in application , we are getting the following error. Our application like a batch process application it is not running on any application server.

Please help me

2009-03-13 18-27-53.636:UPDTESVC:SEVERE:winbackpapp1:lvoserver0:9070:com.convergys.lvo.server.framework.messaging.socket.SocketEventAdapter$1:run():232:"accept of socket failed, msg=Address already in use"
Exception in thread "main" java.lang.StackOverflowError
at java.nio.MappedByteBuffer. (MappedByteBuffer.java:69)
at java.nio.DirectByteBuffer. (DirectByteBuffer.java:151)
at java.nio.DirectByteBuffer.slice(DirectByteBuffer.java:169)
at java.util.zip.ZipFile$MappedZipFileInputStream. (ZipFile.java:632)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:307)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:287)
at java.util.jar.JarFile.getInputStream(JarFile.java:393)
at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:620)
at sun.misc.Resource.cachedInputStream(Resource.java:58)
at sun.misc.Resource.getByteBuffer(Resource.java:113)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.bouncycastle.asn1.nist.NISTObjectIdentifiers. (Unknown Source)
at org.bouncycastle.jce.provider.symmetric.AESMappings. (Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider. (Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at sun.security.jca.ProviderConfig$3.run(ProviderConfig.java:240)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:225)
at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:205)
at sun.security.jca.ProviderList.loadAll(ProviderList.java:254)
at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:271)
at sun.security.jca.Providers.getFullProviderList(Providers.java:158)
at java.security.Security.getProviders(Security.java:422)
at sun.security.jgss.ProviderList. (ProviderList.java:116)
at sun.security.jgss.GSSManagerImpl. (GSSManagerImpl.java:28)
at org.ietf.jgss.GSSManager.getInstance(GSSManager.java:130)
at com.teradata.tdgss.jgssp2gss.SspiMechanism. (DashoA1*..)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.teradata.tdgss.jtdgss.TdgssManager.createObject(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssManager. (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. (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. (TDSession.java:194)
at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalConnection. (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:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.convergys.tks.util.TKSConnectionPool.addConnection(TKSConnectionPool.java:161)
at com.convergys.tks.util.TKSConnectionPool. (TKSConnectionPool.java:60)
at com.convergys.tks.util.TKS_DAO.buildSources(TKS_DAO.java:99)
at com.convergys.tks.util.TKS_DAO.init(TKS_DAO.java:44)
at com.convergys.tks.plugins.bo.DailyBOCacheMiss.init(DailyBOCacheMiss.java:139)
at com.convergys.lvo.server.manager.LVOManagerNode.initializeManagedPlugins(LVOManagerNode.java:607)
at com.convergys.lvo.server.manager.LVOManagerNode.initialize(LVOManagerNode.java:579)
at com.convergys.lvo.server.manager.LVOManagerNode. (LVOManagerNode.java:303)
at com.convergys.lvo.server.updatesvc.LVOUpdateSvc. (LVOUpdateSvc.java:454)
at com.convergys.lvo.server.updatesvc.LVOUpdateSvcAgent. (LVOUpdateSvcAgent.java:68)
at com.convergys.lvo.server.updatesvc.LVOUpdateSvcAgent.main(LVOUpdateSvcAgent.java:102)