java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 684983, 1 year ago
Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
via Oracle Community by Bi Pub Newbie-Oracle, 1 year ago
The Network Adapter could not establish the connection
via Oracle Community by 835491, 1 year ago
The Network Adapter could not establish the connection
via Oracle Community by 652313, 1 year ago
The Network Adapter could not establish the connection
via Oracle Community by YSP, 1 year ago
The Network Adapter could not establish the connection
via Oracle Community by Zia, 1 year ago
The Network Adapter could not establish the connection
java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:135)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:203)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:489)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:439)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:640)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:205)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:554)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:327)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:227)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1193)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1117)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:427)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:332)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:440)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:317)
at weblogic.jdbc.common.internal.DataSourceRuntimeMBeanImpl.lookupMetaData(DataSourceRuntimeMBeanImpl.java:740)
at weblogic.jdbc.common.internal.DataSourceRuntimeMBeanImpl.getMetaData(DataSourceRuntimeMBeanImpl.java:762)
at weblogic.jdbc.common.internal.DataSourceRuntimeMBeanImpl.getDriverName(DataSourceRuntimeMBeanImpl.java:794)
at sun.reflect.GeneratedMethodAccessor1397.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.management.jmx.modelmbean.WLSModelMBean.getAttribute(WLSModelMBean.java:525)
at weblogic.management.jmx.modelmbean.WLSModelMBean.getAttributes(WLSModelMBean.java:585)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java:726)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$13.run(WLSMBeanServerInterceptorBase.java:353)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttributes(WLSMBeanServerInterceptorBase.java:351)
at weblogic.management.mbeanservers.internal.JMXContextInterceptor.getAttributes(JMXContextInterceptor.java:198)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$13.run(WLSMBeanServerInterceptorBase.java:353)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttributes(WLSMBeanServerInterceptorBase.java:351)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttributes(SecurityInterceptor.java:307)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttributes(WLSMBeanServer.java:292)
at oracle.as.jmx.framework.generic.BaseMBeanServerInterceptor.getAttributes(BaseMBeanServerInterceptor.java:191)
at oracle.dms.impl.producer.J2EETableSource.updateRow(J2EETableSource.java:188)
at oracle.dms.impl.producer.J2EETableSource.getTable(J2EETableSource.java:144)
at oracle.dms.table.MultiTableSource.getTable(MultiTableSource.java:107)
at oracle.dms.table.TableSource.getTables(TableSource.java:224)
at oracle.dms.aggregator.Storage.getTables(Storage.java:642)
at oracle.dms.aggregator.Storage._getTables(Storage.java:517)
at oracle.dms.aggregator.Storage.getTables(Storage.java:392)
at oracle.dms.table.TableSource.getTableGroup(TableSource.java:238)
at oracle.dms.collector.TableMetricFetcher.call(TableMetricFetcher.java:63)
at oracle.dms.collector.TableMetricFetcher.call(TableMetricFetcher.java:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at oracle.dms.aggregator.DmsThreadFactory$1$1.run(DmsThreadFactory.java:56)
at oracle.dms.aggregator.DmsThreadFactory$1.run(DmsThreadFactory.java:51)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

8 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.