Trouble with applet connecting through SQL Server - Please help!

From: Andrea Maschio (amaschio_at_mail.tim.it)
Date: 02/17/04


Date: 17 Feb 2004 02:59:25 -0800

I made an applet that connects through jdbc to a sql server. What's
strange, is that applet connects fine when runs through Jbuilder
Applet Viewer. But when it runs from Internet Explorer, Java Console
displays this message:

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Error establishing socket.

        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown
Source)

        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)

        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)

        at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown
Source)

        at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
Source)

        at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
Source)

        at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)

        at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)

        at java.sql.DriverManager.getConnection(Unknown Source)

        at java.sql.DriverManager.getConnection(Unknown Source)

        at graficojava.DB.connect(DB.java:38)

        at graficojava.Graf.jbInit(Graf.java:359)

        at graficojava.Graf.init(Graf.java:232)

        at sun.applet.AppletPanel.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

THe applet is runned on the SAME machine, anyway. I disabled proxy in
internet explorer.

May someone give me some hint?

Thanks

Andrea Maschio



Relevant Pages

  • Re: IE6
    ... > asking me to download the Java Virtual Machine. ... > in Control Panel and Internet Explorer is checked. ... > said "Your browser understands the applet tag, ... > I don't want to install the Microsoft Java Virtual Machine, ...
    (comp.lang.java.programmer)
  • IE6
    ... Internet Explorer to 6. ... asking me to download the Java Virtual Machine. ... said "Your browser understands the applet tag, ... I don't want to install the Microsoft Java Virtual Machine, ...
    (comp.lang.java.programmer)
  • Re: Upload Applet
    ... Microsoft Internet Explorer JVM 1.1. ... Created Comparable.java ... 7.Created Test Applet ... Permanently persist java archives for faster loading ...
    (comp.lang.java.programmer)
  • Re: System.Windows.Forms.UserControl as JPanel parent?
    ... > I'm trying find a way to deploy a J# application in Internet Explorer. ... > I could use an Applet to do this, but then I would also need the ... > J# Browser Control on each client, which is not practical in my case. ... have suggested WinForms interoperability with Swing to J# team for sometime ...
    (microsoft.public.dotnet.vjsharp)
  • Applet not found by IE6 under XP (ClassDefNotFound)
    ... I have a peculiar case where an applet failes to load - Internet Explorer ... On a Java development machine, IE6/XP works find BUT if I go to ...
    (comp.lang.java.programmer)