Simple (stupid) question...

Hello everyone! I have what I hope is a really dumb question... I'm trying to use JDBC through an applet and keep getting the following SQLException after trying to use the DriverManager.getConnection call:
SQLState: 08001
Message : No suitable driver
Error # : 0In order for an applet to use JDBC, does some sort of driver have to be installed on the client? or is it most likely some sort of logic error in my code? I copied the same logic from a .java application I have written that successfully connects to and queries the database, so I afraid that it may be something to do with the client-side of the fence, but in all reality, I'm clueless! Any advice would be much appreciated.
Thanks,
Jim H.

There are two ways of connecting to a database on the server side.
1. Untrusted applets cannot touch the hard disk of a computer. Thus, your applet cannot use native or other local files (such as JDBC database drivers) on your hard drive. The first alternative solution is to create a digitally signed applet which may use locally installed JDBC drivers, able to connect directly to the database on the server side.
2. Untrusted applets may only open a network connection to the server from which they were downloaded. Thus, you must place a database listener (either the database itself, or a middleware server) on the server node from which the applet was downloaded. The applet would open a socket connection to the middleware server, located on the same computer node as the webserver from which the applet was downloaded. The middleware server is used as a mediator, connecting to and extract data from the database.
3.
(there is always one...) is to avoid to have to open a socket connection on your webserver as this could be seen a security thread and then disabled by firewalls. Instead you could write a "JDBC-driver" servlet and therefore would use only http requests. XML would be the first choice for the data going back-and-forth between your applet and the servlet.
Bye

