JavaFX 2.0 WebView hangs if the Application is signed

I am using WebView to provide a set of Help pages in my application.
The help pages are included in a resource directory called html.
I get the first URL with the following lines of code:
URL index = NgpConfiguratorApp.class.getResource("/html/index.html");
String url = "file://" + index.getPath();
I then open the URL with WebView and it works perfectly.
I am able to browse my help pages perfectly.
However if I sign the Jar (From within NetBeans using the 6 month valid signature) and then run the program everything works perfectly (XML import/export databse access etc) until I try to access the Help pages through WebView at which pointh the program completely hangs up.
Is this a bug in WebView or am I missing something. I have included the complete class listing below.
COMPLETE LISTING
============
public class HelpBrowser extends Stage {
public HelpBrowser() {
super();
init();
private void init() {
Stage primaryStage = new Stage();
primaryStage.setTitle("AviatorCalc Help Pages");
URL index = NgpConfiguratorApp.class.getResource("/html/index.html");
String url = "file://" + index.getPath();
Group root = new Group();
primaryStage.setScene(new Scene(root));
WebView view = new WebView();
view.setMinSize(1024, 768);
view.setPrefSize(1024, 768);
final WebEngine eng = view.getEngine();
eng.load(url);
final TextField locationField = new TextField(url);
locationField.setMaxHeight(Double.MAX_VALUE);
Button goButton = new Button("Go");
Button backButton = new Button("Back");
goButton.setDefaultButton(true);
goButton.setId("browserbutton");
EventHandler<ActionEvent> goAction = new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
eng.load(locationField.getText().startsWith("") ? locationField.getText()
: "" + locationField.getText());
goButton.setOnAction(goAction);
locationField.setOnAction(goAction);
eng.locationProperty().addListener(new ChangeListener<String>() {
@Override
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
locationField.setText(newValue);
GridPane grid = new GridPane();
grid.setVgap(5);
grid.setHgap(5);
GridPane.setConstraints(locationField, 0, 0, 1, 1, HPos.CENTER, VPos.CENTER, Priority.ALWAYS, Priority.SOMETIMES);
GridPane.setConstraints(goButton, 1, 0);
GridPane.setConstraints(goButton, 2, 0);
GridPane.setConstraints(view, 0, 1, 2, 1, HPos.LEFT, VPos.CENTER, Priority.ALWAYS, Priority.ALWAYS);
grid.getColumnConstraints().addAll(
new ColumnConstraints(500, 100, Double.MAX_VALUE, Priority.ALWAYS, HPos.CENTER, true),
new ColumnConstraints(40, 40, 40, Priority.NEVER, HPos.CENTER, true));
grid.getChildren().addAll(locationField, goButton, view);
//grid.getChildren().addAll( view);
root.getChildren().add(grid);
primaryStage.show();
}

Many thanks for your prompt replies.
Peterz as per your suggestion I changed the two incorrect lines to:
String url = getClass().getResource("/html/index.html").toExternalForm();
engi.load(url);
It now works perfectly either running as a signed jar or from within the netbeans development system.
The URL that the above creates now looks like this:
"jar:file:/E:/Development/Wireless/netbeans/NgpConfigurator/dist/NgpConfigurator.jar!/html/index.html"
(My development system is on drive E: and my project is called NgpConfigurator).
I am extremely grateful for your help and I hope to contribute to this forum as my experience with JavaFX grows.
Bob Rathbone

Similar Messages

  • Eclipse hangs and the JVM terminates in a Swing app incorporating JavaFX

    Hi everyone,
    I have a situation that is driving me nuts. I am developing a Swing based application which is incorporating some JavaFX components,mainly the TableView and a few layouts. I have wrapped all the javafx components into a common control for use application wide. I am also using an Eclipse plugin (Window Builder Pro) to layout the swing stuff.
    Now, my issue is, when I preview the JFrames and other components making use of the said simple custom control referred above, it only allows me to preview the JFrame once, there after Eclipse hangs and the JVM terminates.
    After some research, the most likely cause of this is that the reference to jfxrt.jar i have referenced in the project is loading some native dlls which can/should only be loaded once in the lifetime of a JVM. It looks like for some reason, my app is trying to load the native libs after it has already loaded them initially.
    The Application needs to be developed in Eclipse so netbeans is not an option.
    Am just getting started with maven, i don't have the know to build a project of this complexity with maven.
    Has any one encountered this issue and how did they walk around it?
    Any assistance would be greatly appreciated.

    After further digging around, the actual exception that causes the jvm to terminate is java.lang.UnsatisfiedLinkError due to an attempt to reload \JavaFX_2.0_SDK\rt\bin\mat.dll, anyone knows how to overcome this ?

  • Closing the Report Viewer causes the application to hang

    Hi,
    Since a few days we are experiencing some problems with the Crystal Reports viewer. When closing a report viewer in our application, the application hangs for a few minutes. The strange thing is, that it only seems to happen on Windows 7 and Windows 2008 R2 Server.
    Our application with the integrated Crystal Report Viewer is running on 2 application servers :
    - Windows 2008 Server, versie 6.0 Build 6002, Service Pack 2
    - Windows 2008 R2 Server versie 6.1, Build 7600
    Crystal Reports version installed on both servers : 12.01.0007.1144
    On the 2008 Server, the application works correctly.
    On the 2008 R2 server, the application hangs for about 5 minutes while closing the report preview window.
    Both server have exactly the same version of Crystal Reports and the same application version.
    I'm having the same issue on a Windows 7 x64 (6.1 Build 7600).
    I've installed all updates and hotfixes up to SP3 Fix Pack (12.3.3.812 / 12.3.2003.812) but I'm still having the same problem.
    We didn't have this problem until a few days ago, so I assume it has something to do with a windows update which only affects Windows 7 and Windows 2008 R2.
    Please advice us with a possible workaround, because our application is distributed to a few thousand users ...
    Some more debug info :
    This is the call of from the main thread when the application hangs :
         [Managed to Native Transition]     
    >     mscorlib.dll!System.__ComObject.ReleaseSelf() + 0x5 bytes     
         mscorlib.dll!System.Runtime.InteropServices.Marshal.ReleaseComObject(object o) + 0x8b bytes     
         CrystalDecisions.Shared.dll!CrystalDecisions.Shared.SharedUtils.ReleaseComObject(object obj = {CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass}) + 0x75 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ISCDClientDocumentEvents_EventProvider.Dispose(bool bDisposeManaged = true) + 0x1a2 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ISCDClientDocumentEvents_EventProvider.Dispose() + 0x32 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.DisconnectEventRelay() + 0xfc bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.InternalClose(bool bSetupForNextReport = false, bool bAutoClose = true) + 0x10e bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(bool bDisposeManaged = true) + 0xad bytes     
         System.dll!System.ComponentModel.Component.Dispose() + 0x12 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.ClearCache(bool clearDocument = true) + 0x9d bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(bool bSetupForNextReport = true) + 0x81 bytes     
         CrystalDecisions.CrystalReports.Engine.dll!CrystalDecisions.CrystalReports.Engine.ReportDocument.Close() + 0x3f bytes     
         SyDelSoftControlLibCrystalReports.dll!SyDelSoft.ControlLib.CrystalReports.cReportForm.Dispose(bool disposing = true) + 0x55 bytes     
         SDProjects.exe!SDProjects.GUI.ReportForm.Dispose(bool disposing) + 0x38 bytes     
    SharedUtils.ReleaseComObject
    Kind regards,
    Frederic Hoornaert

    CrystalReportsDisposeIssue.crpe.Diagnostics.0.log
    --> Form3 closed
    ..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:39:17"
    N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:17"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"7"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"6"
    N/A:-1,Closing engine,Elapsed Time,"2"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:17"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"6"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"5"
    N/A:-1,Closing engine,Elapsed Time,"2"
    --> Form2 closed
    ..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:39:52"
    N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:39:52"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"4"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"3"
    N/A:-1,Closing engine,Elapsed Time,"2"
    --> Form1 closed..\..\src\print\datasource\datasrc2.cpp:535,Releasing subreport data sources,Start Time,"17:40:29"
    N/A:-1,Releasing subreport data sources,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:40:29"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"2"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"1"
    N/A:-1,Closing engine,Elapsed Time,"2"
    ..\..\src\crpe\crpe.cpp:791,Closing engine,Start Time,"17:40:29"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"1"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"0"
    N/A:-1,Closing engine,Elapsed Time,"100017"
    CrystalReportsDisposeIssue.crpe.functions.0.log
    0xfb8     17:39:17.871          0     PESetUserSessionInfo               0     PEUserSessionInfoW:<StructSize:262><userName:><requestID:22>     IN          21     <==
    0xfb8     17:39:17.871     0     0     PESetUserSessionInfo               0     OUT     PEUserSessionInfoW:<StructSize:262><userName:><requestID:22>          21     <==
    0xfb8     17:39:17.874          3     PEClosePrintJob     report {657D0ECA-BC6A-4EC6-9476-02B77376E07C}.rpt          0     jobN:3     IN          22     <==
    0xfb8     17:39:17.874     36     3     PEClosePrintJob     report {657D0ECA-BC6A-4EC6-9476-02B77376E07C}.rpt          0     OUT     jobN:3          22     <==
    0xfb8     17:39:17.913          0     PECloseEngine               0     void     IN          22     <==
    0xfb8     17:39:17.913     3     0     PECloseEngine               0     OUT     void          22     <==
    0xfb8     17:39:17.923          0     PECloseEngine               0     void     IN          0     <==
    0xfb8     17:39:17.923     3     0     PECloseEngine               0     OUT     void          0     <==
    0xfb8     17:39:52.421          0     PESetUserSessionInfo               0     PEUserSessionInfoW:<StructSize:262><userName:><requestID:23>     IN          0     <==
    0xfb8     17:39:52.421     0     0     PESetUserSessionInfo               1032     OUT     PEUserSessionInfoW:<StructSize:262><userName:><requestID:23>          0     <==
    0xfb8     17:39:52.423          1     PEClosePrintJob     report {F2574C5C-00BC-4627-9A05-B8133D6E6F7D}.rpt          0     jobN:1     IN          0     <==
    0xfb8     17:39:52.423     15     1     PEClosePrintJob     report {F2574C5C-00BC-4627-9A05-B8133D6E6F7D}.rpt          0     OUT     jobN:1          0     <==
    0xfb8     17:39:52.441          0     PECloseEngine               0     void     IN          0     <==
    0xfb8     17:39:52.441     3     0     PECloseEngine               1032     OUT     void          0     <==
    0xfb8     17:40:29.281          0     PESetUserSessionInfo               0     PEUserSessionInfoW:<StructSize:262><userName:><requestID:24>     IN          0     <==
    0xfb8     17:40:29.281     0     0     PESetUserSessionInfo               1032     OUT     PEUserSessionInfoW:<StructSize:262><userName:><requestID:24>          0     <==
    0xfb8     17:40:29.283          2     PEClosePrintJob     report {C78FE11F-6465-478F-83AB-49D8F0C6D64A}.rpt          0     jobN:2     IN          0     <==
    0xfb8     17:40:29.283     24     2     PEClosePrintJob     report {C78FE11F-6465-478F-83AB-49D8F0C6D64A}.rpt          0     OUT     jobN:2          0     <==
    0xfb8     17:40:29.310          0     PECloseEngine               0     void     IN          0     <==
    0xfb8     17:40:29.310     2     0     PECloseEngine               1032     OUT     void          0     <==
    0x1568     17:40:29.315          0     PECloseEngine               0     void     IN          0     <==
    0x1568     17:40:29.315     100018     0     PECloseEngine               0     OUT     void          0     <==

  • Crystal report close button hangs the application

    Dear All,
    I am working on 2005 B PL 46. we have developed an application to open a particular crystal report when a button is pressed in AR Invoice form. this works fine and the data is loaded properly. The problem is, when I close this report, this hangs the entire application and I have to kill the exe from the task manager then only I can go back to SAP. (one of the oldest problem we encountered with crystal report-SDK). this does not happen always. it does close the report 5 times out of 10 without hanging the application.one more thing is, if I debug the application with pressing F11, it never hangs the application and woks fine.
    The report is getting loaded in the Crystalreport Viewer control dragged on a windows form. any one has any idea? I have tried this on 2007 B version PL 08 and the same problem persists with lesser frequency.
    Thanks,
    Binita

    Yes Vasu. and on form close event of that windows's form, I am writing :
    System.Windows.Forms.Application.ExitThread()
    any idea?
    thanks,
    Binita

  • Firefox 4 hangs when attempting to view the Applications tab in Preferences

    Firefox 4 under MacOS X 10.6.6 hangs when I click to select the "Applications" tab on the Preferences dialog. It never paints the pane. When this happens, it consumes 60% CPU. Running dtruss against the running process shows a little activity, but not much.
    I have tried deleting mimeTypes.rdf. It recreated a new, smaller one, but it made no difference to the problem. I have let Firefox continue to run for up to 10 minutes, with no change in responsiveness. I am forced to kill it every time. It is 100% reproducible on my system.

    I just discovered that if I disable the Quicktime plugin (7.6.6), this problem goes away.

  • Android Emulator get hangs on starting the application in debug Mode

    I have deployed the application on Android Emulator in debug mode but on starting the app it get hangs. I have set the Java Debugging to true in the cvm.properties file and also started Java debugger from JDev before launching the ADF Mobile app on android emulator. Can any body help me to figure out the problem why the emulator gets hang on starting the application in debug Mode.

    Hi, after setting the debugging = true, you would also need to start the JDeveloper debugger and configure it for remote debugging. Shay has a blog article that should help.
    The emulator is hung while trying to connect to the JDeveloper debugger.
    https://blogs.oracle.com/shay/entry/debugging_adf_mobile_apps_on
    Thanks,
    Joe Huang

  • Key board hangs up randomly with 8155B controller while running the application.

    Key board hangs up randomly with 8155B controller while running the application.

    Roopal,
    This question has too much parameters. In order to help you out, I need to know more information. For example:
    1) Is this a new issue? Has your keyboard worked fine before?
    2) Is you keyboard hanging up when you run a specific application? Does it hang up at boot up?
    3) What operating system are you running?
    Regards,
    Claudia Lorente
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • My MacBook has become too slow with almost all the applications and with Mail it it worst. Almost like hang.

