File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 103
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: 19541
    
  16

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: 103
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: 103
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
nullpointerException
Need help for Displaying in jsp
FreeMarker template error!
Struts2 :: ognl.ParseException for special request parameters starting with a . (dot)
strtus 2 application error