hello:
I have a code in Java, using a mysql connection. While I used it as an standalone, it was ok, as usual, create the connection:
Class.forName(Variables.SQL_DRIVER).newInstance();
connector = DriverManager.getConnection("jdbc:mysql://" + url + "?user=" + usr + "&password=" + pass);
but now I've translated it into a web service, using this library "GLUE", and I get the following error:
electric.util.WrappedException: java.rmi.UnmarshalException: java.io.IOException
: no argument constructor is missing. java.lang.InstantiationException: com.mysql.jdbc.Connection
at electric.proxy.handler.Proxy.getCompatibleException(Unknown Source)
at electric.proxy.handler.Proxy.invoke(Unknown Source)
at $Proxy0.getLoginAuthenticationService(Unknown Source)
at Test.main(Test.java:27)
It sounds funny to me because Connection is an Interface... how come it wants to become "instantiated", is there a way around?
Thanks a lot.
Poeta.
Drop a visit to my site?