473,668 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

applet error

59 New Member
i am trying to put a java japplet on website. when i run in eclipse it works fine but when i run on website then i get a error:

error: on website


Expand|Select|Wrap|Line Numbers
  1. CacheEntry[http://localhost/eCommerce/menu_pages/game_pages/java_game_3/Main.class]: updateAvailable=true,lastModified=Fri Apr 26 20:39:42 EDT 2013,length=10508
  2. CacheEntry[http://localhost/eCommerce/menu_pages/game_pages/java_game_3/Main$Display.class]: updateAvailable=true,lastModified=Fri Apr 26 20:39:42 EDT 2013,length=2489
  3. Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
  4.     at Main$Display.paintComponent(Main.java:369)
  5.     at javax.swing.JComponent.paint(Unknown Source)
  6.     at javax.swing.JComponent.paintChildren(Unknown Source)
  7.     at javax.swing.JComponent.paint(Unknown Source)
  8.     at javax.swing.JLayeredPane.paint(Unknown Source)
  9.     at javax.swing.JComponent.paintChildren(Unknown Source)
  10.     at javax.swing.JComponent.paintToOffscreen(Unknown Source)
  11.     at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
  12.     at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
  13.     at javax.swing.RepaintManager.paint(Unknown Source)
  14.     at javax.swing.JComponent.paint(Unknown Source)
  15.     at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
  16.     at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
  17.     at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
  18.     at java.awt.Container.paint(Unknown Source)
  19.     at javax.swing.RepaintManager$3.run(Unknown Source)
  20.     at javax.swing.RepaintManager$3.run(Unknown Source)
  21.     at java.security.AccessController.doPrivileged(Native Method)
  22.     at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
  23.     at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
  24.     at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
  25.     at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
  26.     at javax.swing.RepaintManager.access$1000(Unknown Source)
  27.     at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
  28.     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
  29.     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
  30.     at java.awt.EventQueue.access$200(Unknown Source)
  31.     at java.awt.EventQueue$3.run(Unknown Source)
  32.     at java.awt.EventQueue$3.run(Unknown Source)
  33.     at java.security.AccessController.doPrivileged(Native Method)
  34.     at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
  35.     at java.awt.EventQueue.dispatchEvent(Unknown Source)
  36.     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  37.     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  38.     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  39.     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  40.     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  41.     at java.awt.EventDispatchThread.run(Unknown Source)

i am putting japplet but using:

Expand|Select|Wrap|Line Numbers
  1. <applet code = "Main.class" width = "900" height = "400"> </applet>   

Main.java line369
Expand|Select|Wrap|Line Numbers
  1. levelsObject.paint(g, topMenuObject);
  2. ...
  3. topMenuObject.paint(g, levelsObject, lifeStore);
Apr 27 '13 #1
0 1660

Sign in to post your reply or Sign up for a free account.

Similar topics

0
9870
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
2
3550
by: Jonathan | last post by:
Hi I'm doing a project for school and wrote an applet that makes a socket connection to a server (smae host as webserver) that was setup for this project. In the applet there are 3 buttons and by pressing one of them it triggers a specific query, like getting the server uptime, date or who (is online). The problem is that when I press one of the buttons it send the query to the server, reads from the BufferedReader. This goes all well but...
1
4914
by: Wayne's World | last post by:
hi everyone, i have a big problem, writing a image from my applet to my apache webserver. i tried three way's of writing that file. every way was described in forums to solve this problem, but non of them worked and i don't know why. i'll give you the code of my writing-methods and describe, what happen when i test them, in order someone of you can give me a usefull tip, where the problem is. as inputparameter i give my method a new...
1
2939
by: Charlie Kim | last post by:
Here is gnome applet source of mine. -------------------------------------------------- #!/usr/bin/env python import pydic import gtk import gnome.applet
2
1753
by: Roberto Gallo | last post by:
Hi; I have two problems regarding Scripts and Applets. I need to construct a page that has some instances of the same Applet. These instances are responsible to get informations from the user and the system. The information is latter sent to the site. How can I reference distinct Applets instances of the same Applet Class inside the page? How can I get the values stored in the Applet's variables using
2
1926
by: SPG | last post by:
Hi, We have an applet which is not loading on some systems. We suspect it is a security issue, but cannot be sure as of yet. Is there any way of programatically trapping the failure so we can log it somewhere? Cheers,
8
10737
by: smthames | last post by:
I have a pretty sophisticated applet running from several JARs. The main applet is in a signed JAR and performs local file accesses. This works fine. However, the applet in this signed JAR is instantiating a class from another JAR which inherits a class from yet another JAR and this superclass does a loadLibrary() call to load a local DLL. This is getting an access denied error. All of these JARs are loaded as part of the APPLET tag. All...
2
3227
by: rekhaagroya | last post by:
In some jsp I wanted to pass an array variable in the method doValidate of ValidationApplet. I have defined a variable in the function validateAll() as below, var comments_arr = java.lang.reflect.Array.newInstance(java.lang.String, totalBICount); and I am using it in document.applets.doValidate('<%= urlStringValidate %>', document.CheckinForm.eds_mydata_action_name.value, lifeCycleRequiredStr, validateDtr, comments_arr); This is...
7
1506
by: adrian.bartholomew | last post by:
Im getting an error: Error: unterminated string literal Source File: http://98.214.38.110/allfours/site_flash/2.php Line: 75, Column: 37 Source Code: if (_ie == true) document.writeln(' ___________________________________
2
3450
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in advance for responding. I have made a stub of the codes for better understanding. Situation: I have a Java servlet (HelloWorldServlet) running on a Tomcat (5.5.26) server on a Linux machine (compiled in JDK1.4.2). It writes Javascript to construct...
0
8378
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8791
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8577
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8653
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6206
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2786
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2018
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.