    I am using MacBook with 4GB RAM and 500GB hard disc, 2.26GHz CPU, Mountain Lion OS. The machine has become so slow it hamperes lots of work as with almost all the application it beclome unresponsive and hang like.
    Also disc permission changes over the period of time and need to clean it. After clean it, it improves a bit but the Mail function which is ridiculously slow. Address book never function to remove duplicate.
    Kindly ifnorm the solution if anybody have.

    If you do a safe boot, holding the shift key down while booting, do you have the performance issues? If not, check your login items as well as any software listed at the bottom of the System Preferences pane. A software incompatibility could cause performance issues. Note a safe start will take longer than a normal start.

  • Measurements slow or even hangs the application. Acrobat Pro X and Reader X

    Products: Acrobat Professional X and Acrobat Reader 10.1.7 (and 10.1.5).
    During measurements in files (3 Mb large for instance) the application hangs. Tried on both Windows XP and Windows 7 (32+64bits). Using other freeware it works fine for the same pdf-files.

    Hi Rave, thanks for your reply.
    How do I go about posting the crash dump here?
    And to answer your questions; I just installed Reader 11 and its working fine. As for Acrobat 11, I must've used a trial last year before we got CS6 because it is asking me to license it, so I cant test that unfortunately.

  • MacBoor Air is now hanging with various applications, including the Finder

