An exception raised when I used the comboBox. Never see this before. but today it just raised. And below is the full stack. Anyone know how can I find where is this bug comes from? It seems like a bug in JavaFX. I am using MAC OS.
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.queryAccessibleAttribute(ComboBoxListViewSkin.java:593)
at javafx.scene.control.Control.queryAccessibleAttribute(Control.java:917)
at javafx.scene.control.ComboBoxBase.queryAccessibleAttribute(ComboBoxBase.java:459)
at javafx.scene.control.ComboBox.queryAccessibleAttribute(ComboBox.java:616)
at javafx.scene.Node$19.getAttribute(Node.java:9648)
at com.sun.glass.ui.Accessible$GetAttribute.run(Accessible.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.glass.ui.Accessible.lambda$getAttribute$4(Accessible.java:169)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at com.sun.glass.ui.Accessible.getAttribute(Accessible.java:166)
at com.sun.glass.ui.mac.MacAccessible.accessibilityAttributeValue(MacAccessible.java:1261)
Related
I'm not familiar with javaFX I just started.
I import the package and I did The VM option but when I try to add a WebView, ImageView or MediaView in the window I get this error causes
Caused by: java.lang.RuntimeException: Exception in Application start method
Caused by: java.lang.IllegalAccessError: superclass access check failed: class javafx.scene.media.NGMediaView (in unnamed module #0x18ebfb54) cannot access class com.sun.javafx.sg.prism.NGNode (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.sg.prism to unnamed module #0x18ebfb54
All the other contents working fine, button, Slider, and so on
I don't know the problem where, I hope to help me guys Thank you
I got error when execute code. I think it's not related to code. something is missing.
java.lang.IllegalStateException: Problem in some module which uses Window System: Window System API is required to be called from AWT thread only, see http://core.netbeans.org/proposals/threading/
You have flagged your post with JavaFX, so I assume you are talking about a JavaFX application. Every GUI update in the JavaFX-world is done on the JavaFX application thread. Your exception however indicates that you are using some AWT code in your program which has a different requirement. It must be run on AWT thread. So, the first thing you have to do is find out what this code is and then you have to make sure to call it on the right thread. You can use Platform.runLater() to put something on the JavaFX thread and SwingUtilities.invokeLater() to put something on the AWT thread.
I am following this doc to enable push in Xamarin.Android runtime BB10 app. I am confused where & when exactly to put android.cfg file.
Before creating apk, added cfg file in root of project in application
name (tried naming as android.cfg also).
Using that apk, I generated .bar file, but under android folder, res
folder and apk file only exist, cfg file doesn't seems to be exist.
Then I tried adding cfg file under bar file after creating apk but
before signing bar file, but I started getting following error:
Error: No manifest. Exception in thread "main"
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.rim.tools.signing.SigningMain.main(SigningMain.java:72) Caused by: java.lang.Exception: java.lang.RuntimeException: No
manifest.
at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source)
at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source)
... 5 more Caused by: java.lang.RuntimeException: No manifest.
at net.rim.device.codesigning.barsigner.BarSigner.try(Unknown Source)
... 7 more
I have ppgurl, appid which I got from BB.
What is the exact procedure for this? In same doc following thing is given:
The Google Play Services SDK is not supported on BlackBerry 10. If
your app includes GCM services, you must set up your Android project
to use the stand-alone GCM SDK. Android Studio does not support the
use of the stand-alone GCM SDK at this time. For more information see
Android Studio Overview.
I am using GCM Client component for push in Xamarin.Android. What is stand alone GCM SDK given in doc?. I don't know what kind of GCM I am using.
I fixed above issue and now I am receiving push notification successfully in my BlackBerry device. In different places different location is given to place android.cfg file, but actual location which worked for me is:
android.cfg file under assets/blackberry/android.cfg
Place this file before creating apk. Because in many places I read to put this file after creating apk using zip tool, that may also work, but if it is not working try the solution given here :)
I followed procedures exactly given in below docs.
https://github.com/blackberry/BB10-Android-Runtime-Samples/tree/master/SamplePushClient
I have C program (Dll) which I can call from Java using JNI. I want to use Javafx for the interface so I made a java class to call the dll. I am able to load the dll but I cannot call the method. The error message it gives me is
java.lang.UnsatisfiedLinkError:
mark1.Small_test.tester(DDDLjava/lang/String;Ljava/lang/String;Ljava/lang/String;DDD)[D
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
I have used the same Dll and it works if I call with normal java. I am using netbeans for JavaFX. I have been stuck with this problem for a week. Any help is greatly appreciated.
I am building a Silverlight 4 application using Mvvm Light(latest version), and VS 2010 crashes every 5 minutes even less. So it is impossible to work.
I believe it is because I am doing or there is something wrong with my MVVM implementation.
I get this error on the designer sometimes.
An unhandled exception has occurred:
An unhandled exception has occurred: [Xml_CannotFindFileInXapPackage] Arguments: ServiceReferences.ClientConfig Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60129.0&File=System.Xml.dll&Key=Xml_CannotFindFileInXapPackage at System.Xml.XmlXapResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext) at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) at System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup() I don't know if this is related with the crash. ..And I found this error in the event viewer: Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ObjectDisposedException Stack: at System.Windows.Threading.Dispatcher.FastInvoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object[]) at System.Net.Browser.AsyncHelper.CheckUseLowLatencyNetworking() at System.Net.Browser.AsyncHelper.BeginOnUI(System.Threading.SendOrPostCallback, System.Object) at System.Net.Browser.BrowserHttpWebRequest.Abort() at System.ServiceModel.Channels.HttpOutput+WebRequestHttpOutput.Abort(System.ServiceModel.Channels.HttpAbortReason) at System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel+HttpChannelAsyncRequest.AbortSend() at System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel+HttpChannelAsyncRequest.OnSendTimeout(System.Object) at System.Threading._TimerCallback.TimerCallback_Context(System.Object) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading._TimerCallback.PerformTimerCallback(System.Object)
Any help will be appreciated, thanks in advance.
Most of the times the reason why Visual Studio crashes in WPF and Silverlight applications is that it has difficulty in loading Xaml in design view. It is usually because of an error in XAML.
To prevent this issue from occuring:
Go to Tools / Options
Text Editor -> XAML -> Miscellaneous
Check the option "Always open documents in full XAML view".
Resolve the error in xaml
Uncheck the option mentioned in point#3 to see XAML in design view.
I had and fixed this problem. My symptoms were: I was having a Silverlight application that wasn't running correctly or was crashing frequently. While debugging, VS2010 frequently crashed with the exact same backtrace as above.
I was mis-initializing an object (trying to connect to an improperly formatted WCF service through a static Service object).
return (new ServicesClientVar.Service(new Binding(),
new EndpointAddress(new Uri("http://:8000/FileServices"))));
If you look at the Uri it is misconfigured.
SO, I'm not sure if this was an issue with WCF service clients specifically, or if any improperly initialized static object will cause this to happen.
Hope this helps someone else out someday...