JavaFX 2.0 WebView crashes if the application is signed

I use 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:
Index URL = 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 pot (of in NetBeans using the valid signature 6 months) and then run the program, everything works perfectly (access of database XML import/export etc.) until I tried access help pages through WebView to which PR\648606FR the program hangs up completely.

Is this a bug in the Web view or am I missing something. I've included the complete class list below.


COMPLETE LIST
============

SerializableAttribute public class HelpBrowser extends scene {}

public HelpBrowser() {}
Super();
init();
}


private void init() {}
Point primaryStage = new Stage();
primaryStage.setTitle ("AviatorCalc Help Pages");

Index URL = NgpConfiguratorApp.class.getResource("/html/index.html");
String url = "file://" + index.getPath ();
Root of group = 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 locationField TextField = new TextField (url);
locationField.setMaxHeight (Double.MAX_VALUE);
GoButton button = new Button ("Go");
BackButton button = 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);
}
});
Grid GridPane = 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 (display, 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 ();
}
}

This seems suspect-online

URL index = NgpConfiguratorApp.class.getResource("/html/index.html");
String url = "file://" + index.getPath();

In my view, adding the file:// Protocol when the resource is loaded from the pot will not.

To load html from the classpath in WebView all that you need to do is place the HTML is the same package as the class Java calling the load method and call:

engine.load(getClass().getResource("mypage.html").toExternalForm());

Tags: Java

