I am getting this exception

I am getting this exception

Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92) at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:384) at org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:141) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:88) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:73) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:66) at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:130) at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1809) at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2171) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:46) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:669) at com.crmit.hib.service.HibernateExamplePractice.main(HibernateExamplePractice.java:35) Caused by: java.sql.SQLException: invalid arguments in call at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:236) at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:441) at oracle.jdbc.driver.T4CConnection.(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:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:381) ... 15 more

View Answers

November 19, 2010 at 5:07 PM

Hi Friend,

Check your hibernate.connection.url properly!

Thanks


November 19, 2010 at 5:47 PM

yes thank you .....actually i forgot to mention username and password details in hibernate-config file









Related Tutorials/Questions & Answers:
I am getting this exception
I am getting this exception   Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java
using spring rmi+maven but i am getting this exception
using spring rmi+maven but i am getting this exception  D:\Nexustool... --- java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
Advertisements
:( I am not getting Problem (RMI)
I am not getting Problem (RMI)  When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception... exception and Connect Exception (adsbygoogle = window.adsbygoogle
i am Getting Some errors in Struts - Struts
i am Getting Some errors in Struts   I am Learning Struts Basics,I am Trying examples do in this Site Examples.i am getting lot of errors.Please Help me
i am getting multiple values in listbox
i am getting multiple values in listbox   hi sir, i am using... table group by stuname) order by a.name in a subquery multiple recdates i am getting its working fine, but in main query also i am getting multiple name
I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect
Getting Exception
Getting Exception  How to get exception from commented code in java
i am getting an error in adding a menu item to a menu.
i am getting an error in adding a menu item to a menu.   i am not able to execute the menu program. i am getting an error at menu.add(menuitem); it says add method is undefined for type menu. but as far as i know that is only way
i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
i am getting the problem when i am downloading the pdf file from oracle 10g database  if i created the pdf file from pdf machine,it is storing... but it is not downloading .Please help to me.i am getting the below error when downloading
I am getting Undefined in Text Box Very Urgent - JSP-Servlet
I am getting Undefined in Text Box Very Urgent  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I got the coding. But I find... and clicking select button, The pop up window gets closes. But, i am getting
Getting an exception - JSP-Servlet
Getting an exception  Dear sir,while executing this code i am getting a following error ,i am sending my code also please help me sir... //following...) session.getAttribute("ArrayValue"); } for (int i = 0; i < arlValue.size(); i
Getting exception in hello world
Getting exception in hello world  I run your hibernate5 "hello world" program. But, getting an exception: ERROR: Table 'mydb.employee' doesn't exist Exception in thread "main" javax.persistence.PersistenceException
Getting exception in hello world
Getting exception in hello world  I run your hibernate5 "hello world" program. But, getting an exception: ERROR: Table 'mydb.employee' doesn't exist Exception in thread "main" javax.persistence.PersistenceException
Getting an exception - JSP-Servlet
Getting an exception  Dear Sir , While sending a mail am getting an following exception javax.mail.MessagingException: 554 mail server permanently rejected message (#5. 3.0)so how to over come from this please help
Getting an exception - JSP-Servlet
Getting an exception   sir i am Getting following exception when.../apache/poi/poifs/filesystem/POIFSFileSystem I have used ur code import...(cellStoreVector); } } catch (Exception e) { e.printStackTrace
Getting an exception - JSP-Servlet
Getting an exception  thanks sir for u r reply ,but i already added that jar file sir even though i m getting an exception sir please help me sir ... thanks in advance..  Hi Friend, You can do one thing, replace
when sending the mail from java I am getting the below error - JavaMail
when sending the mail from java I am getting the below error   when sending the mail from java I am getting the below error : Exception... Exception { System.out.println("Message Send.1...."); String host
Getting an exception - JSP-Servlet
Getting an exception  sir i m Getting an following exception while... sending message; nested exception is: java.io.FileNotFoundException.../html"); mp.addBodyPart(mbp1); for(int i=0;i < attachment.length
Getting an exception - JSP-Servlet
Getting an exception  sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code . thanks in advance.. java.io.IOException: Invalid
Getting an exception - JSP-Servlet
Getting an exception  sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code . thanks in advance.. java.io.IOException: Invalid
I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined - Spring
I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined  Hello, I am getting error
Getting an exception - JSP-Servlet
Getting an exception  sir i changed to that ie InputStream myInput1...(myInput1); but when i click on a browse button and attached a file... of showing a what i have attached(file), in server console i m gtting a following
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
autocomplete(): Spring mvc with jquery: I am not getting correct value... related birds whenever we give input in the text field. But i am getting the wrong... bird names , but whenever i selected any bird in the text filed the am getting
Getting Null pointer Exception in the jsp page
in database I am getting null pointer exception in the following code...Getting Null pointer Exception in the jsp page  I have developed...=""; String lang[]=request.getParameterValues("lang"); for(int i=0;i<lang.length
Getting Null pointer Exception in the jsp page
in database I am getting null pointer exception in the following code...Getting Null pointer Exception in the jsp page  I have developed...=""; String lang[]=request.getParameterValues("lang"); for(int i=0;i<
Getting Null pointer Exception in the jsp page
in database I am getting null pointer exception in the following code...Getting Null pointer Exception in the jsp page  I have developed...=""; String lang[]=request.getParameterValues("lang"); for(int i=0;i<
Getting Null pointer Exception in the jsp page
in database I am getting null pointer exception in the following code...Getting Null pointer Exception in the jsp page  I have developed...=""; String lang[]=request.getParameterValues("lang"); for(int i=0;i
getting classnotfound exception while running login application
getting classnotfound exception while running login application  hi, I am getting Error creating bean with name 'urlMapping' defined... [TypedStringValue: value [/login.html], target type [null]]; nested exception
Getting exception in Assocation & Join. - Hibernate
Getting exception in Assocation & Join.  select product0_.id as id0...) exception setting property value with CGLIB (set hibernate.cglib.use_reflection... org.hibernate.PropertyAccessException: exception setting property value with CGLIB
this is my file upload page, here i am not getting tags input field value to my servlet,please suggest a solution?
this is my file upload page, here i am not getting tags input field value to my servlet,please suggest a solution?  <html> <head> <script type="text/javascript"> var counter =1; function
Page is not getting loaded when I refresh the webpage???
Page is not getting loaded when I refresh the webpage???  **I am... function in JSP. It will get all details of image section from database. *I am... when I refresh the page.* Note: Header section is getting loaded always Could
Exception "Couldn't load database driver: com.mysql.jdbc.Driver". I
Exception "Couldn't load database driver: com.mysql.jdbc.Driver". I  I m trying to connect to mysql from netbeans 6.9 but i m getting this exception "Couldn't load database driver: com.mysql.jdbc.Driver". I ve added the connector
Option onclick am not getting the value ..
Option onclick am not getting the value ..    function get_val( tot_val ) { document.getElementById('TextBox1').value = tot_val; } <tr> <td><textarea id="TextBox1" name=textarea1 readonly="readonly
Getting Exception on UseDefinedException sample program - Please help me how to resolve
); } } } Hi, I tried above code but getting Exception : MyException cannot...Getting Exception on UseDefinedException sample program - Please help me how...(String args[]) throws Exception { for(int i=1;i<=5;i
ModuleNotFoundError: No module named 'will-i-am'
ModuleNotFoundError: No module named 'will-i-am'  Hi, My Python... 'will-i-am' How to remove the ModuleNotFoundError: No module named 'will-i... have to install padas library. You can install will-i-am python with following
try to execute this code getting class cast exception, please resolve it.
try to execute this code getting class cast exception, please resolve it. ...[] = new Integer[obj.length]; for (int i = 0; i < obj.length; i++) { o[i] = (Integer) obj[i]; } for (int i = 0; i < o.length; i
I am new to ML/AI. Where do I start learning?
I am new to ML/AI. Where do I start learning?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: I am new to ML/AI. Where do I start learning? Try to provide me good
i got an exception while accept to a jsp
i got an exception while accept to a jsp  type Exception report... () that prevented it from fulfilling this request. exception...; ****thanks for your answer, exception comes through unicode format
ModuleNotFoundError: No module named 'i-am-malicious'
ModuleNotFoundError: No module named 'i-am-malicious'  Hi, My... named 'i-am-malicious' How to remove the ModuleNotFoundError: No module named 'i-am-malicious' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'Sam_I_Am'
ModuleNotFoundError: No module named 'Sam_I_Am'  Hi, My Python..._I_Am' How to remove the ModuleNotFoundError: No module named 'Sam_I_Am... to install padas library. You can install Sam_I_Am python with following
ModuleNotFoundError: No module named 'Sam_I_Am'
ModuleNotFoundError: No module named 'Sam_I_Am'  Hi, My Python..._I_Am' How to remove the ModuleNotFoundError: No module named 'Sam_I_Am... to install padas library. You can install Sam_I_Am python with following
ModuleNotFoundError: No module named 'i-am-malicious'
ModuleNotFoundError: No module named 'i-am-malicious'  Hi, My... named 'i-am-malicious' How to remove the ModuleNotFoundError: No module named 'i-am-malicious' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'i-am-utils'
ModuleNotFoundError: No module named 'i-am-utils'  Hi, My Python...-am-utils' How to remove the ModuleNotFoundError: No module named 'i-am... have to install padas library. You can install i-am-utils python
I am from .net background, I want to learn SOA.
I am from .net background, I want to learn SOA.  Hi I am from .net background, I want to learn SOA. Could it possible for me to learn SOA, I suppose SOA includes Java. I dont have knowledge of java. Please help Thanks  
I am Java programmer. Should I learn Java Script or Python?
I am Java programmer. Should I learn Java Script or Python?  Hi, I learned Core Java and Advanced Java. What should I learn next? I am Java programmer. Should I learn Java Script or Python? Thanks   Hi, Actually
How do I start machine learning with Python? What should I do if I am a beginner?
How do I start machine learning with Python? What should I do if I am a beginner?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: How do I start machine learning
i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter
i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter
Exception in jsf application
Exception in jsf application  when i am running application i am getting org.apache.commons.logging.LogConfigurationException and HTTP Status 404 -The requested resource () is not available Exception so i want to know reason
Find a project or skill I am interested in learning
Find a project or skill I am interested in learning  Hi, I am... = window.adsbygoogle || []).push({}); Thanks   Hi, I am giving you... about. However, I have a pretty good grasp on most of the stuff that comes out

Ads