Is That a bug of JDK1.4 beta3: too many paint times!!!!!

Try to run the following program, ( u can use your img instead of mine)
//package com.zhaoyoubing.java2d;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.awt.image.*;
import java.net.*;
public class JavaImgTest extends JFrame {
Image img;
int it = 0;
static String title = "Sooooooooo many paints ";
public JavaImgTest() {
super(title);
setSize(300, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
img = loadImage("http", "www.cad.zju.edu.cn", "/home/zhaoyb/yi-s.jpg");
public void paint(Graphics g) {
it++;
setTitle(title + it);
System.out.println(it);
((Graphics2D) g).drawImage(img, 10, 25, this);
// this function from billday.com
Image loadImage(String protocol, String machine, String file) {
//Create the URL object representing our image bits.
URL imageURL = null;
try {
imageURL = new URL(protocol,machine,file);
} catch (MalformedURLException e) {
System.out.println("Please verify your imageURL.");
System.exit(1);
//Now that we have a reference to the bits, let's create and
//return the actual Image object to store them.
Image myImage = getToolkit().getImage(imageURL);
return myImage;
public static void main(String[] args) {
JavaImgTest img1 = new JavaImgTest();
img1.show();
following r my test paint times:
1.4 beta3
linux 66 84 48 90 75
win2000 170 170 170 170 170
1.3.1
linux 3 3 3 3 3
win2000 2 2 2 2 2
1.2.2
linux 5 6 6 4 3
win2000 3 3 4 3 2
I guess it should be a bug!!!

I am not sure but shouldn't this line be:
img = loadImage("http", "www.cad.zju.edu.cn", "/home/zhaoyb/yi-s.jpg");this:
img = loadImage("http://", "www.cad.zju.edu.cn", "/home/zhaoyb/yi-s.jpg");

Similar Messages

  • Trying to download a movie on a laptop.  tellls me i can't play it on that computer because my apple account has too many users.  how do i see who is listed as a user so that i can delete one if it's not needed

    trying to download a movie on a laptop.  tellls me i can't play it on that computer because my apple account has too many users.  how do i see who is listed as a user so that i can delete one if it's not needed
    please help
    [email protected]

    The list you saw that shows what drivers are available from Apple Software Update is based on what drivers are supplied by the vendor to Apple. So it would appear that HP has not provided Apple with a scanner driver for 10.9 (known as an ICA driver), or provided an update if one was available for a previous version of OS X, so that you can scan from Image Capture.
    I checked the HP web site for your model and they don't show any scanner driver or scanning software. If there was a scanner driver, you would be able to use Vuescan.
    As for the Scan button not working, the following is documented by HP
    Scanning to the computer from the printer control panel is not available when you scan with Preview, Image Capture, or Printer browser methods. You must use HP Scan software to scan from the printer.
    But there does not appear to be any version of HP Scan software available for 10.9. So unless someone else has some workaround, it seems that you won't be able to scan with this model of HP.

  • I need my account reset. I am getting a message that says I have activated my account too many times

    I need to have my account reset.

    Adobe Live Chat: http://www.adobe.com/support/chat/ivrchat.html
    They can reset your authorizations, and then you must reauthorize any devices you still need.
    (Unfortunately, Adobe haven’t got round to an admin website for viewing and editing authorizations.)
    Some of the representatives haven't been properly trained and don't know what to do (and claim there is nothing they can do);
    in that case the only way seems to be to give up that chat and try another session hoping for a properly trained representative.
    If your problem is with another device using Overdrive, Bluefire, Aldiko or similar third party app, it is recommended not to mention that app when on the chat, just mention that you have run out of authorizations  (E_ACT_TOO_MANY_ACTIVATIONS) .  Thanks to AJP_Bear for that tip.
    ~

  • How do I solve problem that safari cannot open because of too many redirects?

    How do I fix problem that safari can't open because of too many redirects?

    Try clearing the browser cache and delete any cookies for that site. If that doesn't resolve it, then that's a problem with the web-site itself, so unless it is your own website, you can't fix it.
    Often it's a bug in the website code that detects what device/browser you are using and it gets stuck in a re-direct loop. You could contact the website developers and inform them.

  • I have myyahoo set as my search engine. When I try to open this page I get an message saying that it cannot be opened because of too may redirects.  How can I get this to open again?

    I have myyahoo set as my search engine.  Every time I try to open it a get a message that myyahoo cannot be opened because of too many redirects.  How can I get myyahoo page to open?

    Once you have obtained an external drive and connected it you will 'clone' your internal drive to it.
    Download Carbon Copy Cloner (it is not free but there is a fully functional trial version which is). Use it to clone your internal drive to your external drive. When that is done you will reboot from the clone and use Disk Utility to erase the internal drive (choose Mac OS Extended (Journaled)) as the format (this is normally preset, but check). Make sure to give the external drive a 'distinctive' name, don't want to get drives mixed up in this process.
    Once that is done you will use Carbon Copy Cloner (from the clone) to restore the external to the internal.

  • Is it a bug in JDK1.3?

    Here's a simple program that I compiled and executed by using JDK1.3. The program had worked all very well as long as I typed in 'C' , 'P', 'N', 'A', 'b', or other single characters. Just by curiosity, I kept keying 'c' for 6 or 7 times and of course the computer kept telling me "Entry must be C or P or N!". After that, when I key in 'C', 'P', or 'N' again, strange things happened. I was still confronted with the same message as if I had keyed in invalid characters. The situation lasted until after I typed the command java ChooseManager. Then I got the correct response for the last 'C', 'P' or 'N' that I had entered. Is it a bug in JDK1.3?
    Here is the program:
    public class ChooseManager
    static final double CORP_RATE = 75.99;
    static final double PRI_RATE = 47.99;
    static final double NON_PROF_RATE = 40.99;
    public static void main(String[] args) throws Exception
         char eventType;
         Chap4Event anEvent;
         System.out.println("Enter type of event you are scheduling");
         System.out.println("C for a corporate event");
         System.out.println("P for a private event");
         System.out.println("N for non-profit event");
         eventType=(char)System.in.read();
         while(eventType != 'C' && eventType != 'P' && eventType != 'N')
              System.in.read(); System.in.read();
              System.out.println("Entry must be C or P or N!");
              eventType = (char)System.in.read();
         System.out.print("The manager for this event will be ");
         switch (eventType)
              case 'C':
              System.out.println("Dustin Britt");
              anEvent = new Chap4Event(eventType, CORP_RATE);
              break;
              case 'P':
              System.out.println("Carmen Lindsey");
              anEvent = new Chap4Event(eventType, PRI_RATE);
              break;
              default:
              System.out.println("Robin Armanetti");
              anEvent = new Chap4Event(eventType, NON_PROF_RATE);
              break;
         System.out.println("Event type is " + anEvent.getEventType());
         System.out.println("Minimum rate charged is $" + anEvent.getEventMinRate());

    HELP, jsalonen. Something wrong with Readerbuffer. Why complier state can't resolve class:reader, InputStreamReader and BufferedReader ? Must I input something first?
    public class PetAdvice
         public static void main(String[] args) throws Exception
              char resiType;
              char hour;
              System.out.println("Please cateory your residence type");
              System.out.println("'A' for apartment;");
              System.out.println("'H' for house;");
              System.out.println("'D' for dormiory;");
              Reader resiType = new InputStreamReader(System.in);
              BufferedReader in = new BufferedReader(reader);
              String inputLine = in.readLine();
              while(!(inputLine.equals("A") |
                   inputLine.equals("H") |
                   inputLine.equals("D")))
                   {   System.out.println("entry: "+inputLine+" Entry must be A or H or D");
              inputLine = in.readLine();
              System.out.println("Please specify the average hours you will spend at home.");
              System.out.println("A) 18 or more;");
              System.out.println("B) 10 to 17;");
              System.out.println("C) 8 to 9;");
    System.out.println("D) 6 to 7;");
              System.out.println("E) 0 to 5;");
              hour = (char)System.in.read();
              while (hour != 'A' && hour != 'B' && hour != 'C' && hour != 'D' && hour != 'E')
    System.in.read(); System.in.read();
                   System.out.println("Invalid input, pls choose again.");
                   resiType = (char)System.in.read();
    if (resiType == 'H' && hour == 'A')
    System.out.println("Our recommendation is Pot bellied pig");
              else if (resiType == 'H' && (hour == 'B' || hour == 'C'))
                   System.out.println("Our recommendation is Dog.");
              else if (resiType == 'H' && (hour == 'D' || hour == 'E'))
              System.out.println("Our recommendation is Snake.");
              else if (resiType == 'A' && (hour == 'A' || hour == 'B' ))
              System.out.println("Our recommendation is Cat.");
              else if (resiType == 'A' && (hour =='C' || hour == 'D' || hour == 'E'))
              System.out.println("Our recommendation is Hamster.");
              else if (resiType == 'D' && (hour == 'D' || hour == 'C' || hour == 'B' || hour == 'A'))
              System.out.println("Our recommendation is Fish.");
              else if (resiType == 'D' && hour == 'E')
              System.out.println("Our recommendation is Ant Farm.");
              else
                   System.out.println("Sorry, no recommendation currently.");

  • Is this a bug in JDK1.4.1 regarding JDesktopPane

    Is this a bug in JDK1.4.1 regarding JDesktopPane, when i drag my JInternalFrame in JDesktopPane it becomes little bit sticky and flickery, but when i run same application with JDK1.4.0, works fine, any idea/comments why ?

    Is this a bug in JDK1.4.1 regarding JDesktopPane, when i drag my JInternalFrame in JDesktopPane it becomes little bit sticky and flickery, but when i run same application with JDK1.4.0, works fine, any idea/comments why ?

  • Lync 2013 - re-connecting is un-muting microphone, is that a bug or a feature?

    Every time Lync 2013 re-connects (very often sadly) the microphone is un-muted.
    Is that a bug or a feature?
    I'm using a Plantronics Voyager UC headset (Lync certified), doesn't know if it happens with others too.
    Please advise if there's a solution, I have to disconnect from Lync every time I'm in a conf call using another software like Cisco Webex.
    Quite annoying and very embarassing sometimes...
    Thanks

    Hi,
    When Lync change the status of Mute/Un-Mute, it change the Audio value with the following path: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio
    Please check if Cisco Webex also use the same parameter for Mute\Un-Mute. If the two use the same parameter, it can cause the issue.
    Also, if the re-connection issue only happen to you, please try to update Lync to the latest version and then test again.
    If the re-connection issue happen for multiple users, please check the Lync Server performance and network situation as well.
    Best Regards,
    Eaosn Huang
    Eason Huang
    TechNet Community Support

  • How can I turn off the message that keeps bugging me to update to Firefox 6.0?

    How can I turn off the message that keeps bugging me to update to Firefox 6.0? Given the problems and incompatibilities with 5.0 I have no intention of upgrading until it's absolutely necessary!

    Settings>General>Accessibility>Voice Over change to off.
    PJRS

  • So I just bought an iPhone 5s and Touch ID was working fine until the software update is that a bug ? Because I don't think my home button broke

    So I just bought an iPhone 5s and Touch ID was working fine until the software update is that a bug ? Because I don't think my home button broke

    Have not heard of that but here is what I would do - test after each step to see if the problem is solved
    1. Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    2. If that does not work - back up to iTunes and restore to factory settings
    3. Check to see if the problem is resolved before restoring from backup

  • Too many bugs to isolate a bug when swithching from Alt-F1 to Alt-F7

    First, I consider Linux to be the less buggy OS out there.
    Well, Windows would be less buggy, but it does not really exist, since you have to pay to use it.
    Still, I use to consider Linux very buggy. This opinion I hold true more than ever.
    Here is my box:
    A P5GZ-MX motherboard (intel 945GZ), with 1 GB Memory, and an Celeron D @ 2.66 GHz.
    Now, the integrated VGA connector is badly soldered, so that I used to put something to hold the cable up to have an image.
    This is not the monitor Cable that is broken (I tried an other one and had the same problem).
    When this was not enough anymore, I put my box upside-down (reversing side of  DVD and HD too), that way gravity would hold the cable up (eh... down).
    When this was not enough anymore, I put an old Radeon 7200 (an R100 generation ATI PCI card).
    Then, my problems began (eh... I means continue as usual).
    Let's begin the story with when I installed Arch Linux (again, well the first time with the Radeon 7200 card), about three weeks ago.
    Well, I set the BIOS to prefer the PCI card, to internal one, for what should be now obvious reason.
    I installed Xorg... and things were not so bad. Except, one in about 3 times, when switching back from (Ctrl-Alt-F1 console) to (Alt-F7 Xorg).
    I would have THE bug. Well, basically, one or many window would be empty. Mouse would move, but not interact with anything on screen. Sometimes mouse is jailed inside a window (cannot move out of a window). Recently (maybe just because Firefox not occupying full screen), I would see that some of the text from (Ctrl-Alt-F1 text console) would appears (very brokenly) under the windows (about 4 times on the screen, in green on black).
    I still can swith to text mode with Ctrl-Alt-F1 after bug, and then can use the console.
    Nothing interesting would show in Xorg.0.log after the bug happened.
    I thought maybe I should try a different window manager. I tried icewm rather than OpenBox (or twm).
    At first, I thought OpenBox was the bug, because icewn seems not exhibit THE bug.
    But then, I came to the conclusion, that icewm just had made the bug happen one in about twenty (rathen than in three).
    So I thought that I should install fbcon and vesa driver too (there were some warning they were not installed).
    No change.
    Then I thought, maybe I should try with the vesa driver rather than the radeon one.
    Surprise:
    (EE) VESA(0): V_BIOS address 0x3d810 out of range
    (EE) screen found, but none have a usable configuration
    Then I thought, I should try with latest kernel. Downloaded it.
    Still the bug... with 3.1.1-1-Arch (32 bits BTW).
    Ok, so let's stick with radeon. Reading on possible Kernel Mode Setting with Radeon, I created /etc/modprobe.d/radeon.conf with:
    options radeon modeset=1
    Well, just restarting with startx, show in Xorg.0.log, that KMS was still active.
    So, I thought, let's reboot and see.
    But I did not see.
    Well, my GRUB menu, have NO vga= on the kernel line. So that I boot in plain text (as far as I know).
    At first, Linux seems to boot fine, but then not much before when login prompt would appears... screen became totally black.
    I realized I was still able to log in without seeing what I do, and 'reboot'.
    Ok, try the fallback... not working either.
    So basically, my computer still was working, except I would not see anything.
    Then I began to think... well, maybe I could try to connect the monitor in the 'badly soldered' internal VGA connector.
    Surprise, surprise: the login prompt! Ouf!
    Well, strangely I now need to hold the cable up, so that I thought: maybe this is time to put my box down side up (remember, it is already up side down). But, was too lazy for it. I just edited back /etc/modprobe.d/radeon.conf with modese=0, put back the monitor in the Radeon 7200 card, and rebooted.
    Things were 'fine' again.
    That's when, I thought I should write a message for maybe asking help, but frankly more to publicly complain.

    Revised hypothesis:
    I now believe that the bug while switching from console back to Xorg is not hardware related, and should probably happens to anyone. Also I have a new procedure that seems to always trigger it:
    1) on console (Ctrl-Alt-F1) run startx    (without ending & )
    2) You should be in Xorg, go back to console with Ctrl-Alt-F1
    3) type Enter
    4) Type Alt-F7 to go back in Xorg... hopefully for me in bogus state
    Now, the message that seems to be written in some titlebars are the same, I think, that I would get when I go back to console and do: Ctrl-C (2 or three times)... then after the bug I would see some:
    xterm: Ressource temporarily not available  (or something very similar)
    About V_BIOS address 0x3d810 out of range I am now convinced it is while loading (initializing) int10 module,
    The sad part is that if I add Option "NoInt10" "True" to vesa driver section (doc seems to wrongly suggest to put it in Server section)... then yes, the out of range does not appears, but vesa will continue to unload itself... and finally no usable screen found message would continue to appears. So I suppose Int10 module have become mandatory to vesa rather than optional.

  • BUG: Popup in page fragment; with many regions and popup binded to backing.

    BUG: Popup in page fragment; with many regions and popup or parent binded to backing bean.
    JDEV11.1.2.1 Popup will not popup.(sometimes works if using RichPopup.Show() in backing bean Java code.)
    I have a bug (Popup will not popup)that only happens when I have more than one of the same region.
    And I have a popup in the page fragment is binded to backing bean.
    My SR guy is out today but we plan to enter one.
    test.jspx
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
        <jsp:directive.page contentType="text/html;charset=UTF-8"/>
        <f:view>
            <af:document title="test" id="d1">
                <af:form id="f1">
                    <af:panelGroupLayout id="pgl1" layout="horizontal">
                        <af:outputText value="BUG JDEV11.1.2.1 and IE7. Broken Popup! If I have a jsff fragment and I have many regions of this fragment."
                                       id="ot2"/>
                        <af:outputText value="Inside the fragment I have a popup. If that popup or its parent are binded to a Backing Bean the popup doesn't work."
                                       id="ot1"/>
                    </af:panelGroupLayout>
                    <!-- with a single region it also works (with bindings in place in fragment). -->
                    <af:region value="#{bindings.taskflowemp1.regionModel}" id="r1"/>
                    <af:region value="#{bindings.taskflowemp2.regionModel}" id="r2"/>    
                    <!--
                    <af:region value="#{bindings.taskflowemp3.regionModel}" id="r3"/>
                    <af:region value="#{bindings.taskflowemp4.regionModel}" id="r4"/>
                    -->
                </af:form>
            </af:document>
        </f:view>
    </jsp:root>region.jsff
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:group id="g1">
      <!-- If I remove the binding for popop or popup group, the popup works fine. -->
    <!--Working code here
        <af:group id="g2">
          <af:popup childCreation="deferred" autoCancel="disabled" id="p1" >
        -->
           <!-- Problem code here   -->
        <af:group id="g2" binding="#{TestBean.popupGroup}">
          <af:popup childCreation="deferred" autoCancel="disabled" id="p1" binding="#{TestBean.testPopup}"> 
            <!-- End problem code -->
            <af:dialog id="d2" title="Dialog Title">
              <f:facet name="buttonBar"/>
              <af:outputText value="Dialog Contents" id="ot100"/>
            </af:dialog>
          </af:popup>
        </af:group>
        <af:panelGroupLayout id="pgl1">
          <af:panelBox text="Region" id="pb1">
            <f:facet name="toolbar"/>
            <af:commandButton text="showPopupBehavior" id="cb1" >
              <af:showPopupBehavior popupId="p1"/>
            </af:commandButton>
            <af:commandButton text="AdfPage.PAGE.findComponent JavaScript" id="cb2" actionListener="#{TestBean.popupTestJavaScript}"/>
            <af:commandButton text="RichPopup.Show() Java" id="cb3" actionListener="#{TestBean.popupTestJava}"/>
          </af:panelBox>
        </af:panelGroupLayout>
      </af:group>
    </jsp:root>TestBean.java
    package view;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import org.apache.myfaces.trinidad.component.UIXGroup;
    import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
    import org.apache.myfaces.trinidad.util.Service;
    public class TestBean {
        private RichPopup testPopup;
        private UIXGroup popupGroup;
        public TestBean() {
        public void setTestPopup(RichPopup testPopup) {
            this.testPopup = testPopup;
        public RichPopup getTestPopup() {
            return testPopup;
        public void popupTestJava(ActionEvent actionEvent) {
            if(testPopup != null){
                RichPopup.PopupHints ph = new RichPopup.PopupHints();
                testPopup.show(ph);
            }else{
                System.err.println("TestBean.testPopop IS NULL!");
        public void popupTestJavaScript(ActionEvent actionEvent) {
            showPopupTest("r1:0:p1");
        private static void showPopupTest(String popupId) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExtendedRenderKitService service =
                Service.getRenderKitService(facesContext,
                                            ExtendedRenderKitService.class);
            service.addScript(facesContext,
                              "AdfPage.PAGE.findComponent('" + popupId + "').show();");
        public void setPopupGroup(UIXGroup popupGroup) {
            this.popupGroup = popupGroup;
        public UIXGroup getPopupGroup() {
            return popupGroup;
    }

    Thanks that fixed the problem.
    "a user error"
    Well I followed your book! Chapter 6 of the "Oracle Fusion Developer Guide - Working with Bounded Task Flows in ADF Regions". I think this comes back to book writer error. I found almost no mention of BackingBeanScope in this chapter. Don't you think this would be an important note?
    "did you know that there is a Java API (on the RichPopup instance) to launch a popup ?"
    Yes I posted in my code! If you read the above code you would see it there.
    I don't really understand why the scope of the bean has anything to do with af:showPopupBehavior or AdfPage.PAGE.findComponent.

  • Logic 8.02 Crashes often. Too Many BUGS!! Unstable.

    Hi,
    There's too many problems with Logic 8.02. It's not stable and keeps crashing. I save often becos I expect it may crash unexpectedly whilst loading plugins.
    The final straw for me was when I couldn't even save my session - as saving it actually caused a crash. ha! (what a joke).
    In one hour, I've recorded logic crashing atleast 4 to 5 times. This is why I'm making this post. Apple needs to pick up there game and release software that doesn't crash 4 to 5 times. it's lame but I can't do anything about it but wait for apple to fix it. I do push the computer really hard though. For basic stuff, logic 8's stable, but when you add things like space designer followed by other cpu intensive processes that logic starts to crash unexpectedly.
    How do we report bugs to apple? I found a few bugs that needs attention.
    for example:
    1. Opening a plugin in slot 13 renders it useless cos you can't bring up it's graphics interface when double clicking on it.
    2. Can't copy an object's name and paste it to another object cos the function "command C" doesn't work after Click on the object with the logic's "text" pointer.
    Run the a Mac Pro 8 x 2.8GHz on Mac OS 10.5.4 with large buffer settings.
    Has anyone found other bugs? How do we let apple know?
    Thanks.
    Vaughn.
    Frustrated with Logic 8.02

    In one hour, I've recorded logic crashing atleast 4 to 5 times. This is why I'm making this post. Apple needs to pick up there game and release software that doesn't crash 4 to 5 times. it's lame but I can't do anything about it but wait for apple to fix it.
    Vaughn man that s.ucks. You must be ready to throw your machine out the window. However, what you seem to be saying is that this is absolutely positively Logic's fault, and that this MUST BE the norm for Logic. This type of thinking isn't going to get you anywhere. Logic is NOT your only problem, or else we all would be having these problems too! If we all were experiencing what you are experiencing, these forums would have exploded and people would be having bonfires with their Logic boxes and buying Protools systems.
    It's been a bumpy ride since Logic 8 and Leopard came out, but VAST MAJORITY OF PEOPLE are reporting VERY GOOD to FANTASTIC performance from Logic 8, using 8.0.2 and 10.5.3 or 10.5.4. This includes a lot of pro's working on very large projects. In fact, I've seen only a couple of posts reporting crashes since 10.5.3 came out. What you are experiencing is NOT normal.
    If you want to use Logic, you have to figure out what's going on with YOUR system, because something is wrong with your set-up specifically.
    Try trashing Logic's prefs and repairing disk permissions. If you're working on old projects made with previous versions, or old autoload projects, try starting with a fresh slate. There have been issues with old projects and autoloads. Try a big project with only Logic's internal plugs, as there have been some incompatibility issues with 3rd party plugs. Make sure you have all updates for those. Not saying that Logic will only work with it's own stuff, but there may be one plug that's causing all your problems, and you have to figure out what it is.
    Try removing rewire plug ins, especially Melodyne.
    If all else fails, reinstall Leopard and Logic. A huge pain, but not as much so as making yourself crazy waiting for the solution to come from the outside.
    Good Luck!
    Z.

  • Too many touch points reported: Bug ?

    Dear JavaFX community
    Following situation. I have a touch handler who recognizes special gestures and fires javafx.GestureEvent derivates on positive detection. the gesture event carries a list of cloned touch points for carrying the touches on start and end of the gesture.
    Now if a listener to this GestureEvents fails for whatever reason with an uncaught exception, JavaFX touch point handling goes awry by constantly throwing RuntimeExceptions: "Too many touch points reported". From that point, the touch application is not usable anymore and must be restarted.
    If the listener completes without error, the app continues to work as expected.
    Firing the GestureEvent in a Platform.runLater seemed to help, but I experienced the problem at least once. The problem is not reproducable reliably though.
    I believe this to be a bug in JavaFX.
    Any thoughts/hints/comments on this?
    See the stacktraces below. The first NPE trace is my deliberately provoked exception. The second trace arises upon every single subsequent touch event
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at view.services.ui.navigation.internal.NavigationService.home(NavigationService.java:319)
      at view.ui.gestures.addons.grab.internal.DefaultGrabEventHandler.handle(DefaultGrabEventHandler.java:298)
      at view.ui.gestures.addons.grab.internal.DefaultGrabEventHandler.handle(DefaultGrabEventHandler.java:1)
      at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
      at javafx.event.Event.fireEvent(Event.java:203)
      at keba.view.javafx.gestures.grab.GrabDetector.fireEvent(GrabDetector.java:579)
      at keba.view.javafx.gestures.grab.GrabDetector.fireGrabMoveOrEnd(GrabDetector.java:452)
      at keba.view.javafx.gestures.grab.GrabDetector.handleTouchReleased(GrabDetector.java:415)
      at keba.view.javafx.gestures.grab.GrabDetector.handle(GrabDetector.java:336)
      at keba.view.javafx.gestures.grab.GrabDetector.handle(GrabDetector.java:1)
      at com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(CompositeEventHandler.java:282)
      at com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(CompositeEventHandler.java:98)
      at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:223)
      at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:180)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:203)
      at javafx.scene.Scene.processTouchEvent(Scene.java:1773)
      at javafx.scene.Scene.access$5800(Scene.java:193)
      at javafx.scene.Scene$ScenePeerListener.touchEventEnd(Scene.java:2712)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$11.run(GlassViewEventHandler.java:989)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$11.run(GlassViewEventHandler.java:985)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleEndTouchEvent(GlassViewEventHandler.java:985)
      at com.sun.glass.ui.View.handleEndTouchEvent(View.java:553)
      at com.sun.glass.ui.View.notifyEndTouchEvent(View.java:1007)
      at com.sun.glass.ui.TouchInputSupport.notifyEndTouchEvent(TouchInputSupport.java:85)
      at com.sun.glass.ui.win.WinGestureSupport.notifyEndTouchEvent(WinGestureSupport.java:62)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
      at java.lang.Thread.run(Thread.java:744)
    Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: Too many touch points reported
      at javafx.scene.Scene$ScenePeerListener.touchEventNext(Scene.java:2668)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$10.run(GlassViewEventHandler.java:965)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$10.run(GlassViewEventHandler.java:944)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleNextTouchEvent(GlassViewEventHandler.java:944)
      at com.sun.glass.ui.View.handleNextTouchEvent(View.java:547)
      at com.sun.glass.ui.View.notifyNextTouchEvent(View.java:1002)
      at com.sun.glass.ui.TouchInputSupport.notifyNextTouchEvent(TouchInputSupport.java:117)
      at com.sun.glass.ui.win.WinGestureSupport.notifyNextTouchEvent(WinGestureSupport.java:58)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
      at java.lang.Thread.run(Thread.java:744)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at javafx.scene.Scene.processTouchEvent(Scene.java:1766)
      at javafx.scene.Scene.access$5800(Scene.java:193)
      at javafx.scene.Scene$ScenePeerListener.touchEventEnd(Scene.java:2712)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$11.run(GlassViewEventHandler.java:989)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$11.run(GlassViewEventHandler.java:985)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleEndTouchEvent(GlassViewEventHandler.java:985)
      at com.sun.glass.ui.View.handleEndTouchEvent(View.java:553)
      at com.sun.glass.ui.View.notifyEndTouchEvent(View.java:1007)
      at com.sun.glass.ui.TouchInputSupport.notifyEndTouchEvent(TouchInputSupport.java:85)
      at com.sun.glass.ui.win.WinGestureSupport.notifyEndTouchEvent(WinGestureSupport.java:62)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
      at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
      at java.lang.Thread.run(Thread.java:744)

    Yes, this is a bug in FX. I filed it as RT-34602. As a workaround it would probably be best to catch the exceptions.

  • JSP bug? url.openStream() = server redirected too many times

    I tried something the other day that works in Java, so it should work as a JSP scriptlet, but I received an error message that others have posted elsewhere without a compete resolution. Specifically, given a URL, say u, one ought to be able to do u.openStream() and eventually read the remote page. Typically, one might want to try
    URL u = new URL("http://someserver.com/path/file.xxx")
    BufferedReader bfr = new BufferedReader(new InputStreamReader(u.openStream()))and then read bfr line-by-line. The problem that seems to be fairly common is that the openStream() call throws a ProtocolException claiming "server redirected too many times (20), ."
    What I've seen is that this exception occurs whenever the URL is outside the Tomcat server whence the call is being made; in our case, we're running "out-of-the-box" Jakarta Tomcat 4.1.29 on port 8080 of a w2k server. The code works perfectly in native Java and in JSP for a URL of the form "/anotherpage.jsp"
    Is this a bug in JSP, or in our version of Tomcat, or is there just some configuration parameter that needs to be changed from its default? As I said, I've seen similar posts (with less detailed analysis) in the Usenet newsgroups, but not one has generated a response that explains and resolves the matter.
    Perhaps a JSP guru out there could set the record straight? Thanks.
    P.S. I know that the use of scriptlets in JSP is being discouraged, but they are still supported AFAIK.

    Sure scriptlets are still supported. Most times though you can do things better with a custom tag. Why reinvent the wheel?
    Just as a suggestion, you might try the JSTL <c:import> tag.
    It basically does just this behind the scenes.
    However I don't think that will help you in the end - it will probably hit the same error message.
    My guess would be that the problem is not caused by java/JSP as such, but by a firewall, or configuration somewhere.
    The following works fine for me (ignoring broken images of course)
    <%@ page import="java.net.*, java.io.*" %>
    <%
    URL u = new URL("http://www.google.com");
    BufferedReader bfr = new BufferedReader(new InputStreamReader(u.openStream()));
    String line = null;
    while ((line = bfr.readLine()) != null){
      out.println(line);
    %>Hope this helps,
    evnafets

Maybe you are looking for

  • Mac Book HDD Full, Won't Login

    I have a 13" Macbook (black) with a 150GB HDD. I have been copying movie files to the computer and disregarded a message saying "the hard drive is full". The hard drive filled up and the computer froze (after the above message). The computer will boo

  • Reg: Special Character Appearing in Excel O/P.

    I am getting excel output generated via an Oracle report (CSV format). In the excel output, I am getting a special character for TAB (Chr9, a box). Since user wants to sort the data, because of this character they are not able to sort data in sheet p

  • Mass approval functionality for SRM work items

    Hi, We want to implement mass approval functionality for SRM workflow, so that any user is able to approve/reject multiple requests at one go through UWL. Please guide if it is possible to implement this functinality for task id TS40007952. Regards,

  • [SOLVED] Xfce4-Netload-Plugin

    Brand new Arch with Xfce 4 Desktop Environment version 4.6.1 (Xfce 4.6) When I try to add the netload panel item I get: Xfce4-Netload-Plugin: Error in initalizing: Interface was not found. Any ideas? Last edited by CaptainKirk (2009-06-09 09:30:25)

  • Installing a 32gb mssd hard drive accelearation on HP Pavilion dv6-3127dx

    Re:  HP Pavillion dv6 Notebook, #XG756UA#ABA, Windows 7 Hello, I have the above laptop, purchased on 12-2010.  Because I dropped it by mistake, it cracked the the left bottom shell and the screen hingue is lose so I have a white screen view now, but