my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC -- having trouble connecting to a remote database
 
Similar Threads
strtus 2 application error
Struts2 :: ognl.ParseException for special request parameters starting with a . (dot)
Need help for Displaying in jsp
FreeMarker template error!
nullpointerException