« Return to Thread: Help: Connecting Aglet with database

Help: Connecting Aglet with database

by zuhra sofyan :: Rate this Message:

Reply to Author | View in Thread

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 : zuhra_sofyan@yahoo.com
Thank you before.

 « Return to Thread: Help: Connecting Aglet with database