-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Eclipse ORA-12519 no service handler issue
PostPosted: Wed Dec 07, 2011 12:10 pm 
Newbie

Joined: Wed Dec 07, 2011 11:21 am
Posts: 3
Hello,

I am running a sample Hibernate project in Eclipse.
Included with the project are 5 test classes using JUnit.
The first run test classes run with green check mark, but the last one generates the following stack trace:

var account =
----ACCOUNT----
accountId=6
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

var account =
----ACCOUNT----
accountId=7
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

var anotherCopy =
----ACCOUNT----
accountId=7
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

var account =
----ACCOUNT----
accountId=8
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

var anotherCopy = null
var account =
----ACCOUNT----
accountId=9
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

var anotherCopy =
----ACCOUNT----
accountId=9
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

var account =
----ACCOUNT----
accountId=10
accountType=SAVINGS
creationDate=2011-12-07
balance=1000.0
----ACCOUNT----

java.sql.SQLException: Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
localhost:1521:XE

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:261)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at courses.hibernate.dao.OracleAccountDAO.getConnection(OracleAccountDAO.java:67)
at courses.hibernate.dao.AccountDAO.updateAccount(AccountDAO.java:42)
at courses.hibernate.service.AccountService.updateAccount(AccountService.java:52)
at courses.hibernate.service.OracleAccountServiceTest.testUpdateAccountBalance(OracleAccountServiceTest.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Suggestions as to what could be the problem ?

Paolo


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.