Model 2 attempt

Please advise if what I am doing would be considered good practice and fall under the MVC pattern?
I have a JSP with a Form where values are submitted by a user. The JSP is submitted to a Servlet where the Servlet decides what to do with the info. The Servlet calls Java classes to do stuff depending on what was entered in the JSP Form. For example if the user didnt enter all the values or there were validation issues the Servlet would call a Validator JavaBean class and then redirect the user to a JSP with the validation errors. If the user enters valid data the Servlet would call another Java class with SQL insert statements to insert the info into the database.
I dont have Struts in my Tomcat 4.1.3 containre so I am using Scriptlets with JavaBeans on the JSP to show information.

The Mac App Store is right. If you want to upgrade the computer further, phone the online Apple Store and order a download code for Lion.
(71020)

Similar Messages

  • Excel 2013 PowerPivot Error - "PowerPivot is unable to load the Data Model"

    I'm attempting to use the PowerPivot add-on in Excel.  When clicking 'Manage Data Model' or attempting to 'Load to data model,' I receive the error 'We couldn't load the Data Model.  This may be because the Data Model in this workbook is damaged.',
    followed by 'PowerPivot is unable to load the Data Model.'  This happens irrespective of data source type.  I have Excel 2013 32-bit, PowerPivot 32-bit, running on Windows 7 OS 64-bit.  I am not running an SSAS instance on my machine. 
    Any suggestions?

    Hi
    Have you ever tried to repair your office?
    Also we may refer to the following blog :
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/11/12/powerpivot-for-excel-2013-errors-after-october-update-kb-2825655.aspx
    This issue seems to be caused by the October 2013 update (KB 2825655) for Excel 2013. Try to remove it or restore the system to an earlier point and check the result.
    Regards
    Tylor Wang
    TechNet Community Support

  • Error while importing BDC models to SharePoint from SAP

    Hi Team,
    I am facing error while importing the BDC models to SharePoint from SAP Duet environment. Please find the attached screen shot and text document for reference.
    Below are the tasks performed before importing the BDC models.
    1) SSL & STS certificated created in the SharePoint environment.
    2) Certificates are uploaded to the SAP duet environment.
    3) SSL certificate created in SAP duet environment is uploaded to Trust location in SharePoint central admin.
    Error while importing the BDC models manually through Central Admin.
    Application definition while import failed. The following error occurred: The BDC model file is not well-formed. Data at root level is invalid at. Line 1,position 1.
    C:\Program Files\Duet Enterprise\1.0>duetconfig/importbdc C:\Users\adm-in.itsupp
    ort\Desktop\Rahul\BDC\models.xml
    Starting import of models from C:\Users\adm-in.itsupport\Desktop\Rahul\BDC ...
    Attempting to import model: Account
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '48' and Position: '20'.
    Failed to import model: Account
    Attempting to import model: AccountDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: AccountDocumentStorageCategory
    Attempting to import model: AccountDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: AccountDocumentTypeStatus
    Attempting to import model: AccountDocuments
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: AccountDocuments
    Attempting to import model: AccountTitle
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: AccountTitle
    Attempting to import model: BOM
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: BOM
    Attempting to import model: Contact
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: Contact
    Attempting to import model: ContactTitle
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: ContactTitle
    Attempting to import model: CountryCode
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '48' and Position: '20'.
    Failed to import model: CountryCode
    Attempting to import model: CustomerInquiry
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: CustomerInquiry
    Attempting to import model: CustomerInquiryItem
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '44' and Position: '20'.
    Failed to import model: CustomerInquiryItem
    Attempting to import model: CustomerInquiryPartner
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '44' and Position: '20'.
    Failed to import model: CustomerInquiryPartner
    Attempting to import model: CustomerQuotation
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '49' and Position: '20'.
    Failed to import model: CustomerQuotation
    Attempting to import model: CustomerQuotationItem
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: CustomerQuotationItem
    Attempting to import model: CustomerQuotationPartner
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: CustomerQuotationPartner
    Attempting to import model: Employee
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: Employee
    Attempting to import model: InquiryItemDocument
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '49' and Position: '20'.
    Failed to import model: InquiryItemDocument
    Attempting to import model: InquiryItemDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: InquiryItemDocumentStorageCategory
    Attempting to import model: InquiryItemDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: InquiryItemDocumentTypeStatus
    Attempting to import model: JobFunction
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '47' and Position: '20'.
    Failed to import model: JobFunction
    Attempting to import model: Product
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: Product
    Attempting to import model: ProductDocument
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: ProductDocument
    Attempting to import model: ProductDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: ProductDocumentStorageCategory
    Attempting to import model: ProductDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: ProductDocumentTypeStatus
    Attempting to import model: QuotationItemDocument
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '20'.
    Failed to import model: QuotationItemDocument
    Attempting to import model: QuotationItemDocumentStorageCategory
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: QuotationItemDocumentStorageCategory
    Attempting to import model: QuotationItemDocumentTypeStatus
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '46' and Position: '20'.
    Failed to import model: QuotationItemDocumentTypeStatus
    Attempting to import model: ReportTemplate
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '49' and Position: '20'.
    Failed to import model: ReportTemplate
    Attempting to import model: Role
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '65' and Position: '20'.
    Failed to import model: Role
    Attempting to import model: UserRoles
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: UserRoles
    Attempting to import model: SAP.Office.DuetEnterprise.Workflow.UserSubscription
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '42' and Position: '20'.
    Failed to import model: SAP.Office.DuetEnterprise.Workflow.UserSubscription
    Attempting to import model: SAP.Office.DuetEnterprise.Workflow
    [ERROR] The remote certificate is invalid according to the validation procedure.
    Error was encountered at or just before Line: '45' and Position: '11'.
    Failed to import model: SAP.Office.DuetEnterprise.Workflow
    [WARNING] Duet Enterprise configuration utility has completed importing the BDC
    models but some models could not be imported. Review the logs for detailed infor
    mation on the errors which occurred during the import operation.
    Failed to import the following models -
    Account
    AccountDocumentStorageCategory
    AccountDocumentTypeStatus
    AccountDocuments
    AccountTitle
    BOM
    Contact
    ContactTitle
    CountryCode
    CustomerInquiry
    CustomerInquiryItem
    CustomerInquiryPartner
    CustomerQuotation
    CustomerQuotationItem
    CustomerQuotationPartner
    Employee
    InquiryItemDocument
    InquiryItemDocumentStorageCategory
    InquiryItemDocumentTypeStatus
    JobFunction
    Product
    ProductDocument
    ProductDocumentStorageCategory
    ProductDocumentTypeStatus
    QuotationItemDocument
    QuotationItemDocumentStorageCategory
    QuotationItemDocumentTypeStatus
    ReportTemplate
    Role
    UserRoles
    SAP.Office.DuetEnterprise.Workflow.UserSubscription
    SAP.Office.DuetEnterprise.Workflow
    C:\Program Files\Duet Enterprise\1.0>
    C:\Program Files\Duet Enterprise\1.0>
    Qucik response is much appreciated.
    Regards,
    Rahul Reddy.

    Take a look at this blog post,
    http://brainof-dave.blogspot.com/2008/08/remote-certificate-is-invalid-according.html
    Dimitri Ayrapetov (MCSE: SharePoint)

  • HT1766 How to restore iCloud Back Up from an Older iPhone Model to New

    I lost my iPhone recently. I purchased the latest version (my previous version was older model), and attempted to restore an icloud back up that had all my photos / music, but it won't let me. Keeps telling me my account has been locked, and to reset password, but I've already done all that / verified applied ID, etc. Not sure what I'm doing wrong, but I need to get my photos / music off of iCloud. I also pay for storage so I'm not sure why it's holding my stuff hostage.

    Restoring from an older iOS to a newer iOS version is fine.  It's going the other way that would be a problem.
    You do need a late version of iTunes on your computer to be able to work with the new iPhone.  The current iTunes version is 11.1.3.  If your iTunes is old, download the latest from
    http://www.apple.com/itunes/download

  • IMac is overheating? Or is my Hard Drive dying...

    So, I think my iMac is dying in some form or another, but I'm not sure if it's the hard drive, something heat related, or a combination of the two.
    A preface: the machine is mainly used for the web, iTunes, and Warcraft, and I run iStat menus to keep track of system temperatures, etc. I run SMC fancontrol to keep the fans spun up when playing wow, and have noticed a significant difference in wows performance since beginning to do that late last year. Over the summer, I've noticed serious intermittent performance issues. Looking back, the common thread seems to be that I have issues when I'm not running the air conditioning, and the ambient temperature heats up over ~80 degreesish. The hottest I see my mac get when having these issues is ~135 (all temperatures are farenheit), and they seem to be substantially reduced below 125 degrees. Programs can take a while to launch, the system intermittently hangs, especially playing music or games, and beyond the stutters when playing music in iTunes or while playing wow, I find that the machine simply will not finish booting after being shut down if it's hot. I need to let it stay off for an hour or two and cool down to boot properly.
    Running Apple Hardware test (on a hot machine) comes up with an HDD failure, and running disk utility fails to complete, or just doesn't even see the drive (if run from a cd while the machine is 'hot') - if I run both when the machine has cooled down, things pass with flying colors. The AHT error is: "4hdd/11/40000004: SATA(0 , 0)" - which, I'm presuming based on some googling means the drive is in fact, screwed. But it passes other times, so I'm just thoroughly confused. Will a new Hard Drive fix it? Should I be looking at something else?
    This machine is out of warranty, and I'd /like/ to get it fixed for cheapish - any reccomendations? Was looking at this drive from Newegg: http://www.newegg.com/Product/Product.aspx?Item=N82E16822136218 , but I'm a few years out of the loop on messing with iMac innards, so tell me if that's a bad choice. (It's a 2.66 Ghz, Early '08 Aluminium model).
    Attempts to back up the drive have been mixed - things move /very/ slowly sometimes, and occasionally flake out with an utterly uninformative error -26 after spending an hour copying (and we're talking trying to move 1Gb files over FW 800 - that shouldn't take a whole hour.)
    Alternately, the issues I'm having seem to be significantly reduced in severity when the AC has been on for a while - iStat shows nothing running too hot (HDD sits around 95-110F, most other components the same, the outlier is the power supply which spikes to 120-130 when I'm playing a game or watching some HD video or some such.
    Why would having the AC bringing the ambient temp down 5-10 degrees provide such a massive performance difference?

    It could be the quite a few things, If you have an external drive FW800 why not install a system on that and run with that. If it still works when the machine is hot you have ruled out the mem/cpu/power supply and lots of other items. That leaves the disk and controller (the controller being on the mother board) and hard drive fan.
    You should be able to check the fan, then you will need to spend on a disk but at least you will have ruled many items out before hitting the wallet. If the external disk works and if after changing the hard disk it still fails you probably have a controller fault, that would be expensive.
    It may be worth trying to keep the machine cool when you have it fixed, it will extend the life of all the components.
    regards

  • Dynamic physical architecture

    Hello All,
    I wonder if it is possible to have a physical architecture be dynamic....
    I have a comprehensive ODI framework, which calls upon certain flat files and (mostly) reads/writes from/to these using a variety of interfaces. The names (and location (directories)) of the flat files are stored as variables (extracted from a table.) The information about file locations is, therefore found in two locations: 1) in the variables and 2) in the physical architecture.
    I would like to have the location information stored in the variables only and assigned dynamically to the physical architecture, so that I can have applications and users change the location.
    Is this possible? In other words, can the physical architecture pointer for a flat file be represented as a variable (#<PROJNAME>.<Directory>)? If so, when is the pointer resolved and what, if any, are the constraints?
    Alternatively, can the physical architecture pointers be left blank, and can the entire file resolution be done in a variable (in the interface)? In other words, can the issue of physical architecture be postponed to a point where it is resolved by the interface execution.
    Here is an example....
    I want to access a file, X.JNK, stored in the directory C:\MYDIR on the host A.
    Today the physical architecture points to C:\MYDIR, and the interface code identifies X.JNK (as a variable <PROJNAME>.<FILENAME>, e.g. #MYPROJ.JUNKFILE = X.JNK).
    The directory is also stored in a variable (as <PROJNAME><DIRECTORY>, e.g. #MYPROJ.JUNKDIRECTORY = C:\MYDIR), and so the fully qualified "address" for the file is:
    #<PROJENAME><DIRECTORY>\#<PROJNAME><DIRECTORY> =
    #MYPROJ.JUNKDIRECTORY\#MYPROJ.JUNKDIRECTORY =
    C:\MYDIR\X.JNK
    Given that setup, can the physical architecture be left blank (except for host information) and the interface be executed with #MYPROJ.JUNKDIRECTORY\#MYPROJ.JUNKDIRECTORY?
    Best,
    pajacobsen

    Dev,
    Yes, it works, although, for reasons unknown, I had to completely redo all interfaces that drew upon the affected models (I attempted a variety of other changes (modifying, for instance, the alias), but, ultimately, nothing worked until I rebuilt all the interfaces.
    So, in sum, this issue is closed with the proviso that it is necessary to redo the interfaces.
    Best,
    pajacobsen
    P.S. I often end up having to redo interfaces (rather than edit them) once I introduce changes to the models. Although the interfaces, on the surface, looks fine after the modification of the model, they don't work (I suspect a pointer problem.) I guess there are limits to ODI's flexible nature.
    Edited by: user11102735 on Nov 23, 2010 1:59 PM

  • HT201269 What happens when the old device's Restore From Backup doesn't appear as a choice for the new (iPad) device?

    My wife dropped her iPad and fried the screen. It was still functional, so I backed it up with iTunes. The backup was successful for all apps, photos, etc.  I just swapped that iPad at the Apple Store for a refurbished model and attempted to Restore From Backup.  iTunes now doesn't see that old iPad so I can't restore the old data on the new device. Any help appreciated.

    Here's an interesting bit: iTunes will let me restore my iPod touch from backup: it's still running iOS 4.3.3. I figured as much... there's backups showing in the Preferences -> Devices list for both devices (and even my old, long gone iPod touch 2G), but my iPhone (on iOS5) isn't giving me any such option. I remember I had to downgrade before to get the backup restored (something went haywire in the setup assistant, and I couldn't restore a backup from iTunes there)... If it was possible to go to iOS 5.0 rather than 5.0.1 I would just do the same thing again, but iOS 5.0.1 isn't an option. I attached a screenshot. Hopefully Apple can get this nonsense sorted out; I think iOS 5 might be the root of this, somehow.

  • Org.xml.sax.SAXParseException: File "..\contents.dtd" not found.

    I have an xml file that has to be parsed in my application, without changing the XML. I don't have the dtd that is mentioned in the XML file.
    The code i am using to parse the xml into a Document is
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(false);
    System.out.println("Factory=" + factory.isValidating());
    DocumentBuilder builder = factory.newDocumentBuilder();
    builder.setEntityResolver(new XMLResolver());
    System.out.println("DocBuilder=" + builder.isValidating());
    Document doc = builder.parse(xml.getInputStream());
    System.out.println("doc=" + doc);
    if (doc == null) {
    return;
    The XML file is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE contentspace SYSTEM "..\contents.dtd" [
    ]>
    <contentspace validdtd="0.0.2">
    <emscombicategory emscombisubtype="EMSCOLLECTION">
    <default name="lugares" description="lugares"/>
    <emscombi>
    <default name="alemania" description="Alemania"/>
    <commondetails copyrightowner="TME" copyright="COPYRIGHTED" price="" validfrom="" validto="" provider="terramobile" globalcontentid="ECOLL"/>
    <previewedbinarycontent preview="alemania.GIF">
    <binarycontent binarydata="alemania.OTA"/>
    </previewedbinarycontent>
    <emsringtone>
    <default name="alema" description="Himno de Alemania"/>
    <commondetails copyrightowner="TME" copyright="FREE" price="" validfrom="" validto="" provider="terramobile" globalcontentid="TMEEMEL"/>
    <previewedbinarycontent preview="alema.WAV">
    <binarycontent binarydata="alema.OTA"/>
    </previewedbinarycontent>
    <ringtonedetails composer="Tradicional" performer="Tradicional"/>
    </emsringtone>
    <emspicture>
    <default name="birra" description="Cerveza alemana"/>
    <commondetails copyrightowner="TME" copyright="COPYRIGHTED" price="" validfrom="" validto="" provider="terramobile" globalcontentid="TMEEPM"/>
    <emspicturedetails width="32" height="32">
    <previewedbinarycontent preview="birra.GIF">
    <binarycontent binarydata="birra.OTA"/>
    </previewedbinarycontent>
    </emspicturedetails>
    </emspicture>
    </emscombi>
    </emscombicategory>
    </contentspace>
    When i run this through it throws an exception with the message
    org.xml.sax.SAXParseException: File "..\contents.dtd" not found.
    I thought by setting factory.setValidating(false) it would not read the DTD, but it does.
    Is there any way to make the document model NOT attempt to read the DTD ???

    setValidating(false) has no effect on checking against the DTD.
    create your own EntityResolver rather than using new XMLResolver(): in this resolver divert the call to the DTD on an empty XML document.
    i have shown how to do so in another thread, just run a search on this forum (this hint is valid for any question btw)

  • Publicaton error : ORA-20001: EXPLORETREE_ERROR

    Hi All,
    When attempting to publish a specific model, the following error occurs. This model was published successfully around a month ago. Some additional items were added to the Bill of Material and the model was refreshed since then. A new User Interface was also created. The issue seems to be isolated to this one model. The logic generates without error and the model can launch from the Developer without issue. However, there is a related error when the model is attempted to publish to target instance and copied to another folder.
    ************ Log for Publication **************
    Publication failed. See concurrent program logs for details.
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    BOM Synchronization, version 115.36.115101.6, started 2014/07/11/08:16:56, session run ID: 61610
    ORA-20001: EXPLORETREE_ERROR
    ORA-06512: at "APPS.CZ_PB_MGR", line 2617 in Package cz_pb_mgr Procedure INSERT_JRAD_DOCS
    CZ_PB_EXPORT_OA_UI_ERR (SQLERRM=ORA-20001: EXPLORETREE_ERROR
    ORA-06512: at "APPS.CZ_PB_MGR", line 2617)
    Error in upload of UI schema for publication id : 256845
    Fatal publication error, process aborted for publication 256845: ORA-20001: EXPLORETREE_ERROR
    ORA-06512: at "APPS.CZ_PB_MGR", line 2617
    Parent model in publication request : 323847
    Source publication : 256845 target publication:
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    **************** Error message while copying the Model to backup folder*************
    Failed to copy Model because ORA-20001: EXPLORETREE_ERROR in Package cz_pb_mgr Procedure INSERT_JRAD_DOCS
    Failed to copy Model because CZ_PB_EXPORT_OA_UI_ERR (SQLERRM=ORA-20001: EXPLORETREE_ERROR)
    Failed to copy Model because MODEL: 323235 copy failed
    Failed to copy Model because Error in retrieving remote model id : ORA-01403: no data found
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Log in to Oracle Configurator Developer responsibility
    2. Navigate to Publications tab
    3. Create a new publication for this model
    4. Navigate Home > Schedule > Process a Single Publication Model
    5. Enter the publication created in #3
    6. Enter other appropriate publication parameters
    7. Submit
    8. Error occurs
    Any Help on this is highly appriciated.
    Thanks,
    Vijay

    hi Vijay -
    I am working on our forum backlog.  Can you let me know if this is still an issue for you?
    Regards,
    Daniel

  • TS1574 My apple macbook pro retina 15'' ME664 has problems with sound.Either there will be no sound at all or at startup there il be very scary and broken sound and afterwards still there would be no sound.Secondly , it does not start in one shot.

    My apple macbook pro retina 15'' ME664 has problems with sound.Either there will be no sound at all or at startup there il be very scary and broken sound and afterwards still there would be no sound.Secondly , it does not start in one shot.atleast 2 to 3 times pressing power button for longer time starts it up and afterwards still there will be no sound. Please help

    This morning i was not able to hear sound on my recently purchased  macbookpro retina 15 inch model.My attempts to resolve this issue by going to system preferences and removing the mute box that was ticked as active. i had downloaded much earlier a mac version of logmein app and noticed that in the sound  box noted above that there was a bar indicating that the default was now to logmein. i had never used this app. Why it started today, i have no idea. I moved the logmein application to trash and deleted the app , however it did not remove the default option which still blocked the sound.
    Going to a macforum gave the tha anser that to remove the logmein app, it first had to be reinstalled a nd them use the uninstaller option ftrom the dropdown menu. for now that has resolved the failure to allow sound oputput.

  • QuantumToolkit taking up 100% of CPU when no CSS is loaded

    All
    Our application has a simple TableView that takes an incoming server object and displays it for the user. When it receives a similar object the model will attempt to find the previous object and update one or two cells with new status values. Nothing taxing one would think. I have turned off the CSS so we are using the default. We also have Platform.runLater in our model so when we are about to update the GUI that takes place.
    The application functions correctly, but when ramping up the inserts to say 1 every second we see a slow down in the application. The application does function but response it slow when clicking on drop down menus etc. I have attached a profiler stack trace. And we saw that the QuantumToolkit seems to be doing all of the work. Any ideas on how we can trace if further.
    Our object is very simple in that we have some properties that are used to show updates to the row when changed. Most of the fields that need to be updated are set using SimpleDoubleProperty or StringProperty etc.
    Apologies for the formatting, this was exported from the profiler.
    Call tree (all threads together)
    +----------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-----------------+
    |                                                                              Name                                                                              |    Time (ms)    |  Own Time (ms)  |
    +----------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-----------------+
    |  +---<All threads>                                                                                                                                             |  77,931  100 %  |                 |
    |    |                                                                                                                                                           |                 |                 |
    |    +---com.sun.javafx.tk.quantum.QuantumToolkit$8.run()                                                                                                        |  71,251   91 %  |            182  |
    |    | |                                                                                                                                                         |                 |                 |
    |    | +---javafx.scene.Scene$ScenePulseListener.pulse()                                                                                                         |  71,009   91 %  |              0  |
    |    | | |                                                                                                                                                       |                 |                 |
    |    | | +---javafx.scene.Scene.access$3000(Scene)                                                                                                               |  66,294   85 %  |              0  |
    |    | | | |                                                                                                                                                     |                 |                 |
    |    | | | +---javafx.scene.Scene.doLayoutPass()                                                                                                                 |  66,294   85 %  |              0  |
    |    | | |   |                                                                                                                                                   |                 |                 |
    |    | | |   +---javafx.scene.Scene.layoutDirtyRoots()                                                                                                           |  66,294   85 %  |              0  |
    |    | | |     |                                                                                                                                                 |                 |                 |
    |    | | |     +---javafx.scene.Parent.layout()                                                                                                                  |  66,294   85 %  |              0  |
    |    | | |       |                                                                                                                                               |                 |                 |
    |    | | |       +---javafx.scene.Parent.layout()                                                                                                                |  65,188   84 %  |              0  |
    |    | | |       | |                                                                                                                                             |                 |                 |
    |    | | |       | +---javafx.scene.Parent.layout()                                                                                                              |  65,144   84 %  |              0  |
    |    | | |       | | |                                                                                                                                           |                 |                 |
    |    | | |       | | +---javafx.scene.Parent.layout()                                                                                                            |  65,144   84 %  |              0  |
    |    | | |       | |   |                                                                                                                                         |                 |                 |
    |    | | |       | |   +---javafx.scene.Parent.layout()                                                                                                          |  59,823   77 %  |              0  |
    |    | | |       | |   | |                                                                                                                                       |                 |                 |
    |    | | |       | |   | +---com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren()                                                                      |  52,938   68 %  |             20  |
    |    | | |       | |   | | |                                                                                                                                     |                 |                 |
    |    | | |       | |   | | +---javafx.scene.control.Control.impl_processCSS(boolean)                                                                             |  44,568   57 %  |              0  |
    |    | | |       | |   | | | |                                                                                                                                   |                 |                 |
    |    | | |       | |   | | | +---javafx.scene.Parent.impl_processCSS(boolean)                                                                                    |  44,568   57 %  |              0  |
    |    | | |       | |   | | |   |                                                                                                                                 |                 |                 |
    |    | | |       | |   | | |   +---javafx.scene.Parent.impl_processCSS(boolean)                                                                                  |  30,346   39 %  |              0  |
    |    | | |       | |   | | |   | |                                                                                                                               |                 |                 |
    |    | | |       | |   | | |   | +---javafx.scene.control.Control.impl_processCSS(boolean)                                                                       |  30,182   39 %  |              0  |
    |    | | |       | |   | | |   | | |                                                                                                                             |                 |                 |
    |    | | |       | |   | | |   | | +---javafx.scene.Parent.impl_processCSS(boolean)                                                                              |  30,182   39 %  |              0  |
    |    | | |       | |   | | |   | |   |                                                                                                                           |                 |                 |
    |    | | |       | |   | | |   | |   +---javafx.scene.Node.impl_processCSS(boolean)                                                                              |  26,135   34 %  |              0  |
    |    | | |       | |   | | |   | |   | |                                                                                                                         |                 |                 |
    |    | | |       | |   | | |   | |   | +---com.sun.javafx.css.StyleHelper.transitionToState(Node)                                                                |  25,492   33 %  |            762  |
    |    | | |       | |   | | |   | |   | | |                                                                                                                       |                 |                 |
    |    | | |       | |   | | |   | |   | | +---javafx.scene.control.Control$12.set(String)                                                                         |  24,092   31 %  |              0  |
    |    | | |       | |   | | |   | |   | | | |                                                                                                                     |                 |                 |
    |    | | |       | |   | | |   | |   | | | +---com.sun.javafx.css.StyleableStringProperty.set(String)                                                            |  24,092   31 %  |              0  |
    |    | | |       | |   | | |   | |   | | |   |                                                                                                                   |                 |                 |
    |    | | |       | |   | | |   | |   | | |   +---javafx.beans.property.StringPropertyBase.set(String)                                                            |  24,092   31 %  |              0  |
    |    | | |       | |   | | |   | |   | | |     |                                                                                                                 |                 |                 |
    |    | | |       | |   | | |   | |   | | |     +---javafx.beans.property.StringPropertyBase.markInvalid()                                                        |  24,092   31 %  |              0  |
    |    | | |       | |   | | |   | |   | | |       |                                                                                                               |                 |                 |
    |    | | |       | |   | | |   | |   | | |       +---javafx.scene.control.Control$12.invalidated()                                                               |  24,092   31 %  |              0  |
    |    | | |       | |   | | |   | |   | | |         |                                                                                                             |                 |                 |
    |    | | |       | |   | | |   | |   | | |         +---javafx.scene.control.Control.access$500(Control)                                                          |  24,092   31 %  |              0  |
    |    | | |       | |   | | |   | |   | | |           |                                                                                                           |                 |                 |
    |    | | |       | |   | | |   | |   | | |           +---javafx.scene.control.Control.loadSkinClass()                                                            |  24,092   31 %  |            102  |
    |    | | |       | |   | | |   | |   | | |             |                                                                                                         |                 |                 |
    |    | | |       | |   | | |   | |   | | |             +---java.lang.reflect.Constructor.newInstance(Object[])                                                   |  20,791   27 %  |          4,752  |
    |    | | |       | |   | | |   | |   | | |             | |                                                                                                       |                 |                 |
    |    | | |       | |   | | |   | |   | | |             | +---javafx.scene.Node.addEventHandler(EventType, EventHandler)                                          |   2,848    4 %  |              0  |
    |    | | |       | |   | | |   | |   | | |             | |                                                                                                       |                 |                 |
    |    | | |       | |   | | |   | |   | | |             | +---javafx.scene.layout.StackPane.<init>()                                                              |   1,982    3 %  |              0  |
    +----------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-----------------+
    Generated by YourKit Java Profiler 10.0.6 Feb 27, 2012 11:41:24 AM

    HEre is an attempt at a test class. If you run it click start data add, then start updater it simulates the traffic coming from our server. When you start clicking on the qty buttons you see a delay as the amounts increase. If you click stop , then the GUi is okay
    package test;
    import java.util.Date;
    import java.util.Random;
    import java.util.concurrent.atomic.AtomicInteger;
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.TableCell;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableColumn.SortType;
    import javafx.scene.control.TableView;
    import javafx.scene.control.TextField;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class TestApplication extends Application {
         private TableView<OrderDataTableNewRow> exchangesTable = new TableView<OrderDataTableNewRow>();
         static ObservableList<OrderDataTableNewRow> data  = FXCollections.observableArrayList();
         @Override
         public void start(final Stage stage) throws Exception {
              final VBox rootPane = new VBox();
              rootPane.setSpacing(10);
              rootPane.setPrefSize(800, 600);
              TableColumn<OrderDataTableNewRow, String> clOrderIdCol = new TableColumn<OrderDataTableNewRow, String>("ClOrderId");
              clOrderIdCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.CLORDERID_PROPERTY));
              clOrderIdCol.setSortable(true);
              clOrderIdCol.setPrefWidth(130);
              TableColumn<OrderDataTableNewRow, String> exchangeCol = new TableColumn<OrderDataTableNewRow, String>("Exchange");
              exchangeCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.EXCHANGE_PROPERTY));
              exchangeCol.setSortable(true);
              exchangeCol.setPrefWidth(65);
              TableColumn<OrderDataTableNewRow, String> securityCodeCol = new TableColumn<OrderDataTableNewRow, String>("Security");
              securityCodeCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.SECURITY_CODE_PROPERTY));
              securityCodeCol.setSortable(true);
              securityCodeCol.setPrefWidth(70);
              TableColumn<OrderDataTableNewRow, OrderType> orderTypeCol = new TableColumn<OrderDataTableNewRow, OrderType>("Type");
              orderTypeCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,OrderType>(OrderDataTableNewRow.ORDERTYPE_PROPERTY));
              orderTypeCol.setSortable(true);
              orderTypeCol.setPrefWidth(70);
              TableColumn<OrderDataTableNewRow, SideEnum>  sideCol = new TableColumn<OrderDataTableNewRow, SideEnum>("Side");
              sideCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow, SideEnum>(OrderDataTableNewRow.SIDE_PROPERTY));
              sideCol.setSortable(true);
              sideCol.setPrefWidth(65);
              TableColumn<OrderDataTableNewRow, Double> priceCol = new TableColumn<OrderDataTableNewRow, Double>("Price");
              priceCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Double>(OrderDataTableNewRow.PRICE_PROPERTY));
              priceCol.setSortable(true);
              priceCol.setPrefWidth(81);
              TableColumn<OrderDataTableNewRow, Integer> qtyCol = new TableColumn<OrderDataTableNewRow, Integer>("Qty");
              qtyCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Integer>(OrderDataTableNewRow.QTY_PROPERTY));
              qtyCol.setSortable(true);
              qtyCol.setPrefWidth(75);
              TableColumn<OrderDataTableNewRow, Double> lastPxCol = new TableColumn<OrderDataTableNewRow, Double>("LastPx");
              lastPxCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Double>(OrderDataTableNewRow.LAST_PX_PROPERTY));
              lastPxCol.setSortable(true);
              lastPxCol.setPrefWidth(81);
              TableColumn<OrderDataTableNewRow, Integer> lastQtyCol = new TableColumn<OrderDataTableNewRow, Integer>("LastQty");
              lastQtyCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Integer>(OrderDataTableNewRow.LAST_QTY_PROPERTY));
              lastQtyCol.setSortable(true);
              lastQtyCol.setPrefWidth(81);
              TableColumn<OrderDataTableNewRow, Double> avgPxCol = new TableColumn<OrderDataTableNewRow, Double>("AvgPx");
              avgPxCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Double>(OrderDataTableNewRow.AVG_PX_PROPERTY));
              avgPxCol.setSortable(true);
              avgPxCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, Integer> cumQtyCol = new TableColumn<OrderDataTableNewRow, Integer>("CumQty");
              cumQtyCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Integer>(OrderDataTableNewRow.CUM_QTY_PROPERTY));
              cumQtyCol.setSortable(true);
              cumQtyCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, Integer> leavesQtyCol = new TableColumn<OrderDataTableNewRow, Integer>("Leaves");
              leavesQtyCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,Integer>(OrderDataTableNewRow.LEAVES_QTY_PROPERTY));
              leavesQtyCol.setSortable(true);
              leavesQtyCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, String> accountCol = new TableColumn<OrderDataTableNewRow, String>("Account");
              accountCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.ACCOUNT_PROPERTY));
              accountCol.setSortable(true);
              accountCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, String> brokerCol = new TableColumn<OrderDataTableNewRow, String>("Broker");
              brokerCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.BROKER_PROPERTY));
              brokerCol.setSortable(true);
              brokerCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, String> traderCol = new TableColumn<OrderDataTableNewRow, String>("Trader");
              traderCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.TRADER_PROPERTY));
              traderCol.setSortable(true);
              traderCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, OrderStatus> orderStatusCol = new TableColumn<OrderDataTableNewRow, OrderStatus>("OrderStatus");
              orderStatusCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow, OrderStatus>(OrderDataTableNewRow.ORDER_STATUS_PROPERTY));
              orderStatusCol.setSortable(true);
              orderStatusCol.setPrefWidth(81);
              TableColumn<OrderDataTableNewRow, ExecutionType> executionTypeCol = new TableColumn<OrderDataTableNewRow, ExecutionType>("ExecType");
              executionTypeCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow, ExecutionType>(OrderDataTableNewRow.EXECUTION_TYPE_PROPERTY));
              executionTypeCol.setSortable(true);
              executionTypeCol.setPrefWidth(81);
              TableColumn<OrderDataTableNewRow, Date> expiryCol = new TableColumn<OrderDataTableNewRow, Date>("Expiry");
              expiryCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow, Date>(OrderDataTableNewRow.EXPIRY_PROPERTY));
              expiryCol.setSortable(true);
              expiryCol.setPrefWidth(85);
              TableColumn<OrderDataTableNewRow, String> currencyCol = new TableColumn<OrderDataTableNewRow, String>("Currency");
              currencyCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.CURRENCY_PROPERTY));
              currencyCol.setSortable(true);
              currencyCol.setPrefWidth(81);
              TableColumn<OrderDataTableNewRow, String> messageCol = new TableColumn<OrderDataTableNewRow, String>("Text");
              messageCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.TEXT_PROPERTY));
              messageCol.setPrefWidth(140);
              TableColumn<OrderDataTableNewRow, String> giveUpCol = new TableColumn<OrderDataTableNewRow, String>("GiveUp");
              giveUpCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.GIVEUP_PROPERTY));
              giveUpCol.setSortable(true);
              giveUpCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, String> giveInCol = new TableColumn<OrderDataTableNewRow, String>("GiveIn");
              giveInCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow,String>(OrderDataTableNewRow.GIVEIN_PROPERTY));
              giveInCol.setPrefWidth(100);
              TableColumn<OrderDataTableNewRow, Date> createdCol = new TableColumn<OrderDataTableNewRow, Date>("Updated");
              createdCol.setCellValueFactory(new PropertyValueFactory<OrderDataTableNewRow, Date>(OrderDataTableNewRow.UPDATED_PROPERTY));
              createdCol.setSortable(true);
              createdCol.setMinWidth(190);
              createdCol.setSortType(SortType.DESCENDING);
              // Setup all the renders
              Callback<TableColumn<OrderDataTableNewRow,String>, TableCell<OrderDataTableNewRow,String>> defaultStringRenderFactory =
                        new Callback<TableColumn<OrderDataTableNewRow,String>, TableCell<OrderDataTableNewRow,String>>() {
                   public TableCell<OrderDataTableNewRow,String> call(TableColumn<OrderDataTableNewRow,String> p) {
                        return new StringFormatCell<OrderDataTableNewRow>(Pos.CENTER);
              Callback<TableColumn<OrderDataTableNewRow, SideEnum>, TableCell<OrderDataTableNewRow, SideEnum>> defaultSideCellFactory =
                        new Callback<TableColumn<OrderDataTableNewRow, SideEnum>, TableCell<OrderDataTableNewRow, SideEnum>>() {
                   public TableCell<OrderDataTableNewRow, SideEnum> call(TableColumn<OrderDataTableNewRow, SideEnum> p) {
                        return new SideFormatCell<OrderDataTableNewRow>();
              Callback<TableColumn<OrderDataTableNewRow, OrderStatus>, TableCell<OrderDataTableNewRow, OrderStatus>> orderStatusCellFactory =
                        new Callback<TableColumn<OrderDataTableNewRow, OrderStatus>, TableCell<OrderDataTableNewRow, OrderStatus>>() {
                   public TableCell<OrderDataTableNewRow, OrderStatus> call(TableColumn<OrderDataTableNewRow, OrderStatus> p) {
                        return new OrderStatusFormatCell<OrderDataTableNewRow>();
              Callback<TableColumn<OrderDataTableNewRow, OrderType>, TableCell<OrderDataTableNewRow, OrderType>> orderTypeCellFactory =
                        new Callback<TableColumn<OrderDataTableNewRow, OrderType>, TableCell<OrderDataTableNewRow, OrderType>>() {
                   public TableCell<OrderDataTableNewRow, OrderType> call(TableColumn<OrderDataTableNewRow, OrderType> p) {
                        return new OrderTypeFormatCell<OrderDataTableNewRow>(null);
              clOrderIdCol.setCellFactory(defaultStringRenderFactory);
              exchangeCol.setCellFactory(defaultStringRenderFactory);
              securityCodeCol.setCellFactory(defaultStringRenderFactory);
              orderTypeCol.setCellFactory(orderTypeCellFactory);
              sideCol.setCellFactory(defaultSideCellFactory);
              orderStatusCol.setCellFactory(orderStatusCellFactory);
              accountCol.setCellFactory(defaultStringRenderFactory);
              brokerCol.setCellFactory(defaultStringRenderFactory);
              traderCol.setCellFactory(defaultStringRenderFactory);
              currencyCol.setCellFactory(defaultStringRenderFactory);
              messageCol.setCellFactory(defaultStringRenderFactory);
              this.exchangesTable.setItems(data);
              this.exchangesTable.setTableMenuButtonVisible(true);
              ObservableList<TableColumn<OrderDataTableNewRow, ?>> columns = this.exchangesTable.getColumns();
              columns.addAll(clOrderIdCol, exchangeCol, securityCodeCol, orderTypeCol, sideCol, priceCol, qtyCol, orderStatusCol, lastQtyCol, lastPxCol, avgPxCol, cumQtyCol, leavesQtyCol, executionTypeCol, accountCol, brokerCol, traderCol, expiryCol, currencyCol, giveUpCol, giveInCol, messageCol, createdCol);
              //Layout
              final HBox hbox = new HBox();
              Button updaterButton = new Button("START_UPDATER");
              Button inserterButton = new Button("START_DATA_ADD");
              Button stopButton = new Button("STOP");
              final TextField qtyField = new TextField();
              Button tenButton = new Button("10");
              Button twentyButton = new Button("20");
              Button fiveButton = new Button("5");
              Button threeButton = new Button("3");
              hbox.setSpacing(3);
              hbox.getChildren().addAll(updaterButton, inserterButton, stopButton, qtyField, tenButton, twentyButton, fiveButton, threeButton);
              tenButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        qtyField.clear();
                        qtyField.setText("10");
              twentyButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        qtyField.clear();
                        qtyField.setText("20");
              fiveButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        qtyField.clear();
                        qtyField.setText("5");
              threeButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        qtyField.clear();
                        qtyField.setText("3");
              final AtomicInteger counter = new AtomicInteger();
              final Thread runner = new Thread() {
                   // runnable for that thread
                   public void run() {
                        while(true) {
                             try {
                                  // imitating work
                                  Thread.sleep(new Random().nextInt(100));
                             } catch (InterruptedException ex) {
                                  ex.printStackTrace();
                             // update ProgressIndicator on FX thread
                             Platform.runLater(new Runnable() {
                                  public void run() {
                                       int andIncrement = counter.getAndIncrement();
                                       long orderId = andIncrement;
                                       String clOrderId = andIncrement+"CL";
                                       String exchange = "XEUR";
                                       String code = "ES";
                                       int nextEnumRand = new Random().nextInt(SideEnum.values().length);
                                       SideEnum side = SideEnum.values()[nextEnumRand];
                                       int nextTypeEnumRand = new Random().nextInt(OrderType.values().length);
                                       OrderType orderType = OrderType.values()[nextTypeEnumRand];
                                       int nextSecEnumRand = new Random().nextInt(SecurityType.values().length);
                                       SecurityType securityType =  SecurityType.values()[nextSecEnumRand];
                                       String currency = "USD";
                                       Date expiry = new Date();
                                       double price = 92.22;
                                       int qty =10;
                                       String account = "ACCOUNT";
                                       String broker = "BROKER";
                                       String trader = "TRaDER";
                                       OrderDataTableNewRow tableRow =  new OrderDataTableNewRow(orderId, clOrderId, exchange, code, side, orderType, securityType, currency, expiry, price, qty, account, broker, trader);
                                       System.out.println("Adding row "+tableRow);
                                       data.add(tableRow);
              final Thread updater = new Thread() {
                   // runnable for that thread
                   public void run() {
                        while(true) {
                             try {
                                  // imitating work
                                  Thread.sleep(new Random().nextInt(100));
                             } catch (InterruptedException ex) {
                                  ex.printStackTrace();
                             // update ProgressIndicator on FX thread
                             Platform.runLater(new Runnable() {
                                  public void run() {
                                       int andIncrement = counter.get();
                                       int nextInt = new Random().nextInt(andIncrement);
                                       OrderDataTableNewRow tableRow = data.get(nextInt);
                                       System.out.println("Updating row "+tableRow);
                                       int nextEnumRand = new Random().nextInt(OrderStatus.values().length);
                                       OrderStatus randDomStatus = OrderStatus.values()[nextEnumRand];
                                       tableRow.setOrderStatus(randDomStatus);
                                       tableRow.setUpdated(new Date());
              updaterButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        updater.start();
              inserterButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        runner.start();
              stopButton.setOnAction(new EventHandler<ActionEvent>() {
                   @Override
                   public void handle(ActionEvent arg0) {
                        runner.stop();
                        updater.stop();
              String defaultCssStyleResource = this.getClass().getResource("style_blue.css").getFile();
              this.exchangesTable.prefWidthProperty().bind(rootPane.widthProperty());
              this.exchangesTable.prefHeightProperty().bind(rootPane.heightProperty());
              rootPane.getChildren().addAll(hbox, exchangesTable);
              Scene scene = new Scene(rootPane, 400, 400, Color.WHITE); 
              scene.getStylesheets().add(defaultCssStyleResource);
              stage.setResizable(true);
              stage.setScene(scene);
              stage.show();
         enum SideEnum {
              BUY,
              SELL
         enum SecurityType {
              STOCK,
              BOND,
              FUTURE
         enum OrderType {
              LIMIT,
              MARKET,
              STOP
         enum OrderStatus {
              EXECUTED,
              PENDING,
              FILLED,
              CANCELLED,
              WORKING,
              PENDINGNEW
         enum ExecutionType {
              EXECUTED,
              FILLED,
              CANCELLED,
         public static void main(String[] args) {
              Application.launch(TestApplication.class, args);
         public class OrderDataTableNewRow  {
              public static final String CLORDERID_PROPERTY = "clOrderId";
              public static final String EXCHANGE_PROPERTY = "exchange";
              public static final String SECURITY_CODE_PROPERTY = "code";
              public static final String SIDE_PROPERTY = "side";
              public static final String PRICE_PROPERTY = "price";
              public static final String ORDERTYPE_PROPERTY = "orderType";
              public static final String QTY_PROPERTY = "qty";
              public static final String LAST_PX_PROPERTY = "lastPx";
              public static final String LAST_QTY_PROPERTY = "lastQty";
              public static final String AVG_PX_PROPERTY = "avgPx";
              public static final String CUM_QTY_PROPERTY = "cumQty";
              public static final String LEAVES_QTY_PROPERTY = "leavesQty";
              public static final String ACCOUNT_PROPERTY = "account";
              public static final String BROKER_PROPERTY = "broker";
              public static final String TRADER_PROPERTY = "trader";
              public static final String ORDER_STATUS_PROPERTY = "orderStatus";
              public static final String EXECUTION_TYPE_PROPERTY = "executionType";
              public static final String EXPIRY_PROPERTY = "expiry";
              public static final String CURRENCY_PROPERTY = "currency";
              public static final String TEXT_PROPERTY = "text";
              public static final String GIVEUP_PROPERTY = "giveUp";
              public static final String GIVEIN_PROPERTY = "giveIn";
              public static final String UPDATED_PROPERTY = "updated";
              private final long orderId;
              private final String clOrderId;
              private final String exchange;
              private final String code;
              private final SideEnum side;
              private final OrderType orderType;
              private final SecurityType securityType;
              private final String account;
              private final String broker;
              private final String trader;
              private final Date expiry;
              private final String currency;
              private final double price;
              private final int qty;
              private final SimpleObjectProperty<OrderStatus> orderStatus = new SimpleObjectProperty<OrderStatus>();
              private final SimpleObjectProperty<ExecutionType> executionType = new SimpleObjectProperty<ExecutionType>();
              private final SimpleDoubleProperty lastPx = new SimpleDoubleProperty();
              private final SimpleIntegerProperty lastQty = new SimpleIntegerProperty();
              private final SimpleIntegerProperty cumQty = new SimpleIntegerProperty();
              private final SimpleIntegerProperty leavesQty = new SimpleIntegerProperty();
              private final SimpleDoubleProperty avgPx = new SimpleDoubleProperty();
              private final SimpleStringProperty externalOrderId = new SimpleStringProperty();
              private final SimpleStringProperty text = new SimpleStringProperty();
              private final SimpleStringProperty giveUp = new SimpleStringProperty();
              private final SimpleStringProperty giveIn = new SimpleStringProperty();
              private final SimpleObjectProperty<Date> updated = new SimpleObjectProperty<Date>();
               * Creates a new instance of {@link OrderDataTableNewRow}.
              public OrderDataTableNewRow(long orderId, String clOrderId, String exchange, String code, SideEnum side, OrderType orderType,  SecurityType securityType, String currency,
                        Date expiry, double price, int qty, String account, String broker, String trader) {
                   this.orderId = orderId;
                   this.clOrderId = clOrderId;
                   this.exchange = exchange;
                   this.code = code;
                   this.side = side;
                   this.orderType = orderType;
                   this.currency = currency;
                   this.expiry = expiry;
                   this.securityType = securityType;
                   this.account = account;
                   this.broker = broker;
                   this.trader = trader;
                   this.price = price;
                   this.qty = qty;
              public void setUpdated(Date date) {
                   this.updated.set(date);
              public void setOrderStatus(OrderStatus randDomStatus) {
                   this.orderStatus.set(randDomStatus);
               * @return the orderId
              public final long getOrderId() {
                   return this.orderId;
               * @return the clOrderId
              public final String getClOrderId() {
                   return this.clOrderId;
               * @return the exchange
              public final String getExchange() {
                   return this.exchange;
               * @return the code
              public final String getCode() {
                   return this.code;
               * @return the side
              public final SideEnum getSide() {
                   return this.side;
               * @return the orderType
              public final OrderType getOrderType() {
                   return this.orderType;
               * @return the securityType
              public final SecurityType getSecurityType() {
                   return this.securityType;
               * @return the account
              public final String getAccount() {
                   return this.account;
               * @return the broker
              public final String getBroker() {
                   return this.broker;
               * @return the trader
              public final String getTrader() {
                   return this.trader;
               * @return the expiry
              public final Date getExpiry() {
                   return this.expiry;
               * @return the currency
              public final String getCurrency() {
                   return this.currency;
               * @return the price
              public final double getPrice() {
                   return this.price;
               * @return the qty
              public final int getQty() {
                   return this.qty;
               * @return the orderStatus
              public final SimpleObjectProperty<OrderStatus> getOrderStatus() {
                   return this.orderStatus;
               * @return the executionType
              public final SimpleObjectProperty<ExecutionType> getExecutionType() {
                   return this.executionType;
               * @return the lastPx
              public final SimpleDoubleProperty getLastPx() {
                   return this.lastPx;
               * @return the lastQty
              public final SimpleIntegerProperty getLastQty() {
                   return this.lastQty;
               * @return the cumQty
              public final SimpleIntegerProperty getCumQty() {
                   return this.cumQty;
               * @return the leavesQty
              public final SimpleIntegerProperty getLeavesQty() {
                   return this.leavesQty;
               * @return the avgPx
              public final SimpleDoubleProperty getAvgPx() {
                   return this.avgPx;
               * @return the externalOrderId
              public final SimpleStringProperty getExternalOrderId() {
                   return this.externalOrderId;
               * @return the text
              public final SimpleStringProperty getText() {
                   return this.text;
               * @return the giveUp
              public final SimpleStringProperty getGiveUp() {
                   return this.giveUp;
               * @return the giveIn
              public final SimpleStringProperty getGiveIn() {
                   return this.giveIn;
               * @return the updated
              public final SimpleObjectProperty<Date> getUpdated() {
                   return this.updated;
               * @return the created
              public final SimpleObjectProperty<Date> updatedProperty() {
                   return this.updated;
               * @return the lastPrice
              public final SimpleDoubleProperty lastPxProperty() {
                   return this.lastPx;
               * @return the lastQty
              public final SimpleIntegerProperty lastQtyProperty() {
                   return this.lastQty;
               * @return the cumQty
              public final SimpleIntegerProperty cumQtyProperty() {
                   return this.cumQty;
               * @return the averagePrice
              public final SimpleDoubleProperty avgPxProperty() {
                   return this.avgPx;
               * @return the executionStatus
              public final SimpleObjectProperty<ExecutionType> executionTypeProperty() {
                   return this.executionType;
               * @return the leavesQty
              public SimpleIntegerProperty leavesQtyProperty() {
                   return this.leavesQty;
               * @return the text
              public final SimpleStringProperty textProperty() {
                   return this.text;
               * @return the orderId
              public final SimpleStringProperty externalOrderIdProperty() {
                   return this.externalOrderId;
               * @return the orderStatus
              public final SimpleObjectProperty<OrderStatus> orderStatusProperty() {
                   return this.orderStatus;
               * @return the giveUp
              public final SimpleStringProperty giveUpProperty() {
                   return this.giveUp;
               * @return the giveIn
              public final SimpleStringProperty giveInProperty() {
                   return this.giveIn;
         public class StringFormatCell<T>  extends TableCell<T, String> {
              private final Pos alignment;
              private final String cssFormat;
               * Creates a new instance of {@link IntegerFormatCell}.
              public StringFormatCell(Pos alignment) {
                   this(null, alignment);
               * Creates a new instance of {@link IntegerFormatCell}.
              public StringFormatCell(String cssFormat, Pos alignment) {
                   this.cssFormat = cssFormat;
                   this.alignment = alignment;
                   setId(this.cssFormat);
               * {@inheritDoc}
               * @see javafx.scene.control.Cell#updateItem(java.lang.Object, boolean)
              @Override
              protected void updateItem(String item, boolean empty) {
                   if(item == null) {
                        return;
                   // calling super here is very important - don't skip this!
                   super.updateItem(item, empty);
                   setText(item);
                   setAlignment(alignment);
         public class SideFormatCell<T> extends TableCell<T, SideEnum> {
               * Creates a new instance of {@link SideFormatCell}.
              public SideFormatCell() {
                   setAlignment(Pos.CENTER);
               * {@inheritDoc}
               * @see javafx.scene.control.Cell#updateItem(java.lang.Object, boolean)
              @Override
              protected void updateItem(SideEnum item, boolean empty) {
                   if(item == null) {
                        return;
                   // calling super here is very important - don't skip this!
                   super.updateItem(item, empty);
                   String name = item.name();
                   setText(name);
                   switch (item) {
                   case BUY:
                        setId("bidPriceCell");
                        break;
                   case SELL:
                        setId("askPriceCell");
                        break;
         public class OrderStatusFormatCell<T> extends TableCell<T, OrderStatus> {
               * Creates a new instance of {@link OrderStatusFormatCell}.
              public OrderStatusFormatCell() {
                   setAlignment(Pos.CENTER);
               * {@inheritDoc}
               * @see javafx.scene.control.Cell#updateItem(java.lang.Object, boolean)
              @Override
              protected void updateItem(OrderStatus item, boolean empty) {
                   if(item == null) {
                        return;
                   // calling super here is very important - don't skip this!
                   super.updateItem(item, empty);
                   switch (item) {
                   case PENDING:
                        setId("statusWorkingColumn");
                        setText("Working");
                        break;
                   case PENDINGNEW:
                        setId("statusPendingColumn");
                        setText("Pending New");
                        break;
                   case CANCELLED:
                        setId("statusPendingCancelColumn");
                        setText("Pending Cancel");
                        break;
                   case EXECUTED:
                        setId("statusPartFilledColumn");
                        setText("Part Filled");
                        break;
         public class OrderTypeFormatCell<T> extends TableCell<T, OrderType> {
               * Creates a new instance of {@link OrderTypeFormatCell}.
              public OrderTypeFormatCell(String cssStyleName) {
                   setId(cssStyleName);
                   setAlignment(Pos.CENTER);
               * {@inheritDoc}
               * @see javafx.scene.control.Cell#updateItem(java.lang.Object, boolean)
              @Override
              protected void updateItem(OrderType item, boolean empty) {
                   if(item == null) {
                        return;
                   // calling super here is very important - don't skip this!
                   super.updateItem(item, empty);
                   String itemAsString = item.name();
                   setText(itemAsString);
                   switch (item) {
                   case LIMIT:
                        setId("orderTypeLimit");
                        setText("Limit");
                        break;
                   case MARKET:
                        setId("orderTypeMarket");
                        setText("Market");
                        break;
                   case STOP:
                        setId("orderTypeStop");
                        setText("Stop");
                        break;
    }

  • ITunes 7.0 issue

    I recently updated my iTunes to version 7.0
    It seems that I can no longer play the music on my iPod via my laptop.
    As it is a work laptop, I do not store music on it, so cannot sync.
    iTunes v6 allowed the play back remotely from the iPod, but v7.0 just has all the files on the ipod greyed out and not playable.
    Does anyone know if this is a defect or intentional?
    PC   Windows XP Pro  

    iTunes 7.0 upgrade
    PROBLEM: playback of SOUND and VIDEO completely distorted, scratchy, skipping, cracking (like an old used 45 stored in a box of sand for 50 years).
    Audio card: Creative SB can't find model.
    Attempted:
    re-installed drive on sound card.
    QT 7.0 Pro - preferences, audio tab, change the hertz number and bit number, different combo's. Not certain what combo and what values of each will work. (ANYONE CAN SUGGEST SETTINGS?)
    Result: funny thing: after changing the Hertz and Bit rate a number of times, it worked...for several seconds into playback of songs - then back to that old 45rpm VINYL sound quality!!! Argh.
    VIDEO playback in iTunes 7.0 is also HOSED.
    Play "movies" imported to iTunes under 6.0 Quicktime: they play, but screen is chopped up into little boxes (frames) of video, distortion. Note: downloaded Podcast video, it worked fine. However, prchased iTunes music videos don't playback - same issue as above. I need to play again with QT 7.0 Pro settings.
    gateway 7000 1g ram, etc.   Windows XP Pro   gig ram, 400gig HD, etc.

  • I recently attempted to re-install Mountain Lion on my MacBook Pro late 2012 model and the internet recovery is failing.

    I recently attempted to re-install Mountain Lion on my MacBook Pro late 2012 model and the internet recovery is failing. I have absolutely no clue what to do here. Any help is greatly appreciated. Thank you.
    - Currently if I boot it up there is a flashing folder icon with a question mark in it. I am assuming this means there is no OS because I wiped the SSD and tried to reinstall Mountain Lion
    - When I hold Command+R, it prompts me to Choose Network... the problem with this is the wifi constantly is disconnecting. The Retina 2012 does not have an ethernet port so i have considered buying the attachment then returning when done.
    Once again Thank you in advance.
    Best.

    There is nothing to do if you don't have a reliable Internet connection unless you have a copy of the Mountain Lion installer application from when you first installed it.
    Install or Reinstall Mavericks or Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    OS X Mavericks- Erase and reinstall OS X
    OS X Mountain Lion- Erase and reinstall OS X
    OS X Lion- Erase and reinstall Mac OS X
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Error message when attempting to use scanner Canon model MP610

    Error message when attempting to use scanner Canon model MP610, any one have any fixes, suggestions?

    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, empty trash, reboot when complete.
    For the other problems...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

  • I have purchased an Iphone 4 in Dubai two years ago. The model number is MC319LL. And unfortunately, I attempted to upgrade it online to a newer version 5.0.1(9A405) but right away my sim card was blocked. I can no longer use the telephone.

    Dear Sir:
    Two years ago I have purchased an Iphone 4 here in Carrefour Supermarket, Dubai UAE. The model number is MC319LL. Unfortunately last November 2011, I attempted to upgrade the OS to 5.0.1 but rightaway, my sim card(Etisalat UAE service provider) was blocked. As a result, I can no longer use the telephone function. I just found out recently that this model number .i.e.MC319LL is to be used for AT&T. My question is, how can I restore my unit to work as a celphone? And why is it that when I upgraded it, it was blocked. Was it illegal to sell this phone in the UAE market?
    Thanks a lot.
    Kathleen Jewel

    You purchased a "hacked" iPhone(hacked to unlock it) from a non-official source for iPhones. Unfortunately, that's the risk you take when you purchase from a non-official source. There is no way to get your phone officially unlocked, & all warranty & support has been voided. Sorry, but you don't have any good choices here. Your best bet is to go back to Carrefour Supermarket & get your money back, then purchase an iPhone from an official source. If they won't give you your money back, have them "fix" your phone...they will have to "hack" it again. Good luck.

Maybe you are looking for

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!! i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

  • Has anyone gotten their Hotmail account to work on iPhone?

    I'm trying to use my hotmail address for my mail feature, but I don't know what the incoming/outgoing host names are supposed to be, and I don't know if I'm supposed to use IMAP, POP, or Exchange. Help, please!! iPhone   Windows XP  

  • Previous System folder vs. system folder after archive and install

    Hi there - I am very new to mac but love the products and am excited to be a part of the culture. Because I am having battery-type problems I was told to do an archive and install to see if it was a software problem. My question is, I followed the in

  • An unknown error has occurred (3194)

    Hi, I have an issuse with  my iPhone 3Gs. The firmware of my iPhone was 4.2.1 and I updated it to (iOS 4.3) easily, but when I try to update it to (iOS 4.3.1) this message appears : "The iPhone "Bassim" could not be updated. An unknown error has occu

  • Com.sap.pct.pdk.navigationconnectortestrole not found

    Hi, When i  cilck on a button in UWL for approval  it says URL Parameter not exists When i check i log file it says com.sap.pct.pdk.navigationconnectortestrole not found!# Please can anyone help it out. Thanks Srikanth