UnknownHostException

1 view
Skip to first unread message

mark

unread,
Aug 29, 2010, 5:24:43 PM8/29/10
to jiql
Hello,

When I attempt to execute an SQL statement, I get a
java.net.UnknownHostException error. The events that lead up to this:

java.net.Socket.<init>
java.net.InetAddress.getAllByName
java.net.InetAddress.getAllByNameImpl
java.net.InetAddress.lookupHostByName
java.net.UnknownHostException

The code that generates this is pretty much like the examples given on
the jiql webpage:

String loc = "jdbc:jiql:https://test.appspot.com/jiqlservlet"; //this
is not the actual address I connect to

Properties props = new Properties();
props.put("user","admin");
props.put("password", "jiql");

Class c = Class.forName("org.jiql.jdbc.Driver");
Driver driver = (Driver)c.newInstance();

Connection conn = null;
conn = driver.connect(loc,props);

Toast.makeText(getApplicationContext(), "Connected to
Server",Toast.LENGTH_SHORT).show();

Statement Stmt = conn.createStatement();

Stmt.execute("INSERT into users (username,password,email) values
('test','test','test'");

conn.close();

thanks!
Reply all
Reply to author
Forward
0 new messages