aspose file tools*
The moose likes JDBC and the fly likes incomaptible types error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "incomaptible types error" Watch "incomaptible types error" New topic
Author

incomaptible types error

naveen vamsi
Greenhorn

Joined: Mar 21, 2013
Posts: 7
i am writing java c3p0 connection pool program, while compiling incompatible types error occuers

code:
import com.mchange.v2.c3p0.*;
import java.sql.*;
import javax.sql.*;
public class Connection
{
public static void main(String ar[])throws Exception
{
ComboPooledDataSource cp=new ComboPooledDataSource();
cp.setDriverClass("oracle.jdbc.driver.OracleDriver");
cp.setJdbcUrl("jdbcracle:thin:@localhost:1521:xe");
cp.setUser("naveen");
cp.setPassword("katta");
cp.setInitialPoolSize(5);
cp.setMaxPoolSize(10);
Connection con=cp.getConnection();//error occurs here only
System.out.println("*****connection"+con);
}
}

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39828
    
  28
Seems to be the same error as in this thread. I suggest you will have the same solution.
naveen vamsi
Greenhorn

Joined: Mar 21, 2013
Posts: 7
thank you . problem is solved
naveen vamsi
Greenhorn

Joined: Mar 21, 2013
Posts: 7
naveen vamsi wrote:thank you . problem solved
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39828
    
  28
You’re welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: incomaptible types error