Home Tutorialhelp Comment Hi .. Im getting error while running FirstExample

 
 

Comment

Satyanarayana
Hi .. Im getting error while running FirstExample,
March 1, 2007 at 12:31 PM

Hi .. Im getting error while running FirstExample of Hibernate is

java.lang.NullPointerException
at roseindia.tutorial.hibernate.FirstExample.main(FirstExample.java:35)
Exception in thread "main"

Im using ORACLE9i Database... i have been added all jar files in Lib Directory, added Hibernate2.0 jar and classes-12.zip files etc...

anybody plz help me.... Thank U

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Hibernate Questions

Im getting this error while running JPA project
Im getting this error while running JPA project  Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: examplePersistenceUnit] Unable to configure EntityManagerFactory 

Hibernate Questions

hibernate firstexample - Hibernate
hibernate firstexample  Hi all. i m new with hibernate,when i m trying to run my first application i m getting following exception. Error reading resource: Employee.hbm.xml give me the solution. Thank you 

Spring Framework Questions

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... to bean 'loginController' while setting bean property 'urlMap' with key 

Hibernate Questions

hibernate firstExample not inserting data - Hibernate
hibernate firstExample not inserting data  hello all , i followed....  Hi friend, Please send me code and explain in detail. Visit for more information. http://www.roseindia.net/hibernate/ Thanks.  

Java Beginners

error while running the applet - Java Beginners
error while running the applet  import java.applet.Applet; import...); ++num; } } } } i have problem while running the code , error... classes in the MyFrame class , can you expalin?  Hi Your program 

Hibernate Questions

Problem in running first hibernate program.... - Hibernate
Problem in running first hibernate program....  Hi...I am using... the error " java.lang.NoClassDefFoundError: roseindia/tutorial/hibernate/FirstExample Exception in thread "main" " http://www.roseindia.net/hibernate/runninge 

Hibernate Questions

hi - Hibernate
hi  hi all, I am new to hibernate. could anyone pls let me know what is generic DAO class generated by MyEclipse while doing mapping. I want...(java.lang.Long id) { log.debug("getting Userin instance with id: " + id); try 

SQL Question

Records are not inserting in to main table while running the mysql stored procedure.
Records are not inserting in to main table while running the mysql stored procedure.  Hi, Im migrating procedures from oracle to MySql.In that procedure records are not inserted into main table from temp table.But im getting msg 

WebSevices Questions

Error running webservice
Error running webservice  Hi, I am getting following error: 05/10 12:45:46 ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error 

Development process Questions

Getting Error - Development process
Getting Error   Hi , i am getting error while executing this code. I just want to store date in to database. Dont mistake me for repeated questions. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number 

WebSevices Questions

While running jsp
While running jsp  I found this error when i run the client.jsp can anyone help me javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/WebService1/MyWebService?wsdl. It failed with: http 

Struts Questions

Im not getting validations - Struts
Im not getting validations  I created one struts aplication im using... in s-c.xml But Im unable to get validations This is my validation.xml file...("failure"); } } } plz tell me where is the problem... Im unable 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Java Beginners

error while running a jsp page in netbeans
error while running a jsp page in netbeans  this is error that come under column "java db processes" in netbeans Exception in thread "main" java.lang.ExceptionInInitializerError 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Java Beginners

error while compiling - Java Beginners
error while compiling  i am facing problem with compiling and running a simple java program, can any one help me, the error i am getting is javac is not recognised as internal or external command  Check if you JAVA_HOME 

Hibernate Questions

Hibernate error - Hibernate
Hibernate error  I hava following error while running hibernate example in eclipse. I placed hibernate.cfg.xml and contact.hbm.xml in bin/roseindia/tutorial/hibernate. But I have following error. log4j:WARN No appenders 

Spring Framework Questions

Getting HTTP 404 error in Spring web MVC with Hibernate Integration
Getting HTTP 404 error in Spring web MVC with Hibernate Integration   Hi, i am Getting HTTP 404 error in Spring web MVC with Hibernate Integration...;Please visit the following links: http://www.roseindia.net/struts/hibernate-spring 

Maven Questions

Error with Maven while deploying the war file
Error with Maven while deploying the war file  Hi, I am new to maven... I created java spring hibernate project.. and i kept all .java files... hibernate, properties and spring. in hibernate i kept all .hbm.xml files 

Spring Framework Questions

