INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Please Help Error when doing handshake with database

Please Help Error when doing handshake with database

(OP)
Hi guys,
Iv'e encountered the following error when my midlet tries to connect to
a mimer database.  The problem is it works on my desktop machine but
mot my laptop, i get the following error:

com.mimer.jdbc.SQLException: Error when doing handshake with database
mlearning2 on host localhost using port 1360,
com.mimer.jdbc.SQLException: Could not receive data from server, java.io.IOException: error 10054
during TCP read

I have tried turning of my mcafee firewall, but it still does not work.


Thank you in advance

RE: Please Help Error when doing handshake with database

Hi.
In what environment are you testing your MIDlet? Is it perhaps the emulator supplied by the J2ME Wireless Toolkit, or is it an emulator supplied by a phone manufacturer?

When it comes to the latter, there may be some restrictions on what the emulator actually allows, which varies from emulator to emulator.

If you are testing the MIDlet in the Sun J2ME Wireless Toolkit, things should work well.

Some things to look out for:
- The MIDlet should have the javax.microedition.io.Connector.socket permission enabled. The following line should be present in the .JAD file:
MIDlet-Permissions: javax.microedition.io.Connector.socket
- If you are testing the application in a MIDP 1 environment, you cannot not expect things to work well, because support for arbitrary socket connections are not mandatory in MIDP 1 environments.
- If you are testing the product in the J2ME Wireless Toolkit, you are in fact testing the application against a regular database server on your laptop. You could test to connect to this database using any other Java based product to ensure that the server side is fine. If you are using Mimer SQL 9.2.4 (or later) you could use the DBVisualizer tool supplied with the product. Another way to test that the database backend is upand running is to issue the following or similar command (from the Windows command line):

java -classpath "c:\program files\mimer sql 9.2\mimjdbc3.jar" -ping jdbc:mimer://localhost/DBNAME

This would, provided Mimer SQL is installed on c:\program files\mimer sql 9.2 and the database is named DBNAME, pingtest the server to see if it is responding nicely.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close