Help: Connecting Aglet with database
zuhra sofyan <[email protected]> Sat, 21 Apr 2007 22:55:14 -0700 (PDT)
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
Struggling for a month and after searching a sample for a good and easy way to connect an aglet to database, I cannot found it yet. Can someone mail me a sample of aglet program that work with database? FYI, I'm using ASDK 2, MySQL version 5.0.18-nt with mysql-connector-java-5.0.5. I've try it and the last message error I get is something like this: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1096) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:626) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562) at com.mysql.jdbc.Connection.<init>(Connection.java:491) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at watcher.WatcherWindow.data(WatcherWindow.java:617) at watcher.SampleWindow.handleButton(SampleWindow.java:271) at watcher.SampleWindow.handleEvent(SampleWindow.java:249) at java.awt.Window.postEvent(Unknown Source) at java.awt.Component.postEvent(Unknown Source) at java.awt.Component.postEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ** END NESTED EXCEPTION ** Please help me. I really need this for my project. You can mail and send the attachment to my email here : [email protected] Thank you before. -- View this message in context: http://www.nabble.com/Help%3A-Connecting-Aglet-with-database-tf3625508.html#a10123773 Sent from the MySQL - Java mailing list archive at Nabble.com. -- MySQL Java Mailing List For list archives: http://lists.mysql.com/java To unsubscribe: http://lists.mysql.com/[email protected]