SQLException: java.sql.SQLException: checkconnect.networkhost1

Matthew Cordes mcorde61 at maine.edu
Sun Feb 11 21:23:36 EST 2001


Are your database and webservers are different machines?  If so read a good
book about
applets.
----- Original Message -----
From: "Mark Molenda" <mark.molenda at eds.com>
To: "TDS Development Group" <freetds at franklin.oit.unc.edu>
Sent: Sunday, February 11, 2001 8:40 PM
Subject: [freetds] SQLException: java.sql.SQLException:
checkconnect.networkhost1


> I have a Java class that works very well when run as a Java Application.
> No java errors, no SQL errors etc..  If I run the same class as an applet,
> I get the following error.
>
> SQLException: java.sql.SQLException: checkconnect.networkhost1
>
> What could be up here?   I haven't even put the code in a browser yet, so
> the usual culprit (security manager) should'nt be the problem.
> Appletviewer pumps out this message every time, and I get no results.
>
> When I run the same class again without the applet class wrapper
> everything
> works.
>
>  The class (Mainframe.class) that works is just a java frame with the sql
> and a couple of awt lists or choice boxes.  When I run invoke it with the
> following applet is when I have a problem .
>
> import java.awt.*;
> import java.applet.*;
>
> public class Phone extends java.applet.Applet
> {
>    public void init()
>    {
>       MainFrame myFrame = new MainFrame("Phone app");
>       myFrame.setSize(700,400);
>       myFrame.setVisible(true);
>    }
> }
>
>
> I appreciate some help on figuring out what is going on. -Mark
>
> ---
> You are currently subscribed to freetds as: [mcorde61 at maine.edu]
> To unsubscribe, forward this message to
$subst('Email.Unsub')




More information about the FreeTDS mailing list