Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3337424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:15:05+00:00 2026-05-18T00:15:05+00:00

I have a GWT application that includes an embedded applet. I would like to

  • 0

I have a GWT application that includes an embedded applet.

I would like to use JNSI to let GWT buttons push data to that applet, but at the moment I can’t even get it to connect. Looking for some help – can’t seem to find anything addressing how to make things talk.

In my entrypoint class I define:

 native void doSomething() /*-{
  $doc.applet_id.doSomething();
 }-*/;

Which I hook via ClickHandler to a Button. Within the applet main class, there is a doSomething() method, and in the page I launch the applet via:

 <script>
  var attributes = {codebase:'http://localhost:8888/',
                    code:'Applet.class', archive:'applet_test.jar', id:'applet_id',
                    width:100, height:40} ; 
  var parameters = {fontSize:16, jnlp_href:'launcher.jnlp'} ; 
  var version = '1.6' ; 
  deployJava.runApplet(attributes, parameters, version);
 </script>

The stack trace is

 com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses
  at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:214)
  at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:103)
  at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:96)
  at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:107)
  at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)
  at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:155)
  at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
  at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
  at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
  at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
  at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
  at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
  at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
  at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
  at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
  at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
  at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
  at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
  at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
  at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
  at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
  at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
  at java.lang.Thread.run(Thread.java:680)
 Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): $doc.applet_id.doSomething is not a function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:15:05+00:00Added an answer on May 18, 2026 at 12:15 am

    Apparently my jnlp file also needed

    <param name="MAYSCRIPT" value="true"/>

    in the <applet-desc> portion. Adding MAYSCRIPT:true to the attributes, however, did not seem to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GWT application that displays some charts rendered by JFreeChart. Every few
We have a GWT application that needs to display various holidays. Is there a
I have a class that I want to include in a GWT module. Unfortunately,
I have a standard GWT application, and it of course uses a Java servlet
I have a GWT application for which I'm trying to write some tests using
Have you tried using MVC or any other UI pattern for GWT client code.
I was looking into GWT. It seems nice, but our software have the must
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have a n-tire web application and search often times out after 30 secs. How
Some of my recent web projects that I worked on, use a flow engine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.