Similar Messages

  • A simple, but slightly stupid, question...

    Hi all
    How do I copy from my IPOD to my computer hard drive.
    Thought it was just a drag and drop, but that doesn't seem to be doing the trick.
    Thanks for the help.

    Remember there are no stupid questions, only stupid answers.
    I use Yamipod to do this. There are other programs but I think Yamipod is best
    http://www.yamipod.com/main/modules/home/

  • A very simple, very stupid question

    When I do screen grabs (shiftctrl+apple4) where do those pictures go??? I can't find them anywhere though I do hear the "camera snap" sound. Thank you for any help you can provide.

    Screen shots are saved as .tiff files on the desktop. If you want to put the screen shot in the Clipboard, rather than create a file, hold down the Control key when you press the other keys. You can then paste the picture into a document.
    You can also take pictures of the screen using the Grab application (in the Utilities folder).
    (And that was not a stupid question!)

  • Possible Stupid Question on Aliases

    We're on iMS/SunONE 5.2. What I've yet to figure out is how to do something so simple that I may be overlooking the obvious solution. This is to duplicate what /etc/aliases does in sendmail. I.E take an email address which does not match a particular existing user and deliver that message to the specifed recipient. There are two aspects of this which I need to address.
    1) Delivery of inbound mail if account is local. For example... [email protected] to [email protected] I think I understand this as I just need to add an alternate address for bob.jones into the ldap. Not centralized but the concept makes sese.
    2) Forwarding of inbound mail to other mail servers. For example [email protected] to [email protected].edu where our.listserv.edu is handled by a seperate mail server. In this case the /etc/aliases file sendmail uses makes this dirt simple. Unfortunately i've poured through the iMS docs and have yet to find how to do this. It may have to do with terminology as I'm not sure what iMS calls this type of proceedure. We have many of these (hundreds) and not having a centralized way of handling these would be very very difficult. What is the solution here?
    Thanks,
    -Patrick

    Not a stupid question at all, I fought with the same concept coming from sendmail. The concept is that it's simple to redirect mail using the aliases file (/etc/mail/aliases) and it only took one line to do it.
    Under iMS you need to expand your mind and accept that ldap is <insert deity> and everything is done differently.
    Alias entries need to be adapted to one of -
    individual accounts (mailalternateaddress)
    or
    a new ldap entry with it's forward settings going to your other addresses.
    or
    a mail list, for local one to many distributions.
    This applies to direct ldap and dirsync mode, however if you're running in dirsync mode, ensure you run the dirsync after making changes.
    Finally, if you create an aliases file in -
    <msg-home>/config/aliases
    and you are thorough on the addresses, they still work.
    Just my experience, search for "aliases" in the forum.
    Doug

  • What is workflow minimum? (stupid questions from rookie)

    Guys,
    we are evaluating Oracle workflow. If you could help us to answer some of the stupid questions we have - it would help us a lot.
    1. There are two parts of Workflow installation - DB and midtier. Is it possible to use workflow without installing midtier? Our understanding - midtier is used for providing web access for the users to the workflow engine: they can approve/reject, check workflow status etc. But is it possible to perform all these tasks via email only or by building some simple user interface in our existing webtier (which is not based on Oracle webserver, though is using Oracle for the DB layer)
    2. We were not able to configure other schema to have access to workflow successfully - though it looks like this schema has all possible privs set. If we are trying to call wf_engine.LaunchProcess - we are getting privs error. If we call it from the workflow schema - everything is working fine. Does anybody have any successful experience in doing this?
    Thanks a lot everybody for help!

    Hi,
    I do not consider myself an expert at Workflow, but I will attempt to answer your questions (which are not stupid questions by any means)...
    I will answer question 1 in two parts as it is essentially two questions.
    1. "Is it possible to use workflow without installing midtier"
    Workflow is a module inside the Database that is an optional installation.
    No middle-tier needs to be installed as such.
    The middle-tier I believe you are referring to is the Workflow Monitor, this is viewed by configuring either the:
    - Database HTTP server DAD to display the Workflow Monitor
    or
    - Application Server HTTP Server DAD to display the Workflow Monitor
    Configuring the Workflow Monitor for the Administrators is a very good idea.
    Normal users do not normally need to view this page, but read-only acess can be setup (ie. the users connect as a user without the ADMIN role)
    1. "But is it possible to perform all these tasks via email"
    Using Workflow Notifications, emails can be sent to users where they can approve/reject.
    2. We were not able to configure other schema to have access to workflow successfully
    I am not sure why you are not successful here... have you granted execute on wf_engine.LaunchProcess to the other schema?
    Cheers,
    Degan.

  • Stupid Question Help needed....

    Hi Folks...
    I have a very Stupid Question....
    but i think you Folks here can help me Quick...
    Here is what i want to do...
    01 class ourCar {
    02
    03 public String color;
    04
    05 public void PrintValue(String YourValue){
    06      System.out.println(this.YourValue );
    07      
    08      }
    09 }
    10
    11 public class myApp {
    12 public static void main (String[] args) {
    13
    14 ourCar Car1;
    15 Car1 = new ourCar();
    16
    17 Car1.color = "red";
    18 Car1.PrintValue("color");
    19 }
    20 }
    So the Compiling Problem starts at 05 it seems i cant
    get Parameter Names with Strings... so what i want to do is...
    type
    Car1.PrintValue("color");
    and it should print out red
    i Know i could write
    System.out.println(car1.color);
    But i want to do it the other way...
    a other thing would be to make
    myVar = "car1.color"
    and then run
    System.out.println(myVar);
    but these is also not working...
    any idears?
    greetings from munich
    peter

    but where is the Thinking Error i have?
    KJKrum wrote i should not use the language this way...
    what would be the right way for doing a job like this?You have a very simple example. Reflection which is what both threads suggest as a solution is complex and should be used with caution because of the performance and maintenance problems that can arise.
    So one has to wonder, for such a simple problem, does it not suggest that perhaps your design is not correct and if you took another look at it you could come up with a solution that is more appropriate and leads to code with is much simpler.
    I believe that was the intent of the suggestion.
    For example if you really must access 'attributes' via a key then have you considered that perhaps you don't have attributes but rather 'properties'. And if so there is already a Properties class. And if the Properties class is a little to constraining then the Hashtable might also fulfill what you are trying do. Keep in mind that these depend on whether the best design for your project really requires accessing values via a string.

  • A really stupid question from newbie...

    hello all,
    i am very new to java and i am trying to build a j2ee application...
    rite now....i need to let my app communicate w/ an outside program thru' XML..
    i had just learnt many thing about java w/ xml and i decided to use the XMLEncoder... it seems quite simple to use...BUT i have no idea on how to send/receive these XML files...i had thought of using socket connection, but i just found out that an EJB wouldn't allow socket networking... i bet this must be quite a stupid question coz i found nowhere teaching me this...=P
    if u know about this, pls point me to some relevant docs / sites....i am anxious to learn about it...
    thx so much,
    karloogunna~

    hello maesj, rune, and others,
    thx alot for your advice...
    and here's the environment i am working in:
    OS: w2k
    JDK: 1.4.1.01
    j2ee: 1.3.1
    jboss: 3.0.2
    i am using flash as my UI, so i need communication
    between the j2ee app and flash.
    the data transfer involves a number of arrays of
    objects (each object w/ a list of attributes...) so, i
    think using XML as data-exchange is quite suitable (am
    i wrong on this??)I don't know the first thing about Flash, but using XML as a means for exchanging data seams like a good idea, for the scenario you described.
    >
    and i am reading about the message-driven beans, i see
    that they got a function onMessage() from where i can
    get the XML strings (?), but i don't know how i can
    feed these strings into this JMS from flash...do i
    need to write a small java program on the client
    side?I haven't that much experience with Message Driven Beans. What I do know is that they employ the Java Messaging Service (JMS). If you write a small client appplication with JMS support... you might be close.
    >
    also, i am not sure if i can send out XML strings
    through the message-driven beans, i am reading on the
    JMS...it got the MessageProducer, MessageConsumer,
    MessageListener, and MessageSelector....should i be
    using this? or can i use this together with the
    message-driven beans??
    In a Messaging system you will need message producers, and message consumers. To enable two-way communication, you can setup both the EJB and the client to handle both. When a message arrives at the consumer (or subscriber if you like), the JMS Service invokes the onMessage method. So you should implement your logic in the onMessage method, for example inspect the XML content, and act upon its content.
    i am very sorry for my disorganized questions...(i
    used to do low-level programming =P)
    and really thank you for your advice!!!!
    No problem, the amount of information to read can be quite overwhelming. Using JMS is just a suggestion, and might be considered overkill for your application. If you're using an IDE, like Sun ONE, creating a message driven bean is easy, and can be tried out, without too much hours passing.
    Kind Regards,
    Rune Bj�rnstad.

  • Hi! This might be a stupid question, but I just bought an IPod G5 60 GB. When you firstconnect your IPod you have to setup your ID. I'm using my brothers computer, who has an IPod too, so now I'm wondering when I set up my ID with his Itunes does his Ip

    Hi!
    This might be a stupid question, but I just bought an IPod G5 60 GB. When you firstconnect your IPod you have to setup your ID. I'm using my brothers computer, who has an IPod too, so now I'm wondering when I set up my ID with his Itunes does his Ipod still work with it??? Or would his ITunes just see my IPod? Or does his Ipod ID change to my ID?
    Or does it work without any problems, to setup two IDs on the same computer??
    Thanks!

    Hi!
    This might be a stupid question, but I just bought an IPod G5 60 GB. When you firstconnect your IPod you have to setup your ID. I'm using my brothers computer, who has an IPod too, so now I'm wondering when I set up my ID with his Itunes does his Ipod still work with it??? Or would his ITunes just see my IPod? Or does his Ipod ID change to my ID?
    Or does it work without any problems, to setup two IDs on the same computer??
    Thanks!

  • Really stupid question - Migrating from 6i to 11g

    Hi all,
    I'm a developer that have been working with oracle since Forms 3, right now I use Forms 6i and I would like to know what I need to use Forms 11g. I understand this new environment is web based, but to start developing and deploying, what I need? for example if I buy the Oracle Forms & Report 11g, I also will need the OAS? or just with Forms and Report I could deploy (somehow) the application?
    Please don't flame me, I just want to understand how this works now.
    Best Regards

    As my old college profession used to say - "The only stupid question is the one that doesn't get asked!" Forms 11g only supports web deployment. This means you will need the OAS with the Forms and Reports Services installed as well. Typically, the setup is three tiered ( 1 server = Database, 1 server = Application Server, 1 server = Infrastructure server ). You don't have to set up the technology stack multitiered - all three could reside on the same server or you could have the all three on the same machine but is not recommended. I would at least have the database on a server seperate from OAS.
    Here are a few links to get you started.
    Oracle Documentation
    * Check out: Development Tools - Oracle Forms, Middleware - Applications Server - Oracle Fusion Middleware 11g and Middleware - Data Warehousing and Business Intelligence - Oracle Reports
    Since you will be upgrading from Forms 6i to 11g, be sure to visit the Oracle Forms-Upgrading Forms 6i to Forms 11g documentation.
    BTW, welcome to the forums!
    Craig
    If a response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on May 6, 2010 2:09 PM

  • Stupid question re iTunes match and family sharing

    So, here is my dilemma...we have a large family and a ton of os devices--iphones, iPads, apple tv's, iMacs, MacBooks, etc.  Up until now, we have set everyone up on the same apple id, which has been crazy--my and my wife's phone ringing with the kids' FaceTime calls, me not being able to sign into iTunes match because there were too many devices associated with our account, and so on.  Now, wit the upgrade to iOS 8, my wife's phone is ringing when I receive calls and vice versa.  So, I was looking into the family sharing, but am not sure how that affects iTunes match.  I want to keep my iTunes match, because I have a huge music library and enjoy being able to listen to my music anywhere.  I guess my questions is, what is the best way to set up my accounts now?  Keep my apple id for my iOS devices, and set everyone else up as a "family member" under sharing with them having their own apple id's?  If so, what does that do to my iTunes match library?  can I keep iTunes match and still have family sharing on?  I don't care if I can share my music library with everyone in my family, but what I do care about is that I don't want to lose my access to iTunes match and my entire library, some of which consists of songs downloaded 7 years ago.  I know it's a stupid question, but as much as I've read and searched, I still haven't found the answer to my question.  Any help or advice would be greatly appreciated.  Thanks.

    Sounds very bad... you can try this, create a account for each member of the family, delete all products (leave all your devices as new) and put the accounts in the devices again, for example, this iPad is from the kid, put the Apple ID of the kid in her iPad, after, this iPhone is from your wife, put the Apple ID from your wife in her iPhone. But remember, the purchases save in the Apple IDs when the family use before, for change the purchases contact with Apple.

  • This is a stupid question but I needed to ask because I don't want to go there and not being able to buy it, but can I get the iPhone 5 brought straight there when I go to an apple store?

    This is a stupid question but I needed to ask because I don't want to go there and not being able to buy it, but can I get the iPhone 5 brought straight there when I go to an apple store?

    And I meant go to the apple store physically without preordering it online, and I meant the Southampton one. So could I just stroll in apple store and buy a iPhone 5 in Southampton apple store and buy the iPhone 5 straight away? Because I didn't want to have to wait? I just want to go in and buy it and go out with it, if you guys get what I mean? And felipeV if it is in stock could I just buy it and leave with my iPhone 5?

  • Probably a stupid question about cropping a video..

    OK, so I shot an interview with a black background and once I went to edit it, I noticed a red object in the far right corner. Is there a way I can add black over this object or crop it out? I know this is a stupid question, but I'm new to video and editing in general so I thought it wouldn't hurt to ask.

    There are several ways to accomplish what you want.
    KGCW has talked about the Crop Effect.
    Depending on exactly where the object is, and whether the camera was locked down, it might be possible to duplicate your Clip, place it above your initial Clip, then offset it a bit (Motion>Position), with the Fixed Effect>Motion>Position, and then apply the Garbage Matte to that offset duplicate, effectively Cropping out everything, but a small "patch" from the existing background. Note: if the edges of that Garbage Matte are too hard for you, you could create a soft-edged Track Matte, and use that to hold out the rest of the offset duplicate.
    Another method, and depending on where, and how large the offending item is, would be to go to the Fixed Effect>Motion, and use Motion>Scale to increase the size of the Clip (do not do too much Scale, or quality will suffer). You might also need to do a bit of Motion>Position, to get that red object behind the Video's Frame Size. This will effectively Crop the object.
    Good luck,
    Hunt

  • Probably a stupid question

    just got a macbook pro and want to be able to use the webcam to chat with my hubby on his PC when he is out of town on business. he does NOT have a webcam so we need to know what kind he can get that will allow us to talk and see each other. i know this is probably a stupid question but we are new at this.....

    Welcome to Apple Discussions, bevs
    Any PC webcam that is compatible with your hubby's PC system, (Windows?) OS, and chat software will work. Best suggestions will come from the "Help" pages for his chat applications software.
    For you to be able to video chat with your hubby, it is important that you choose applications software that offers "cross-platform" (Mac to PC) video chat capability. There are several choices available, but Skype probably currently offers the best balance between ease of use and reliability in free cross-platform video apps.
    Whichever apps (and camera) you and hubby choose, everything must be compatible with your respective computers and operating systems. I mention this because your posted system info shows macbookpro   Mac OS X (10.0.x). Mac OS X (10.0.x) is now five major upgrades old. No MacBook Pros shipped with Mac OS X (10.0.x), so I expect that your system info just needs to be updated. However, if I am wrong, you will need to upgrade your Mac OS to use Skype, because Skype's System Requirements show you must use Mac OS X v10.3.9 Panther or later. I do not know any video chat apps that work with Mac OS X (10.0.x).
    In order to use Skype, both you and your hubby will need to download and install your respective versions of the Skype software. Skype offers free AV connections between computers (although its website seems to concentrate on its for-fee telephone connection service,) it is easy for most users to configure and set up, and it offers cross-platform audio with its video chat. (Not all video chat apps offer simultaneous audio.)
    Your iSight will work with Skype, as will most PC webcams for your hubby. For more information now, or for help if you encounter problems using Skype later, Skype offers comprehensive support that includes a dedicated Skype Forum as well as technical support directly from Skype in addition to its online FAQ and Knowledge-base.
    If you decide to go with Skype, your hubby can get Skype-specific suggestions for PC webcams here.
    Please let us know if you need any other info before you can mark your question "Answered." We will be happy to try to offer more focused suggestions for your specific questions.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1)  External iSight

  • Probably a stupid question about upgrades...

    I originally bought Adobe CS3 Web Premium and upgraded to CS5.5 Design Premium last year.  I'm wondering if I upgrade, will my price be based on the CS3 license or the CS5.5 upgrade...?
    I'm guessing it will be based on CS5.5, but I want to make sure.
    -A. Ka

    There are no stupid questions!
    Regardless of whether you got to CS5.5 via upgrading to it or by originally licensing CS5.5 is irrelevant in terms of the upgrade price to CS6 as well as the media you use for the upgrade.
              - Dov

  • Probably a stupid question on heart rate sensor

    Can i use the Nike (or better the Polar Wearlink) heart rate sensor together with the Nike+ shoe sensor ? Can the ipod peering with two bluetooth sender ?
    Please do'nt hit me, about that stupid question ..

    According to the Polar web site it is only compatible with the 5th generation iPod:
    http://www.polarusa.com/us-en/aboutpolar/press_room/press_releases/Nike_and_Polar_introduce_heart_rate_training_to_ millions_of_Nikerunners

Maybe you are looking for

  • How to enabe RSS in Cisco enic using UCS?

    I need to enable RSS (receive-side scaling) on the enic interfaces in UCS. I followed the document at this link. However, all the interrupts are still being delivered on only one CPU. There are 8 CPU queues with 7 of them always empty. "ethtool -k" a

  • Revenue a/c

    HI, when we create billing accounting document gets generated for this we would have defined g/l accounts in VKOA setting but 1. how posting key gets determined debit or credit for g/l account (ie., say How modvat suspense/ manufacturing sales revenu

  • EXPORT using OEM10g

    Hi All, I am trying to export(Instead of running a daily backup using RMAN, I want to schedule a daily export) a Oracle 11gR2 non-ASM database to ASM file system that we have on the server. Basically I want to use ASM file system as the backup direct

  • Imovie, add clickable link to title

    Want to make a clickable link in the title on iMovie, using MacBook Pro, went to substations and make link also add link but not getting it added? suggestions...

  • Can't create new file automator action

    I'm trying to create a new Automator action that prompts the user to choose a new file. The Action is similar to the "Ask for Finder Items" actions except that it asks the user to choose a new file and not one that already exists. I chose to write it