    Hi Everyone,
    My 2011 MacBook Air is now hanging rather frequently, regardless of program.  Any suggestions?

    The next time you have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Iphoto 8 freezes/hangs right after I launch the application.

    Every time I try and launch iphoto 8 the application freezes/hangs.
    When a slide the arrow pointer anywhere on the iphoto8 screen the multi colored timer ball spins continuously and then I have to force quit the application.
    Why is it doing this and what do I have to do to fix.
    I'm using Leopard, however it also acted up while running Tiger
    please help
    thanks.

    Steve
    The Preference files (.plist, in your Home/ Library / Preferences folder) record User choices for every app. This will include such things as the default font, or the colour of the background, even the place of the window on the screen.
    When you launch an app it looks to this file to configure itself to your choices. If there's a problem - minor corruption for instance - then it can't complete launching.
    One of the basic troubleshooting steps on any app is to trash the plist file. It forces the app to recreate it - which it does using the default settings.
    How to prevent it occurring? Avoid crashes, force quits, minor disk corruption... But sometimes things just happen.
    Regards
    TD

  • LOV retrieval hang the application on assignment window

    When i try to choose an organization using the LOV on the assignment window it hangs the application and i am force to close the application. I have done a trace on the form executed the sql statement directly from sqlplus i get the same effect.
    select distinct o.name, o.organization_id from
    per_organization_units o where o.business_group_id =361 order by o;name;
    When i run the above statement sqlplus hangs
    but when i do
    select distinct o.name, o.organization_id from
    per_organization_units o where o.business_group_id =361 order by o;name,oragnization_id;
    The records are retrieved
    I wanna why does it hangs when i do a sort only by the name which is the default statement executed from the assignment window.
    Is it because of a corrupted data block
    Any help would be greatly appreciated

