Applet connection with DB

Hi Guys,
I have designed an applet and have placed in the htdocs of Apache server that comes with Oracle 9iAS when I can login to the db within my Lan it works fine but when I try to login from outside LAN through a dialup modem I get following error:
Error in Connecting to the Database java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
I know applets can only communicate with the server they are downloaded from, I have the DB on this same server where I am downloading applet from!
I am using a router to connect the server to the internet and have opened ports 7777, 4443 and 1521.
Any1 Any ideas??????????????
Thanx!

The error you are getting is a client side error, you will find no log in the listener. The applet demo was tested. The only thing I can think of is the classpath, please make sure your HTML code is pointing to the right ones. Also, you may want to make sure your browser is compatible with the version of the classes you are using, I thought browsers today support jdk 1.1.
-Soulaiman
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kibito:
Since two weeks we are trying to get
a connection working within an applet with our db.
Plattform: Linux RedHat 6.1
Database: oracle8i
jdk: 1.02 (the classes102.zip)
webserver: Apache 1.3
browser: netscape 4.6
We have always the no suitable driver exception!
We worked thought different tries:
- with the JdbcApplet.java Sample from Oracle
- with the DriverManager.registerDriver
(new oracle.jdbc.dnlddriver.OracleDriver()); approach
- with the Class.forName( "oracle.jdbc.dnlddriver.OracleDriver" ); approach
- with the driver = new oracle.jdbc.dnlddriver.OracleDriver(); approach
- we tried every possible kind of
getConnection method
Questions:
1. Is it possible to connect from an applet (jdk1.02) to an oracle8i database running under redhat 6.1?
2. The No suitable driver means for me,
that the listener has not found a
driver handling the TCP request for our
connection. Is this correct?
3. The listener works like the inetd.
It gets a connection forks the
requested process to handle the connection.
Is this correct?
4. Even if I check the listeners logs and
traces, there is never a request arriving
from my applet. What am I missing?
Help would be great!
<HR></BLOCKQUOTE>
null

