JFXPanel: Attempt to call defer when toolkit not running

Occaisionally receiving exception -
java.lang.IllegalStateException: Attempt to call defer when toolkit not running
     at com.sun.javafx.tk.quantum.QuantumToolkit.defer(Unknown Source)
     at com.sun.webpane.sg.prism.InvokerImpl.invokeOnEventThread(Unknown Source)
     at com.sun.webpane.webkit.network.URLLoader.callBack(Unknown Source)
Using JFXPanel with a WebView under JavaFX 2.1 and Java 1.6.0_29. Application works fine most of the time.
I believe the problem is that we have to move application panels around inside our application and I believe this is sometimes causing the JavaFX platform to believe it is shutting down when it shouldn't.
Quote from JavaFX application life-cycle definition -
"•Waits for the application to finish, which happens either when the last window has been closed, or the application calls Platform.exit()
So, the question is - is there anyway to control when JavaFX deems "the last window has been closed" ? I'm going to try the dummy application route but thought I would post here in case someone has a better/cleaner way.
Thanks.

I get a similar problem with a JFXPanel+WebView inside a ToolWindow of the MyDoggy docking framework (cf http://mydoggy.sourceforge.net/docs/mydoggyset.html)
Hiding/showing the ToolWindow eventually leads to this exception:
Exception while removing reference: java.lang.IllegalStateException: Attempt to call defer when toolkit not running
java.lang.IllegalStateException: Attempt to call defer when toolkit not running
     at com.sun.javafx.tk.quantum.QuantumToolkit.defer(QuantumToolkit.java:618)
     at com.sun.webpane.sg.prism.InvokerImpl.invokeOnEventThread(InvokerImpl.java:40)
     at com.sun.webpane.platform.Disposer$DisposerRunnable.enqueue(Disposer.java:92)
     at com.sun.webpane.platform.Disposer$DisposerRunnable.access$100(Disposer.java:76)
     at com.sun.webpane.platform.Disposer.run(Disposer.java:68)
     at java.lang.Thread.run(Thread.java:680)
Tested on OS X+JavaFX 2.2b18.
Should we open a bug for that?
Edited by: 940268 on 24 juil. 2012 14:53

Similar Messages

  • Using 'merge' to compare sequential rows from SQL causes "invalid attempt to call Read when reader is closed"

    Hello,
    The use case is each row logs a cumulative data point, like an odometer, and I need to be able to subtract a previous row from a following row in order to see the change between two rows.
    I can do this if I create a Power Query "From Table," but if I do the same thing when the data source is SQL, I get an error message "invalid attempt to call Read when reader is closed".
    Given a trivial data table, this works:
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1),
        #"Added Index1" = Table.AddIndexColumn(#"Added Index", "Index.1", 1, 1),
        Merge = Table.NestedJoin(#"Added Index1",{"Index.1"},#"Added Index1",{"Index"},"NewColumn"),
        #"Expand NewColumn" = Table.ExpandTableColumn(Merge, "NewColumn", {"Odometer"}, {"NewColumn.Odometer"})
    in
        #"Expand NewColumn"
    But attempting the same technique against data from SQL, I get the above error "invalid attempt to call Read when reader is closed".
    Any suggestions? If this is a feature (or bug) that can't be overcome, is there another way to compare values between two rows?
    Thanks,
    Ed

    Please use "send a frown" to report the bug so we can fix it. Is the data very big? The simplest workaround is likely to be the use of "Table.Buffer" to buffer the table locally before doing this work; that will cause us to stop any
    attempt to do the processing on the server. If the table is very big, though, this isn't an attractive approach.

  • Turn off alarms when Ical not running! Bring it back

    It seems that the option to turn off alarms when Ical not running has been removed. The only option now is to simply turn alarms off (then you forget to turn it back on!). i am a professional speaker and when an alarm rings when I'm using Keynote it knocks keynote off the screen. That is a real pain when you are speaking to 1000 people! Anyone got any ideas. And Apple, please bring it back.

    I sure hope the developers at Apple as well as the management team who can make product impacting decisions are reading this thread - do they realize that this makes the *alarm function unusable by professionals* who do presentations? I was in front of a small group doing a powerpoint tonight and the alarm went off in the middle of it - not a good thing.
    So, I will choose to turn them off completely at this point - it is the only option. And I am not going to manually turn them on and off - that's a ridiculous prospect.
    I can only guess at the reason for removing the earlier functionality of turning off the alarms when the application was closed, but this is absolutely a requirement if alarms are to be functional at all for those of us who do presentations.

  • Restart computer when program not running

    Hello,
    I am using Labview 2011 and 2014.
    I have set windows to launch my program when the computer is turned on. The VI is set so that the program runs when launched. Things have been working fine for several ON/OFF sequences of the computer. But last time when getting back to the screen I realised that the program was not running (just like if it was waiting for the user to press the white arrow). I pressed the white arrow and the program worked fine. I started up the computer and everything worked too. this program is suppose to run quite far away from work where I don't have access to the computer (not able to check if things are ok..)
    My question is : how could I make the computer make a Stop and Start sequence if my program stops or isn't running?
    Thanks.
    User

    User79 escreveu:
    Thanks Crossrulz and Sergio for your snwers.
    Sergio, I will keep in mind your solution.
    Crossrultz, your solution works fine on my cpumtor where I have Seven and Labview 2014 installed. I tried it on the computer that I posted this question for and the problem is tkat windows asks me to confirm (my clicking on "ok") the closing of the windows tha are open. DO you know how I could avoid that? (the computer just shuts off on tis own wuithout antybody to confirm by clicking)
    User
    Maybe you can try the shutdown command with the /f option added to Crossrulz solution, resulting in:
    shutdown /r /t 0 /f
    Sérgio

  • Movies disappearing from AppleTV when iTunes not running

    I have synced my iTunes content to my AppleTV several times and have found that I continue to experience jerky playback of movies (AppleTV will pause to buffer data) and that the movies totally disappear from my AppleTV menu when I shut down iTunes. I believe that the movies files have been copied to AppleTV (ie I am not streaming the files). When I restart iTunes, it appears to need to re-sync only the movies with my AppleTV (music, Podcasts, and photos remain available on AppleTV while iTunes is not running). Please advise 1. why the poor flow when movie is playing on AppleTV and 2. why does it seem to need to keep re-syncing movies to the AppleTV?

    Hi Drew-Bob,
    iTunes should not have to re-sync your purchased movies if they transferred over correctly,
    You might want to try restarting the Apple TV, or restoring it. Information on how to perform this is in knowledge base article 305190 (http://docs.info.apple.com/article.html?artnum=305190).
    Cheers,
    John

  • Email Movement When Thunderbird not Running

    I am trying to use Thunderbird to move emails between two accounts (a gmail and a .edu). I have hosted both the accounts in the Thunderbird "client" and the emails of both are loaded when I open Thunderbird and login to the accounts. Thunderbird is able to copy emails from one of my email accounts and create the emails in another, which is my goal. I can then see the emails from the .edu in the gmail inbox since they have been copied. However, when Thunderbird is not running or the computer on which I have it installed is logged off/shut down, the emails stop being copied to the other email account. How can I make it so that Thunderbird will always process my rule of copying emails from the .edu to the gmail even when it is not open on any computer? Is this possible?

    Figured out the best workaround. My main issue was that on my mobile device, the default mail client wasn't able to load the .edu email without forcing me to create a password for my phone lock screen. Didn't want to do that, so this meant that I could view ''Gmail only'' on my phone in the Email app. There was no way to view both inboxes as combined at once, so I wanted to find a way to get my .edu emails into Gmail continuously. I switched to the Gmail App and found that I could import the .edu account via IMAP to the app (which is more like a client than webmail) and still have the Gmail account (even though they still remain separate, you can view a combined inbox). '''I don't get why IMAP importing is enabled on the GMail app, but not the desktop webmail. And why there is no way to create filters in the GMail App like there is on both the Gmail Desktop version and Thunderbird.'''
    Anyway, the world is pleading for developers to release an Android app that allows movement of emails between accounts, as none currently exist. If anyone knows of desktop webmails like Gmail that allow IMAP import, I'd like to know those also! NOTE: my .edu email had POP disabled completely.
    So bottom line for all you people like me with this problem. ''Seems like the best solution currently is to use a '''client''' or '''Webmail with IMAP import''' (which I don't know any) on your desktop, and use any of the good clients for your mobile device (K-9, TypeMail, Gmail App, etc) to view all your email accounts in 1 place on both phone and PC...''
    And keep dreaming of the day there's an android app that allows moving emails between accounts (already available on iOS).
    Hope this helps!

  • Video icon in buddy list does not display when iChat not running?

    I have my father-in-law's computer setup to automatically log into iChat when he turns on the computer. However, it does not say he can video chat (the icon does not display) until he actually opens iChat. Is there any way around this? The only thing I thought of was to get iChat to open at login and just not display the buddy list.
    Basically, I want him to be available to video chat with his grand daughter...but he doesn't need to see the buddy list or the app for that matter. She would initiate all chats.
    Thanks
    Brian

    I am trying to imagine what you have done here.
    It is possible to have iChat as a Login Item.
    It is possible for iChat to start Up with the Buddy Lists hidden.
    From there Chats can be started from the File menu or Apple key and N together.
    To do it this way you have to know the Screen Name of who you are calling.
    You should be able to accept incoming A/V chats.
    9:46 PM Thursday; January 10, 2008

  • Where case when query not running at all in 11.2.0.3

    Hi,
    I have a query that was running fine till the time we were in 11.1.0.7. Last month, we had a migration to 11.2.0.3, and the query has stopped running since then. It runs indefinitely, and finally I have to kill it. However, until 11.1.0.7, I had absolutely no problems with it. Not sure what changed in 11.2.0.3 that causes it to never give me a result. The query is as below:
    SELECT T1.NAME,T2.AGE,T2.level, T2.AMT,
    FROM table1 T1, table2 T2
    WHERE (CASE WHEN
    (T1.name = 'Peter' AND SUBSTR(T1.desc,1,15)=SUBSTR(T2.description,1,15))
    THEN 1
    ELSE 0
    END)=1;
    Please advise!
    Thanks in advance.

    Hi,
    CrazyAnie wrote:
    Hi,
    I have a query that was running fine till the time we were in 11.1.0.7. Last month, we had a migration to 11.2.0.3, and the query has stopped running since then. It runs indefinitely, and finally I have to kill it. However, until 11.1.0.7, I had absolutely no problems with it. Not sure what changed in 11.2.0.3 that causes it to never give me a result. The query is as below:
    SELECT T1.NAME,T2.AGE,T2.level, T2.AMT,
    FROM table1 T1, table2 T2
    WHERE (CASE WHEN
    (T1.name = 'Peter' AND SUBSTR(T1.desc,1,15)=SUBSTR(T2.description,1,15))
    THEN 1
    ELSE 0
    END)=1;
    Please advise!I'm surprised it runs in any version. You have a comma right before the keyword FROM. If you were not getting a compile-time error, that was a bug in 11.1.0.7 that they fixed by 11.2.0.3.
    It's still strange that the query runs for a long time. I would expect it to give you an error when you tried to compile it. Is there any chance that what you posted is not what you're actually running?
    Also, LEVEL, NAME and DESC are not good column names. How Oracle reacts to using keywords like that as column names can vary from version to version. If a word is in v$reserved_words.keyword, then it's best to avoid using it as a column (or table, or variable, or schema) name.
    Edited by: Frank Kulash on Nov 21, 2012 1:33 PM
    By the way, that WHERE clause is a lot more complicated than it needs to be. Why not use
    WHERE      t1.name = 'Peter'
    AND      SUBSTR ( t1."DESC"     -- If you must use DESC, double-quote it
                , 1
                , 15
                ) = SUBSTR ( t2.description
                               , 1
                     , 15
                     )? Always think carefully before using CASE in a WHERE (or HAVING, or START WITH, or CONNECT BY) clause.

  • Msiexec /qn fails when its not run using the built-in local administrator account

    Hello all,
    I am working on a project where I am trying to automate the deployment of VMs through a self-service portal.
    Among other tasks such as clone VM, sysprep it, assign an IP, create AD computer object, join VM to domain and so on..., i need to install a few applications using msiexec, which is driving me crazy...
    For this purpose, I am using a local user account part of the administrators group.
    Please note, UAC is disabled on all the OS.
    Basically, the msi installation works as expected on Windows 7 machines, however on Windows 8/2012, it fails due to lack of permissions. The curious thing is that if I use the built-in\administrator account instead for the deployment on those systems, the
    application is installed correctly.
    I have tested some things such as: DisableMSI (http://msdn.microsoft.com/en-us/library/aa368304%28v=vs.85%29.aspx), but although it progresses a bit further, it keeps failing.
    Does anyone know what I can do to allow an user part of the administrators local group to be able to install using msiexec /qn?
    Thanks in advance.

    Hi,
    Does it work if you use the account in local admin, and run the commands prompt as administrator to install the msi file? Please know that Only the built in administrator account has admin privilege by default. On other admin accounts you need
    to run with elevated privilege (ie runas).
    I would like to know if you use SCCM to perform your deployment with task sequence.
    As I known, even if you disable UAC, the following policy is still enabled to detect application installation.
    Computer configuration\Windows settings\Security Settings\Local
    Policies\Security Options -> User Account Control: Detect application installations and prompt for elevation policy
    Please disable this policy to see if your issue can be fixed. 
    Kate Li
    TechNet Community Support

  • [SOLVED] PKGBUILD for a font - xset fails when X not running

    I am working on my second PKGBUILD -- this time for a simple raster font I use.  The PKGBUILD uses a post_install() which does an "xset -fp rehash" after installing the font files, because it seemed like otherwise the font wouldn't show up in X.  Then in tests I found that the install died with errors when I installed my package without X running.  How is this situation normally handled?
    Last edited by scottfial (2010-07-09 08:04:21)

    xset will fail if X isn't running.  Font packages generally have an install file like this:
    # arg 1: the new package version
    post_install() {
    echo -n "Updating font cache... "
    fc-cache -f > /dev/null
    mkfontscale /usr/share/fonts/local
    mkfontdir /usr/share/fonts/local
    echo "done."
    # # arg 1: the new package version
    # # arg 2: the old package version
    post_upgrade() {
    post_install $1
    # # arg 1: the old package version
    post_remove() {
    post_install $1
    The user can then either run xset manually or logout/login after installation.

  • "Conversion to String failed"  When attempting to call rs.getString()

    Hello All,
    I'm getting a "Conversion to String failed" exception being thrown from oracle jdbc when I attempting to call the rs.getString(1) method on a column type of DATE.
    During investigations we've found the following:
    1. The query is fine, and is performing a "select * from table".
    2. I see this problem when using 9i database (v 9.2.0.7) with 9i jdbc drivers (v9.2.0.7).
    3. Strangely enough, if I use 10g jdbc drivers with the 9i database this problem goes away, and naturally I don't see this problem at all using a 10g driver working against a 10g database.
    4. Grabbing the DATE value using the getDate() instead of getString() API works just fine in 9i.
    5. The 9i rs.getString() API call will work with some date values in the database and not with others.
    6. The data placed into the DATE column in question could have been placed there using different driver type from the 9i.
    So, the 9i getString() API seems to be a problem.
    At this point, based upon points 5 and 6 above, I'm thinking there is a bug in the oracle 9i jdbc drivers that is unable to convert DATE type data using the getString() API if the data was initially placed into the database using a different driver type. But, this would mean that the format of the data in the database would be different depending upon the means of getting the data there in the first place (which doesn't make much sense).
    Here is the pertinent Stack Trace:
    java.sql.SQLException: Conversion to String failed
    at oracle.sql.Datum.stringValue(Datum.java:173)
    at oracle.jdbc.driver.ScrollableResultSet.getString(ScrollableResultSet.java:684)
    at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1549)
    at com.revenuesolutionsinc.dali.sql.DALResultSet.getString(DALResultSet.java:325)
    Any help on this matter would be greatly appreciated.
    Thanks,
    Doug Newcomb

    Doug,
    Pardon me for stating the obvious, but is there a
    reason why you cannot use method "getDate()" instead
    of method "getString()"?
    For your information, you can report bugs via the
    MetaLink
    Web site.
    Good Luck,
    Avi.Thanks for the reply Avi,
    The main reason is that we've got mountains of code that would need to be refactored. Also, the getString() method worked fine for over a year.
    So we are looking towards finding out why this is happening before making the decision to refactor.
    I will be placing a TAR with Oracle on Monday, but I thought I'd try to find out if anyone else has run into a similar problem.

  • An error occurred when attempting to call the providers register function.

    Hi
    I am getting the following error while registering the Portlet to a WSRP portal.
    ]An error occurred when attempting to call the providers register function. (WWC-43134)
    An error occured during the call to the WSRP Provider: Java stack trace from root exception:
    java.rmi.ServerException: Internal Server Error (caught exception while handling request: oracle.webdb.wsrp.server.ContainerRuntimeException: An internal error has occurred in method <init>)
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:384)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:245)
    at oracle.webdb.wsrp.WSRP_v1_Registration_PortType_Stub.register(WSRP_v1_Registration_PortType_Stub.java:183)
    at oracle.webdb.wsrp.client.design.v1.OraWSRP_v1_Registration_PortType.register(Unknown Source)
    . (WWC-43273)
    I have done all the required configuration which includes the following.
    1. Installation of Infrastructure.
    2. Installtion of Portal.
    3. Created OC4J_WSRP instance on Portal_Home, configured DAD which is UP.
    4. Deployed the application which URL while registering giving me the above year.
    Can anybody give me an Instant Solution.

    I am receiving the same error messages under the same conditions.
    I have not not added any .jar files to the database and do have invalid 'java class' objects in my 'user_objects' table/view.
    A 'Troubleshooting Pdk Services for Java' article (search OTN for WWC-43134) mentions
    'recompiling the invalid objects'. How does one do this?

  • TS3899 The previews of my email messages show properly, but when I attempt to call up the full message it only shows addressees, message title and time of dispatch. . I can only recover msg content if i draft a reply or forward msg. How can I resolve?

    The previews for my email messages show correctly but when I attempt to call up the full message all that shows are the addressees, title and time of dispatch. I can only view full message content if I draft a reply or forwarding message. How can I resolve this?

    # Yes, if you go to accounts.firefox.org, sign out, you will now be signed out.
    # Sign back in, and you will be asked to save the password you entered.
    # This will save the password and autocomplete if you have this option turned on.
    I am not exactly sure why the menu did not detect the password change or if it was stored incorrectly after you changed it? But after storing the correct password you can manage any duplicate passwords in the password manager.[[Password manager - Remember, delete and change saved passwords in Firefox]]

  • We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • My Iphone 5 voice speaker is not working.I'm not able to hear the voice of the person calling.But when I put my iphone 5 on speaker mode, things seem ok.Please provide me some suggestions.

    My Iphone 5 voice speaker is not working.I'm not able to hear the voice of the person calling.But when I put my iphone 5 on speaker mode, things seem ok.Please provide me some suggestions.

    Hello rizvijunaid,
    Thank you for providing the details of the issue you are experiencing with calls on your iPhone.  I recommend following the steps in the article below for the issue you described:
    iPhone: Receiver and call audio quality issues
    http://support.apple.com/kb/ts5196
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • Creative Cloud fails to see installed apps

    I have installed Creative Cloud in a non-standard way.  I install the applications on a separate drive from the operating system (and indeed where Adobe insists that Creative Cloud installs itself), this is done for all of my applications as it means

  • Touchpad doesn't work correctly

    My touchpad isn't working correctly anymore. i don't know if this is due to hardware or software but i will explain the problem and maybe someone can help me. the pad is working correctly, so i can move the mouse, but when i try to push the touch pad

  • Tweening "y" and connecting movement to score

    Still trying to get a bar/column to move up and down based on a positive or negative total score value. Uisng "scaleY" doesn't scale proportionately for these values. The "absolute "0" point in this scaling is the mean value for the score. I thought

  • Help to buield log (pa)intrface in write way

    Hallow I doing an inteface to other system that log the pa in the first time and I wont to now if im in the write way? If not please give me ideas how to do it in better way. regards CALL FUNCTION 'HREIC_GET_LOGGED_INFTY_CHANGES' EXPORTING is_log_key

  • CC 2014 updates keep coming

    I have update all my installed apps to CC 2014. The splash screens of these programs confirm the correct version. Nonetheless the CC App in my menu bar keeps suggesting that I should update all my apps to CC 2014. What is going on?