    I have done a trace on the form executed the sql statement directly from sqlplus i get the same effect.What does the tkprof of the trace file show?
    Is it because of a corrupted data blockAny ORA-XXXXX errors in the alert_<SID>.log file?

  • I loaded Mountain Lion and now my Canon Canoscan LIDE100 Scanner won't work. I reloaded the application, checked the driver & loaded the Canon driver for Mountain Lion. Aplication starts to load then hangs up on 80% complete.   Any suggestions?

    I loaded Mountain Lion and now my Canon Canoscan LIDE100 Scanner won't work. I reloaded the application, checked the Cannon website for the correct driver & loaded the Canon driver for Mountain Lion. Aplication starts to load then hangs up on 80% complete.   Any suggestions? 

    Might have a hardware issue that was caused by the minor liquid spill.
    Take it to Apple to have them look at it.  I think they do a free diagnostics.  That way you can find out what's wrong with your MB.
    Good luck....Hope you get it sorted out.

  • Oracle Application Server Reports Keep Hanging even the engines is availabl

    Dear All
    i have oracle reports server running
    but when i call the report its leep loading and in the application servers status it's tell me that the report is (Waiting in the queue)
    even the all engines is available and not running any report
    picture can tell better than thousand word
    http://img199.imageshack.us/img199/7159/37178594.jpg
    http://img718.imageshack.us/img718/6986/93253007.jpg

