i have downloaded the pushnotification example from the ibm website and running it in my eclipse
06-29 11:12:45.952: W/System.err(8871): org.apache.http.conn.HttpHostConnectException: Connection to http://10.90.33.127:10080 refused
06-29 11:12:45.952: W/System.err(8871): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
06-29 11:12:45.952: W/System.err(8871): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
06-29 11:12:45.952: W/System.err(8871): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
06-29 11:12:45.952: W/System.err(8871): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
06-29 11:12:45.952: W/System.err(8871): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
06-29 11:12:45.962: W/System.err(8871): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
06-29 11:12:45.962: W/System.err(8871): at com.worklight.wlclient.WLRequestSender.run(WLRequestSender.java:47)
06-29 11:12:45.962: W/System.err(8871): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
06-29 11:12:45.962: W/System.err(8871): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
06-29 11:12:45.962: W/System.err(8871): at java.lang.Thread.run(Thread.java:856)
06-29 11:12:45.962: W/System.err(8871): Caused by: java.net.ConnectException: failed to connect to /10.90.33.127 (port 10080) after 10000ms: connect failed: ENETUNREACH (Network is unreachable)
06-29 11:12:45.962: W/System.err(8871): at libcore.io.IoBridge.connect(IoBridge.java:114)
06-29 11:12:45.962: W/System.err(8871): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
06-29 11:12:45.962: W/System.err(8871): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460)
06-29 11:12:45.962: W/System.err(8871): at java.net.Socket.connect(Socket.java:832)
06-29 11:12:45.962: W/System.err(8871): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
06-29 11:12:45.962: W/System.err(8871): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
06-29 11:12:45.962: W/System.err(8871): ... 9 more
06-29 11:12:45.962: W/System.err(8871): Caused by: libcore.io.ErrnoException: connect failed: ENETUNREACH (Network is unreachable)
06-29 11:12:45.972: W/System.err(8871): at libcore.io.Posix.connect(Native Method)
06-29 11:12:45.972: W/System.err(8871): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
06-29 11:12:45.972: W/System.err(8871): at libcore.io.IoBridge.connectErrno(IoBridge.java:144)
06-29 11:12:45.972: W/System.err(8871): at libcore.io.IoBridge.connect(IoBridge.java:112)
06-29 11:12:45.972: W/System.err(8871): ... 14 more
06-29 11:12:46.032: D/wl.certManager(8871): WLCertManager.clearKeystore in WLCertManager.java:258 :: Key store cleared.
06-29 11:12:46.072: W/PluginManager(8871): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.deleteAllAuthData blocked the main thread for 36ms. Plugin should use CordovaInterface.getThreadPool().
06-29 11:12:46.082: D/wl.certManager(8871): WLCertManager.clearKeystore in WLCertManager.java:258 :: Key store cleared.
06-29 11:12:46.162: W/PluginManager(8871): THREAD WARNING: exec() call to WLAuthorizationManagerPlugin.getClientInstanceIdHeader blocked the main thread for 87ms. Plugin should use CordovaInterface.getThreadPool().
06-29 11:12:46.172: W/System.err(8871): org.apache.http.conn.HttpHostConnectException: Connection to http://10.90.33.127:10080 refused
06-29 11:12:46.172: D/wl.request(8871): WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://10.90.33.127:10080/PushNotifications/authorization/v1/clients/instance
06-29 11:12:46.172: W/System.err(8871): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
06-29 11:12:46.172: W/System.err(8871): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
06-29 11:12:46.172: W/System.err(8871): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
06-29 11:12:46.172: W/System.err(8871): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
06-29 11:12:46.172: W/System.err(8871): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
06-29 11:12:46.172: W/System.err(8871): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
06-29 11:12:46.172: W/System.err(8871): at com.worklight.wlclient.WLRequestSender.run(WLRequestSender.java:47)
06-29 11:12:46.172: W/System.err(8871): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
06-29 11:12:46.182: W/System.err(8871): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
06-29 11:12:46.182: W/System.err(8871): at java.lang.Thread.run(Thread.java:856)
06-29 11:12:46.182: W/System.err(8871): Caused by: java.net.ConnectException: failed to connect to /10.90.33.127 (port 10080) after 10000ms: connect failed: ENETUNREACH (Network is unreachable)
06-29 11:12:46.182: W/System.err(8871): at libcore.io.IoBridge.connect(IoBridge.java:114)
06-29 11:12:46.182: W/System.err(8871): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
06-29 11:12:46.182: W/System.err(8871): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460)
06-29 11:12:46.182: W/System.err(8871): at java.net.Socket.connect(Socket.java:832)
06-29 11:12:46.182: W/System.err(8871): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
06-29 11:12:46.182: W/System.err(8871): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
06-29 11:12:46.182: W/System.err(8871): ... 9 more
06-29 11:12:46.182: W/System.err(8871): Caused by: libcore.io.ErrnoException: connect failed: ENETUNREACH (Network is unreachable)
06-29 11:12:46.192: W/System.err(8871): at libcore.io.Posix.connect(Native Method)
06-29 11:12:46.192: W/System.err(8871): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
06-29 11:12:46.192: W/System.err(8871): at libcore.io.IoBridge.connectErrno(IoBridge.java:144)
06-29 11:12:46.192: W/System.err(8871): at libcore.io.IoBridge.connect(IoBridge.java:112)
06-29 11:12:46.192: W/System.err(8871): ... 14 more
06-29 11:12:46.262: D/wl.certManager(8871): WLCertManager.clearKeystore in WLCertManager.java:258 :: Key store cleared.
06-29 11:12:46.272: D/NONE(8871): Client registration failed with error: {"responseHeaders":{},"status":500,"responseText":"","errorCode":"UNEXPECTED_ERROR","errorMsg":"Unexpected errorCode occurred. Please try again.","invocationContext":null}
06-29 11:12:46.332: E/NONE(8871): [/apps/services/api/PushNotifications/android/init] failure. state: 500, response: undefined
06-29 11:12:46.352: D/NONE(8871): Failed connecting to MobileFirst Server.
06-29 11:12:46.762: W/PluginManager(8871): THREAD WARNING: exec() call to Notification.confirm blocked the main thread for 403ms. Plugin should use CordovaInterface.getThreadPool().
here are details of my mobilefirst server
host name:10.90.33.127
and my adpater details
wlServerProtocol = http
wlServerHost = 10.90.33.127
wlServerPort = 10080
wlServerContext = /PushNotifications/
wlAppId = PushNotifications
and the error on my device says "failed connecting to the mobilefirst server.Try again later".
and my wlclient.properties is
wlServerProtocol = http
wlServerHost = 10.90.33.127
wlServerPort = 10080
wlServerContext = /PushNotifications/
wlAppId = PushNotifications
If you go to 10.90.33.127:10080/worklightconsole, do you actually see the console in a desktop browser?
If you do the same from your mobile device, do you also see the console?
It sounds like your mobile device is not connected to the same network as your server. If you are testing in a local environment, make sure your mobile device is connected to the same wifi network as your computer.
Related
i have been trying to install mariadb on my ubuntu machine but the error ii keep getting is shown on the link below
https://imgur.com/9LOtUk9 "Error Image"
tried uninstalling mysql and mariadb nd reinstalled mariadb all over again
apt-get install mariadb-server
my expected result is below when i try to check the status after installation
mariadb.service - MariaDB 10.3.10 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running)
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 15152 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.slice/mariadb.service
└─15152 /usr/sbin/mysqld
I use the h2o package in R (Windows machine) and can't initialize it by h2o.init after updating the package recently.
The error message is produced below. I guess the cause of the problem is that h2o xgboost doesn't support Windows (http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/xgboost.html). Is my guess correct? If so, how can I ask the h2o package to exclude xgboost in initialization to avoid the error?
Thanks a lot in advance.
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b30)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
Starting H2O JVM and connecting: ............................................................Cannot load library from path lib/windows_32/xgboost4j_gpu.dll
Cannot load library from path lib/xgboost4j_gpu.dll
Failed to load library from both native path and jar!
Cannot load library from path lib/windows_32/xgboost4j_omp.dll
Cannot load library from path lib/xgboost4j_omp.dll
Failed to load library from both native path and jar!
Cannot load library from path lib/windows_32/xgboost4j_minimal.dll
Cannot load library from path lib/xgboost4j_minimal.dll
Failed to load library from both native path and jar!
07-27 11:24:19.197 127.0.0.1:54321 14488 main INFO: Cannot initialize XGBoost backend! Xgboost (enabled GPUs) needs:
07-27 11:24:19.197 127.0.0.1:54321 14488 main INFO: - CUDA 8.0
07-27 11:24:19.197 127.0.0.1:54321 14488 main INFO: XGboost (minimal version) needs:
07-27 11:24:19.197 127.0.0.1:54321 14488 main INFO: - GCC 4.7+
07-27 11:24:19.197 127.0.0.1:54321 14488 main INFO: For more details, run in debug mode: `java -Dlog4j.configuration=file:///tmp/log4j.properties -jar h2o.jar`
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: ----- H2O started -----
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Build git branch: rel-wright
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Build git hash: 24410cf788602f231fd699037bdaff0ad20b4d1a
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Build git describe: jenkins-3.20.0.1-26-g24410cf
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Build age: 1 month and 11 days
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Built by: 'jenkins'
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Built on: '2018-06-15 18:39:02'
07-27 11:24:19.230 127.0.0.1:54321 14488 main INFO: Watchdog Build git branch: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: Watchdog Build git hash: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: Watchdog Build git describe: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: Watchdog Build project version: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: Watchdog Built by: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: Watchdog Built on: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: KrbStandalone Build git branch: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: KrbStandalone Build git hash: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: KrbStandalone Build git describe: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: KrbStandalone Build project version: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: KrbStandalone Built by: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: KrbStandalone Built on: (unknown)
07-27 11:24:19.231 127.0.0.1:54321 14488 main INFO: Processed H2O arguments: [-name, H2O_started_from_R_534474366_nnz606, -ip, 127.0.0.1, -port, 54321, -ice_root, C:/Users/534474~1/AppData/Local/Temp/RtmpCc9kQI]
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Java availableProcessors: 4
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Java heap totalMemory: 15.5 MB
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Java heap maxMemory: 989.9 MB
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Java version: Java 1.7.0_51 (from Oracle Corporation)
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: JVM launch parameters: [-Xmx1g, -ea]
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: OS version: Windows 7 6.1 (x86)
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Machine physical memory: 4.00 GB
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: X-h2o-cluster-id: 1532705056352
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: User name: '534474366'
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: IPv6 stack selected: false
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Possible IP Address: lo (Software Loopback Interface 1), 127.0.0.1
07-27 11:24:19.232 127.0.0.1:54321 14488 main INFO: Possible IP Address: lo (Software Loopback Interface 1), 0:0:0:0:0:0:0:1
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:net0 (WAN Miniport (SSTP))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:net1 (WAN Miniport (L2TP))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:net2 (WAN Miniport (PPTP))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:ppp0 (WAN Miniport (PPPOE))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth0 (WAN Miniport (IPv6))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth1 (WAN Miniport (Network Monitor))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth2 (WAN Miniport (IP))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:ppp1 (RAS Async Adapter)
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:net3 (WAN Miniport (IKEv2))
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Possible IP Address: eth3 (Intel(R) Ethernet Connection I217-LM), 10.95.108.135
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth4 (Intel(R) Ethernet Connection I217-LM-McAfee NDIS Light-Weight Filter-0000)
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth5 (Intel(R) Ethernet Connection I217-LM-WFP LightWeight Filter-0000)
07-27 11:24:19.233 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth6 (Intel(R) Ethernet Connection I217-LM-QoS Packet Scheduler-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth7 (WAN Miniport (Network Monitor)-McAfee NDIS Light-Weight Filter-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth8 (WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth9 (WAN Miniport (IP)-McAfee NDIS Light-Weight Filter-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth10 (WAN Miniport (IP)-QoS Packet Scheduler-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth11 (WAN Miniport (IPv6)-McAfee NDIS Light-Weight Filter-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main INFO: Network interface is down: name:eth12 (WAN Miniport (IPv6)-QoS Packet Scheduler-0000)
07-27 11:24:19.234 127.0.0.1:54321 14488 main FATAL: On /127.0.0.1 some of the required ports 54321, 54322 are not available, change -port PORT and try again.
[1] "127.0.0.1"
[1] 54321
[1] TRUE
[1] -1
[1] "Failed to connect to 127.0.0.1 port 54321: Connection refused"
curl: (1) Protocol "'http" not supported or disabled in libcurl
[1] 1
EDITED Response
If you look at the bottom of your error message:
07-27 11:24:19.234 127.0.0.1:54321 14488 main FATAL: On /127.0.0.1 some of the required ports 54321, 54322 are not available, change -port PORT and try again.
[1] "127.0.0.1"
[1] 54321
[1] TRUE
[1] -1
[1] "Failed to connect to 127.0.0.1 port 54321: Connection refused"
curl: (1) Protocol "'http" not supported or disabled in libcurl
[1] 1
You can see that the issue should not be related to XGBoost. In addition, the expected behavior on Windows is that XGBoost is automatically disabled and no action is needed on your part.
To fix your problem try specifying a different port using the port = parameter in h2o.init() to see if you can get h2o.init() to work for you.
Original Response
I will leave the prior answer up in case it helps others who come across the question of disabling xgboost:
you can disable xgboost by setting -Dsys.ai.h2o.ext.core.toggle.XGBoost to False
please see the documentation for more details: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/xgboost.html#disabling-xgboost
When I am installing tomcat 7 in ubuntu 16.04 I got this error
invoke-rc.d: initscript tomcat7, action "start" failed.
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-05-29 00:33:24 IST; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 972 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)
May 29 00:33:24 developer-HP-Notebook systemd[1]: Starting LSB: Start Tomcat....
May 29 00:33:24 developer-HP-Notebook tomcat7[972]: * no JDK or JRE found - please set JAVA_HOME
May 29 00:33:24 developer-HP-Notebook systemd[1]: tomcat7.service: Control process exited, code=exited status=1
May 29 00:33:24 developer-HP-Notebook systemd[1]: Failed to start LSB: Start Tomcat..
dpkg: error processing package tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
Either Java is not installed or you have the environment variable JAVA_HOME not pointed to it. Check for existence of java on your system, by executing following command in a terminal:
java -version
Install Java, by either downloading a jdk or jre from oracle java: https://java.com/.
Or just run:
sudo apt-get install openjdk-8-jdk
I need to run a JavaFX project on Raspberry Pi (RASPBIAN JESSIE). The project includes usage of WebView and MediaView/MediaPlayer. Since Oracle does not support JavaFX on ARM platforms, I tried JavaFX port by Gluon (JavaFX Embedded SDK 8.60.8). WebView works almost perfectly. However, when I want to play a video using MediaPlayer/MediaView, I get the exception:
Error in GstPipelineFactory: can't find element for factory named qtdemux
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$156(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:745)
Caused by: MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: Could not create player! : com.sun.media.jfxmedia.MediaException: Could not create player!
at javafx.scene.media.MediaException.exceptionToMediaException(MediaException.java:146)
at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:511)
at javafx.scene.media.MediaPlayer.<init>(MediaPlayer.java:414)
at zirro.App.start(App.java:21)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
... 1 more
Caused by: com.sun.media.jfxmedia.MediaException: Could not create player!
at com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(NativeMediaManager.java:224)
at com.sun.media.jfxmedia.MediaManager.getPlayer(MediaManager.java:104)
at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:467)
... 10 more
Any ideas how to successfully run a JavaFX application with WebView and MediaView/MediaPlayer on Raspberry Pi?
WebView and Media were never part of the JavaFX ARM distribution, but Gluon recently added it to the embedded SDK that can be downloaded from here and installed with a recent JDK for ARM, available here.
Media requires a few extra steps as it depends in the native drivers that usually are not fully installed on a regular Jessie distribution.
First install these drivers:
sudo apt-get install gstreamer0.10-plugins-good
sudo apt-get install gstreamer0.10-plugins-bad
Now edit /etc/apt/sources.list and add at the end:
deb http://ftp.uk.debian.org/debian/ wheezy main
deb-src http://ftp.uk.debian.org/debian/ wheezy main
Save the file (Ctrl+O, Ctrl+X).
Finally update and install the drivers:
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-alsa
Now you can try to run again your JavaFX application.
If you find again the same exception (MediaException: UNKNOWN), check if it shows this message: Error in GstPipelineFactory, notice the driver that is missing, and try to install it.
I wanted to updated the correct anwser from José Pereda.
The repository for the gstreamer is not up to date. Thats the way I get it to work.
Update the /etc/apt/sources.list
deb [trusted=yes] http://archive.debian.org/debian wheezy main
deb-src [trusted=yes] http://archive.debian.org/debian/ wheezy main
And then install the dependencies.
sudo apt-get install libtag1-vanilla
sudo apt-get install libtag1-rusxmms
sudo apt-get install libtag1c2a
sudo apt-get install gstreamer0.10-plugins-good
sudo apt-get install gstreamer0.10-plugins-bad
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-alsa
I need to run a JavaFX project on Raspberry Pi (RASPBIAN JESSIE). The project includes usage of WebView and MediaView/MediaPlayer. Since Oracle does not support JavaFX on ARM platforms, I tried JavaFX port by Gluon (JavaFX Embedded SDK 8.60.8). WebView works almost perfectly. However, when I want to play a video using MediaPlayer/MediaView, I get the exception:
Error in GstPipelineFactory: can't find element for factory named qtdemux
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$156(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:745)
Caused by: MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: Could not create player! : com.sun.media.jfxmedia.MediaException: Could not create player!
at javafx.scene.media.MediaException.exceptionToMediaException(MediaException.java:146)
at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:511)
at javafx.scene.media.MediaPlayer.<init>(MediaPlayer.java:414)
at zirro.App.start(App.java:21)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
... 1 more
Caused by: com.sun.media.jfxmedia.MediaException: Could not create player!
at com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(NativeMediaManager.java:224)
at com.sun.media.jfxmedia.MediaManager.getPlayer(MediaManager.java:104)
at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:467)
... 10 more
Any ideas how to successfully run a JavaFX application with WebView and MediaView/MediaPlayer on Raspberry Pi?
WebView and Media were never part of the JavaFX ARM distribution, but Gluon recently added it to the embedded SDK that can be downloaded from here and installed with a recent JDK for ARM, available here.
Media requires a few extra steps as it depends in the native drivers that usually are not fully installed on a regular Jessie distribution.
First install these drivers:
sudo apt-get install gstreamer0.10-plugins-good
sudo apt-get install gstreamer0.10-plugins-bad
Now edit /etc/apt/sources.list and add at the end:
deb http://ftp.uk.debian.org/debian/ wheezy main
deb-src http://ftp.uk.debian.org/debian/ wheezy main
Save the file (Ctrl+O, Ctrl+X).
Finally update and install the drivers:
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-alsa
Now you can try to run again your JavaFX application.
If you find again the same exception (MediaException: UNKNOWN), check if it shows this message: Error in GstPipelineFactory, notice the driver that is missing, and try to install it.
I wanted to updated the correct anwser from José Pereda.
The repository for the gstreamer is not up to date. Thats the way I get it to work.
Update the /etc/apt/sources.list
deb [trusted=yes] http://archive.debian.org/debian wheezy main
deb-src [trusted=yes] http://archive.debian.org/debian/ wheezy main
And then install the dependencies.
sudo apt-get install libtag1-vanilla
sudo apt-get install libtag1-rusxmms
sudo apt-get install libtag1c2a
sudo apt-get install gstreamer0.10-plugins-good
sudo apt-get install gstreamer0.10-plugins-bad
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-alsa