Java FX apps won't run on the browser with Linux - java

This is my current system configuration:
Opensuse 12.3 x64
Nvidia Gefore 9600gt with Proprietary drivers
Tried both the Oracle Java 7u45 and 7u51 (Installed according to: SDB:Installing Java - openSUSE)
Google Chrome and Firefox (Latest versions for both)
I am not able to run any Java FX browser app. When the app starts loading, i just get a gray box inside the browser screen. I've reproduced this with the JavaFX Ensemble sample app as well as my own apps. This is the exception i get on the Java Console when trying to load the Ensemble app:
---- FetchDocListTask docsUrl = http://download.oracle.com/javafx/2/api/
java.lang.NullPointerException
at com.sun.prism.es2.ES2SwapChain.<init>(ES2SwapChain.java:79)
at com.sun.prism.es2.ES2ResourceFactory.createPresentable(ES2ResourceFactory.java:40)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at com.sun.prism.render.RenderJob.run(RenderJob.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:108)at java.lang.Thread.run(Thread.java:744)
CacheEntry[http://download.oracle.com/otndocs/products/javafx/2/samples/Ensemble/Ensemble.jn lp]: updateAvailable=true,lastModified=Wed Dec 31 18:00:00 CST 1969,length=0
CacheEntry[http://download.oracle.com/otndocs/products/javafx/2/samples/Ensemble/Ensemble.jnlp]: updateAvailable=true,lastModified=Wed Dec 31 18:00:00 CST 1969,length=0

Apparently Chrome has actively stopped supporting Java. This is the aftermath. Use Firefox.

I had the same problem when I removed pidgin and vlc.Once I added it back things worked fine.
So try that as I might not be able to figure out the exact dependencies anytime soon

Related

Coldfusion site stopped working after updating JRE1.6->JRE1.7

I am getting
"Information","localhost-startStop-1","04/09/15","10:13:36",,"ColdFusion started"
"Error","localhost-startStop-2","04/09/15","10:13:48",,"The Cron service is not available. This exception is usually caused by service startup failure. Check your server configuration."
after updating from x64 JRE1.6 to x64 JRE1.7u25
My neo-cron.xml isn't damaged and all works hen I switch back to 1.6
I'm on Coldfusion 9,0,1,274733 Enterprise
Any ideas?
Patch your system up-to-date using the Unofficial Updater and it should work again:
http://www.uu-2.info/

Selenium-Standalone-Server will not work on Firefox and remains blank

I am using selenium-server-standalone-2.41.0.jar on Mac OSX 10.8.5 with Java 7 Update 55.
Everything works fine with Firefox up to version 25.0.1 but if I try v26, v27, v28 or v29 of Firefox, then my code will open up firefox and it will just hang (nothing loads on firefox screen).
When I downgrade Firefox back to v25 then it all starts working again fine.
Any thoughts or suggestions?
Thanks
EDIT: Posted problem on Selenium bug forum as well:
https://code.google.com/p/selenium/issues/detail?id=7279
There actually quite a few other threads on people having this same issue with Firefox starting up and a blank screen just sitting there doing nothing. I tried all combinations of Firefox from v25.0.1 to v33 with all versions of selenium-server-standalone from v2.41.0 to v2.44.0 and the only combination I can get to work is FF v25.0.1 with SSS v2.41.0.
So I finally came up with a workaround for this problem so I can use FF v33 for normal surfing and keep Selenium working with FF v25. This is what I did:
(1) I updated my day to day Firefox to the newest version.
(2) I downloaded a second older version of Firefox (v25.0.1) from here https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/25.0.1/ Then on my Mac I installed onto the Desktop and then renamed the it from Firefox.app to Firefox25.0.1.app and then moved it into my Applications folder.
(3) I created a new second profile for Firefox from here https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles and named it ffSeleniumProfile
(4) I then had to make sure the config file still had the default profile as the default. On Mac, look in ~/Library/Application Support/Firefox/profiles.ini file and it should look something like this (note that Default=1 should be under Profile0 )
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=Profiles/abcd1234.default
Default=1
[Profile1]
Name=ffSeleniumProfile
IsRelative=1
Path=Profiles/a1b2c3d4.ffSeleniumProfile
(5) For Selenium Server Standalone, make sure you are using v2.41.0 selenium-server-standalone-2.41.0.jar from here http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar
(6) Finally when you are starting Java and calling for Firefox/FirefoxDriver you will need to specify it to use Firefox25.0.1.app and the ffSeleniumProfile. I did this by adding the following System.setProperty to my main method of the primary java file that I use when starting java:
public static void main(String[] args)
throws InterruptedException,MalformedURLException {
System.setProperty("webdriver.firefox.bin", "/Applications/Firefox25.0.1.app/Contents/MacOS/firefox-bin");
System.setProperty("webdriver.firefox.profile", "ffSeleniumProfile");
}
Now when I start Selenium Java, it will use v25.0.1 of firefox along with the second profile, and when I just start firefox from my desktop it will use the default profile and whatever the newest version I have upgraded too.
Again this is a workaround only, but it solves my problem for now.
Hey Try Disabling some Add-ons in your Firefox browser one by one and try running the code This helped me on windows . Try it once..

What is libmuxer library ? If I run my server or application then I find these

If I run my program or server then I find alsways this error message. Can anyone tell me and help me please.. I will be very thankfull to you.
<Jul 29, 2013 3:01:55 AM ACT> <Error> <Socket> <BEA-000433> <Unable to load performance pack. Using Java I/O instead.
Please ensure that libmuxer library is in :'C:\j2sdk1.4.2_17\bin;C:\bea\weblogic81\bin;C:\bea\weblogic81\server\bin'
java.lang.UnsatisfiedLinkError: no muxer in java.library.path
java.lang.UnsatisfiedLinkError: no muxer in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:82)
at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:49)
at weblogic.t3.srvr.ListenThread.initServerSocket(ListenThread.java:690)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:205)
"...this indicates that the Native Libraries are not properly being picked up the Weblogic server. This happens when the weblogic installed as 32 Bit on a 64 Bit Operating System or vice versa. In such scenario we need to explicitly specify the path to the Native Library."
Add the following to the setDomainEnv.sh
-Djava.library.path=/opt/bea/wlserver_10.3/server/native/solaris/sparc64/
Enable "Native IO" check box under each servers Tuning Tab.
Restart the servers.
http://weblogic.middlewarebase.com/2013/04/unable-to-load-performance-pack-using.html
I have the some problem, and thanks to sᴜʀᴇsʜ-ᴀᴛᴛᴀ for the hint! It looks like a 32bit/64bit issue. By the way, I'm using WebLogic 12 on a 64bit Centos5.
Note that the libmuxer.so is provided with weblogic for many archs, in fact
$ find $MW_HOME -name *muxer*
/application/weblogic/wlserver/server/native/macosx/libmuxer.jnilib
/application/weblogic/wlserver/server/native/linux/s390/libmuxer.so
/application/weblogic/wlserver/server/native/linux/ia64/libmuxer.so
/application/weblogic/wlserver/server/native/linux/x86_64/libmuxer.so
/application/weblogic/wlserver/server/native/linux/i686/libmuxer.so
/application/weblogic/wlserver/server/native/linux/s390x/libmuxer.so
I edited the file $MW_HOME/wlserver/common/bin/commEnv.sh, where I found
#JAVA_USE_64BIT, true if JVM uses 64 bit operations
JAVA_USE_64BIT=false
and updated with
#JAVA_USE_64BIT, true if JVM uses 64 bit operations
JAVA_USE_64BIT=true
This worked for me, the Error you reported is gone.
Good luck!

