Can signed applet taked to database directly

Hi All,
I have a signed applet download from the web server. It works well to write files to client machine.
My question is that can this applet talk to database which the ip address is different with the web server.
Thanks
Scott

I am trying to connect to an Access database from a signed applet. Both the applet and database are in the local machine. I am getting an exception from the security manager. Do you know how can I get permission from the security manager for my applet to access the database ?
Thanks

Similar Messages

  • How can we update procedure in Database Directly

    Hi Experts
    how can we create a stored procedure in a database directly. for example I made a crystal report with a demo databse, then I want to run that report on production database. for that I have to create stored procedure manually. I want that When I run the report It automatically create stored procedure . or other simple way to create stored procedure
    Regards
    Gorge
    Edited by: Gorge Ance on May 13, 2009 8:09 AM

    Hi
    If your field match what you have in demo and production ,all you need to do is run that stored procedure pointing to correct database .So you probable have to change alter to create .
    When you go to sql server , you have a choice to run a query of stored procedure  against the particular dtabase while you use query analyser .
    In crystal report , you have to manually change the datasource and update store procedure.
    Your report will now point to production database and point to correct stored procedure .
    Hope this helps
    Bishal

  • Can I connect to SAP database directly with ODBC?

    I need to read data from SAP and write them into ms sqlserver. I wrote a RFC in SAP and used VB.NET to call RFC. I wonder that the RFC efficency is very slow while reading a great lot data. RFC also cannot support complex condition string, and it cannot fetch my data flexibly.
    I found that the user who was included in a user group "db<sid>adm" could connect to db2 udb with ODBC in VB6.0 or VB.NET. I also can use the SQL sentence to get data flexibly.
    Please tell me whether I can use this user to read (just using select sentense) data from DB2 UDB directly, or whether I can use the newly created user to get data. Will this method cause any problem ?

    > Will this method cause any problem ?
    Pretty likely: yes, it will.
    You may want to read this thread Retrive Data From SAP Using C Language first (and the blogs I refered to in it).
    What it boils down to is: you're trying a super-low-level access to data in order to perform a high-level business data exchange.
    You could as well hex-read the data files of the database or the blocks from your hard disks.
    There are a bunch of options to remote access data in SAP systems and maybe your RFC can be tuned to better support your needs.
    But don't move over to the 'dark side' of direct database access
    regards,
    Lars

  • WHY can't I access my database from an applet???????????

    The security code won't let my applet access its own database (from its own server)..
    I'm using getDocumentBase()
    to try and tell it that it is my own damn file..
    I keep getting :
    java.securityAccessControlException: access denied <java.util.PropertyPermission jdbc.drivers write>
    ...etc.
    This applet crap is really starting to piss me off. I can see why they came out with JSP.
    All I need to do is access my database, update it, etc. It kind of defeats the purpose of being able to do jdbc from applets if you can't even access the database on your own damn server.
    If you all don't have a clue, I'm freakin switching to PHP--I'm tired of this crap-I was thinking Java was a damn good language until I hit applets.

    The simple answer to your question is: Because of security concerns.
    The somewhat longer answer is that directly accessing a database from an applet is generally not a good idea. A lot of security-critical code like DB username/password must be hidden in the applet which potentially can be downloaded (and disassembled) by anyone that hits your webpage. Maybe you do an intranet solution with trusted users but that is not what applets were originally designed for.
    The clean way is to make your applet talk to a servlet that talks to your database.
    If that is not the way you want to do it, make sure that all client policy files (yes, on the browser machine) contain the permissions that your applet needs.

  • Cannot connect to database in a signed applet

    Hi i have an applet that connects to a database and does stuff. However when I move the applet to a different server i get errors. I did sign the applet but i still get
    java.security.AccessControlException: access denied (java.net.SocketPermission <server> resolve)
    Do I have to explicitly allow the applet to open a socket to this server, do I have to set up policy files and how exactly is this done? Please explain in detail
    Thanks

    First, don't use applets to connect to the database directly.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file using doprivileged
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • I am unable to sign into my account through Adobe Elements 12. I can sign in on Adobe's website, and through Revel online, and through my smartphone, however when I try to sign in through Adobe Elements 12 directly, the hourglass never stops turning, and

    I am unable to sign into my account through Adobe Elements 12. I can sign in on Adobe's website, and through Revel online, and through my smartphone, however when I try to sign in through Adobe Elements 12 directly, the hourglass never stops turning, and turning.

    Hi,
    Have you tried working through this document - it does apply to Elements as well.
    Sign in, activation, or connection errors | CS5.5 and later
    If you still have problems you may need to contact the Adobe activation team - see the "Still need help?" link at the end of the document.
    Good luck
    Brian

  • Can a signed applet run classes from disk?

    Hi all,
    I have a signed applet jar and a signed jar file somewhere on disk (I can ensure the jar file is available on client's machine before i run the applet). My applet doesn't let me have file io access from the classes in the jar file on disk. It gives the following exception:
    java.security.AccessControlException: access denied (java.io.FilePermission C:\test.jar read)
    However I do have file io access from classes in the applet jar itself. Both the jar files are signed.
    Is there any way to get around the plug-in security in this case?
    Using installed extension (jar/lib/ext) is not an option, unfortunately.
    Any help will be appreciated.
    -Jas

    Is it not the same problem of JavaScript which calls Java ?
    Harmemejer posted : http://forum.java.sun.com/thread.jsp?forum=63&thread=524815 (second post) ???
    Hope it helps
    Rafax.

  • Can i call signed applet from jsf page in sun studio creator

    Hello javites,
    I want to know whether i can call signed applet from jsf page in sun studio creator. If possible, how do i go about it.
    Thanks.

    This tutorial may help:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/applet.html?feed=DSC

  • Not Signed Applets can connect to another machine?

    hi, guys,
    I developed a java applet, which will connect to different machine.so the local machine will grant the applet some permissions.
    I did not use signed applet and want to make thing easier.
    In the policy file: I add
    grand {permission java.security.AllPermission };
    It works.
    but when I want to change to:
    grand codebase "http://www.xxx.com" {permission java.security.AllPermission};
    It does not work.
    Can anybody help me to solve this problme?
    Great thanks

    grant,not grand
    Also include the ipaddress, like 234.56.78.89 of www.xx.com

  • Signed applet can't read image file..

    Hello
    My English ability is very poor.. sorry
    I make a signed applet
    and I open Internet Exploere
    I connect to my web page
    when I connect to my web page
    my signed applet upload "c:\blahbalh...\image.gif" automatically
    but It's not work
    java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\krict\LOCALS~1\Temp\Hnc\BinData\EMB00000cac2143.jpg read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at EchoApplet.onSendData(EchoApplet.java:61)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    signed applet can't not read file..
    how can I solve my problem?

    Trace please.
    http://forum.java.sun.com/thread.jspa?threadID=656028
    Maybe some relevant code
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged

  • How can i use the commapi in an signed applet

    I have a simple code of listing all system ports,
    the code works in a simple program
    but when I use it in a signed applet i have this error :
    java.lang.NoClassDefFoundError: javax/comm/CommDriver
    Thank you for your help

    Did you include the comm api jar file in the archive tag of your applet tag?
    something along the lines of:
    archive="myapplet.jar,commapi.jar"
    and make sure it is deployed in the same directory as your myapplet.jar.

  • TS3103 mail just stopped connecting yesterday morning.  It was up and connected and then just stopped.  I have deleted yahoo and iCloud accounts and added them again.  i can sign in directly to yahoo and iCloud but Mail will not connect.  any advice?

    MacMail stopped connecting yesterday morning.  It was up and running and then failed and I have not been able to connect to yahoomail or icloud since. i have internet connectivity and can sign on to both yahoomail and icloud thru Safari.  I have deleted the mail accounts and readded.  still cannot connect.  Any advice? 

    I feel for you bro i had this same BS problem only a few days ago. I must have spent about 5 hours in total trying to fix it and this included perusing these forums for an answer of which none of the 'solutions' worked, i tried using it on other PC's of which none of them it worked. Tried sw reinstallations, SP/2 reinstallations/removals, hardware changes to USB blah blah nothing worked and its's not like i don't know jack about computers because I do.
    Your even lucky because in my case all that was required was the latest FW upgrade to make my player COMPLETELY UNRECOGIZABLE by both the FW installation program and WMP0 hence I couldn;t even downgrade.... I removed the FW thinkin it was corrupt as exactly what you did but because of Creatives wonderful TQM I couldn't even put different FW on.
    In the end I just sent it back for a return but now I'm kinda regretting doing so as reading these forums shows that there are 0 issues with this player that Creative simply overlooked and sooner or later I might get with one of them (headphones anyone?!). If the next one is a dud I may wait for the new iRi'ver h0 or somrthing.

  • Signed applet don't work on XP

    Hi,
    I'am currently working on a point-of-sale (POS) using windows XP/Firefox and a linux apache/jboss server.
    I have developed a dynamic windows library in order to use an industrial printer connected to the POS to perform some printing without confirmation of the customer.
    The POS is under Windows XP SP2 and use Firefox 2.0.0.11/JRE 1.5.0.14.
    This dll is used by a signed applet located on the apache/jboss server.
    The applet is correctly downloaded by the client, but normally i have to wait for the certicat authentification windows appearing and for confirming that i want execute the applet. And instead i have a java exception :
    security: La v�rification du certificat � l'aide des certificats AC racine a �chou�
    security: Aucune information d'horodatage disponible
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: L'utilisateur a refus� les droits d'acc�s au code
    basic: Taille de cache du chargeur de classes courant : 1
    basic: Termin�...
    basic: Jonction du thread d'applet...
    basic: Destruction de l'applet...
    basic: Elimination de l'applet...
    basic: Sortie de l'applet...
    java.lang.ExceptionInInitializerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.C:\Program Files\BICImpression\impression_api.dll)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkLink(Unknown Source)
         at java.lang.Runtime.load0(Unknown Source)
         at java.lang.System.load(Unknown Source)
         at applets.impression.Impression.<clinit>(Impression.java:38)
         ... 11 moreand then the certicat authentification windows appears but it's too late, the applet won't never execute ...
    the apache/jboss server is accessed via some gateway, firewal, ... tha t i can't control
    the apache jboss/server on my own PC is accessed directly :
    What is amazing, is that work fine with my own professionnal PC on W2000 SP4, with JRE1.5.0.14 and Firefox 2.0.0.11 :
    when I look in the java console, the java freeze until i have answered this java security window (certicat authentification windows). And when i answered "run" no problem the applet makes her own job.
    here is the code when it works :
    security: La v�rification du certificat � l'aide des certificats AC racine a �chou�
    security: Aucune information d'horodatage disponible
    basic: Plugin modality.pushed
    basic: Modalit� empil�e
    basic: push javax.swing.JDialog[dialog0,379,296,519x323,layout=java.awt.BorderLayout,modal,title=Avertissement - S�curit�,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,3,22,513x298,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
    basic: Chargement arr�t�...
    basic: Arr�t de l'applet...Conclusion
    POS : Win XP SP2, JRE1.5.0.14 (i tried 1.5.0.6 and 1.6.3 the latest), Firefox 2.0.0.11 (I tried 2.0.0.0 and 3 beta2 don't work anyway)
    my own server/client : W2000 SP4, JRE1.5.0.14, Firefox 2.0.0.11
    Linux server : RHEL4
    It works with IE on the POS with the linux sever but it's not the selected browser.
    It works with IE on the POS with my own server.
    It works with Firefox on the POS with my own server.
    It works with IE on my own server with the linux sever but it's not the selected browser.
    It works with IE on my own server with my own server.
    It works with Firefox on my own server with the linux sever.
    It works with Firefox on my own server with my own server.
    If you have some idea to make it work i'm you're buyer !!
    Thank a lot for reading this, and i apologize for my poor english ...
    greetings,
    Benoit
    Edited by: bendur on Feb 29, 2008 3:49 AM

    Ok I have found my problem :
    On every web pages, we have defined some inactivity timeouts.
    On my own server I have disabled these timeouts but not on the distant timeout.
    And it seems that the timeout (defined in javascript ont he web pages : 3s) has a very bad influence on the launching of my applet ... only with firefox (with IE and Opera no problem)
    My problem is anwsered but the problem keep alive for firefox ...

  • Classloader caching in signed applet is very slow and weird

    I have a signed applet running in the 1.4.1_01 plugin environment, and
    I'm getting the following kinds of messages when I use debug mode 5 in the console:
    Connecting http:[myserver]/someclass.class with no proxy
    Connecting http:[myserver]/someclass.class with cookie "JSESSIONID=..."
    Sometimes, the classloader will say:
    WARNING: Unable to cache someclass.class
    Moreover, some classes will be repeated two or three times, as if the classloader is trying to get the same class two or three times.
    Some of these classes are even in the java.lang package!!
    The thing is, I'm actually trying to get the applet to use webservices, so I've signed the Apache Axis jar files (about 8 or so) and included them in the "cache_archive" parameter. The classes giving problems are from these archives, not from my main applet jar.
    The applet will eventually work, but the first time takes a LONG time to initialize because the classloader is trying to verify all the classes (i think). Subsequent runnings of the applet within the same browser will be much faster, but the same thing will happen if I start a new browser instance.
    My questions are:
    1) Why is the classloader trying to load from my http server rather than from the local jars? (they seem to be statically cached, I checked the plugin control panel)
    2) Why is the classloader reloading the same classes multiple times?
    3) Is the classloader verifying the signatures for each class, because it's taking a long time due to very many classes (100's).
    I can't seem to find ANY documentation for this at Sun or Google.
    Please help if you can!
    Andrew

    I've got the same problem with applet using SOAP based on jwsdp.
    But classloader only try to get classes from server that are used in SOAP calls.
    The only workaround I found is to move this classes to root package, but still there are problems with
    Connecting http://<host>/int.class with no proxy
    Connecting http://<host>/int.class with no proxy
    WARNING: Unable to cache http://<host>/int.class
    requests.
    Maybe this is a bug of Sun SOAP implementation?

  • How to insert sign date "now()" in database ?????

    I am a newbie.  Using DW CS5 I have been able to get a number of web pages on my web site to work well.  My problem is with my “sign in form”.  I want to add in the sign in form a hidden field for the date that the user signs up.
    But the signup_date value in the database is not been entered.  I do have a “work around”.  If I replace the last “%s” in the $insertSQL statement with NOW(), the correct signup_date is entered in the database table “users”.  However, I want to learn to do it “right”.  My questions:
    1.      What is the “best” way to accomplish my desire results?
    2.      What do the “%s” stand for in the $insertSQL statement?  I think it is an array, but I do not understand this line of code that DW generated.  Can you explain is plain English?
    Below is the important part of the code (I hope I sent enough to explain the problem) for the sign form: (disregard the /////// they are only there to indicate different sections of the code).
    //This is the code from the input form for the hidden field "signup_date"
    </tr>
        <tr>
          <td align="left" valign="top"><input name="signup_date" type="hidden" id="signup_date" value="NOW()" />
          <td><input type="submit" name="Submit" value="Join Now!"></td>
        </tr>
      </table>
    //This is the dreamweaver code to insert the date into the data base:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "frJoin")) {
      $insertSQL = sprintf("INSERT INTO users (first_name, last_name, email_address, username, info, user_level, signup_date) VALUES (%s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['last_name'], "text"),
                           GetSQLValueString($_POST['email_address'], "text"),
                           GetSQLValueString($_POST['username'], "text"),
                           GetSQLValueString($_POST['info'], "text"),
                           GetSQLValueString($_POST['user_level'], "text"),
                           GetSQLValueString($_POST['signup_date'], "date"));
    Thanks !!

    I do have a “work around”.  If I replace the last “%s” in the $insertSQL statement with NOW(), the correct signup_date is entered in the database table “users”.  However, I want to learn to do it “right”.
    Your "workaround" is actually the correct method. The way that you think is "right", by entering the date into a hidden field, is actually the wrong way. Hidden fields can be manipulated. Inserting data directly into the query is the desired method, like the method you are currently using. It's not a "workaround", it's the correct method. You hidden field is not working because you have not told the page that the NOW() in the hidden field should be processed through php. NOW() is MySQL function. Use php to echo current date in hidden field if you want to use the "wrong" method of processing the date into your query.
    <td align="left" valign="top"><input name="signup_date" type="hidden" id="signup_date" value="<?php echo date("Y-m-d H:i:s"); ?>" />

Maybe you are looking for

  • How to configure multiple IP addresses on one NIC?

    Hi, I just installed a OVM Server in version 3.2.1 and the according VMManager. Now i wanted to try to configure the Server/Server Pool. Now i come across a problem, which was already a big problem in OVM 2 while configuring the Networks. All our OVM

  • Will not read tiger software

    I recently bought tiger to upgrade from panther and my imac will not read the software disk. it may read it once in every ten tries but after having to restart the computer it will not read it. So I have been unable to install it. can anyone help? im

  • Itunes 10.5 doesn't display correctly.

    iTunes displays weirdly on my computer (running Windows 7) Screengrab: http://oi56.tinypic.com/2niwgf5.jpg How can this be fixed?

  • DISPLAY DRIVER AMD HAS STOPPED WORKING AND SUCCESSFUL​LY RECOVERED

    This is occuring several  times. Iam using window 7 64 bits what shall I do

  • Default partitions taking up large amount of disk space

    While investigating in Disk Management after having my Yoga 11s laptop for a few months, I noticed a bunch of partitions that are taking up a large portion of space on my computer. Which brought up a bunch of questions (related to the screenshot belo