aspose file tools*
The moose likes JDBC and the fly likes JDBC -- having trouble connecting to a remote database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC -- having trouble connecting to a remote database" Watch "JDBC -- having trouble connecting to a remote database" New topic
Author

JDBC -- having trouble connecting to a remote database

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
I have the following code that's trying to establish a connection to a remote database. It's throwing an exception, and I can't figure out why.


Can anyone explain to me why I'm getting this exception?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

You're not running this code from an applet, are you? Because applets only allow very little; there is no access to the file system, and no networking other than to the server the applet is retrieved from.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
Rob Spoor wrote:You're not running this code from an applet, are you? Because applets only allow very little; there is no access to the file system, and no networking other than to the server the applet is retrieved from.


No, this application is on Google Apps.
Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
It turns out that Google Apps doesn't support JDBC, so this problem is unsolvable. I will find another way to deploy my application.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDBC -- having trouble connecting to a remote database