JavaFx application in web browser : Jar working but JNLP / HTML doesn't

I have a javafx application, i am using netbeans as IDE. If i use the configuration stand alone the program is working without any trouble. But if i choose Run in browser i have a Runtime Error and the strack trace is pretty much empty :
Plug-in Java 10.21.2.11
Utilisation de la version JRE 1.7.0_21-b11 Java HotSpot(TM) Client VM
Répertoire d'origine de l'utilisateur = C:\Users\Julien
----------------------------------------------------
...
----------------------------------------------------
CacheEntry[file:/C:/Users/Julien/Documents/NetBeansProjects/FittsLaw/dist/lib/eclipselink-2.3.2.jar]: updateAvailable=true,lastModified=Wed May 15 11:26:16 CEST 2013,length=6770392
CacheEntry[file:/C:/Users/Julien/Documents/NetBeansProjects/FittsLaw/dist/lib/javax.persistence-2.0.3.jar]: updateAvailable=true,lastModified=Wed May 15 11:26:19 CEST 2013,length=143654
CacheEntry[file:/C:/Users/Julien/Documents/NetBeansProjects/FittsLaw/dist/FittsLaw.jar]: updateAvailable=false,lastModified=Wed May 15 11:26:08 CEST 2013,length=166805
CacheEntry[file:/C:/Users/Julien/Documents/NetBeansProjects/FittsLaw/dist/lib/mysql-connector-java-5.1.18-bin.jar]: updateAvailable=true,lastModified=Wed May 15 11:26:22 CEST 2013,length=805863
If i try to deploy it, the JAR is working, but JNLP/HTML are leading to the same Runtime error.
I don't know where i must search because this runtime error doesn't give me a lot of information.
I have tried :
different browsers
Update/reinstall plugin/jre/jdk
I have found lot of topic about it, but most of them got Classnotfound exception where it seems my problem isn't the same because i never got it in the stacktrace.

Error on running a simple App Engine project

I'm new to Google App Engine, and I tried to create a test project on Ubuntu 11.04 following this quick tutorial http://www.youtube.com/watch?v=P3GT4-m_6RQ&feature=relmfu
and I have this error when i click on "debug > web application"
There is a new version of the SDK available.
Latest SDK:
Release: 1.6.2
Timestamp: Tue Jan 03 19:15:38 CET 2012
API versions: [1.0]
Your SDK:
Release: 1.6.1
Timestamp: Mon Dec 12 23:53:13 CET 2011
API versions: [1.0]
Please visit http://code.google.com/appengine for the latest SDK.
java.lang.RuntimeException: Unable to restore the previous TimeZone
at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:164)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:164)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.<init> (DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: java.lang.NoSuchFieldException: defaultZoneTL
at java.lang.Class.getDeclaredField(Class.java:1899)
at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222)
... 5 more
Can anybody determine where the problem is? I also had problems trying to create a GWT app and a Python App Engine project.
Possible duplicate of: DevServer fails after updating to java 6u31
However, this problem seems to be documented (with solution) here:
http://code.google.com/p/googleappengine/issues/detail?id=6928
From the site:
Workaround - start the GAE with the following JVM parameter:
-Dappengine.user.timezone=UTC
(with eclipse, go to "run configuration", under the "Arguments" tab add "-Dappengine.user.timezone=UTC" to the VM arguments line. With maven-gae-plugin, add -Dappengine.user.timezone=UTC to the plugin configuration).
Good luck, and hopefully Google will support JDK u31 soon enough.
This article solved my problem with GWT: Fix The Unable To Restore The Previous TimeZone In GWT.

Categories

Resources