Unable to download images in a swing applet (1.3.1) behind proxy

Hi
One of my client have a proxy server and firewall and when they try to access my webserver
then all the AWT applet are downloaded and rendered on client properly. However, the swing applet written
using JDK 1.3.1 is downloaded and rendered but it doesn't display anything properly as images
are not down loaded. I have used media tracker to add images to it like oMediaTracker.addImage( oImage, index );
and then oMediaTracker.waitForAll();
Java console display at client looks as follows:
Java(TM) Plug-in: Version 1.3.1
Using JRE version 1.3.1 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\toy
Proxy Configuration: no proxy
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Applet Initialization start...
Applet Image Initialization start...
Trace level set to 5: basic, net, security, ext, liveconnect ... completed.
Opening      http:MyServer/24/x.gif
Connecting     http:MyServer/24/x.gif with no proxy
Connecting
http:MyServer/24/x.gif with cookie "ASPSESSIONIDGQGQQVWC=DLNBDAOABFANEPJFFIGOOIPG;
JSESSIONID=25Ais2tF1eBkevUhAa2akocfShzNdzyL7yC1I7UhJl7Z6BLZrnQK!
-1149265879"
Opening      http:MyServer/40/y.gif
Connecting      http:MyServer/40/y.gif with no proxy
Connecting      http:MyServer/40/y.gif with cookie "ASPSESSIONIDGQGQQVWC=DLNBDAOABFANEPJFFIGOOIPG;
JSESSIONID=25Ais2tF1eBkevUhAa2akocfShzNdzyL7yC1I7UhJl7Z6BLZrnQK!
-1149265879"
Opening     http://MyServer/sun/beans/infos/PanelBeanInfo.class
Connecting     http://MyServer/sun/beans/infos/PanelBeanInfo.class with no proxy
Connecting http://MyServer/sun/beans/infos/PanelBeanInfo.class with cookie "ASPSESSIONIDGQGQQVWC=DLNBDAOABFANEPJFFIGOOIPG;
JSESSIONID=25Ais2tF1eBkevUhAa2akocfShzNdzyL7yC1I7UhJl7Z6BLZrnQK!
-1149265879"
Opening http://MyServer/java/awt/ContainerBeanInfo.class
Connecting http://MyServer/java/awt/ContainerBeanInfo.class with no proxy
Connecting http://MyServer/java/awt/ContainerBeanInfo.class
Client machine tries to access these images but i never receive a call at web server end when i see
IIS log.
CLient environment:
-Windows 2000/XP/NT
-Internet explorer 6.0 SP1 or IE 5.5 SP2
with connection->LAN Setting->Use Automatic configuration script(only checked)
-Java Plugin configured like proxies->Use Browser Setting
-JDK 1.3.1 plug in at client(downloaded and Installed automatically on demand)
-Object tag used to download applet and plugin
-Firewall and proxy(i don't know about vendor)
My webserver environment
Windows 2000/iis 5.0 with anonymous authentication and
cache-control header set to no-store (so that proxy doesn't cache anything)
QUESTIONS:
~~~~~~~~~
Q.1. When i try from home network that has a proxy then everything works fine. At client site everything except
image download works fine. I mean jars are downloaded and i can see anything drawn using JAVA API.
When i try from home i see following java console trace
Java(TM) Plug-in: Version 1.3.1
Using JRE version 1.3.1 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\wuko
Proxy Configuration: Automatic Proxy Configuration
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Trace level set to 5: basic, net, security, ext, liveconnect ... completed.
Applet Initialization start...
Applet Image Initialization start...
Opening http://MyServer/24/connec.gif
Connecting http://MyServer/24/connec.gif with proxy=197.168.1.100:808
Connecting http://MyServer/24/connec.gif with cookie "ASPSESSIONIDQQGQQCYU=GBJFAOABCJFPDMGFHEKLDACA; JSESSIONID=26yu5m1b4upVuXoAoDmtMbWXQmetQpyzqjFANszo9vFubujT4qGX!-1149265879"
Opening http://MyServer/24/cool.gif
Connecting http://MyServer/24/cool.gif with proxy=197.168.1.100:808
Connecting http://MyServer/24/cool.gif with cookie "ASPSESSIONIDQQGQQCYU=GBJFAOABCJFPDMGFHEKLDACA; JSESSIONID=26yu5m1b4upVuXoAoDmtMbWXQmetQpyzqjFANszo9vFubujT4qGX!-1149265879"
etc
I can't set the plugin at client to use automatic script just like IE browser uses. This option is not supported in JRE1.3.1. Looks to be supported in JRE1.4.1. My client doesn't want to set manual proxy ip and port in plugin as they don't want to reveal this info to everyone within the company for security reason.
Q.2. Why some classes like PanelBeanInfo.class, JAppletBeanInfo.class are downloaded
from my server while it doesn't exist at my webserver. Any thing stupid IE or plugin doing
at client. Any Idea?
Thanks in advance for any help.
Ratan

Thanks to Mike and other friends who already replied on this topic.
Here is my research analysis:
Answer to Question 1:
~~~~~~~~~~~~~~~~~~~~~
The solution is to bundle all the images with JAR. Bundle with jar whichever needs it. However, it might require duplicacy.
Image img = null;
try
img = Toolkit.getDefaultToolkit().getImage(getClass().getResource(fileName));
catch (Exception e) { }
In this case make sure that you have image at the same location where you access it. For example if you have to access an image in package class com.awt.ui.MyClass then your image should also be at location ..\com\awt\ui
Note: It will require image duplicacy in your JAR but it solves the problem. It gives the advantage of fewer download from server.
Answer to Question 2:
~~~~~~~~~~~~~~~~~~~~~
IE treats applet as an active-X and try to look for these classes in your JAR. SUN has stopped its support in JDK1.3.1 and plus. What one can do is to create dummy classes with these names and bundle it with your JAR. You have to create these dummy classes if you enable Basic authentication on your web server then browser will try to look for these classes on the server and continue to prompt you for login and password. It might bother your customer un-necessarily to enter login and password too many times prompted by plug-in (plug in).
--Ratan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Unable to download images from Card reader on Vista Premier Computer

    I have been trying to download (Import) .cr2 Raw images and .jpgs from a card reader using LR's downloader with a Vista Premium OS. I have this set to dual boot with XP Media Center 2005 as the other OS.
    I installed LR directly on the Vista boot "computer".
    After choosing the card reader, it whizzes away and the announces it was unable to download the images.
    I can not load images stored on my computer, before installing LR.
    This has renered LR useless so far on the Vista booted part of my computer. I am next going to try it on the XP OS.
    I wonder if any other earl Vista adapters have been having troubles?
    Anyone have a solution?

    I have not had success, so far, with downloads using Canon's dowloader from my card reader, or having LR try to import files already on my hard drive!
    Works just fine on the XP side.
    How do you reset prefernces in LR? Is it the same as PE5?

  • Help Please: Unable to download images in e-mail

    Hi,
    I am a new Blackberry user and I recently purchased a new Blackberry 8900 on T-mobile (USA). I am having a number of issues with e-mail.  I am using a Blackberry Enterprise Server to connect to my personal e-mail which is hosted by the third party Microsoft Exchange hosting company.
    Basically, I am able to receive e-mails but even though I have the settings set to "Yes" for both HTML E-mail and Download Images Automatically, when I open HTML e-mails, no images are displayed.  To make matters even worse, when I open the menu and select "Get Images", they STILL do not download, even though I see the "arrow" icon on the top right corner.  I have no idea why this is happening.  I have tried rebooting and I have called T-mobile Tech Support, which is useless.  They just tell me to reinstall the phone's software, which I don't think will help.
    I am also have one other more minor issue.  When my device first synched with my Exchange Accountallmye-mail came across but only the headers were downloaded.This is not an issue for any new messages I receive, just for the ones that were synched initially.The auto more feature was and is still turned on.
    PLEASE HELP... I am desperate to solve these issues, or I think I am going to return the phone and just go back to my T-mobile Dash, which had none of these issues, despite it's shortcomings.
    Thanks,
    Matt.

    Hi,
    I am a new Blackberry user and I recently purchased a new Blackberry 8900 on T-mobile (USA). I am having a number of issues with e-mail.  I am using a Blackberry Enterprise Server to connect to my personal e-mail which is hosted by the third party Microsoft Exchange hosting company.
    Basically, I am able to receive e-mails but even though I have the settings set to "Yes" for both HTML E-mail and Download Images Automatically, when I open HTML e-mails, no images are displayed.  To make matters even worse, when I open the menu and select "Get Images", they STILL do not download, even though I see the "arrow" icon on the top right corner.  I have no idea why this is happening.  I have tried rebooting and I have called T-mobile Tech Support, which is useless.  They just tell me to reinstall the phone's software, which I don't think will help.
    I am also have one other more minor issue.  When my device first synched with my Exchange Accountallmye-mail came across but only the headers were downloaded.This is not an issue for any new messages I receive, just for the ones that were synched initially.The auto more feature was and is still turned on.
    PLEASE HELP... I am desperate to solve these issues, or I think I am going to return the phone and just go back to my T-mobile Dash, which had none of these issues, despite it's shortcomings.
    Thanks,
    Matt.

  • Unable to download image from DB in forms 10g using webutility

    Hi All,
    I want to download blob image from db to client I am using below code in a button when i press button i get this error: ORA-04067
    Any one please help.
    declare
         vboolean boolean;
         vfilename varchar2(120) := 'J:\img'||:employees.employee_id||to_char(sysdate,'DDMMRRRR_HH24MISS')||'.jpg';
    begin
    vboolean :=
    webutil_file_transfer.DB_To_Client_With_Progress
    ( vfilename,
    'employees',
    'picture',
    'employee_id = '||:employees.employee_id,
    'Downloading from Database',
    'Wait to Complete');
    client_host('cmd /c start '||vfilename);
    end;

    Hello Francois,
    Thanks for response!
    I compiled the webutil_db package in database and it is in the forms user schema, i got the same error message as i get in the forms
    actual error message is both in db compilation and in the forms execution
    ora-04067 not executed, package body "<user>.webutil_db" does not exist.

  • Error Downloading Plugin for Swing Applet

    Dear Fellows!
    i am using following Java Script in HTML to download Java Plugin for Swing Applet.
    <b>But</b>
    During download and installation it gives the error that the file is corrupted try to download again...., I have checked it on more than one PC,s and platforms ....
    Please guide if there is problem in script or in the available plugin...
    Thanking you !!!!!
    /////////////////////// HTML /////////////////
    <html>
    <head>
    <title>Swing Applet</title>
    </head>
    <body BGCOLOR="#ffffff" LINK="#000099">
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.1 -->
    <SCRIPT LANGUAGE="JavaScript"><!--
    var info = navigator.userAgent; var ns = false;
    var ie = (info.indexOf("MSIE") > 0 && info.indexOf("Win") > 0 && info.indexOf("Windows 3.1") < 0);
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
    var ns = (navigator.appName.indexOf("Netscape") >= 0 && ((info.indexOf("Win") > 0 && info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
    //--></SCRIPT></COMMENT>
    <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/1.1.2/jinstall-112-win32.cab#Version=1,1,2,0"><NOEMBED><XMP>');
    else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.1.2" java_CODE = "Client.class" java_CODEBASE = "./Chat" java_ARCHIVE = "*.class" WIDTH = 400 HEIGHT = 50 pluginspage="http://java.sun.com/products/plugin/1.1.2/plugin-install.html"><NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET CODE = "Client.class" CODEBASE = "./Chat" ARCHIVE = "*.class" WIDTH=600 HEIGHT=500 ></XMP>
    <PARAM NAME = CODE VALUE = "Client.class" >
    <PARAM NAME = CODEBASE VALUE = "./Chat" >
    <PARAM NAME = ARCHIVE VALUE = "Client.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.2">
    </APPLET>
    </NOEMBED></EMBED></OBJECT>
    </body>
    </html>

    I remeber there is an example in Sun java toturial,
    you may find the answer from there.
    peter
    JawaBeginer (A powerful JavaIDE tool for Java Programmer, exp: beginer)
    http://www.pivotonic.com

  • I had firefox before and when my local carrier changed something, I am unable to download firefox. it shows proxy server is refusing conections. Can you help

    Like i said before, I used to be connected with firefox. I had problems with my local carrier-charter- one day and they did something and every since then, I am unable to download or use firefox. When I try it says "proxy server is refusing connections. Can you please help with this so I am able to use firefox. Thanks

    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    *[[Firefox cannot load websites but other programs can]]

  • I'm unable to download RAW images from my Canon Rebel T2i to my flash drives. JPEGS are fine. WHY?

    Suddenly I'm unable to download my RAW images from my Canon Rebel T2i to my flash drives when just a few weeks ago I was able to. What happened? I can download JPEGS just fine. No error codes, software works like normal, i see the previews and when i go to my flash drives to open the files the dated file is there but it opens with no images. I've reformatted the memory card twice now, so that's not the problem. Any ideas from all my new friends out there. Thank you.

    We may need more info.  What are your flash drives?  What are you using to copy?  What computer/OS do you use?
    Normally a file is a file... a computer doesn't care what type of file it is.  Whether or not any software knows how to hope the file wont impact the computer's ability to copy it.  This makes me wonder if it is being copied, but can't be opened (e.g. if the software you are using doesn't know how to deal with a Canon T2i RAW file (.CR2).
    RAW is more of a "concept" than a "standard".  Every camera model's RAW file will be slightly different.  If you want to open an image in, say, Photoshop... they provide "Adobe Camera RAW" updates for their software and you'd need the update that supports your T2i (btw, when Adobe releases a "new" version of software, they tend to stop providing RAW updates for all previous versions of that software.  So depending on what version of software you use... the only way to get it to work with RAW may involve having to upgrade the software (there are some cumbersome work-arounds.))
    Tim Campbell
    5D II, 5D III, 60Da

  • I'm unable to download raw images from my canon 70D to elements 12.?

    I'm unable to download raw images from my canon 70D to PH elements 12, downloaded camera raw 8.2 as I saw in a discussion but still unable to convert images.  In the "select images" window the images are soft and cannot be selected.  What am I doing wrong? Any help?

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • Do JavaFX applets tend to download faster than Swing applets?

    Historically, the biggest concern with Java applets is that they take too long to download.
    Is it true that JavaFX applets will download faster?
    In particular, by using CSS properties instead of all the Swing method calls, will JavaFX applets tend to be smaller and download faster (since the browser, not the bytecode, will do the work of translating the CSS code to graphics commands that the operating system can understand)?
    Thanks,
    John

    I do not think size is the main issue for startup.
    It is only applicable to cold start (i.e. first launch) as on subsequent launches jars will be coming from cache.
    And it does not impact much "perceived" startup as typically application can appear to be "live" earlier than it is fully loaded
    (e.g. using preloaders).
    For the warm start scenario it is still the same plugin but
    a) JavaFX applications are by default deployed in a way to minimize number of network connections
    b) JavaFX toolkit is initialized instead of AWT/Swing
    This gives JavaFX fundamental benefit over "Swing applet" scenario but ...
    a) it does not magically make it instant as jvm still need to be started, etc.
    (if your application is slow to start as standalone it will not be starting instantly in the browser)
    b) JavaFX runtime and Java deployment code may have bugs that lead to suboptimal performance
    Best is to give it its own try and see if it is fast enough for you.

  • I'm trying to prepare some new iPads using Apple Configurator and the download of IOS8 failed.  The error in Apple Configurator is "Unable to download iOS 8.0. The firmware image was corrupted. Please retry the operation."

    I'm trying to prepare some new iPads using Apple Configurator and the download of IOS8 failed.
    The error in Apple Configurator is "Unable to download iOS 8.0. The firmware image was corrupted. Please retry the operation."
    Is there a way to get the Apple Configurator to try to re-download iOS 8?

    Apple Support had me delete the image file from the following location:
    ~/Library/Containers/com.apple.configurator/Data/Library/Caches/com.apple.confi gurator/firmware/
    The file name was iPad3,4_8.0_12A365_Restore.ipsw
    I deleted this file and ran the prepare again and it download the iOS 8 ok and successfully prepared the iPad.

  • Error in Apple Configurator - Unable to Download iOS 7.1.2. The firmware image was corrupted.

    The initial update of some iPads failed while preparing them in Apple Configurator. Now this message, Unable to Download iOS 7.1.2. The firmware image was corrupted, appears every time I try to prepare using the Configurator. Can the corrupted firmware image be deleted or is there away around the error?

    It should be located here:
    ~/Library/Containers/com.apple.configurator/Data/Library/Caches/com.apple.config urator/Firmware/
    Try deleting the ipsw from here and re-download it.

  • Unable to pre download images from WLC

    Hi,
    today I tried to update WLC 5008 to software version 7.6.120.0. Everything went ok, but when I tried to predownload images to AP, some of the AP's failed during the predownload operation. Predownload was completed successfully to all (36) AIR-CAP1602I-E-K9 AP, but all (40) AIR-CAP2602I-E-K9  failed. The reason of failure is following:
    AP with MAC: xx:xx(xxxx) upgrade image from verion:7.4.110.0 to 7.6.120.0 failed. Failure Cause:Unable to open image tar file..
    and then 
    AP with MAC: xx:xx(xxxx) upgrade image from verion:7.4.110.0 to 7.6.120.0 failed. Failure Cause:Error access flash file system..
    Any advices?
    Thanks. M.
    // Sorry for my bad English, I hope my problem is understandable. 

    I had the same issue: CISCO TAC toild me it's cisco bug on 7.6.120.0, that causes predownload issue with 2600 series AP's.

  • AP unable to download the image from 5508 WLC

    Hi,
    I have a 5508 WLC connected to 2950 Switch and the LAP 1262 connected to the same default VLAN. My AP's are able to join the controller since they are in the same broadcast domain but They are NOT able to download the image from WLC. When I am looking at the wireless TAB of WLC.. it says... Downloading Image.
    Can anyone pls. suggest what all needs to be done to make UP the APs. Also, Following is the error i am seeing at the AP.
    *Apr 27 11:48:40.640: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.99:5246
    *Apr 27 11:48:40.640: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:48:40.640: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:48:40.694: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 27 11:48:40.700: capwap_image_proc: problem extracting tar file
    *Apr 27 11:48:40.700: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is not established.
    *Apr 27 11:48:51.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:48:51.000: %CAPWAP-5-CHANGED: CAPWAP changed state to 
    *Apr 27 11:48:51.569: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:48:51.569: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99
    *Apr 27 11:48:51.569: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    examining image...
    *Apr 27 11:48:56.571: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99perform archive download capwap:/ap3g1 tar file
    *Apr 27 11:48:56.583: %CAPWAP-5-AP_IMG_DWNLD: Required image not found on AP. Downloading image from Controller.
    *Apr 27 11:48:56.589: %CAPWAP-5-CHANGED: CAPWAP changed state to IMAGE
    *Apr 27 11:48:56.589: Loading file /ap3g1...
    logging facility kern
            ^
    % Invalid input detected at '^' marker.
    %Error opening flash:/update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    archive download: takes 48 seconds
    *Apr 27 11:49:44.640: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.99:5246
    *Apr 27 11:49:44.640: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:49:44.640: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:49:44.694: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 27 11:49:44.700: capwap_image_proc: problem extracting tar file
    *Apr 27 11:49:44.700: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is not established.
    *Apr 27 11:49:54.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:49:54.000: %CAPWAP-5-CHANGED: CAPWAP changed state to 
    *Apr 27 11:49:54.569: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:49:54.572: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99
    *Apr 27 11:49:54.572: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    examining image...
    *Apr 27 11:49:59.571: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99perform archive download capwap:/ap3g1 tar file
    *Apr 27 11:49:59.583: %CAPWAP-5-AP_IMG_DWNLD: Required image not found on AP. Downloading image from Controller.
    *Apr 27 11:49:59.589: %CAPWAP-5-CHANGED: CAPWAP changed state to IMAGE
    *Apr 27 11:49:59.589: Loading file /ap3g1...
    logging facility kern
            ^
    % Invalid input detected at '^' marker.
    %Error opening flash:/update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    archive download: takes 48 seconds
    *Apr 27 11:50:47.644: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.99:5246
    *Apr 27 11:50:47.644: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:50:47.644: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:50:47.697: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 27 11:50:47.697: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is not established.
    *Apr 27 11:50:47.703: capwap_image_proc: problem extracting tar file
    *Apr 27 11:50:57.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:50:57.000: %CAPWAP-5-CHANGED: CAPWAP changed state to 
    *Apr 27 11:50:57.569: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:50:57.569: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99
    *Apr 27 11:50:57.569: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    examining image...
    *Apr 27 11:51:02.571: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99perform archive download capwap:/ap3g1 tar file
    *Apr 27 11:51:02.583: %CAPWAP-5-AP_IMG_DWNLD: Required image not found on AP. Downloading image from Controller.
    *Apr 27 11:51:02.589: %CAPWAP-5-CHANGED: CAPWAP changed state to IMAGE
    *Apr 27 11:51:02.589: Loading file /ap3g1...
    logging facility kern
            ^
    % Invalid input detected at '^' marker.
    %Error opening flash:/update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    archive download: takes 48 seconds
    *Apr 27 11:51:50.640: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.99:5246
    *Apr 27 11:51:50.640: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:51:50.640: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 27 11:51:50.694: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 27 11:51:50.700: capwap_image_proc: problem extracting tar file
    *Apr 27 11:51:50.700: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is not established.
    *Apr 27 11:52:00.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:52:00.000: %CAPWAP-5-CHANGED: CAPWAP changed state to 
    *Apr 27 11:52:00.569: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.99 peer_port: 5246
    *Apr 27 11:52:00.569: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99
    *Apr 27 11:52:00.569: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    examining image...
    *Apr 27 11:52:05.571: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.99perform archive download capwap:/ap3g1 tar file
    *Apr 27 11:52:05.583: %CAPWAP-5-AP_IMG_DWNLD: Required image not found on AP. Downloading image from Controller.
    *Apr 27 11:52:05.589: %CAPWAP-5-CHANGED: CAPWAP changed state to IMAGE
    *Apr 27 11:52:05.589: Loading file /ap3g1...
    logging facility kern

    hi amjad,i am working on the same controller and i upload the image to another AP and cponvert it to LAP. bot this is not registering on controller and behaves like first as first ap is registered and working fine. 2nd ap console output is given below
    %Error opening flash:/update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    archive download: takes 48 seconds
    *Apr 29 10:16:29.644: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192
    .168.1.59:5246
    *Apr 29 10:16:29.644: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 29 10:16:29.647: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 29 10:16:29.707: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 29 10:16:29.713: capwap_image_proc: problem extracting tar file
    *Apr 29 10:16:29.713: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is
    not established.
    *Apr 29 10:16:40.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_i
    p: 192.168.1.59 peer_port: 5246
    *Apr 29 10:16:40.000: %CAPWAP-5-CHANGED: CAPWAP changed state to
    *Apr 29 10:16:40.569: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully
    peer_ip: 192.168.1.59 peer_port: 5246
    *Apr 29 10:16:40.569: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.59
    *Apr 29 10:16:40.569: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    examining image...
    *Apr 29 10:16:45.571: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.59pe
    rform archive download capwap:/ap3g1 tar file
    *Apr 29 10:16:45.583: %CAPWAP-5-AP_IMG_DWNLD: Required image not found on AP. Do
    wnloading image from Controller.
    *Apr 29 10:16:45.589: %CAPWAP-5-CHANGED: CAPWAP changed state to IMAGE
    *Apr 29 10:16:45.589: Loading file /ap3g1...
    logging facility kern
            ^
    % Invalid input detected at '^' marker.
    %Error opening flash:/update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    archive download: takes 48 seconds
    *Apr 29 10:17:33.647: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192
    .168.1.59:5246
    *Apr 29 10:17:33.647: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 29 10:17:33.650: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 29 10:17:33.710: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 29 10:17:33.716: capwap_image_proc: problem extracting tar file
    *Apr 29 10:17:33.716: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is
    not established.
    *Apr 29 10:17:43.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_i
    p: 192.168.1.59 peer_port: 5246
    *Apr 29 10:17:43.000: %CAPWAP-5-CHANGED: CAPWAP changed state to
    *Apr 29 10:17:43.569: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully
    peer_ip: 192.168.1.59 peer_port: 5246
    *Apr 29 10:17:43.569: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.59
    *Apr 29 10:17:43.569: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    examining image...
    *Apr 29 10:17:48.571: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.59pe
    rform archive download capwap:/ap3g1 tar file
    *Apr 29 10:17:48.583: %CAPWAP-5-AP_IMG_DWNLD: Required image not found on AP. Do
    wnloading image from Controller.
    *Apr 29 10:17:48.589: %CAPWAP-5-CHANGED: CAPWAP changed state to IMAGE
    *Apr 29 10:17:48.589: Loading file /ap3g1...
    logging facility kern
            ^
    % Invalid input detected at '^' marker.
    %Error opening flash:/update/info (No such file or directory)
    ERROR: Image is not a valid IOS image archive.
    archive download: takes 48 seconds
    *Apr 29 10:18:36.647: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192
    .168.1.59:5246
    *Apr 29 10:18:36.650: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 29 10:18:36.650: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Apr 29 10:18:36.710: %CAPWAP-3-ERRORLOG: capwap ifs:  read error or timeout
    *Apr 29 10:18:36.716: capwap_image_proc: problem extracting tar file
    *Apr 29 10:18:36.716: %CAPWAP-3-ERRORLOG: Dropping dtls packet since session is
    not established.
    *Apr 29 10:18:46.000: %CAPWAP-5-DTLSRE
    pls help

  • TS1315 I just bought a Sony Cybershot camera, DSC-W710. I have pictures in the memory card in the camera but I am unable to download my images using the USB connection. Any suggestions?

    I am trying to download images from my Sony camera, DSC-W710, but iPhoto in my Mac is not accepting the download through a USB drive. Any suggestions?

    KimEfromnc
    Unfortunately some sad folks like to come to the forum not to help but simply to pick arguments for their own amusments.
    No digitial still camera by any major maker requires installing drivers from a CD or DVD. None.
    The same is true of many scanners and copiers too, in the hands of a knowledgeable computer user. People running older systems that they don't understand or know how to use will disagree, of course, if they choose to be argumentative. Personally, I ignore usch people.
    The common causes for your issue are
    1. A USB fault. That might be a damaged cable, an issue with the USB ports on your computer or your camera. Easiest way to check: swap the cables, try a different port, make sure your camera is on and charged
    2. Try use a USB Card Reader or the Card Reader port on your Mac, if it has one.
    3. Another possibility is that the camera card may need to be reformatted - you do this with the camera only.

  • Java Swing Applets in Mac Os

    hi there,
    I am a student at the University of Portsmouth in the UK in my third and last year. I am doing my dissertation as a game using applets for a client at the university of which there consits four prototypes. One of the main specification points is that it should work on an apple mac, therefore I am using Swing applets. however with my first prototype it works fine on windows in windows Explorer, firefox and Netscape but i cant get it to work on Mac os 9 or X even with the latest version of java installed on the machine. Can anyone tell me why this is so, I would be very gratefull.
    As I cant post the whole applet here as a file download I will just put some code snippets of the main program classes.
    Applet ------------------------------
    * Class JugglingBalls - A sub class of JApplet that combines the GameInterface and GamePanel into a single application
    * @author (Liam Morren)
    * @version (v1.0)
    import java.awt.*;
    import javax.swing.*;
    public class JugglingBalls extends JApplet
        // instance variables -----------------------------------------------------------------------------------------------------------------------------------
        private GamePanel gamePanel; // The game panel including game and render loop
        private GameInterface gameInterface; // The swing interface to modify the game scene components
        // JApplet methods -------------------------------------------------------------------------------------------------------------------------------------
         * Called by the browser or applet viewer to inform this JApplet that it
         * has been loaded into the system. It is always called before the first
         * time that the start method is called.
        public void init()
            gamePanel = new GamePanel();
            gameInterface = new GameInterface(gamePanel.getGameScene());
            Container content = getContentPane(); // The container for components in the applet
            setLayout(new BoxLayout(content, BoxLayout.X_AXIS));
            content.add(gamePanel);
            content.add(gameInterface);
         * Returns information about this applet.
         * An applet should override this method to return a String containing
         * information about the author, version, and copyright of the JApplet.
         * @return a String representation of information about this JApplet
        public String getAppletInfo()
            // provide information about the applet
            return "Title: JugglingBalls  \nAuthor: Liam Morren  \nA simple application showing balls juggling in the air.";
    Interface -------------------------------------
    * Class GameInterface - Lets you manipulate the game components using swing components
    * @author (Liam Morren)
    * @version (v1.0)
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class GameInterface extends JPanel
        // instance variables -------------------------------------------------------------------------------------------------------------------------------------
        private GameScene gameScene; // Reference to the game scene
        private JTabbedPane gameTabs; // Tabs for Game, Balls and Background
        // Scene panel
        JButton pause, start, reset; // Buttons
        // Balls panel
        JRadioButton redBall, greenBall, blueBall, archBall, figureOfEightBall; // Radio buttons
        JCheckBox canSplit; // Check box
        JComboBox setAllPaths, setAllTypes, newBall, selectBall; // Drop down boxes
        JButton deleteBall; // Button
        Ball currentBall; // Current ball being changed
        // Background panel
        JRadioButton black, white, red, green, blue, hide, show, stop, move, arch, figureOfEight; // Radio buttons
        // Constructors -------------------------------------------------------------------------------------------------------------------------------------------
         * Constructor for objects of class GameInterface
        public GameInterface(GameScene gameSceneIn)
            gameScene = gameSceneIn; // Reference to the game scene
            gameTabs = new JTabbedPane(); // JTabbedPane to hold different toolbars
            gameTabs.setPreferredSize(new Dimension(200, 494)); // Set the preffered size for the tabbed pane
            currentBall = gameScene.getBall(0); // First ball
            // Add the panels to the tabbed pane
            gameTabs.addTab("Scene", makeScenePanel());
            gameTabs.addTab("Balls", makeBallsPanel());
            gameTabs.addTab("Background", makeBackgroundPanel());
            add(gameTabs); // Add the tab to the game interface panel
            setPreferredSize(new Dimension(200, 200));
        // Other methods ------------------------------------------------------------------------------------------------------------------------------------------
         * makeScenePanel
         * @return JPanel - The scene panel with buttons added
        private JPanel makeScenePanel()
            // Make scene panel
            JPanel scenePanel = new JPanel();
            scenePanel.setLayout(new BoxLayout(scenePanel, BoxLayout.Y_AXIS)); // Change layout
            pause = new JButton("Pause"); // Make buttons
            start = new JButton("Start");
            reset = new JButton("Reset");
            // Add button actions
            pause.addActionListener(new ActionListener() // Add button listener to pause button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setPaused(true); // Pause game
            start.addActionListener(new ActionListener() // Add button listener to start button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setPaused(false); // Unpause game
            reset.addActionListener(new ActionListener() // Add button listener to reset button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.reset(); // Reset game
                    updateSelectBallComboBox();
                    changeSelectedBall(0);
            scenePanel.add(pause); // Add buttons to scene panel
            scenePanel.add(start);
            scenePanel.add(reset);
            return scenePanel;
         * makeBackgroundPanel
         * @return JPanel - The background panel with buttons added
        private JPanel makeBackgroundPanel()
            // Make scene panel
            JPanel backgroundPanel = new JPanel();
            backgroundPanel.setLayout(new GridLayout(5, 1, 2, 2)); // Change layout
            // Make buttons
            // background colour buttons
            JPanel backgroundcolour = new JPanel(); // Change backgroundcolour panel
            backgroundcolour.setBorder(BorderFactory.createLineBorder(Color.black));
            black = new JRadioButton("Black"); // Radio buttons to change colour
            white = new JRadioButton("white");
            black.setSelected(true); // Set black as already selected
            ButtonGroup backColourGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            backColourGroup.add(black); // Add buttons to group
            backColourGroup.add(white);
            backgroundcolour.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            backgroundcolour.add(new JLabel("Background colour")); // Add label
            backgroundcolour.add(black); // Add buttons to colours panel
            backgroundcolour.add(white);
            // Add radio button actions
            black.addActionListener(new ActionListener() // Add button listener to black button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setBackgroundColour(false); // Background colour = black
            white.addActionListener(new ActionListener() // Add button listener to white button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setBackgroundColour(true); // Background colour = white
            // colour buttons
            JPanel colours = new JPanel(); // Change colours panel
            colours.setBorder(BorderFactory.createLineBorder(Color.black));
            red = new JRadioButton("Red"); // Radio buttons to change colour
            green = new JRadioButton("Green");
            green.setSelected(true); // Set green as already selected
            blue = new JRadioButton("Blue");
            ButtonGroup colourGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            colourGroup.add(red); // Add buttons to group
            colourGroup.add(green);
            colourGroup.add(blue);
            colours.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            colours.add(new JLabel("Change colours")); // Add label
            colours.add(red); // Add buttons to colours panel
            colours.add(green);
            colours.add(blue);
            // Add radio button actions
            red.addActionListener(new ActionListener() // Add button listener to red button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (gameScene.getBackgroundEffect().getColour() != 0)
                        gameScene.getBackgroundEffect().setColour(0); // Background effect colour = red
            green.addActionListener(new ActionListener() // Add button listener to green button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (gameScene.getBackgroundEffect().getColour() != 1)
                        gameScene.getBackgroundEffect().setColour(1); // Background effect colour = green
            blue.addActionListener(new ActionListener() // Add button listener to blue button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (gameScene.getBackgroundEffect().getColour() != 2)
                        gameScene.getBackgroundEffect().setColour(2); // Background effect colour = blue
            // hide buttons
            JPanel hideShow = new JPanel(); // Change hideShow panel
            hideShow.setBorder(BorderFactory.createLineBorder(Color.black));
            hide = new JRadioButton("Hide"); // Radio buttons to hide show
            show = new JRadioButton("Show");
            show.setSelected(true); // Set show as already selected
            ButtonGroup hideShowGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            hideShowGroup.add(hide); // Add buttons to group
            hideShowGroup.add(show);
            hideShow.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            hideShow.add(new JLabel("Hide / Show")); // Add label
            hideShow.add(hide); // Add buttons to hideShow panel
            hideShow.add(show);
            // Add radio button actions
            hide.addActionListener(new ActionListener() // Add button listener to hide button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().hide(); // Hide
            show.addActionListener(new ActionListener() // Add button listener to show button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().unHide(); // Unhide
            // stopMove buttons
            JPanel stopMove = new JPanel(); // Change StopMove panel
            stopMove.setBorder(BorderFactory.createLineBorder(Color.black));
            stop = new JRadioButton("Stop"); // Radio buttons to stop move
            move = new JRadioButton("Move");
            stop.setSelected(true); // Set stop as already selected
            ButtonGroup stopMoveGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            stopMoveGroup.add(stop); // Add buttons to group
            stopMoveGroup.add(move);
            stopMove.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            stopMove.add(new JLabel("Stop / Move")); // Add label
            stopMove.add(stop); // Add buttons to stopMove panel
            stopMove.add(move);
            // Add radio button actions
            stop.addActionListener(new ActionListener() // Add button listener to stop button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setMove(false); // stop
            move.addActionListener(new ActionListener() // Add button listener to move button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setMove(true); // move
            // changePath buttons
            JPanel changePath = new JPanel(); // Change changePath panel
            changePath.setBorder(BorderFactory.createLineBorder(Color.black));
            arch = new JRadioButton("Arch"); // Radio buttons to change path
            figureOfEight = new JRadioButton("Figure of eight");
            arch.setSelected(true); // Set stop as already selected
            ButtonGroup changePathGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            changePathGroup.add(arch); // Add buttons to group
            changePathGroup.add(figureOfEight);
            changePath.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            changePath.add(new JLabel("Change Path")); // Add label
            changePath.add(arch); // Add buttons to changePath panel
            changePath.add(figureOfEight);
            // Add radio button actions
            arch.addActionListener(new ActionListener() // Add button listener to arch button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setPath(new Arch()); // Arch
            figureOfEight.addActionListener(new ActionListener() // Add button listener to figureOfEight button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setPath(new FigureOfEight()); // Figure of eight
            // Add components to background panel
            backgroundPanel.add(backgroundcolour);
            backgroundPanel.add(colours);
            backgroundPanel.add(hideShow);
            backgroundPanel.add(stopMove);
            backgroundPanel.add(changePath);
            return backgroundPanel;
         * makeBallsPanel
         * @return JPanel - The ball panel with buttons added
        private JPanel makeBallsPanel()
            // Make balls panel
            JPanel ballsPanel = new JPanel();
            ballsPanel.setLayout(new BoxLayout(ballsPanel, BoxLayout.Y_AXIS)); // Change layout
            // Make buttons
            // set all drop down boxes
            JPanel setAll = new JPanel(); // Set all panel
            setAll.setBorder(BorderFactory.createLineBorder(Color.black));
            String[] setAllPathsChoices = {"Arch", "Figure of eight"}; // Selections for set all paths
            setAllPaths = new JComboBox(setAllPathsChoices); // Add selections to combo box
            String[] setAllTypesChoices = {"Primary ball", "Pastel ball", "3D ball", "Image ball"}; // Selections for set all types
            setAllTypes = new JComboBox(setAllTypesChoices); // Add selections to combo box
            setAll.add(new JLabel("Set all paths")); // Add combo boxes to set all panel
            setAll.add(setAllPaths);
            setAll.add(new JLabel("Set all types"));
            setAll.add(setAllTypes);
            // Add combo box actions
            setAllPaths.addActionListener(new ActionListener() // Add selection listener to set all paths combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (setAllPaths.getSelectedItem() == "Arch")
                        gameScene.setAllPathsArch();
                    else
                        gameScene.setAllPathsFigureOfEight();
            setAllTypes.addActionListener(new ActionListener() // Add selection listener to set all types combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (setAllTypes.getSelectedItem() == "Primary ball")
                        gameScene.setAllTypesPrimaryBall();
                    else if (setAllTypes.getSelectedItem() == "Pastel ball")
                        gameScene.setAllTypesPastelBall();
                    else if (setAllTypes.getSelectedItem() == "Image ball")
                        gameScene.setAllTypesImageBall();
                    else
                        gameScene.setAllTypesBall3D();
            // new ball drop down box
            JPanel newBallPanel = new JPanel(); // new ball panel
            newBallPanel.setBorder(BorderFactory.createLineBorder(Color.black));
            String[] newType = {"Primary ball", "Pastel ball", "3D ball", "Image ball"}; // Selections for new ball
            newBall = new JComboBox(newType); // Add selections to combo box
            newBallPanel.add(new JLabel("New ball")); // Add combo boxes to new ball panel
            newBallPanel.add(newBall);
            // Add combo box actions
            newBall.addActionListener(new ActionListener() // Add selection listener to newBall combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    String ballType = (String) newBall.getSelectedItem();
                    if (ballType == "Primary ball")
                        gameScene.addBall(new PrimaryBall(gameScene));
                    else if (ballType == "Pastel ball")
                        gameScene.addBall(new PastelBall(gameScene));
                    else if (ballType == "Image ball")
                        gameScene.addBall(new ImageBall(gameScene));
                    else
                        gameScene.addBall(new Ball3D(gameScene));
                    updateSelectBallComboBox();
                    changeSelectedBall(gameScene.getBalls().size() - 1); // Update interface to show new ball
            // selected ball panel
            JPanel selectedBallPanel = new JPanel(); // selected ball panel
            selectedBallPanel.setBorder(BorderFactory.createLineBorder(Color.black));
            // Select ball
            selectBall = new JComboBox(gameScene.getBallList()); // Add ball list to the select drop down box
            deleteBall = new JButton("DeleteBall"); // Delete button
            // Ball colour
            redBall = new JRadioButton("Red"); // Red choice
            redBall.setSelected(true); // Start as selected
            greenBall = new JRadioButton("Green"); // Green choice
            blueBall = new JRadioButton("Blue"); // Blue choice
            ButtonGroup ballColour = new ButtonGroup(); // So only one colour can be selected at a tim
            ballColour.add(redBall);
            ballColour.add(greenBall);
            ballColour.add(blueBall);
            // Path
            archBall = new JRadioButton("Arch"); // Arch path choice
            archBall.setSelected(true); // Start as selected
            figureOfEightBall = new JRadioButton("Figure of eight"); // Figure of eight path choice
            ButtonGroup ballPath = new ButtonGroup(); // So only one path can be selected at a tim
            ballPath.add(archBall);
            ballPath.add(figureOfEightBall);       
            // Can split
            canSplit = new JCheckBox("Can split", false); // Initialy not selected
            selectedBallPanel.add(new JLabel("Select ball")); // Add components to selected ball panel
            selectedBallPanel.add(selectBall);
            selectedBallPanel.add(deleteBall);
            selectedBallPanel.add(new JLabel("Ball colour"));
            selectedBallPanel.add(redBall);
            selectedBallPanel.add(greenBall);
            selectedBallPanel.add(blueBall);
            selectedBallPanel.add(new JLabel("Path"));
            selectedBallPanel.add(archBall);
            selectedBallPanel.add(figureOfEightBall);
            selectedBallPanel.add(canSplit);
            // Add select ball drop down box action
            selectBall.addActionListener(new ActionListener() // Add selection listener to selectBall combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    changeSelectedBall(selectBall.getSelectedIndex()); // Change the selected ball using the index from the select ball drop down box
            // Add delete button action
            deleteBall.addActionListener(new ActionListener() // Add selection listener to deleteBall button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    int tempIndex = selectBall.getSelectedIndex(); // Temp index
                    if (gameScene.getBalls().size() > 1) // If there is more than 1 ball left
                        gameScene.removeBall(tempIndex); // Remove ball
                        updateSelectBallComboBox(); // Update with new ball list
                        changeSelectedBall(tempIndex - 1); // Update interface with new current selected ball
            // Add radio button colour actions
            redBall.addActionListener(new ActionListener() // Add button listener to redBall button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (currentBall.getColour() != 0)
                        currentBall.setColour(0); // currentBall colour = red
            greenBall.addActionListener(new ActionListener() // Add button listener to greenBall button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (currentBall.getColour() != 1)
                        currentBall.setColour(1); // currentBall colour = green
            blueBall.addActionListener(new ActionListener() // Add button listener to blueBall button
                public void actionPerformed(ActionEvent ev) // Background colour = blue
                    if (currentBall.getColour() != 2)
                        currentBall.setColour(2); // currentBall colour = blue
            // Add path radio button actions
            archBall.addActionListener(new ActionListener() // Add button listener to arch button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        currentBall.setPath(new Arch()); // Arch
            figureOfEightBall.addActionListener(new ActionListener() // Add button listener to figureOfEight button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        currentBall.setPath(new FigureOfEight()); // Figure of eight
            // Add can split check button actions
            canSplit.addActionListener(new ActionListener() // Add button listener to can split
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        currentBall.setCanGiveBirth(canSplit.isSelected()); // Ball can split if can split check button is selected
            // Add components to ball panel
            ballsPanel.add(setAll);
            ballsPanel.add(newBallPanel);
            ballsPanel.add(selectedBallPanel);
            return ballsPanel;
         * changeSelectedBall
         * @param  ballIndexIn - The numbered index of the ball in the game scene list of balls. If less than 0 then equals 0. If more than ball list size then equals last ball
        public void changeSelectedBall(int ballIndexIn)
            if (ballIndexIn < 0) // Make sure index is within bounds
                ballIndexIn = 0;
            else if (ballIndexIn >= gameScene.getBalls().size())
                ballIndexIn = gameScene.getBalls().size() - 1; // Else put within bounds at either end
            currentBall.highlight(false); // Unhighlight current ball
            currentBall = gameScene.getBall(ballIndexIn); // Get new current ball
            currentBall.highlight(true); // Highlight new current ball
            // Update controls to new ball
            selectBall.setSelectedIndex(ballIndexIn);
            switch (currentBall.getColour()) // Update colour controls
                case 0: redBall.setSelected(true); break;
                case 1: greenBall.setSelected(true); break;
                default: blueBall.setSelected(true); break;
            if (currentBall.getPath() instanceof Arch) // If path is arch
                archBall.setSelected(true); // Update controls as arch
            else
                figureOfEightBall.setSelected(true); // Else figure of eight
            canSplit.setSelected(currentBall.canGiveBirth()); // Set if the ball can split or not
         * updateSelectBallComboBox
         * This method updates the combo box selection model with a new one made from the updated balls arraylist from the game scene
        public void updateSelectBallComboBox()
            DefaultComboBoxModel model = new DefaultComboBoxModel(gameScene.getBallList());
            selectBall.setModel(model);
    }Kind regards
    Liam morren

    http://docs.info.apple.com/article.html?artnum=301073
    This link states Mac OS X 10.4 now supports Java 5.0. It does mention nothing about Mac OS 9 or previous version of OS X. The problem you may be facing is that your Mac is running only 1.4.2 or less. The class files compiled for Java 5.0 can't run in non 5.0 versions of the Java Virtual Machine. Java 5.0 was a major release for the Java language and thus the change in numbering (though it took a little bit for this to change).
    Anyway you should confirm what version of Java you have installed on your Mac.
    At a command prompt:
    java -version
    The above URL states that the previous 1.4.2 Java version is not uninstalled, and this could still be the preferred version to use for Java applications even after installing Java 5.0.
    The URL above states there is a utility to set your apps to use Java 5.0 as the perferred Java version. Who knows maybe this is all you need to do. I hope this is the case, then it probably is an easy fix, otherwise you may need to rewrite your app in Java 1.4.2 to get it to run on your version of Mac.

Maybe you are looking for

  • Windows 8.1 Update Error 800736B3

    after upgrading from windows 8 to windows 8.1 this error code : 800736B3 appears while installing updates  is there any solution without recover the windows please help me urgently

  • On my mac book pro Iphoto is not opening from dock

    Hi on my mac book pro, media browser was't working. I been told to drag {  iLifeMediaBrowser.framework  } to Trash I did that now my iphoto is not opening,and then I went back and drag iLifeMediaBrowser.framework from trash and place it back. but iph

  • How can we send two invoicess for the customer addresses

    hai     experts i have a problem with invoice my customer is having 2 different addresses. customer requirement is at the time of billing he wants two invoicess for two different addresses. please can any one help me out thanks regards anwar

  • EtherChannel between stacked VSS Catalyst 4500X and Stacked 2960X.

    I can have only one link in the EhterChannel up but the 2nd one goes in to suspended mode.  I've tried recreating channel group on different ports but with the same results. Am I doing something wrong or pagp cannot be transmitted over stacks on both

  • How close all tab in safari

    Is there some way to close all the tabs in safari in just one time.  I have iPhone 4s.  iOS 5.1