Java JPG codec won't work - java
I have problem with my tomcat application, after changing the server and installing the last version of tomcat7 my application won't read/load jpg files..
I installed imageio and jai on the server, try to change java version but every time I have the same error..
Anybody have an idea?
Error: One factory fails for the operation "jpeg"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
The whole error log can be found here -> http://paste.ubuntu.com/7653452/.
Update: The problem is related to grails plugin called ImageTools
If you look at the code for JPEGImageDecoder you'll see it depends on com.sun.image.codec.jpeg.ImageFormatException in its imports.
However, com.sun.image.codec.jpeg was removed from Java 7 onwards.
So likely the problem is that JAI is simply out of date, and you would have to use a Java 6 runtime to use it.
Related
Java JAXB 2.0 Version
We just upgraded to Java 8 and I'm seeing the following error in our logs. My lead tells me I need to re-compile with an older version of JAXB, can anyone tell me where I can go to download JAXB 2.0 ? Or suggest another solution to this error? java.lang.NoSuchMethodError: javax.xml.bind.annotation.XmlAccessorType.value()Ljavax/xml/bind/annotation/AccessType; at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getAccessType(ClassInfoImpl.java:339) at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:228) at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:87) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:127) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:51) at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:232) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:201) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:327) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:198) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:124) 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:498) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at javax.xml.bind.ContextFinder.find(ContextFinder.java:335) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:394) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:298) at com.sun.xml.internal.ws.assembler.MetroConfigLoader$3.run(MetroConfigLoader.java:259) at com.sun.xml.internal.ws.assembler.MetroConfigLoader$3.run(MetroConfigLoader.java:256) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.createJAXBContext(MetroConfigLoader.java:255) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.loadMetroConfig(MetroConfigLoader.java:241) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.init(MetroConfigLoader.java:131) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.<init>(MetroConfigLoader.java:104) at com.sun.xml.internal.ws.assembler.TubelineAssemblyController.getTubeCreators(TubelineAssemblyController.java:78) at com.sun.xml.internal.ws.assembler.MetroTubelineAssembler.createClient(MetroTubelineAssembler.java:103) at com.sun.xml.internal.ws.client.Stub.createPipeline(Stub.java:328) at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:295) at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:228) at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:243) at com.sun.xml.internal.ws.client.sei.SEIStub.<init>(SEIStub.java:84) at com.sun.xml.internal.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:814) at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:803) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:436) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:404) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:386) at javax.xml.ws.Service.getPort(Service.java:119)
If you’re using maven or gradle just set the appropriate version, it will be downloaded from maven central repository. Otherwise you can manually download it and add it to classpath. https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api/2.0
Can VisualVM profile Java 9 applications?
Hello I am trying to optimise my application, I've had JProfiler installed for the last 2 weeks but the trial period is up and I can't afford the megabucks. I want to use VisualVM but I can't get it to work. I installed version 1.4 from their website but when I try and open my application for profiling it does nothing. (Other available processes do open, like the intellij ide) The error reported is as follows: java.lang.IllegalArgumentException: Unexpected composite type for ThreadInfo at sun.management.ThreadInfoCompositeData.validateCompositeData(ThreadInfoCompositeData.java:372) at sun.management.ThreadInfoCompositeData.getInstance(ThreadInfoCompositeData.java:68) at java.lang.management.ThreadInfo.<init>(ThreadInfo.java:263) at java.lang.management.ThreadInfo.from(ThreadInfo.java:794) Caused: 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:498) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaFrom.fromCompositeData(DefaultMXBeanMappingFactory.java:1018) Caused: java.io.InvalidObjectException: Failed to invoke from(CompositeData) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory.invalidObjectException(DefaultMXBeanMappingFactory.java:1457) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaFrom.fromCompositeData(DefaultMXBeanMappingFactory.java:1021) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeMapping.fromNonNullOpenValue(DefaultMXBeanMappingFactory.java:919) at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(DefaultMXBeanMappingFactory.java:133) at com.sun.jmx.mbeanserver.ConvertingMethod.fromOpenReturnValue(ConvertingMethod.java:131) at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:168) at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:258) Caused: java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy14.getThreadInfo(Unknown Source) at com.sun.tools.visualvm.jmx.impl.JmxSupport.isReadOnlyConnection(JmxSupport.java:126) at com.sun.tools.visualvm.jmx.impl.JmxModelImpl.isTakeThreadDumpSupported(JmxModelImpl.java:369) at com.sun.tools.visualvm.application.views.threads.ApplicationThreadsViewProvider.resolveThreads(ApplicationThreadsViewProvider.java:85) at com.sun.tools.visualvm.application.views.threads.ApplicationThreadsViewProvider.supportsViewFor(ApplicationThreadsViewProvider.java:49) at com.sun.tools.visualvm.application.views.threads.ApplicationThreadsViewProvider.supportsViewFor(ApplicationThreadsViewProvider.java:45) at com.sun.tools.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:136) at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(DataSourceWindowManager.java:206) at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:50) at com.sun.tools.visualvm.core.ui.DataSourceWindowManager$2.run(DataSourceWindowManager.java:117) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) It looks like something to do with incompatible Java types? My application was compiled and run with JDK9. I've noticed VisualVM isn't even included in the java download any more. Is there a way around this? Thanks.
Why `sun.jvm.hotspot.debugger.DebuggerException: cannot open binary file`?
In linux, I got a core file generated by java, it can't be opened by jvisualvm ,so I want to translate it to a heap dump file , but occured some error : [root#root_test-1 game]$ jmap -J-d64 -dump:format=b,file=core.10255.dump java ./core.10255 Attaching to core ./core.10255 from executable java, please wait... Error attaching to core file: cannot open binary file sun.jvm.hotspot.debugger.DebuggerException: cannot open binary file at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:286) at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:673) at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:611) at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:337) at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304) at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:156) at sun.jvm.hotspot.tools.Tool.start(Tool.java:191) at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118) at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:83) 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.tools.jmap.JMap.runTool(JMap.java:201) at sun.tools.jmap.JMap.main(JMap.java:130) How to fix it?
It does look like you are using bit older(JDK8 update 60 or lesser) version of java. The issue you have mentioned is known issue https://bugs.openjdk.java.net/browse/JDK-8039995 this has been already fixed in JDK9 and backported to varies lower versions (JDK8 update 65 is the lowest). You need to upgrade your java to use latest version to avoid this issue.
sonarqube won't start with an elasticsearch error
Sonarqube 5.4 and java 8 here. Tried this on both sonarqube 5.1 and with java 7 and I get the same results. 2016.03.29 10:49:23 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener java.lang.IllegalStateException: Fail to execute ES put mapping request on indices 'rules' on type 'rule' with source '{"dynamic":false,"_id":{"path":"key"},"properties":{"debtRemFnOffset":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"_debtChar":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"_key":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"debtRemFnTypeOverloaded":{"type":"boolean"},"noteLogin":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"lang":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"id":{"type":"double"},"allTags":{"type":"multi_field","fields":{"allTags":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"words":{"type":"string","index":"analyzed","index_analyzer":"index_words","search_analyzer":"search_words"},"grams":{"type":"string","index":"analyzed","index_analyzer":"index_grams","search_analyzer":"search_grams"}}},"debtCharOverloaded":{"type":"boolean"},"ruleKey":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"createdAt":{"type":"date","format":"date_time"},"repo":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"name":{"type":"multi_field","fields":{"sort":{"type":"string","index":"analyzed","analyzer":"sortable"},"words":{"type":"string","index":"analyzed","index_analyzer":"index_words","search_analyzer":"search_words"},"name":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"grams":{"type":"string","index":"analyzed","index_analyzer":"index_grams","search_analyzer":"search_grams"}}},"debtChar":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"htmlDesc":{"type":"multi_field","fields":{"words":{"type":"string","index":"analyzed","index_analyzer":"index_words","search_analyzer":"search_words"},"htmlDesc":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"}}},"effortToFix":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"_debtRemFnOffset":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"debtRemFnType":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"key":{"type":"multi_field","fields":{"sort":{"type":"string","index":"analyzed","analyzer":"sortable"},"key":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"}}},"tags":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"templateKey":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"internalKey":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"debtSubCharOverloaded":{"type":"boolean"},"status":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"noteUpdatedAt":{"type":"date","format":"date_time"},"debtSubChar":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"mdDesc":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"noteCreatedAt":{"type":"date","format":"date_time"},"severity":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"params":{"dynamic":"true","properties":{"description":{"type":"multi_field","fields":{"words":{"type":"string","index":"analyzed","index_analyzer":"index_words","search_analyzer":"search_words"},"description":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"}}},"name":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"defaultValue":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"type":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"}},"type":"nested"},"sysTags":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"_debtRemFnCoefficient":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"_debtSubChar":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"updatedAt":{"type":"date","format":"date_time"},"_debtRemFnType":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"isTemplate":{"type":"boolean"},"markdownNote":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"},"debtRemFnCoefficient":{"index":"analyzed","index_analyzer":"keyword","search_analyzer":"whitespace","type":"string"}},"_all":{"enabled":false}}' at org.sonar.server.es.request.ProxyPutMappingRequestBuilder.get(ProxyPutMappingRequestBuilder.java:43) ~[sonar-server-5.4.jar:na] at org.sonar.server.es.request.ProxyPutMappingRequestBuilder.get(ProxyPutMappingRequestBuilder.java:31) ~[sonar-server-5.4.jar:na] at org.sonar.server.search.BaseIndex.initializeIndex(BaseIndex.java:176) ~[sonar-server-5.4.jar:na] at org.sonar.server.search.BaseIndex.start(BaseIndex.java:116) ~[sonar-server-5.4.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_99] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_99] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_99] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_99] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picoc There's obviously a problem here with the embedded elasticsearch but I haven't been able to figure out it out. Any ideas?
I don't know how elastic got corrupted, but wiping the contents of /var/local/sonar/data and restoring mysql fixed it.
No such method error only in raspberry pi
fed up with raspberry pi..... i have created a javaFX application from windows 7 using netbeans 7.3.1 , jdk 1.7 .. application has included some external jar including javafx-dialogs-0.0.3,jaybird etc.. its all works fine with windows 7,ubuntu and centOS Then i tried to run the same application jar from command line in raspberry pi.. but it gives Exception like "noSuchMethoderror " and exiting the application.. what may be the issue ??? am using same jar during comple and run time.. here is full stack Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:367) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:305) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:894) at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56) at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J at javafx.scene.control.Dialogs$FXDialog$RootPane.<clinit>(Dialogs.java:1310) at javafx.scene.control.Dialogs$FXDialog.<init>(Dialogs.java:1131) at javafx.scene.control.Dialogs$FXDialog.<init>(Dialogs.java:1088) at javafx.scene.control.Dialogs$DialogTemplate.<init>(Dialogs.java:616) at javafx.scene.control.Dialogs.showSimpleContentDialog(Dialogs.java:494) at javafx.scene.control.Dialogs.showInformationDialog(Dialogs.java:266) at displayshelftry.Utilities.propertySettings(Utilities.java:325) at displayshelftry.DisplayShelfTry.run(DisplayShelfTry.java:356) at displayshelftry.DisplayShelfTry.start(DisplayShelfTry.java:1150) at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837) at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:331) at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:297) at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:294) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:294) at com.sun.glass.ui.lens.LensApplication$RunnableEvent.dispatch(LensApplication.java:182) at com.sun.glass.ui.lens.LensApplication._runLoop(LensApplication.java:861) at com.sun.glass.ui.lens.LensApplication.access$1700(LensApplication.java:58) at com.sun.glass.ui.lens.LensApplication$4.run(LensApplication.java:914) ... 1 more thanks...
Try building you app with jdk8. jdk8 usually should run jdk7 built jars as well, but it's not yet released and rasberry pi was supported only since jdk8. Also official pi vs javafx page claims that not all demos will work on pi (note it's not yet released product): https://wiki.openjdk.java.net/display/OpenJFX/OpenJFX+on+the+Raspberry+Pi So you may want to try BrickBreaker instead of DisplayShelf :)