These are chat archives for ui4j/ui4j

17th
Jun 2015
SecretService
@publicspace
Jun 17 2015 13:42

I am using java 8u40 and getting the following error but only for cetain pages:

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.sun.javafx.Utils.getScreen(Utils.java:686)
at com.sun.javafx.webkit.WebPageClientImpl.getScreenBounds(WebPageClientImpl.java:105)
at com.sun.webkit.WCWidget.fwkGetScreenRect(WCWidget.java:118)
at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
at com.sun.webkit.Timer.fireTimerEvent(Timer.java:83)
at com.sun.webkit.Timer.notifyTick(Timer.java:64)
at javafx.scene.web.WebEngine$PulseTimer.lambda$static$45(WebEngine.java:1167)
at javafx.scene.web.WebEngine$PulseTimer

KaTeX parse error: Unexpected character: '$' at position 6: Lambda╠▓$80/472712320.: Lambda$80/472712320.pulse(Unknown Source)
    at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:314)
    at com.sun.javafx.tk.Toolkit
Lambda$112/448131263.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:313)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:340)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:525)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:505)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$400(QuantumToolkit.java:334)
at com.sun.javafx.tk.quantum.QuantumToolkit
KaTeX parse error: Unexpected character: '$' at position 6: Lambda╠▓$50/1051608198: Lambda$50/1051608198.run(Unknown Source)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
    at com.sun.glass.ui.gtk.GtkApplication
Lambda$46/1572221016.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)

Also, the monocle maven plugin for headless mode is causing:

#

A fatal error has been detected by the Java Runtime Environment:

#

SIGSEGV (0xb) at pc=0x00007f249b5920f8, pid=21784, tid=139795532248832

#

JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26)

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [i965_dri.so+0x31b0f8]

#

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

I also have another question with regards getting innerhtml for the entire page, including html, head, body and so on. I am only able to call page.getDocument().getBody().getInnerHTML() ... there is no page.getDocument().getInnerHTML() ... shouldn't there be ?
Ozhan Duz
@ui4j
Jun 17 2015 16:01
Hi @publicspace, this is an JavaFx bug https://javafx-jira.kenai.com/browse/RT-46189
its resolved by Oracle and will be ready for Java 8u60, its not released yet.
For ui4j we found a workaround solution and it will ready for version ui4j 2.0
ui4j/ui4j#24
version 2.0 will be released at July 1
rc183
@rc183
Jun 17 2015 16:34
Hi. I try to use ui4j but when I launch my jar on ubuntu server 14.10, my browser object is null with the code : BrowserEngine browser = BrowserFactory.getBrowser(BrowserType.WebKit);
You know why ?