File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

incomaptible types error

 
naveen vamsi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems to be the same error as in this thread. I suggest you will have the same solution.
 
naveen vamsi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you . problem is solved
 
naveen vamsi
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naveen vamsi wrote:thank you . problem solved
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You’re welcome
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic