Applet doesn't invoke Servlet?

I've developed an applet using awt and jdk1.1.8. It has been signed with a
*.cab file and deployed on 1 webserver (not using the plug-in). Using IE 5.5
the applet has 'full permissions' and can successful print, etc..
The applet has a 'submit' button that sends does the equivalent of a form
post to a servlet on different server that's running WebLogic 5.1. The
applet does not accept a response from the servlet. As mentioned, my applet
is signed so I should be able to make this connection to a different server.
Upon testing this my applet is not throwing any socketpermission exceptions
or exceptions of any kind; however, in watching my WebLogic console - the
servlet never appears to get called. My servlet has the following code:
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
doGet(req, res);
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
System.out.println("1");
System.out.println("2");
...do other stuff...
So, I should be seeing 1,2,3.. being printed out to my WebLogic console -
or - an exception. But rather than seeing any of this I'm not seeing
anything being printed to the console. The servlet is deployed correctly as
I can call the servlet from my browser without any problem to see my 1,2,
and 3s get printed. Running the Applet directly from JBuilder I get the
below documented plug-in error printed to my weblogic console.
Thu Dec 28 13:01:00 CST 2000:<W> <ListenThread> Connection rejected: 'Login
timed out after: '5000' ms on socket: .......
Which really doesn't concern me.. but it does make me feel confident with my
applet is opening / using the url connection correctly.
Any ideas on what might be the cause, or maybe some troubleshooting
recommendations? Perhaps I'm missing something in one of weblogic's
properties files? The Applet's and the Servlet's code all appears to be
good. I'm thinking that this is probably something pretty simple or common
for folks with applet-to-servlet communication experience.
Thanks

With my limited understanding of applets it is probably the uploading of the file thats your problem. Unfortunately with JCreator, it often ignores the sandbox that are used with Netscape and IE. Im not the one to solve the problem for you but Im guessing thats it, if someone else wants to chime in and give him a solution.