Getting an error :(
Getting an error :(  I implemented the same code as above.. But getting this error in console... Console Oct 5, 2012 10:18:14 AM... start INFO: Jk running ID=0 time=0/15 config=null Oct 5, 2012 10:18:16 AM 

JSP Servlet Questions

getting error while inserting values in database
getting error while inserting values in database  AddUser.java...) { out.println("An Error Had occurred while accessing the database..."); if (envContext == null)throw new Exception("Error: No Context 

Hibernate Questions

Hibernate - Hibernate
Hibernate  when I run Hibernate Code Generation wizard in eclipse I'm getting the following error. I added ojdbc14.jar to my build path. Still I'm getting this error. please let me know, how to resolve 

Hibernate Questions

java.lang.NoClassDefFoundError - Hibernate
java.lang.NoClassDefFoundError  Hi, I am new to hibernate. while running the hibernate application i m getting the following error. Exception...) could you please help me out to resolve the error. Thanks and Regards, Vishal 

JSP Servlet Questions

error of HTTP Status 404 while running servlet on apache tomcat server
error of HTTP Status 404 while running servlet on apache tomcat server  i have followed the steps given here.Also hava put servlet-api in lib folder... the apache tomcat page. It mean that my tomcat server is up and running. but whn i 

Java Server Faces Questions

exception in thread main while running servlet
exception in thread main while running servlet  I got exception in thread main no such method error while running servlet. I have added servlet.api.jar file in classpath.my classpath is C:\Program Files\Apache Software Foundation 

Maven Questions

Error with Maven while deploying the war file
Error with Maven while deploying the war file  Hi, I am new to maven... I created java spring hibernate project.. and i kept all .java files... hibernate, properties and spring. in hibernate i kept all .hbm.xml files 

Hibernate Questions

Hibernate
of Hibernate. I followed all th steps as given in the tutorial, but a build error... not be resolved. How can i rectify that error?   Hi, The error comes when... the example from Hibernate Getting Started Tutorial. Please follow the steps 

Ajax Questions

hi - Ajax
me know what kind of error u getting in Ajax. if possible come online through... = con.createStatement(); ResultSet rs = stmt.executeQuery(dbQuery1); while(rs.next...); while(rs.next()){ result = result + rs.getString("state_name") + ","; } } catch 

Hibernate Questions

Hibernate delete a row error - Hibernate
Hibernate delete a row error  Hello, I been try with the hibernate delete example (http://www.roseindia.net/hibernate/hibernate-delete.shtml... - Hibernate 3.0rc1 10:46:41,397 INFO Environment:469 - hibernate.properties 

Hibernate Tutorial Example

Hibernate Getting Started
Hibernate Getting Started       Hibernate Getting Started In this Hibernate Getting Started you will quickly download the a Hibernate running example project and run 

Hibernate Questions

Database Error - Hibernate
Database Error  Hi, I am working with Struts 1.2---- AJAX-----Hibernate 3.0 --- MySQL 5.0. At the time of inserting/fetching from Database by multiple/single users I am getting the following errors. Lock wait timeout 

JSP Servlet Questions

Getting error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.
Getting error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. ... .when i done database connection then i get an error...;   Hi Friend, Do you have mysql-connector-java-5.0.5.jar file inside 

Hibernate Questions

java compilation error - Hibernate
java compilation error  hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming 

Java Beginners

Reply to ur mail(Hibernate Error)
Reply to ur mail(Hibernate Error)  Hi! Im using Eclipse. Steps : 1. Downloaded the example code and library from rose india and extracted the content... of the project using windows explorer. As im using Oracle 10G i changed 

Hibernate Questions

hi i m new to hibernate..plzzzzzzzzzzzzzz help me.... - Hibernate
hi i m new to hibernate..plzzzzzzzzzzzzzz help me....  hi friends i m new to hibernate..& i m stuck in one positon in my pgm.. its a simple select...://www.roseindia.net/hibernate/selectclause.shtml Thanks.  hi deepak.. when i 

Hibernate Questions

Hibernate error - Hibernate
Hibernate error  I had run hibernate first example but it an error appeared. Error is java.lang.NullPointerException.  Hi Friend... want more examples of Hibernate please visit the following link. http 

JSP Servlet Questions

how to solve 'Stop Running This Script' Error ?
how to solve 'Stop Running This Script' Error ?  Hi.. When opened the page on IE browser(version : 8.0),it gives an java script error (i.e.Stop Running This Script). I have used jsp/servlet for this. Please help to resolved 

Hibernate Questions

Null pointer exception in hibernate - Hibernate
is compiled successfully but while running the program i am getting null ponter...Null pointer exception in hibernate  Hi i am getting null pointer exception.while running the program in hibernate 

Development process Questions

error for getting the data from an api using br.readLine - Development process
error for getting the data from an api using br.readLine  hi the application is hanging while reading the data using readLine() function . actually...())); while ((strtemp = inputreader.readLine()) != null 

Java Beginners

error
error  while iam compiling iam getting expected error 

Java Beginners

Error While Compiling - Java Beginners
Error While Compiling  Hi All I Am a beginner and i face the following problem while compiling can anyone help me. C:\javatutorial\example> javac HelloWorld.java 'javac' is not recognized as an internal or external 

Hibernate Questions

Hibernate-Criteria - Hibernate
Hibernate-Criteria  Hi friends, I am new to hibernate. Im learning it. When im using Criteria im getting exception tht "Criteria cannot... help me plzzzzzzzzzzz. Cheers, Srikanth.  Hi friend, Read 

Hibernate Questions

hibernate - Hibernate
hibernate  Hai,This is jagadhish I have a problem while developing insert application of Hibernate.The application is compiled,while running... plz.If any application send me thank u (in advance).  Hi friend 

JSP Servlet Questions

Getting an exception - JSP-Servlet
Getting an exception   sir i am Getting following exception when...(0); Iterator rowIter = mySheet.rowIterator(); while (rowIter.hasNext... = myRow.cellIterator(); Vector cellStoreVector = new Vector(); while 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code  firstExample code that you have given for hibernate... me any error or exception.console gives the same as u have shown in tutorial... to use the same primary key,it gives me the constraint violation error that means 

Hibernate Questions

jsp-Hibernate Error - Hibernate
jsp-Hibernate Error  hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete 

Hibernate Questions

hibernate sql error - Hibernate
hibernate sql error  Hibernate: insert into EMPLOYE1 (firstName... to use polymorphiuc mapping in type2 using subclasses?  Hi Friend, Please visit the following links: http://www.roseindia.net/hibernate 

Java Beginners

im new to java - Java Beginners
im new to java  what is the significance of public static void main(string args[])statement  Hi Friend, This statement is necessary for a java class to execute it as a command line application. public- It provide 

JSP Servlet Questions

error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest...error  I am running a program insert into statement in sql using 

Struts Questions

Hi... - Struts
of this installation  Hi friend, Hibernate is Object-Oriented mapping tool... provide you hibernate tutorial with running code Please visit for more...Hi...  Hi, If i am using hibernet with struts then require 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hai this is jagadhish while running a Hibernate...:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute INFO: Running hbm2ddl....  Hi friend, Read for more information, http://www.roseindia.net 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hai this is jagadhish, while executing a program in Hibernate in Tomcat i got an error like this HTTP Status 500... Exception report message description The server encountered an internal error 

Hibernate Questions

connection proxy error in hibernate
connection proxy error in hibernate  while we get connection through hibernate we arise an error connection proxy error while we are using multiple connection's 

Hibernate Questions

hi - Hibernate
hi  hi, what is object life cycle in hibernate 

PHP Questions

getting error in your login form code
getting error in your login form code  i tried your code for login form but i am getting an error.the error is undefined index userid...   hi friend, your form's input must have following : <input type 

Hibernate Questions

Reg Hibernate - Hibernate
Reg Hibernate  Hi, Iam learning hibernate. Iam got this error... getting this error? regards usha.   Hi Read for more details, http://www.roseindia.net/hibernate 

WebSevices Questions

program is not running in Eclipse.... - WebSevices
program is not running in Eclipse....  Hi i following the tutorial for eclips in roseindia. I am able to creat the simple java application but when i am clicking windows->show view->console then i am getting the console 

Hibernate Questions

error in hibernate example
error in hibernate example  i am getting error in this.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Resource: Contact.hbm.xml 

Development process Questions

Getting connect error in Jmeter - Development process
Getting connect error in Jmeter  Hi, Am trying to run a simple application in Jakarta Jmeter using HTTP request sampler. I am getting the below error. Please help me in viewing the results. Pl specify if there is any possible 

Java Beginners

hi
hi  int A[]=new int{2,5,4,1,3}; what is the error in declaration of this   Hi Friend, This is the wrong way of declaring an array. Array is always declared in the following ways: 1)int arr[]=new int[5]; 2)int arr 

Hibernate Questions

in connectivity - Hibernate
in connectivity  Hi,my first application in which i have used the hibernate and postgresql that progrram is running while showing no error... insertted  Hi friend, This is connectivity and hibernate configuration 

Struts Questions

hi
hi  ANY SUGGESSION FOR THIS ERROR javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.FormTag 

SQL Question

Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws... this code, i am getting an error as OdbcSqlServerConnection.java:29: class,interface 

SQL Question

Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws... this code, i am getting an error as OdbcSqlServerConnection.java:29: class,interface 

Hibernate Questions

J2ee - Hibernate
J2ee  I need to save datas like employee details in database, while saving i am getting exceptioin as org.hibernate.exception.GenericJDBCException: caused by com.microsoft.sqlserver.jdbc.SQLServerException: and an error 

JSP Servlet Questions

Getting ResultSet size - JSP-Servlet
Getting ResultSet size  Hello friends, what is the result getFetchSize() of resultset. I got error with this method. While rs contains three rows it returns 0 . Please help me.  Hi friend 

Struts Questions

struts hibernate integraion tut - Struts
struts hibernate integraion tut  Hi, I was running struts hibernate integration tutorial. I am facing following error while executing the example. type Exception report message description The server encountered 

JDBC Questions

hi!
hi!  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con=DriverManager.getConnection("jdbc...... jbutton1 s d clear button.. and jbutton2 s d savebutton.. if u find any error 

Java Beginners

Hi
Hi   I have got this code but am not totally understanding what...=input.nextInt(); while(num!=randomNumber){ if (num>randomNumber...=input.nextInt(); while(num!=randomNumber){ if (num>randomNumber 

Hibernate Questions

hi - Hibernate
hi  Hi , Thanks for response. Could anyone tel me what is findByExample method in Basic DAO class developed by hibernate reverse engintnering process. pls suggest me the apporopriate code using the above method . pls 

Hibernate Questions

Compilation error. Hibernate code - Hibernate
Compilation error. Hibernate code   Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory...) how to rectify that error in hibernate  Hi Friend, You have 

Development process Questions

hi
storing data in xml file using jsp  hi i am storing data in xml file using jsp.in this when i enter data into xml file i am getting xml declaration for each specified data?can any one help me to prevent this?   < 

JSP Servlet Questions

Hi
an internal error () that prevented it from fulfilling this request. exception 

Development process Questions

hi
hi   i want to develop a online bit by bit examination process..."); int i=1; while(rs.next()){ %> <tr><td><%=i%></td>...(); ResultSet rs=stmt.executeQuery("Select ans from answers"); String ans=""; while 

Development process Questions

Erron while
Erron while   Hi, i'm doing a project regarding xml. I want... with that data.Here is my coding and error showing on that coding.Could anybody help to know my error? coding: public class Test { public static void main(String 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html...)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read... IS==== " +sis.readLine(b,0,1024)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html...)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html...)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html...)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html...)); while((x=sis.readLine(b,0,1024))>-1 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html...)); while((x=sis.readLine(b,0,1024))>-1 

Mobile Applications Questions

-[UIPopoverController dealloc] reached while popover is still visible.
-[UIPopoverController dealloc] reached while popover is still visible.  Hi, I am getting following error in my application: -[UIPopoverController dealloc] reached while popover is still visible. How to solver this? Thanks 

Java Beginners

Still getting the http 404 error - Java Beginners
Still getting the http 404 error  Dear experts, I refer... is userid? Anyway, whatever I do, I still receive the http 404 error...saying......for I'm really buffled and very lost...:-(  Hi Friend, The server 

EJB Questions

error while inserting millions of records - EJB
error while inserting millions of records  Hello, I am using ejb cmp... out occurs same problem is occur when i am using hibernate but when i am using... e.printStackTrace(); } }   The following error is occur 

Java Beginners

error
"+it); } } this is my program i am getting an error saying cannot find symbol class string... line s of "string ad" is small. make it capital as String ad   Hi 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5 

Java Beginners

Running and deploying Tomcat Server
Running and deploying Tomcat Server  HI Somebody has given the solution but it doesn't work out. kindly tell the solution for my problem which i... button and the browser is showing an error like Status 404 the resource 

Advertisements Advertisements
 

 

 

DMCA.com