    hi,
    can you just give me the details of rep_<report_server>.conf file
    Location:ORACLE_HOME/reports/conf
    can you also pls provide the details of the application server on platform are you runnin.
    Regards
    Fabian

  • Application hangs on the screen of license agreement?

    Why after installation, the application just sticks to the screen of license agreement? ~ and the screen even looks 'imcomplete'.  I can only click on 'Cancel', because 'Accept' won't go anywhere..... 

    Which Application and on which OS ?
    Wild guess would be http://helpx.adobe.com/acrobat/kb/blank-eula-screen-appears-acrobat.html , this link may help

Maybe you are looking for

  • C-6 Type phone without touchscreen features

    Dear Sir, I am a big fan of nokia E-series. I would like nokia to come up with 2 innovative aspects in the phone:- 1. screen size like nokia C-6 & slider open qwerty keyboard but without touchscreen because mass indian users  still don't find touchsc

  • XY Buffer for 2 points

    I am trying to plot two counter vales (acquired one point at a time from a DAQ card). Using a single XY-Buffer works well, but I cannot seem to show both counters in a single plot. Can someone tell me how I solve this problem. On the same question, i

  • Email settings won't open

    I'm unable to access emailsettings. When trying it rewerts to home screen. I have tried restart and I have tried setting/removing restrictions, still no luck. Any ideas?

  • My iphone is not recognized but my husbands is.

    My husbands iphone is recognized and will update but mine will not. I have tried multiple computers and tried reinstalling itunes and did a stop start in services on my computer but I still cannot sync my phone. I am guessing it is a problem with my

  • Dowloading photoshop

    Do I have to purchase creative cloud when downloading photoshop?