Similar Messages

  • Applet doesn't takeup the new file until browser is started again

    Hi Friends
    I have made a applet which can record and also can play the .wav file.
    I am using java sound api.
    But when I run this applet and record the sound and then click a button to play it , it plays the older file. But after recording, the older file got replaced with the new file, then why it plays the older. It should now play the new file.
    But after closing the IE browser and starting it again plays the newer recorded fle. Refreshing applet doesn't work.
    I have checked this also on firefox browser, same is happening.
    I have also tried to solve this problem using threading, but could not succeed. In threading I made AudioClip object null and reassigned the value in run method of the thread.
    Please solve this problem.
    Thanks

    I've found that the render error is due to the applet being hidden/displayed via JavaScript. Now that I've played around with that, I find it a highly unrecommendable approach. Basically what's done is:
    <div id="foo">
    <applet id="myapplet" ...>
    </applet>
    </div>
    <script>
    document.getElementById('foo').style.visibility = 'hidden';
    document.getElementById('foo').style.visibility = 'visible';
    document.getElementById('myapplet').repaint();
    </script>
    The "repaint" call does call the repaint method in the applet, but the result is the sad picture that I've linked to.
    Anyone know a robust way to repaint an applet from JavaScript?

  • Applet communication with struts servlet

    Hi
    I�ve seen a lot of examples where a Java applet communicates with a servlet.
    I�ve made a web application using Struts, and i would like to know if it is possible to use an applet (View) and send to Stuts some data, I mean, call an action like http://localhost:8080/ViewRoads.do.
    Is it possible? ,Where can I find some examples about?, could anyone explain how would it work?, any good book to read about?.
    Thank you.

    I'm sorry but don't you have a communication source code example between a servlet and an applet that does work ? I'm looking for one of these since Two days already.
    thanks

  • Invoke servlet

    How can I invoke servlet from an <af:form> tag ?

    Hi Zaro,
    it depends what you'd like to do.
    1. Put the result into the page: Use normal links, eg. <af:objectImage source="/graphservlet"/>2. Use it as a navigation step: edit your faces-config.xml
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • VOIMPL setter method doesn't invoke on clearing text

    If we set some value to a text field , invoking VOIMPL setter method for the corresponding text field  works fine , on clearing the text it  doesn't invoke the same setter method (in effect ,previous value is exist behind the scenes)
    what could be the reason ??

    Hi    Alejandro,Vinay
    Thanks for the replay ,  You are correct , it wont update   Please find the details
    Jdev verson  : Studio Edition Version 11.1.1.7.0  Build : JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
    i used auto submit = true to update the attribute. here is the code
      <af:inputText value="#{bindings.Name.inputValue}"
                                  label="#{bindings.Name.hints.label}"
                                  required="#{bindings.Name.hints.mandatory}"
                                  columns="#{bindings.Name.hints.DISPLAYWIDTH}"
                                  maximumLength="#{bindings.Name.hints.precision}"
                                  shortDesc="#{bindings.Name.hints.tooltip}"
                                  id="it1"
                                  autoSubmit="true" showRequired="true"
                                  immediate="false" partialTriggers="it1"
                                  wrap="hard"
                                  readOnly="#{pageFlowScope.pEdit==null}">
                      <f:validator binding="#{bindings.Name.validator}"/>
                    </af:inputText>
    Thanks
    Vipin

  • Invoking servlet from mDB

    Hi all;
    this is the process.
    1. Servlet received / creates msg.
    2. Servlet Enqueues Msg on JMS queue.
    3. MDB dequeues.
    -- processes against DB
    -- composes respoonse.
    4. mdb invokes servlet with response.
    servlet need not maintain state.
    State information can be passed in Msg (Query and Response)
    I was just wanting to find out if this possible in oc4j.
    apparently, there is a process in weblogic 6.1 to support this.
    Any help is appreciated.
    thanks.
    jayant

    I would assume that you would need to do a "createSipApplicationSession" on your sip factory and then get the ID from there.
    Then create a request from your session and send it.
    Wouldn't you want each outgoing call to be associated with a different sip app session?

  • Applet doesn't stop

    Hi !
    I haven't write an Applet since... old times. Anyway, the following applet doesn't stop.
    PLEASE help me !
    Thank you,
    Alin
    import javax.swing.*;
    import java.awt.Graphics;
    public class countDown extends JApplet {
         private static final long serialVersionUID = 1L;
         int days = 23, hours = 23, mins = 23, secs = 23;
         boolean continueFlag = true;
         Thread currentThread;
         public void init() {
              try {
                   days = Integer.parseInt(getParameter("days"));
                   hours = Integer.parseInt(getParameter("hours"));
                   mins = Integer.parseInt(getParameter("mins"));
                   secs = Integer.parseInt(getParameter("secs"));
              } catch (NumberFormatException numberFormatExcept) {
                   numberFormatExcept.printStackTrace();
         public void stop() {
              continueFlag = false;          
         public void destroy() {
         public void start() {
              currentThread = Thread.currentThread();
         public void paint(Graphics g) {
              g.drawRect(0, 0, 600, 16);
              while (continueFlag) {
                   g.clearRect(0, 0, 600, 16);
                   g.drawString(days + " days " + hours + " hours " + mins
                             + " minutes " + secs + " seconds", 0, 15);
                   try {
                        if (continueFlag)
                             currentThread.sleep(1000);
                   } catch (InterruptedException interExcept) {
                        interExcept.printStackTrace();
                   secs--;
                   if (secs < 0) {
                        mins--;
                        secs = 59;
                   if (mins < 0) {
                        hours--;
                        mins = 59;
                   if (hours < 0) {
                        days--;
                        hours = 23;
    }

    That's because paint() doesn't stop, therefore you never get a chance to click the stop button. The paint() method should draw how the applet should look at one moment in time, and then return.
    If you want to have an animation or the like (multiple separate drawings separated in time), then a thread should update the information that the paint method uses to draw the applet (this information is known as "state"), and then call repaint().
    Also don't bother dealing with threads yourself. Use a java.util.Timer, which handles all that stuff for you.

  • Applet doesn't work with JRE1.4.1_01

    Hi,
    I have an applet embedded in a remote-server page. It can be loading from the server and running in the local computer with Jre1.3.1. After I uninstalled jre1.3.1 and installed JRE1.4.1_01. My applet doesn't run. Here is the message from Java Consol:
    java.lang.NullPointerException
         at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source)
         at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.cache.Cache.privileged(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.download(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
         at sun.plugin.cache.FileCache.get(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1197)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:247)
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:250)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
         at sun.applet.AppletPanel.run(AppletPanel.java:292)
         at java.lang.Thread.run(Thread.java:536)
    I copy the my html file which has this applet built-in to my local computer. The webpage can be openned and the applet running fine even with jre1.4.1. Why it didn't run with Jre1.4.1 and it did run with jre 1.3.1 when loading remotely? Could someone tell me what the above messages mean? Is this a bug from Jre1.4.1_01?
    Thanks,
    Kunlun

    Hello
    i am facing the same problem. when i run my java applet using localhost.. it does not work and shows the same exceptions
    i download the JRE 1.4.1 by using following link
    http://java.sun.com/products/plugin/1.4.1/demos/plugin/applets/SpreadSheet/example1.html
    eventhen it is not working.
    as you said you installed jre .1.3 and then 1.4 but i didn`t install 1.3 i directly installed 1.4. after installing 1.4 i downloaded the jre as you said. but still i am facing the same problem
    and one thing else. i want to check it more then one system. i have to download it again and again can i download its setup once on my harddisk.
    please send me the link
    waiting for your reply
    thanx in advance
    Waris Mirza

  • [solved] Gnome bluetooth-applet doesn't start

    Hello! Since yesterday, my bluetooth-applet doesn't start. I get this message:
    [bebop@int Desktop]$ bluetooth-applet
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    How can I solve this problem? Thanks Bebop
    Last edited by Bebop (2009-02-14 11:59:31)

    Hm, I still have this issue, despite upgrading...
    andi@hbar> y -Ss bluetooth
    extra/gnome-bluetooth 0.11.0-3 [installed]
    The GNOME Bluetooth Subsystem.
    extra/bluez-gnome 1.8-4 [installed]
    Bluetooth PIN helper applications
    extra/kdebluetooth 4.0.3-2
    A collection of Bluetooth utilities and modules for KDE based on BlueZ
    extra/bluez 4.30-1 [installed]
    Libraries and tools for the Bluetooth protocol stack
    extra/libbtctl 0.10.0-2 [installed]
    GObject wrapper for Bluetooth functionality.
    community/bluemote 2.0-5
    Will turn your Bluetooth-enabled mobile phone into a remote control for your computer
    community/blueman 0.3-5
    GTK+ bluetooth management utility
    community/python-pybluez 0.16-1
    Python wrapper for the BlueZ Bluetooth stack
    Can anyone help?

  • Getting JAR file for Applet doesn't work

    Hi,
    We have the following problem: we have some clients who want to use our applet. There are some clients that have problems with receiving the .jar file:
    When the applet tries to start we get a ClassNotFoundException: 'prestaties.class' not found. (the client wants to acces the class file directly from the server)
    If we check the .jar file, it exists on the client, but the file is empty.
    What could be the problem?
    - PRoxy or firewall blocks the jar file
    - applet doesn't have enough rights to write.
    Does anyone a solution, some workarounds or suggestions for this problem.
    Thanks!
    Luk

    Hi,
    Thanks for answering my question!
    Here is the extra information you asked.
    At server side everything is OK (the jar file is present and has all the class files).
    Where working with Weblogic server 4.51
    The clients run JRE 1.3.0-C
    I can't give you the applet code (confidential) but here is the html code:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="80" align="middle">
    <PARAM NAME="cache_archive" VALUE="prestaties.jar">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_version" VALUE="1.4.2.1">
    <PARAM NAME="code" VALUE="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet">
         <PARAM NAME="codebase" VALUE="/lib">
         <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
         <PARAM NAME="scriptable" VALUE="true">
         <PARAM NAME="windowId" VALUE="185498422412000">
         <PARAM NAME="cursusId" VALUE="23178">
         <PARAM NAME="opleiding" VALUE="boetseren">
         <PARAM NAME="organisator" VALUE="TESTOE Omschrijving">
         <PARAM NAME="locatie" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="instructeur" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="WebLogicSession" VALUE="1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" width="600" height="80" align="middle"code="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet"codebase="/lib"pluginspage="cvsesf/plugin.jsp"cache_option="Plugin" cache_version="1.4.2.1" cache_archive="prestaties.jar" windowId = "185498422412000"cursusId = "23178"opleiding="boetseren" organisator="TESTOE Omschrijving" locatie="TESTDOSSIER HELKPDESK / 0" instructeur="TESTDOSSIER HELKPDESK / 0"WebLogicSession="1">
    <NOEMBED>
    </COMMENT>           
              <html>
                   <head>
                        <title>Java plugin download</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                        <link rel="stylesheet" href="../includes/vdabstyle.css">
                   </head>     
                   <body bgcolor="#FFFFFF">
                   <TABLE width="600" border="0" cellpadding="1" cellspacing="0">
                        <tr>
                             <td>               
                                  <h1 align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif">Java plugin</font></b></h1>
                                  <P><B>Voor het invullen van prestaties en vergoedingen heeft u de JRE 1.3 Java Plugin nodig: deze staat op de CD-ROM die u normaal gezien van de VDAB gekregen heeft.<br><br>
                                  Ofwel kan u de plugin hier zelf downloaden (<U>opgelet:</U> bestand is 8 MB groot).<br><br>
                             U kan het VDAB callcenter contacteren om een CD-ROM aan te vragen of om problemen te melden. Het nummer vindt u onderaan het scherm.</B></p>
                             </td>
                        </TR>                    
                   </table>               
                   </body>
              </html>
         </NOEMBED>          
    </EMBED>
    </OBJECT>
    Hope this helps.
    Luk

  • Applet doesn't run on Apache

    Now that I've copied my applet's class file onto my HTTP Apache server, the applet doesn't work.
    The error message is: "the applet is notinited; loading of java applet failed",
    My applet work if i run on usual way but not when I put it on Apache web server.
    What is the solution of this problem?
    Any help would be appreciated.
    Thanks

    So you're saying that you just do a file|open from your browser and open the HTML page and all is well, but when you moved the HTML page and the class file to somewhere under the docroot of your Apache installation you can hit the page but your browser doesn't load the applet, is that right?

  • Brightness gnome-applet doesn't work....

    Hi,
    my brightness gnome-applet doesn't wok in my sony vaio vgn s5m....
    how to resolve?
    thanks.

    alex_anthony wrote:
    It doesn't work on a lot of computers. Its because the BIOS is handling your brightness instead of GNOME. I don't think there is a solution. You'll just have to use the keyboard.
    100th Post!
    thanks

  • Samson Softpre applet doesn't work under Leopard

    I am a podcaster. I bought the Samson C01U microphone last year as I was told at that time it was the best in the entry-level for someone that was considering podcasting. There's an applet that is offered by Samson that allows Input Level Meter, Volume control, High-pass filter and Phase Switch. Every recording sounded great when I combine this applet with GarageBand.
    Recently, I switched to Leopard and the applet doesn't work anywore. Worse, recording audio with that mic gives me radically inferior quality. When I asked Samson about that matter, the support tech guy told me that there was no intention on porting this software on the new operating system, with the following: "The Soft Pre applet is merely a volume control. There is no difference in sound with or without the Soft Pre. All Samson USB mics were designed to be fully operational without the Soft Pre applet."
    I've googled the matter several times with no one else noticing the matter but myself. Christoph Drösser on a previous discussion told me that he had no such problem, but the difference between his setup and mine is that he upgraded to Leopard while mine was a fresh install. Anyone else in a similar situation?
    Message was edited by: Laurent LaSalle

    Hi,
    I had the same problem. I use an external monitor. It seems that the Applet simply disappeared after using my monitor.
    I opened Samson SoftPre, turned on my external monitor! Eureka. Here is my Applet. I moved it in the middle of my desktop to make sure it would not hide again. Once, you get it back make sure to either close the Applet before quitting the external monitor.

  • Nm-applet doesn't work

    Hello.
    When I boot my computer and start up Fluxbox, nm-applet doesn't show up in the tray area. It's running, but doesn't show up and doesn't connect me automatically (which it was set to do last time I saw it). If I try to kill it and start it manually via the terminal, I get this:
    [jmy@x110 ~]$ nm-applet --sm-disable
    ** (nm-applet:1549): WARNING **: get_all_cb: couldn't retrieve system settings properties: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.
    ** (nm-applet:1549): WARNING **: fetch_connections_done: error fetching system connections: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.
    Now, most people with this problem seem to have their rc.conf daemons set up wrong, but I'm fairly certain this should work:
    DAEMONS=(syslog-ng !network !netfs dbus hal networkmanager crond sensors alsa)
    What am I missing here? I don't want to have to connect manually every time I start up my computer.

    I still have this problem. Can anyone help me?
    If it's to any help, it works just fine when I run xfce4 (except it doesn't show in the tray, but w/e) instead of fluxbox, for some reason, so I guess there's something that needs to run which doesn't in fluxbox. But I dunno
    EDIT: nvm. Got it working. I was using this fix: https://bbs.archlinux.org/viewtopic.php?id=63576 while trying the ck-launch-session stuff mentioned above and in other threads. Restored the original configuration files, and voila!
    Last edited by Beefive (2010-08-03 01:29:16)

  • Applet sends SQL and servlet queries and returns results to applet

    So, this is what my problem is. I've tried several different ways on this so my code probably don't work at all.
    Could someone post me an example on how to send the sql query from the Applet and how to pick up the data from the servlet.
    Thank you,
    Derek Lung

    I suggest you to use:
    * one JavaBean that handles db connections and queries;
    * a Servlet that uses the JavaBean and receives a String that rappresents the query from the Applet: such String will be passed to JavaBean in order to execute the query and retrieve the data from db;
    * the Applet that uses the Servlet to retrieve the results (you can store them in a structure that MUST be serializable.
    Let me know if you find problems in costructing such architecture!
    -- Ivan

Maybe you are looking for