Home Discussion Discuss: iBatis Stored Procedure Example

  • A simple Ibatis ProgramBode February 22, 2012 at 4:08 PM

    I"m getting the following error while executing the Program: Eception Ocuuredjava.lang.RuntimeException: Error creating logger for class class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. Cause: java.lang.NullPointerException Eception Ocuured[Ljava.lang.StackTraceElement;@3ec43ec4 Instead of My sql I used Oracle DataBase: My SqlMapConfig file is <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "sql-map-config-2.dtd"> <sqlMapConfig> <settings useStatementNamespaces="true"/> <transactionManager type="JDBC"> <dataSource type="SIMPLE"> <property name="JDBC.Driver" value="oracle.jdbc.driver.OracleDriver"/> <property name="JDBC.ConnectionURL" value="jdbc:oracle:thin:@10.64.18.21:1521:DDDDEV40"/> <property name="JDBC.Username" value="admdv41"/> <property name="JDBC.Password" value="admin4dv41"/> </dataSource> </transactionManager> <sqlMap resource="Contact.xml"/> </sqlMapConfig>

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
SQL Question

stored procedure
stored procedure  what is stored procedure 

JDBC

Insert Data in Table Using Stored Procedure
into a table using stored procedure. Steps: 1.Create database: To create...;); 7.Step to call procedure: We are using CallableStatement to execute a stored...;} } The code of the stored procedure is given below 

SQL Question

Stored Procedure and Trigger
Stored Procedure and Trigger  hello, What is the difference between Stored Procedure and Trigger ?   hii, Triggers once defined are called automatically, there can be no explicit invocation Stored procedure has 

SQL Question

What is Stored Procedure?
What is Stored Procedure?  What is Stored Procedure?   Hi, Here is the answer, A stored procedure is a named group of SQL statements that have been previously created and stored in the server database. Stored 

iBatis

iBatis Stored Procedure Example
iBatis Stored Procedure Example   ... with iBatis. Here is the example where you will see how "Stored Procedures" are called in iBatis ? As I have mentioned in previous example we are using 

JDBC Questions

receive a ResultSet from a stored procedure
receive a ResultSet from a stored procedure  How do I receive a ResultSet from a stored procedure 

Java Beginners

update date from stored procedure
update date from stored procedure  how to works on insert,update data from stored procedure.   Insert data using stored procedure 

Programming Tutorials

Call Procedure
and  task. Stored Procedure can be compiled and executed... an example from 'Call Procedure'. In this Tutorial we create a table 'Stu_Table... Call Procedure       

SQL Question

Processing stored procedure in MySQL - SQL
Processing stored procedure in MySQL  Dear All java with mysql developer..... i need to convert my SQL procedure to MySQL database... here is my Stored procedure in SQL.... create or replace procedure INVNAMES (bno 

MySQL

Stored Procedures and Functions
in version MySQL 5.0. Stored Procedure is a set of statements, which allow ease and flexibility for a programmer because stored procedure is easy to execute than reissuing the number of individual SQL statements. Stored procedure can call another 

Quartz Tutorials

Create a Simple Procedure
to create a procedure Abc( ).The SQL stored procedure bodies contain... stored procedure returns you the records from 'Stu_Table... Create a Simple Procedure      

MySQL

Mysql Declare Procedure
with Example The Tutorial grasp you an example from 'Mysql Declare Procedure... at the beginning of the stored procedure, followed by the first Begin Statement.The Default... Mysql Declare Procedure       

SQL Tutorial

Call Procedure
and  task. Stored Procedure can be compiled and executed... an example from 'Call Procedure'. In this Tutorial we create a table 'Stu_Table... Call Procedure       

Hibernate Questions

creating and executing stored procedure using hibernate
creating and executing stored procedure using hibernate  I have to execute following query using hibernate DECLARE @i_STARTDATETIME DATETIME DECLARE @i_ENDDATETIME DATETIME DECLARE @o_ERRORCODE INT DECLARE @o_ERRORDESCRIPTION 

SQL Tutorial

Mysql Alter Procedure
and redefine the column type in procedure. Understand with Example The Tutorial illustrate an example from 'Mysql Alter Procedure'. To grasp Example, we create... stored procedure that was created using the CREATE PROCEDURE statement 

MySQL

Mysql Alter Procedure
the column type in procedure. Understand with Example The Tutorial illustrate an example from 'Mysql Alter Procedure'. To grasp Example, we create a table... defined stored procedure that was created using the CREATE PROCEDURE statement 

SQL Tutorial

Create a Simple Procedure
to create a procedure Abc( ).The SQL stored procedure bodies contain... stored procedure returns you the records from 'Stu_Table... Create a Simple Procedure      

SQL Question

Write a C/C++ program to show the result of a stored procedure
Write a C/C++ program to show the result of a stored procedure   how to write this?? Write a C/C++ program to show the result of a stored procedure "PROCRESETMAIL" on database "USER_NOTIFY 

JDBC Questions

Stored procedures
;hello, A stored procedure is a set of statements or commands which reside in the database. The stored procedure is precompiled. Each Database has it's own stored procedure language,   Hi, Learn how to create Stored Procedure 

SQL Question

supplying values to in parameters of stored procedure in ms sql and displaying out parameters
supplying values to in parameters of stored procedure in ms sql and displaying out parameters  I have to execute following procedure ALTER PROCEDURE [dbo].[get_date] @codeId int, @vardate as datetime OUTPUT AS SELECT 

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 

SQL Tutorial

SQL IN Parameters
stored procedure is executed. Understand with Example This Example shows you how to use in type parameters. The Tutorial illustrates an example, which create a procedure 'abc' and accept input parameter 

JDBC

JDBC CallableStatement Example
statement provides a way to call the stored stored procedure of the database... is give below which calls the stored procedure HI() from database student. At first create a database student in MySql Then Create a Stored procedure 

SQL Tutorial

Use DEFAULT Statement in Procedure
Use DEFAULT Statement in Procedure       The Tutorial illustrate an example 'Use DEFAULT Statement in Procedure'. To understand 'Default Statement in Procedure', we create 

Java Beginners

procedure
procedure   step by step procedure to build servlet or jsp in eclipse 

SQL Question

procedure
procedure  write a procedure to update salary to 20% based on employee number 

Programming Tutorials

Until Loop In a Procedure
in a procedure. This Tutorial provides you an example to understand 'Until Loop In a Procedure'. To grasp this example, we create a procedure 'proce... Until Loop In a Procedure       

JDBC Questions

passing xml created using DocumentBuilderFactory as input to oracle stored procedure using java JDBC
and it is to be send using JDBC. Stored procedure in oracle database will contains two... passing xml created using DocumentBuilderFactory as input to oracle stored procedure using java JDBC  I want to send the xml as input parameter 

Programming Tutorials

Use DECLARE Statement in Procedure
illustrate an example from 'Use Declare Statement in Procedure'. To grasp this Example, we create a procedure 'abc'. The Query start with the BEGIN... Use DECLARE Statement in Procedure    

SQL Tutorial

SQL Out Parameter
; SQL Out Parameter allows the stored procedure to the pass data value ... from SQL Out Parameter .In this Example we create a procedure 'abc... the stored procedure to pass the value and pass back to the invoker. Create