Similar Questions

  • Check that the application is signed by a valid certificate

    Hello

    How to:

    Check that the application is signed by a valid certificate?


    Thank you.

    Take a look at this article: what should I do when I see a security invites since Java? (Information Blue Shield)

  • Crash when the application Look and display 2 - active up

    Hello, I spent a lot of time to reproduce this problem:

    SpeedGrade crashes when I apply one. Watch saved to a clip and I'm in the place 2 view. If I use the view Moussa, the accident will not occur.

    I have almost all Adobe programs installed the latest updates on Win 7 X 64 (latest drivers applied)

    SpeedGrade is open directly from first / a first project file.

    The things that I tried to solve the problem:

    1. turn on computer works ;-)

    1. turn off the application settings

    2 disable mercury gpu acceleration

    3. clear the cache and restart everything.

    .Log files don't have any useful information that I see:

    2015-07-06 [build 9.0x193 / 2015-05-26]

    Machine: XXXXXX-PC2 area WORKGROUP

    User: Dorian

    Mode: 64 - Bit

    Display: PCI\VEN_10DE & DEV_1183 & SUBSYS_35591458 & REV_A1

    Driver: NVIDIA GeForce GTX 660 Ti, Version: 10.18.13.5330

    CPU: Name: Intel (r) Core i7 - 4930 K CPU @ 3.40 GHz

    Model: 62, family: 6, step by step: 4

    Total topics: 12

    Features: MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AES AVX F16C POPCNT RDTSCP RDRAND

    Base path: C:\Program Files\Adobe\Adobe SpeedGrade CC 2015\

    Arguments: "C:\Program Files\Adobe\Adobe SpeedGrade CC 2015\SpeedGrade.exe'

    17:07:12 [IrLog] initialized LogFile

    17:07:12 ["GlobalSettings"] loading C:\Users\Dorian\AppData\Roaming\Adobe\SpeedGrade\9.0\settings/User_Settings.xml user settings

    17:07:12 [DISystem] initializing Application object system...

    17:07:12 [DISystem] Adobe SpeedGrade CC 2015

    17:07:12 [AMTModule] during initialization

    17:07:12 [AMTModule] background of departure

    17:07:12 [AMTModule] background running task

    17:07:12 [IrOS] resources loaded from C:\Program Files\Adobe\Adobe SpeedGrade CC 2015\resources\Resources.irf

    17:07:12 [IrOS] local potential: 27 under license, 10 effective

    17:07:12 [IrOS] Localized string table de_DE successfully loaded

    17:07:12 [OpenGL] initializing OpenGL...

    17:07:13 [OpenGL] provider: NVIDIA Corporation

    17:07:13 [OpenGL] Renderer: GeForce GTX 660 Ti/PCIe/SSE2

    17:07:13 [OpenGL] Version: 4.5.0 NVIDIA 353.30

    17:07:13 [SDIOut] SDI output is not available

    17:07:13 [SoundSubsystem] has been initialized properly its subsystem.

    17:07:13 [SoundSubsystem] 3 sound (s) available

    17:07:14 [AMTModule] in idle state

    17:07:15 [AMTModule] background task is complete

    17:07:17 [headlights] initialization IPA...

    17:07:17 [headlights] IPA active and active mode

    17:08 [DSoundDriver] peripheral initialization 0: 44100 Hz, 16 bit per sample, speakers: [stereo], first channel: 0

    17:08 [DSoundDriver] device 0: opening DirectSound

    17:08 [DSoundDriver] device 0: prepare its buffer

    17:08 [DSoundDriver] device 0: buffer format

    Device loan 0 17:08 [DSoundDriver]

    17:08:01 [DirectLink] using CUDA accelerated renderer

    17:08:01 [DirectLink] device name: GeForce GTX 660 Ti, Type: GPU, provider: NVIDIA

    17:08:01 [DirectLink] memory: 3072 M, computing capacity: 3, driver Version: 7.5

    Please let me know if you need more information. I would like to find a solution quickly!

    Good job on the post, but I HOPE that you have completed a bug report in this...

    /Feature bug report form requires Adobe...

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Neil

  • Acrobat crashes when the application of drafting

    Acrobat Pro 11.0.06 on Win 7 Pro and Win 8.1, during the application of the deletions of text Acrobat crashes.

    The problem has been resolved.

    Text recognition tool had to be performed before the reactions. Error of the user on this one!

    Thank you

  • Live Meeting crashes when the application sharing or desktop

    Hello

    My company, IT made me update my operating system of the old, reliable XP to Windows 7. Since that time my Live Meeting does not work correctly. I can set up a meeting, I can connect to any other meeting, but I can't share an application or a desktop. When I do this, the application closes without reporting an error. Interestingly, at this very moment, my desktop theme returns to that standard.

    I have also a system error asking me to save and open a launch.rtc file, but I have seen that there is a fix for this in the FAQ that I will apply. I don't think that this is related to my major problem.

    HE have already uninstalled my Live Meeting installed back again, reinstalled all the add-ins, downloaded all the latest fixes and patches of the MS web page, reinstalled my MS Office. Nothing helps.

    Google told me that someone already had this problem somewhere in the world, but no solution has been provided.

    Help, please. In my work as a Live Meeting is a key application that I use...

    Thanks in advance!

    Hi, I found the solution to the problem myself - navigation on the net...

    I had to change the color on my standard computer (Nothing fancy like Aero) profile. It helped!

    Therefore, no answers will be necessary. I hope this will help someone.

  • Numbers crash when the application effect in after effects CC

    I had this problem for a month or two now. Whenever I try to apply the effect, After Effects immediately breaks down and recorded a second version of the project.

    Here is the information provided by the accident report:

    Process: After Effects [1146]

    Path: / Applications/Adobe After Effects CC/Adobe After Effects CC.app/Contents/MacOS/After effects

    ID: com.adobe.AfterEffects

    Version: 12.0 (12.0)

    Code type: X 86-64 (Native)

    Parent process: launchd [177]

    User ID: 501

    Date/time: 2013-09-18 12:46:07.777-0700

    OS version: Mac OS X 10.8.4 (12E55)

    Report Version: 10

    Interval since last report: 14217 sec

    Crashes since last report: 2

    Per-App interval since last report: 221408 sec

    Per-App crashes since last report: 2

    Anonymous UUID: 387CA782-C5C5-43FA-3905-FBF2343641E8

    Please let me know if anyone knows of an update, or a solution to this. I do not have to return to CS6 just to apply the effect numbers.

    Thank you

    Today, we released update after effects CC (12.1), which fixes this bug.

    Let us know how it works for you when you tried with the updated version.

  • Precision 7510 - crashes on the application of the mode "Eve"

    My 7510 accuracy crashes when you try to switch from "sleep". When I try to get to sleep, I get the screen "Windows has recovered from a serious error" and the whole system needs to restart.

    Update order Dell tells me everything is up-to-date (including the update of the BIOS) and Windows Update says the same thing. If it is a driver problem, I'll have to restore a previous version. I have not yet run a diagnosis of the BIOS, but I will.

    What newspapers should I look at to diagnose this problem? What steps should I take / what the driver update should I be back for this problem?

    I feel like such a fool. My laptop was not in hibernation mode. I put it in "standby" mode, thinking it was put into hibernation, and it lacked power.

    I'm sorry to have wasted your time.

    If someone else happens to come here, see this article for the solution to get involved as a Hibernate option if it has been disabled:

    support.Microsoft.com/.../920730

  • After Effects crashing on the application of 3D elements

    I therefore downloaded after effects CC 2014 and transferred all my plugins. But all except element video Copilot 3D V1.6.2 will not work correctly. Whenever I apply the element effect AE crashes. I tried to reinstall by using Setup but no luck... I'm on Windows 7 64 bit and use graphics NVIDIA GTX 750 Ti with a six core AMD FX 6300. If its probably not because my PC is not capable enough... Please help me, I'm really worried...

    Update the element. They just released an update that fixes bugs in 2014: item 3D update fix

  • Hearing CC crash when the application single band compressor

    On a MacPro with Creative Cloud (all updates applied)

    I started with a sequence in the first. I selected to edit in Adobe Audition/sequence. The project opens fine. I then select a track. In the effects Rack, I click the track effects button and choose Applitude and single band compressor/Compression.

    Then I get the message "Error of hearing - hearing has encountered a fatal error and needs to close." I click OK and hearing through the shutdown process.

    When I use the same steps and apply other effects, I have no problem. I have not tried all the available effects, but I thought 10 was a good sample.

    I then tried to start a new multitrack project and imported an audio file that is not apparent. The same problem. Single band compressor blocks program. Other effects that I have tried are very good.

    I then tried to open the hearing, find a file audio in the media browser and then double-tap, opening just a project of waveform. The same problem. Single band compressor blocks program.

    Any thoughts?

    My CC Audition on my Mac OSX was constantly crashing as soon as I applied one of the compressors.

    My solution:

    Uninstal CC.

    Reinstall and the settings window where it detects and offers to import the previous preferences, disable the filters and effects, or anything that is causing your problem.

    Solved the problem for me.

  • Acrobat crashes when the application of levies

    I have Adobe Pro. 9.2 when I tell the program to apply the redaction, I did, he sits just and turns... I, later, right-click on the instance in the taskbar to close the program.  I have installed updates and it always does.  Help, please!

    Good day Byrdie,.

    After you remove the ARM folder, the update should work.  If you still have difficulties to apply the updates through the update, you can do it manually here: http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows

    Unfortunately, the two methods of update are quite tedious as with Acrobat 9, updates need to be applied sequentially.

    Kind regards

    David

    Adobe Systems

  • Crashing on the application for ASSISTANCE!

    Whenever I ask for any help function, for example. "Getting Started" or "Video Tutorial" PSE8 breaks down.

    Also when I go to this address www.adobe.com/go/learn_pse_mac_en I get the message access denied to this address: http://unavailable.adobe.com/accessdenied.html.

    Best regards.

    Try to go directly to Adobe TV for Mac.

    http://TV.Adobe.com/show/learn-Photoshop-elements-8-for-Macintosh/

  • Firefox 7.0.1 crashes at the start of the application

    I'm going through Firefox 5.0.1 for 7.0.1. The update installs successfully, but it does not start. It blocks whenever it opens. I can reinstall 5.0.1 and it will work. While working 5.0.1 I removed all plugins and then upgraded to 7.0.1. Still, it crashes when the application starts. I also go add/remove programs via the Control Panel completely removed Windows Firefox and even deleted the installation directory. I then tried to do a completely new installation in a different installation directory, and still, it hangs at startup.

    See:

    • bug 680927 NEW crash of start-up mozcomp.dll with Oracle Enterprise, F5 Networks, Passlogix V - GO, IBM Tivoli Access Manager SSO
  • Fatal accident of the application.

    I can't tell what that may be the case when you click with the mouse or you try to open another window, but it crashes. The application itself does not come out, the process is not deleted when you restart it crashes when you leave the session with an error 41 Kernel-Power. It is what gives the error on Firefox Windows 1002:
    "The firefox.exe version 17.0.1.4715 program ceased to interact with Windows and was closed." To see if there is more information about the problem, check the history of the problem in the control panel of the center of the Action.

    Process ID: 1664
    Start Time: 01cde7f2d9e558a0
    Termination Time: 39
    Application Path: C:\Program Files\Mozilla Firefox\firefox.exe
    Report Id: fbe27993-53e9-11e2-9db9-705ab67e4de3"
    

    '- System '.

     - Provider
    
      [ Name]  Application Hang 
    
     - EventID 1002
    
      [ Qualifiers]  0 
    
      Level 2 
    
      Task 101 
    
      Keywords 0x80000000000000 
    
     - TimeCreated
    
      [ SystemTime]  2013-01-01T08:05:32.000000000Z 
    
      EventRecordID 177769 
    
      Channel Application 
    
      Computer Pavel-TOSH 
    
      Security 
    

    -EventData

      firefox.exe
      17.0.1.4715
      1664
      01cde7f2d9e558a0
      39
      C:\Program Files\Mozilla Firefox\firefox.exe
      fbe27993-53e9-11e2-9db9-705ab67e4de3
      430072006F00730073002D00700072006F00630065007300730000000000
    

    Binary data:

    In the words

    0000: 0073006F 00720043 00720070 0073 002D
    0008: 00730065 00000073 0000 0063006F

    In bytes

    0000: 43 00 72 00 6F 00 73 00 C.r.o.s.
    0008: 73 00 2D 00 70 00 72 00 s. -.p.r.
    0010: 6F 00 63 00 65 00 73 00 o.c.e.s.
    0018: 73 00 00 00 00 00 s... »

    We are sorry to hear that your Firefox seems to be crashing. Please perform the following steps to give us an ID of crash report which helps us to learn more about the cause of the accident.

    1. Entered on: crashes in the Firefox address bar (this is where you enter your website name) and press ENTER. You should now see a list of submitted incident reports.
    2. Copy the latest report 5 ID you see in the window of accident report and paste it in your answer in the forum.

    Thank you in advance for your help!

    More information and additional troubleshooting steps are in the article Firefox plant - troubleshoot and prevent assistance fixing crashes .

  • Note the application crashes...

    Note the application crashes... I have discovered that by putting my phone on "airplane mode" the app not crushed. This makes me think that there may be a conflict with the iCloud? I tried to restart but the problem persists...  Anyone has a solution, pleas?

    Hello, Craig2099!

    Thank you for reaching out by Apple Support communities. After reading your post, I understand that your Notes application to close unexpectedly when you try to use it. I keep a lot of information in the Notes, so I know it's important to be able to access the app. I'd be happy to help you!

    I have some troubleshooting I suggest to go through. Before you start, I recommend you make a backup of your iPhone by following the instructions here: How to backup your iPhone, iPad and iPod touch

    Once your backup is created, go through the following steps, in order. Test after each step, stopping when the problem is resolved.

    1. Leaving the app all opened, as shown here:force a nearby application on your iPhone, iPad or iPod touch

      Then, restart your iPhone after this article: restart your iPad, iPhone or iPod touch

    2. Uninstall the Notes application, and then reinstall it. Instructions on how to do this can be found here: remove the apps Apple integrated from the home screen on your device iOS with iOS 10
    3. Reset settings on your iPhone in settings > general > reset > reset all settings. This will not delete your personal data (like contacts, photos, calendar of events, etc.), but he'll be back customizable settings (as your background screen and display brightness, sounds of alert and ringtones, settings of Date and time, etc.) to the factory settings. It will also remove saved networks Wi - Fi and passwords, as well as all the VPN or APN settings used previously.
    4. Restore your iPhone settings by following the steps here: use iTunes on your Mac or PC to restore the iPhone, iPad, or iPod touch to factory settings

      Once the restore is complete, configure your iPhone as a new device (i.e. without using your backup, at least temporarily). You can connect to iCloud iMessage, FaceTime and iTunes and the App Store. Then test Notes. If it works and not unexpectedly ends, you can restore your backup by following the steps described here: restore your iPhone, iPad or iPod touch from a backup

    See you soon!

  • MacBook air crashes, I'm unable to open all the applications but Safari.

    MacBook air crashes, I'm unable to open all the applications but Safari. I can still access the app store to download some antivirus software.  I downloaded AVG hoping it might cure the problem, unfortunately it made it worse.  I got this macbook for about 3 years and I have not had problems.  I recently opened safari on another user and he came with a message saying that you have now received a virus.  I don't know what to do, or how I can fix this problem.  The office is constantly freezing as well, I'm out of options!

    Determine if you can start up your Mac in 'safe' Mode. Read how here: OS X El Capitan: safe mode. If you find that the document confusing or difficult to follow, please write back for instructions.

    After you have determined how your Mac works in 'Safe' Mode, restart normally.

    Regarding your other concerns:

    I recently opened safari on another user and he came with a message saying that you have now received a virus.

    These messages are false. It is a very common scam. Read about it here: Phony 'technical support' / 'ransomware' popups and web pages


    I downloaded AVG hoping it might cure the problem, unfortunately it made it worse.

    It is to be expected. Don't waste your time with things. "AVG" can be particularly difficult to uninstall, a fact that I learned to evaluate myself. The problem is that its uninstall instructions do not work. I got by deletion of the Mac and restore its contents from a Time Machine backup. You have a backup?

Maybe you are looking for

  • iPhone delivery date 7

    Pre-ordered earlier in the day my order confirmation States a delivery date for the September 27-29. However having just looked at the site Web on the same model he says that they are given 20-22 September. So I was wondering if I have to cancel my o

  • Recently, Firefox does not display PDF files. It acts like it loads the PDF file, but there is nothing there but the "program" that the document should be presented in.

    This started with 20 Firefox and persists with Firefox 21. It's never happened before. Everything is up-to-date. However, PDFs don't appear. Sometimes I see the bar indicating a load of progression and sometimes it of just the normal program PDF back

  • Site Web of forms does not and cannot scroll

    Hello: Can please tell me how to adjust the size of the forms or Web sites when they do not fit the screen and does not allow me to finish the forms by scrolling. Sometimes, in the middle of downloading applications or programs, blocks education not

  • Audio beats disappeared

    Hello, I've had my pavilion dv6 notebook for over a year now and until quite recently, my audio beats has always worked. It is not yet on my computer when I search using the start menu. I tried to reinstall the idt hd audio driver but he never brings

  • Support Fibre Channel Port

    I would like help on activation and configuration of a Fibre Channel port on 2 of my fabric UCS of interconnections. An external storage device will be connected to those ports.