Skip to Content.
Sympa Menu

freetds - Re: SQLException: java.sql.SQLException: checkconnect.networkhost1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Matthew Cordes" <mcorde61 AT maine.edu>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: SQLException: java.sql.SQLException: checkconnect.networkhost1
  • Date: Sun, 11 Feb 2001 21:23:36 -0500


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')





Archive powered by MHonArc 2.6.24.

Top of Page