Similar Messages

  • Applet connection with a servlet.

    hi all.
    i need to send data from an applet in the client side to a servlet on the server.
    i want to send this data via http so i won't have to get around firewalls and other problems that might come up if i'll use sockets.
    i'm sending objects, like this: (applet side)URL url = new URL("http://localhost:8080/examples/servlet/ImportListener.Listener");
    URLConnection con = url.openConnection();
    con.setUseCaches(false);
    OutputStream out = con.getOutputStream();
    ObjectOutputStream objStream = new ObjectOutputStream(out);
    objStream.writeObject(record);i have two questions:
    (1) how do i get this object data in the servlet??? will it be in the doGet() method?
    (2) how can i send a confirm message back to the applet?
    thanks!

    Hi!
    I have implemented such case, and I thought it might be so helpful for all to post the solution over here, I will provide two cases in one example, first, the applet will send parameters within the posted URL, and in this case you can retrieve them in doGet method, another case is to write objects over output streams, and in this case it will be sent to the servlet using POST method, because the GET method does not have a body which must be exist to handle the streams, so, the whole request will be sent over POST method, and to get it, fill up your Java doPost():
    NOTE: Any object you want to send/retrieve over a network MUST be serializable, which means, the class must implement java.io.Serializable.
    The Applet - CLIENT
    ================
    public boolean getSomeInformation(Object myObject)  {
            // Get a backend connection, see the connect() method below
            URLConnection connection = connect("/myAliasServlet?myname=nabieh&myage=28");
            BufferedReader servletResponse = null;
            ObjectOutputStream oos = null;
            try {
                oos = new ObjectOutputStream(connection.getOutputStream());
                // serialize the object
                oos.writeObject(myObject);
                oos.flush();
                // Read the response from the servlet:
                servletResponse = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                String response;
                String s = "";
                while (null != ((response = servletResponse.readLine()))) {
                    s += response;
                if (s != null) {
                    if (s.equals("SUCCESS")) {
                        executed = true;
                    } else {
                         // s = "null"!
                        JOptionPane.showMessageDialog(myForm, s, "Error", JOptionPane.ERROR_MESSAGE);
                        executed = false;
            } catch (IOException ioe) {
                ioe.printStackTrace();
            } finally {
                try {
                    if (oos != null) {
                        oos.close();
                    if (servletResponse != null) {
                        servletResponse.close();
                } catch (IOException ioe) {
                    ioe.printStackTrace();
            return executed;
    public URLConnection connect(String alias) {
            URLConnection connection = null;
            String serverContext = "http://192.168.0.2:8888/MyApp";
            // Connecting to the server:
            try {
                String s = serverContext + alias;
                URL url = new URL(s);
                connection = url.openConnection();
                connection.setDoInput(true);
                connection.setDoOutput(true);
                connection.setUseCaches(false);
                connection.setRequestProperty("Content-Type", "application/octet-stream");
            } catch (MalformedURLException murle) {
                murle.printStackTrace();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            return connection;
        }The servlet, server side:
    ===================
    Here, the servlet reads the object, do some process whatever it is, pass back a String to the client, the applet.
    protected void doPost(HttpServletRequest request,
                   HttpServletResponse response) throws ServletException, IOException {
                    // Get both passed parameters, myname and myage
                     String name = request.getParameter("myname");
              String age = request.getParameter("myage");
                   // Get the seializable object
              ObjectInputStream ois = new ObjectInputStream(request.getInputStream());
              MyObject mo = null;
              try {
                   mo = (MyObject ) ois.readObject();
              } catch (IOException ioe) {
                   System.out.println(ioe.getMessage());
              } catch (ClassNotFoundException cnfe) {
                   System.out.println(cnfe.getMessage());
              // Do whatever you want over here...
                    String found = doSomeThing(mo); // This method gonna return a string, "SUCCESS" or "null".
                    PrintWriter pw = response.getWriter();
              pw.write(found);
              pw.flush();
              pw.close();
         }Good luck.

  • Java applet - Connection with OS

    I wrote some Java code to get the date and time via a NTP server.
    I get the correct date/time from the server and store it in a variable.
    Now I woudl like to pass the value to the 'date' command on the OS (Suse Linux), using JNI.
    Two problems:
    - How do I get the program to have root access to the 'date' command to change the date and time ?
    - How do I execute the 'date' command from within Java ?
    Thanks,
    J.M.

    Try asking this question on one of the Java developer forums. Specificlly the native method forum:
    http://forum.java.sun.com/forum.jsp?forum=52

  • Applet security problems while connecting with database

    i hav problem in the japplet connecting with sql database
    it gives security access denied error while running program as my driver is jdbc:odbc:bridge driver
    so for resolving this error how can i turn off security of applet and also which security permission to be change?
    plz reply

    baftos wrote:
    Maybe I should question the need to access a local database on the client PC.
    But anyway, the normal way to obtain security clearance is to use a signed applet.
    Another possibility is to grant the applet all permissions by modifying the security policy file of each client to grant your applet 'all permissions'. Note that in this case you must have access to each and every client PC or ask them to do so before running the applet.Database access at client's machine is ridiculous. I doubt this is what OP wants.
    @OP: request you to post the original security issue and the environment details.
    Thanks,
    Mrityunjoy

  • How to share internet connection with KDE networkmanager applet

    I mainly use wireless around my house and like to use one computer to share it's wireless to another when installing Arch, until I can get KDE and networkmanager installed so I can easily connect to the wireless. I've always been able to easily share internet connections with Ubuntu, but when I try it with Arch, with Gnome OR KDE (and their respective applets), It just doesn't work.
    Is there some library or backend I need to install to make ICS work?
    Thanks!
    Last edited by MetaMan (2011-09-10 22:12:26)

    If this helps at all, here is what I am currently trying: I open up the network settings KDE Control Module, select "Wired", select the device (eth0) and click edit, and under the "IPv4 Address" tab  selecting "Shared" from the "Method" drop-down.
    Also, to make it clearer, I am trying to share wlan0(on device 1) through eth0 to eth0 on device 2. Also, device 2 is running the Arch setup and I am telling it to connect to eth0 via DHCP after I select the remote mirror to use. I have managed to do this before when device 1 ran Ubuntu.
    I've searched Google, the forums, read the wiki pages for KDE and networkmanager, and can't seem to find a mention of internet connection sharing (pertaining to my usage case; the forums have some posts of people trying to use their computer to broadcast eth0, I'm trying to do the opposite) anywhere on them. In fact, I'll gladly write the section myself if I figure this problem out.
    Hope this extra information helps!

  • Applet connecting to MS SQL Database (Remote DataSourse)

    Hello,
    I started by building my interface to a Database within an Application. I am not to the point where I am ready to make it an applet but want to get some tips when the time comes very soon.
    First of all what security issues do I have to deal with to let the applet connect to the database?
    Second I currently created a local Datasource via ODBC call JavaDB and linked it to my MS SQL Database.
    QUESTION
    How do I link to the with a remote Datasource so that the local machine does not have to worry about the datasource.
    Lastly can I use the "sun.jdbc.odbc.JdbcOdbcDriver" in an applet. I sure hope so...
    Then the part of my code that connected to the database was this:
    private void initDB(){
    String url = "jdbc:ODBC:JavaDB";
    Connection con;
    String query = "select * from COFFEES";
    Statement stmt;
    try {
    //Class.forName("myDriver.ClassName");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url, DBADM, DBPWD);
    stmt = con.createStatement();                                   
    ResultSet rs = stmt.executeQuery(query);
    ResultSetMetaData rsmd = rs.getMetaData();
    System.out.println("");
    int numberOfColumns = rsmd.getColumnCount();
    for (int i = 1; i <= numberOfColumns; i++) {
         if (i > 1) System.out.print(", ");
         String columnName = rsmd.getColumnName(i);
         System.out.print(columnName);
    System.out.println("");
    while (rs.next()) {
         for (int i = 1; i <= numberOfColumns; i++) {
         if (i > 1) System.out.print(", ");
         String columnValue = rs.getString(i);
         System.out.print(columnValue);
         System.out.println("");     
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    Thanks,
    Kenny

    Kenny,
    As no one has replied, I've managed to implement a database that uses applets.
    Firstly, one needs to obtain a JSP server (apache tomcat is free and can be configured into a IIS 4 server).
    Secondly, write all the DB connection stuff within a jsp page (ex.) "builders.jsp"
    <%@ page import="java.sql.*" %>
    <%!
    protected String driver="sun.jdbc.odbc.JdbcOdbcDriver";
    protected String url="jdbc:odbc:PhotoDBase";
    protected String userid=null;
    protected String passwd=null;
    %>
    <html><head><title>Builder Example</title></head><body>
    <%!
    public static String GET_BUILDER_QUERY =
    "SELECT * FROM BuilderInfo WHERE BuilderID =?";
    %>
    <%
    String bID = "24"; //normally this would use
    //request.Parameter("bID");
    //in order to pull up a specific
    //record. In this test case it is
    //hard coded to pull only builder #24
    %>
    <%
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url, userid, passwd);
    PreparedStatement stmt = conn.prepareStatement(GET_BUILDER_QUERY);
    stmt.setString(1, bID);
    ResultSet rs = stmt.executeQuery();
    rs.next();
         String buildID = rs.getString("BuilderID");
         String bName = rs.getString("BuilderName");
         String bAddress = rs.getString("Address");
         String bCity = rs.getString("City");
         String bState = rs.getString("State");
         String bZip = rs.getString("Zip");
         String bCName = rs.getString("ContactName");
         String bCLast = rs.getString("ContactLast");
         String bPhone = rs.getString("Phone");
         String bFax = rs.getString("Fax");
         String bMobile = rs.getString("Pager/Cell");
    rs.close();
    stmt.close();
    if (bName == null)
         bName = "No Builder";
    if (bAddress == null)
         bAddress = "N/A";
    if (bCity == null)
         bCity = "N/A";
    if (bState == null)
         bState = "N/A";
    if (bZip == null)
         bZip = "N/A";
    if (bCName == null)
    bCName = "N/A";
    if (bCLast == null)
         bCLast = "N/A";
    if (bPhone == null)
         bPhone = "N/A";
    if (bFax == null)
    bFax = "N/A";
    if (bMobile == null)
    bMobile = "N/A";
    %>
    <p>Builder: <%= bName%> BuilderID #: <%= buildID%>
    <br>Contact: <%= bCName%> <%= bCLast%>
    <br>Address: <%= bAddress%>
    <br><%= bCity%>, <%= bState%> <%= bZip%>
    <br>Phone: <%= bPhone%>
    <br>Fax: <%= bFax%>
    <br>Mobile: <%= bMobile%>
    <p><applet code="Build.class" width="600" height="300">
    <param name=buildID value=<%= buildID%>>
    <param name=bName value="<%= bName%>">
    <param name=bAddress value="<%= bAddress%>">
    <param name=bCity value="<%= bCity%>">
    <param name=bState value="<%= bState%>">
    <param name=bZip value="<%= bZip%>">
    <param name=bCName value="<%= bCName%>">
    <param name=bCLast value="<%= bCLast%>">
    <param name=bPhone value="<%= bPhone%>">
    <param name=bFax value="<%= bFax%>">
    <param name=bMobile value="<%= bMobile%>">
    </applet>
    </body>
    </html>
    The jsp gets the data from the DB based on the parameter bID which would be passed to it via a search or input page with various error checking included.
    The applet then recieves its data via parameters. (Build.class has been shortened here to show you the meat and potatoes of the whole deal)
    //<applet code="Build.class" width="600" height="300"></applet>
    import java.awt.*;
    import java.awt.Event;
    import java.applet.Applet;
    import java.io.*;
    public class Build extends java.applet.Applet {
    protected Panel search ;
    protected TextField Nametxt ;
    protected TextField Loctxt ;
    protected TextField Citytxt ;
    protected TextField Statetxt ;
    protected TextField Ziptxt ;
    protected TextField CNametxt ;
    protected TextField CLasttxt ;
    protected TextField Phonetxt ;
    protected TextField Faxtxt ;
    protected TextField Celltxt ;
    public Build(){
    super();
    search = new Panel();
    Nametxt = new TextField();
    Loctxt = new TextField();
    Citytxt = new TextField();
    Statetxt = new TextField();
    Ziptxt = new TextField();
    CNametxt = new TextField();
    CLasttxt = new TextField();
    Phonetxt = new TextField();
    Faxtxt = new TextField();
    Celltxt = new TextField();}
    public void init(){
         BorderLayout bl = new BorderLayout();
         setLayout(bl);
         add(search, "Center");
         setBackground(Color.white);
         String buildID = getParameter("buildID");
         String bName = getParameter("bName");
         String bAddress = getParameter("bAddress");
         String bCity = getParameter("bCity");
         String bState = getParameter("bState");
         String bZip = getParameter("bZip");
         String bCName = getParameter("bCName");
         String bCLast = getParameter("bCLast");
         String bPhone = getParameter("bPhone");
         String bFax = getParameter("bFax");
         String bMobile = getParameter("bMobile");
    Nametxt.setText(bName);
    Loctxt.setText(bAddress);
    Citytxt.setText(bCity);
    Statetxt.setText(bState);
    Ziptxt.setText(bZip);
    CNametxt.setText(bCName);
    CLasttxt.setText(bCLast);
    Phonetxt.setText(bPhone);
    Faxtxt.setText(bFax);
    Celltxt.setText(bMobile);
    Hope this will aid you in yours and anyone elses endevours.
    James <[email protected]>

  • Inputstream.java.io.IOException  ,  applet connection

    I'm working on a problem with the failure of a java
    applet connection to a java servlet.
    The connection is via the internet, and over port 80.
    the java console loggin reports the following
    There was an attempt to redirect a url request,
    but the attempt was not allowed by the client. IOException caught in run
    could some one let me know what the URL re-direction is here,
    much apreciated,
    slainte

    I have often found this problem with inexperts java programmers.
    I could tell you better luck next time, but today I feel generous, so I will answer.
    There is a redirect domain problem. When you try to connect the site you receive an ICMP error message, which is the responsable of the error message you can see. That occurs because the URL connects to another URL different (surely because its original URL has changed to another) and you only have to discover the new URL, and try to connect to it.

  • How to connect with Microsoft Access Database with JAVA

    I want to know the command and query to connect between MSAccess and JDBC.
    Is it beter way to make connection with MSAccess comparing with other Databases such as SQL and Oracle.
    Which Database will be the best with Java?
    I also want to know to be platform indepadent which database is suitable?

    On Windows, you can use MS Access database by:
    Set up a System Data Source using the ODBC control panel applet.
    Use the jdbc:odbc bridge JDBC driver, and specify a jdbc url that points to the data source name you just specified.
    It's been too long since I've done this, so I don't remember the syntax of the jdbc url, but I'm sure that if you do a search for the jdbc:odbc bridge that you will find what you are looking for.
    As far as the question about which database is best, you will need to determine that based on your project requirements.
    If you want a quick and dirty, open source, cross-platform database, take a look at HyperSonic SQL.
    - K

  • Applet communication with DLL

    Hi,
    Can an applet communicate with Microsoft DLL.
    I want to save the content of an applet to database at server side.
    Problem is there is no java envirnoment at server side (it has dlls).
    What is the best way to do this. The content of the applet has to be savea at sever side not at client.
    Thanx

    deepakshettyk,
    Two options that come to mind are:
    1) have the applet use JDBC to connect to its host server's database directly. Typically this entails having type4 JDBC drivers installed and available.
    2) have the applet itself connect back to its host server's webserver (IIS?), and have a server-side agent (ASP?) record data sent back to a database. See Marty Hall's book, 'Servlets & JSP', from Prentice Hall, for code examples.
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Applet client with DataForms using dial-up

    Jdeveloper 3.2, IAS9i
    Hello,
    Somebody knows if the DataForms are efficient via dial-up?
    For example in the Online Orders sample,with an applet client (with DataForms, using dialup to connect to app. server). What happens when an user insert a new employee record. When an user navigate around the fields ocurrs a validation inside the Business Object Tier. What happens with the remote round trips?, It's faster?.
    Jdeveloper 3.2.2
    IAS9i
    Thanks a lot.
    null

    Any application designed to run over a dial -up connection must be extremely sensitive to the fact that dial-up connection is very slow due to it's bandwidth.
    Applets by default require downloading a lot of files to the browser. So you must download your app code, the jdbc drivers and any other required classses.
    Applets using BC4J components then must also download the BC4J code. BC4J uses a data cache, so data is also downloaded.
    Avoid using applets in this design.
    Use JavaServerPages(JSP's) (or servlets) which are a much "thinner" version of the "Thin client" group of tools(applets, servlets jsp's)
    WHY JSP's over servlets ??
    They are quicker to write than servlets

  • ResourceBundles in jars, applet, connection refused

    Hi,
    we run our code as application and as applet.
    We have a lot of ResourceBundle files (ListResourceBundles) which are archived per language (RBjars).
    The application and applet is in another package than the RBjars.
    An URLClassloader for loading the ResourceBundles is used which contains only the necessary language resource bundle jar file ( ResourceBundle.getBundle(resBundleName, locale, rbClassloader) ).
    When running as applet we get an exception (java.net.ConnectException: Connection refused: connect), although correct RBJar is loaded from server.
    When running as application we get same exception (java.net.ConnectException: Connection refused: connect),
    index and manifest used when archiving main package, but RBJars not in classpath of manifest, nor there are in the archive attribute of html of applet.
    If we define all RBjars in classpath of manifest (or in archive attribute), the applet allways load all RBjars, that cost too much time. This is the main problem.
    If anyone has an idea how to handle a lot of resource bundle jar files in an applet, please let me know.
    Thanks,
    Inge

    While one cannot say for sure, it looks like your problem is only tangentially connected with Java, jars, or applets. "Connection refused" means that there wasn't an HTTP server running at the address you gave to supply whatever file you asked for.
    It's probably a configuration or administration problem. Try typing the URL the program is using into your web-browser and see if you get the file.

  • Servlet to applet communication: with out polling

    hi,
    i need to write an applet which captures the realtime data as it appears in the server. Is this possible with out polling ther server at constant intervals? i.e... is it possible for the server to push data to an applet (say applet first registers etc etc with the server)
    One more thing..say applet had opened a connection with server and opened a stream. Now is it possible for it to keep listening over the connection so that server puts the info over the connection when ever it has it and the client displays the info when ever it receives it.
    Any pointers would be helpful.

    [email protected] wrote:
    hi,
    i need to write an applet which captures the realtime data as it appears in the server. Is this possible with out polling ther server at constant intervals? i.e... is it possible for the server to push data to an applet (say applet first registers etc etc with the server)sure it's possible
    One more thing..say applet had opened a connection with server and opened a stream. Now is it possible for it to keep listening over the connection so that server puts the info over the connection when ever it has it and the client displays the info when ever it receives it.
    Any pointers would be helpful.i'm not sure what the best way is, but I've done it with Sockets and ObjectOutputStream

  • Applet connected to oracle

    hi everybody,
    i've faced with a small problem while dealing with my homework.
    i have a simple applet connected to oracle. if i open it with applet viewer it works correctly but when i put the applet in a html file
    i'm getting following error:
    java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jserver.version 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.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Oracle Driver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at deneme.Connect(deneme.java:163)
    at deneme.<init>(deneme.java:41)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known 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)
    java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jserver.version 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.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Oracle Driver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at deneme.Connect(deneme.java:163)
    at deneme.<init>(deneme.java:41)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known 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)
    what's the problem? thanks in advance

    The simple answer is the applet security sandbox enforced by the browser. You should look on the Sun Java website for details on how to work with applets security.
    http://java.sun.com/
    Search on keywords applet security
    In a nutshell an applet can't open a socket to a server from other than that which it was served. There are (many) other security restrictions that you probably want to read about.
    The applet viewer doesn't enforce the sandbox security which it why it works well for you there.

  • Applet connection

    Hi,
    I'm using the java plugin. The problem is the following. My applet can't establish a connection with a host different from the host where it comes. Any ideas?
    Thanks

    The reason are the security restrictions:
    http://java.sun.com/docs/books/tutorial/applet/practical/security.html

  • Can a applet connect to another applet?

    can a applet connect to another applet by using socket only? i mean without using serlvet...
    what's that--> "exception: com.ms.security: SecurityExceptionEx" ??
    kill me please.. >_<

    i mean in different machine.. like i have an applet in machine A trying to get a connection with an applet in machine B...

Maybe you are looking for

  • Can't choose download application to open a file - no existing articles fix the issue

    Historically, I used to be able to select which application to open a download with, and Firefox remembered. Recently, it's forgotten which application I like to open .qif files with. Also, it no longer gives me an option to either: 1. Choose an appl

  • Purchase Order sending through EDI

    Dear Experts, I  got a requirement recently for sending PO from SAP to vendor system (non SAP) through EDI interface. Clients all purchasing and inventory is handling an out side vendor. Anybody can help me with how SAP can link other system throuh E

  • INITCAP dilemma

    Hi all, Does anyone know a clean and simple way without writing functions or using pl/sql logic to solve the INITCAP issue below. When i try to use the INITCAP function on a value, any special characters(such as '"#) will capitalise the value after t

  • I am scanning all of our old photographs.  What is the best way to save them

    I am unsure if I should store on DVDs, thumb drives, or an external hard drive

  • JTextField Validation

    Hi, I have to validate input in JTextField from the users, the validation would be for date, time, numeric field, test field etc... does anyone have some code which can help me speed my development process, also any suggestions Ashish