javafx WebView Method contextMenuEnabled could not be found warning - javafx

I get the following warning and stack trace when I traverse to a screen containing a WebView in my javafx application.
However the WebView is displayed and works fine.
fxml tag
<WebView fx:id="webViewId" contextMenuEnabled="false" focusTraversable="false" layoutX="115.0" layoutY="255.0" prefHeight="210.0" prefWidth="280.0" visible="false" />
Stack trace
WARNING: Failed to set class javafx.scene.web.WebView.contextMenuEnabled using class javafx.scene.web.WebViewBuilder
java.lang.IllegalArgumentException: Method contextMenuEnabled could not be found at class javafx.scene.web.WebViewBuilder
at javafx.fxml.JavaFXBuilder.findMethod(JavaFXBuilderFactory.java:496)
at javafx.fxml.JavaFXBuilder.access$500(JavaFXBuilderFactory.java:235)
at javafx.fxml.JavaFXBuilder$ObjectBuilder.put(JavaFXBuilderFactory.java:325)
at javafx.fxml.JavaFXBuilder$ObjectBuilder.put(JavaFXBuilderFactory.java:246)
at javafx.fxml.FXMLLoader$Element.applyProperty(FXMLLoader.java:512)
at javafx.fxml.FXMLLoader$Element.processValue(FXMLLoader.java:363)
at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(FXMLLoader.java:325)
at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(FXMLLoader.java:235)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:749)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2707)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
at com.mypkg.controllers.MyController.handleMyButton(MyController.java:330)
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.GeneratedMethodAccessor1.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 javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769)
at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Node.fireEvent(Node.java:8413)
at javafx.scene.control.Button.fire(Button.java:185)
at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:380)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:294)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:416)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:415)
at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
at com.sun.glass.ui.View.notifyMouse(View.java:937)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
Couldn't find fix for this.
Any idea what might be causing this warning?

Related

Google Firebase's signInAnonymously function crashes my Flutter App

I'm trying to follow a simple Flutter and Firebase tutorial that I found on YouTube. At the moment the app is just a simple login screen with a button that tries to sign the user in using the signInAnonymously function that Firebase provides.
However, every time I click the button to sign in the app crashes but, the new user is created and can be seen under authentication->users in the Firebase Console.
Here is the output from the debug console:
W/BiChannelGoogleApi( 2621): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak#e0bea08
W/DynamiteModule( 2621): Local module descriptor class for com.google.firebase.auth not found.
I/FirebaseAuth( 2621): [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth( 2621): [FirebaseAuth:] Preparing to create service connection to gms implementation
E/JavaBinder( 2621): *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
E/JavaBinder( 2621): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap;
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzam.zzc(Unknown Source:22)
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzam.zzde(Unknown Source:17)
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzam.zzdd(Unknown Source:8)
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzan.zzdf(Unknown Source:1)
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzm.isAnonymous(Unknown Source:47)
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzat.zzi(Unknown Source:57)
E/JavaBinder( 2621): at com.google.firebase.auth.internal.zzat.zzg(Unknown Source:10)
E/JavaBinder( 2621): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:62)
E/JavaBinder( 2621): at com.google.firebase.auth.FirebaseAuth$zzb.zza(Unknown Source:5)
E/JavaBinder( 2621): at com.google.firebase.auth.api.internal.zzcl.zzdx(Unknown Source:13)
E/JavaBinder( 2621): at com.google.firebase.auth.api.internal.zzen.zzen(Unknown Source:35)
E/JavaBinder( 2621): at com.google.firebase.auth.api.internal.zzen.zza(Unknown Source:41)
E/JavaBinder( 2621): at com.google.firebase.auth.api.internal.zzep.zza(Unknown Source:9)
E/JavaBinder( 2621): at com.google.firebase.auth.api.internal.zzdx.dispatchTransaction(Unknown Source:9)
E/JavaBinder( 2621): at com.google.android.gms.internal.firebase_auth.zza.onTransact(Unknown Source:13)
E/JavaBinder( 2621): at android.os.Binder.execTransact(Binder.java:731)
E/JavaBinder( 2621): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/com.teegeedigital.teegee_digital_app-uIKbQPsmHSCIvS-nf2ZtLQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.teegeedigital.teegee_digital_app-uIKbQPsmHSCIvS-nf2ZtLQ==/lib/x86, /data/app/com.teegeedigital.teegee_digital_app-uIKbQPsmHSCIvS-nf2ZtLQ==/base.apk!/lib/x86, /system/lib]]
E/JavaBinder( 2621): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
E/JavaBinder( 2621): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/JavaBinder( 2621): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/JavaBinder( 2621): ... 16 more
E/AndroidRuntime( 2621): FATAL EXCEPTION: Binder:2621_1
E/AndroidRuntime( 2621): Process: com.teegeedigital.teegee_digital_app, PID: 2621
E/AndroidRuntime( 2621): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap;
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzam.zzc(Unknown Source:22)
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzam.zzde(Unknown Source:17)
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzam.zzdd(Unknown Source:8)
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzan.zzdf(Unknown Source:1)
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzm.isAnonymous(Unknown Source:47)
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzat.zzi(Unknown Source:57)
E/AndroidRuntime( 2621): at com.google.firebase.auth.internal.zzat.zzg(Unknown Source:10)
E/AndroidRuntime( 2621): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:62)
E/AndroidRuntime( 2621): at com.google.firebase.auth.FirebaseAuth$zzb.zza(Unknown Source:5)
E/AndroidRuntime( 2621): at com.google.firebase.auth.api.internal.zzcl.zzdx(Unknown Source:13)
E/AndroidRuntime( 2621): at com.google.firebase.auth.api.internal.zzen.zzen(Unknown Source:35)
E/AndroidRuntime( 2621): at com.google.firebase.auth.api.internal.zzen.zza(Unknown Source:41)
E/AndroidRuntime( 2621): at com.google.firebase.auth.api.internal.zzep.zza(Unknown Source:9)
E/AndroidRuntime( 2621): at com.google.firebase.auth.api.internal.zzdx.dispatchTransaction(Unknown Source:9)
E/AndroidRuntime( 2621): at com.google.android.gms.internal.firebase_auth.zza.onTransact(Unknown Source:13)
E/AndroidRuntime( 2621): at android.os.Binder.execTransact(Binder.java:731)
E/AndroidRuntime( 2621): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/com.teegeedigital.teegee_digital_app-uIKbQPsmHSCIvS-nf2ZtLQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.teegeedigital.teegee_digital_app-uIKbQPsmHSCIvS-nf2ZtLQ==/lib/x86, /data/app/com.teegeedigital.teegee_digital_app-uIKbQPsmHSCIvS-nf2ZtLQ==/base.apk!/lib/x86, /system/lib]]
E/AndroidRuntime( 2621): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
E/AndroidRuntime( 2621): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime( 2621): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime( 2621): ... 16 more
I/Process ( 2621): Sending signal. PID: 2621 SIG: 9
Lost connection to device.
Exited (sigterm)
I'll also include my project build.gradle below:
buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.0.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
and my android/app build.gradle file:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 28
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.teegeedigital.teegee_digital_app"
minSdkVersion 21
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.firebase:firebase-analytics:17.2.0'
implementation 'com.google.firebase:firebase-firestore:19.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
I'm relatively new to Mobile App Development so please let me know if I should include anything else. Any help would be appreciated.
You need to migrate to androidx, you can do that by adding:
android.useAndroidX=true
android.enableJetifier=true
In the android/gradle.properties.
You can find more about migration to androidx in this flutter guide:
https://flutter.dev/docs/development/androidx-migration

What is blocking the network connection? Unable to do a EJB lookup between Client-server WebSphere

I have disabled "Enable administrative security" on both client and server. Using Cport I can able to see the connection is established, but I am still getting Connection refused
Below is the client side log
18:34:49:235 IST] 000000ba SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
[4/25/19 18:34:49:236 IST] 000000ba SystemErr R Caused by: javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]
[4/25/19 18:34:49:237 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1688)
[4/25/19 18:34:49:237 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1177)
[4/25/19 18:34:49:237 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:1086)
[4/25/19 18:34:49:237 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:630)
[4/25/19 18:34:49:238 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
[4/25/19 18:34:49:238 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
[4/25/19 18:34:49:238 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
[4/25/19 18:34:49:239 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
[4/25/19 18:34:49:239 IST] 000000ba SystemErr R at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[4/25/19 18:34:49:239 IST] 000000ba SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:428)
[4/25/19 18:34:49:239 IST] 000000ba SystemErr R at com.XXX.technology.ejbconnector.jWebsphere85Provider.lookupRemoteBean(jWebsphere85Provider.java:213)
[4/25/19 18:34:49:239 IST] 000000ba SystemErr R at com.XXX.technology.ejbconnector.jWebsphere85Provider.getRemoteBean(jWebsphere85Provider.java:188)
[4/25/19 18:34:49:240 IST] 000000ba SystemErr R ... 47 more
[4/25/19 18:34:49:240 IST] 000000ba SystemErr R Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
[4/25/19 18:34:49:240 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1139)
[4/25/19 18:34:49:241 IST] 000000ba SystemErr R at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1514)
[4/25/19 18:34:49:241 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1028)
[4/25/19 18:34:49:241 IST] 000000ba SystemErr R at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1480)
[4/25/19 18:34:49:241 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1658)
[4/25/19 18:34:49:241 IST] 000000ba SystemErr R at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1436)
[4/25/19 18:34:49:242 IST] 000000ba SystemErr R at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
[4/25/19 18:34:49:242 IST] 000000ba SystemErr R at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
[4/25/19 18:34:49:242 IST] 000000ba SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1685)
[4/25/19 18:34:49:242 IST] 000000ba SystemErr R ... 58 more
[4/25/19 18:34:49:243 IST] 000000ba SystemErr R Caused by: java.net.ConnectException: Connection refused: connect
[4/25/19 18:34:49:243 IST] 000000ba SystemErr R at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
[4/25/19 18:34:49:244 IST] 000000ba SystemErr R at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:96)
[4/25/19 18:34:49:244 IST] 000000ba SystemErr R at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:380)
[4/25/19 18:34:49:244 IST] 000000ba SystemErr R at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:236)
[4/25/19 18:34:49:244 IST] 000000ba SystemErr R at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:218)
[4/25/19 18:34:49:244 IST] 000000ba SystemErr R at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at java.net.Socket.connect(Socket.java:666)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:403)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:355)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:437)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:182)
[4/25/19 18:34:49:245 IST] 000000ba SystemErr R at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:98)
[4/25/19 18:34:49:246 IST] 000000ba SystemErr R at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:134)
[4/25/19 18:34:49:246 IST] 000000ba SystemErr R at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:230)
[4/25/19 18:34:49:246 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1740)
[4/25/19 18:34:49:246 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1765)
[4/25/19 18:34:49:246 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1050)
[4/25/19 18:34:49:247 IST] 000000ba SystemErr R at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1135)
[4/25/19 18:34:49:247 IST] 000000ba SystemErr R ... 66 more
If this was working fine before you enabled security, the likely cause is that your client is not configured correctly to use SSL connections (which would now be required by the server), and is now trying to connect to a 0-port (turning on ORB trace would confirm this). See https://www-01.ibm.com/support/docview.wss?uid=swg21237101#ConnR, scenario #4.

In Corda, NullPointerException when calling DataVendingFlow

In Corda 3.3, I have defined the following flow:
#InitiatingFlow
class CollectSignaturesInitiatingFlow(val signedTransaction: SignedTransaction, val parties: List<Party>): FlowLogic<SignedTransaction>() {
override fun call(): SignedTransaction {
val sessions = parties.map { initiateFlow(it) }
return subFlow(CollectSignaturesFlow(signedTransaction, sessions))
}
}
When my node executes this flow, I receive the exception below. What is the cause?
[WARN ] 16:03:05,481 [Node thread-1] (FlowStateMachineImpl.kt:111)
flow.[55214e22-74aa-4f1b-a94d-6353d5bbf35d].run - Terminated by
unexpected exception {} java.lang.NullPointerException: null
at net.corda.node.services.statemachine.FlowStateMachineImpl.suspend(FlowStateMachineImpl.kt:514)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.sendInternal(FlowStateMachineImpl.kt:370)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.initiateSession(FlowStateMachineImpl.kt:434)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.sendAndReceive(FlowStateMachineImpl.kt:198)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowSessionImpl.sendAndReceive(FlowSessionImpl.kt:29)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowSessionImpl.sendAndReceive(FlowSessionImpl.kt:40)
~[corda-node-3.2-corda.jar:?]
at net.corda.core.flows.DataVendingFlow.sendPayloadAndReceiveDataRequest(SendTransactionFlow.kt:70)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.DataVendingFlow.call(SendTransactionFlow.kt:48)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.DataVendingFlow.call(SendTransactionFlow.kt:31)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.FlowLogic.subFlow(FlowLogic.kt:290) ~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.CollectSignatureFlow.call(CollectSignaturesFlow.kt:142)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.CollectSignatureFlow.call(CollectSignaturesFlow.kt:135)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.FlowLogic.subFlow(FlowLogic.kt:290) ~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.CollectSignaturesFlow.call(CollectSignaturesFlow.kt:114)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.CollectSignaturesFlow.call(CollectSignaturesFlow.kt:64)
~[corda-core-3.2-corda.jar:?]
at net.corda.core.flows.FlowLogic.subFlow(FlowLogic.kt:290) ~[corda-core-3.2-corda.jar:?]
at com.example.flow.ExampleFlowMatching$CollectSignaturesInitiatingFlow.call(ExampleFlowMatching.kt:280)
~[classes/:?]
at com.example.flow.ExampleFlowMatching$CollectSignaturesInitiatingFlow.call(ExampleFlowMatching.kt:277)
~[classes/:?]
at net.corda.core.flows.FlowLogic.subFlow(FlowLogic.kt:290) ~[corda-core-3.2-corda.jar:?]
at com.example.flow.ExampleFlowMatching$ExampleFlowMatchingInitiator.call(ExampleFlowMatching.kt:170)
~[classes/:?]
at com.example.flow.ExampleFlowMatching$ExampleFlowMatchingInitiator.call(ExampleFlowMatching.kt:45)
~[classes/:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:96)
[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:44)
[corda-node-3.2-corda.jar:?]
at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1092) [quasar-core-0.7.9-jdk8.jar:0.7.9]
at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:788) [quasar-core-0.7.9-jdk8.jar:0.7.9]
at co.paralleluniverse.fibers.RunnableFiberTask.doExec(RunnableFiberTask.java:100)
[quasar-core-0.7.9-jdk8.jar:0.7.9]
at co.paralleluniverse.fibers.RunnableFiberTask.run(RunnableFiberTask.java:91)
[quasar-core-0.7.9-jdk8.jar:0.7.9]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[?:1.8.0_191]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:1.8.0_191]
at net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor$1$thread$1.run(AffinityExecutor.kt:62)
[corda-node-3.2-corda.jar:?] [WARN ] 16:03:05,491 [Node thread-1]
(StateMachineManagerImpl.kt:79)
flow.[55214e22-74aa-4f1b-a94d-6353d5bbf35d].uncaughtException - Caught
exception from flow {} java.lang.IllegalStateException: Was expecting
to find transaction set on current strand:
Fiber#10000009:[55214e22-74aa-4f1b-a94d-6353d5bbf35d][task:
co.paralleluniverse.fibers.RunnableFiberTask#4ca7589a(Fiber#10000009),
target: null, scheduler:
net.corda.node.services.statemachine.StateMachineManagerImpl$FiberScheduler#599eed84]
at net.corda.nodeapi.internal.persistence.DatabaseTransactionKt.getContextTransaction(DatabaseTransaction.kt:14)
~[corda-node-api-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.rollbackTransaction$node(FlowStateMachineImpl.kt:151)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.StateMachineManagerImpl$initFiber$3.invoke(StateMachineManagerImpl.kt:460)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.StateMachineManagerImpl$initFiber$3.invoke(StateMachineManagerImpl.kt:63)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.processException(FlowStateMachineImpl.kt:131)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:112)
~[corda-node-3.2-corda.jar:?]
at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:44)
~[corda-node-3.2-corda.jar:?]
at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1092) [quasar-core-0.7.9-jdk8.jar:0.7.9]
at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:788) [quasar-core-0.7.9-jdk8.jar:0.7.9]
at co.paralleluniverse.fibers.RunnableFiberTask.doExec(RunnableFiberTask.java:100)
[quasar-core-0.7.9-jdk8.jar:0.7.9]
at co.paralleluniverse.fibers.RunnableFiberTask.run(RunnableFiberTask.java:91)
[quasar-core-0.7.9-jdk8.jar:0.7.9]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[?:1.8.0_191]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:1.8.0_191]
at net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor$1$thread$1.run(AffinityExecutor.kt:62)
[corda-node-3.2-corda.jar:?]
As of Corda 3.3, the call method in a flow needs to be annotated with #Suspendable so it's execution can be checkpointed.
So you should rewrite your flow as follows:
#InitiatingFlow
class CollectSignaturesInitiatingFlow(val signedTransaction: SignedTransaction, val parties: List<Party>): FlowLogic<SignedTransaction>() {
#Suspendable
override fun call(): SignedTransaction {
val sessions = parties.map { initiateFlow(it) }
return subFlow(CollectSignaturesFlow(signedTransaction, sessions))
}
}

JavaFX FXMLLoader InvocationTargetException?

I am trying to update some components situated in other Controller using FXMLLoader, When i run my code i get this exception :
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1774)
at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Node.fireEvent(Node.java:8413)
at javafx.scene.control.Button.fire(Button.java:185)
at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431)
at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
at com.sun.glass.ui.View.notifyMouse(View.java:937)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
Caused by: 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.GeneratedMethodAccessor1.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 javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769)
... 52 more
Caused by: java.lang.RuntimeException: Text.text : A bound value cannot be set.
at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:140)
at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:49)
at javafx.scene.text.Text.setText(Text.java:370)
at javafxcyberwind.LoginController.conValide(LoginController.java:205)
... 62 more
This is my code :
FXMLLoader loader = new FXMLLoader();
loader.setLocation(getClass().getResource("Choix_Client.fxml"));
loader.load();
Choix_ClientController ctr = loader.getController();
ctr.tx_bn.setText(email_con.getText());//exception here
Parent parent = FXMLLoader.load(getClass().getResource("Choix_Client.fxml"));
Scene scene = new Scene(parent);
Stage stage = (Stage) ((Node) e.getSource()).getScene().getWindow();
stage.hide();
stage.setScene(scene);
stage.show();
How to solve this ?

Gluon Error After clearing video service playlist and adding another track

11-29 09:16:02.227: E/AndroidRuntime(22528): FATAL EXCEPTION: JavaFX Application Thread
11-29 09:16:02.227: E/AndroidRuntime(22528): Process: com.nopanicaudiocollection, PID: 22528
11-29 09:16:02.227: E/AndroidRuntime(22528): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
11-29 09:16:02.227: E/AndroidRuntime(22528): at java.util.ArrayList.get(ArrayList.java:411)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.gluonhq.impl.charm.down.plugins.DefaultVideoService.lambda$new$2(DefaultVideoService.java:105)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.gluonhq.impl.charm.down.plugins.DefaultVideoService$$Lambda$3.onChanged(Unknown Source)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:328)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:72)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:232)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:204)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.collections.ModifiableObservableListBase.addAll(ModifiableObservableListBase.java:102)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.nopanicaudiocollection.BasicView.lambda$null$3(BasicView.java:58)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.nopanicaudiocollection.BasicView$$Lambda$4.accept(Unknown Source)
11-29 09:16:02.227: E/AndroidRuntime(22528): at java.util.Optional.ifPresent(Optional.java:154)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.nopanicaudiocollection.BasicView.lambda$new$4(BasicView.java:54)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.nopanicaudiocollection.BasicView$$Lambda$1.handle(Unknown Source)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.event.Event.fireEvent(Event.java:198)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.scene.Node.fireEvent(Node.java:8411)
11-29 09:16:02.227: E/AndroidRuntime(22528): at javafx.scene.control.Button.fire(Button.java:185)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.227: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
11-29 09:16:02.228: E/AndroidRuntime(22528): at javafx.event.Event.fireEvent(Event.java:198)
11-29 09:16:02.228: E/AndroidRuntime(22528): at javafx.scene.Scene$MouseHandler.process(Scene.java:3761)
11-29 09:16:02.228: E/AndroidRuntime(22528): at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3489)
11-29 09:16:02.228: E/AndroidRuntime(22528): at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
11-29 09:16:02.228: E/AndroidRuntime(22528): at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2498)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:352)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:275)
11-29 09:16:02.228: E/AndroidRuntime(22528): at java.security.AccessController.doPrivileged(AccessController.java:57)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$335(GlassViewEventHandler.java:388)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.GlassViewEventHandler.access$lambda$1(GlassViewEventHandler.java)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.GlassViewEventHandler$$Lambda$4.get(Unknown Source)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:391)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:387)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.View.notifyMouse(View.java:937)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.MonocleView.notifyMouse(MonocleView.java:119)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.MouseInput.notifyMouse(MouseInput.java:314)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.MouseInput.lambda$postMouseEvent$101(MouseInput.java:227)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.MouseInput.access$lambda$3(MouseInput.java)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.MouseInput$$Lambda$4.run(Unknown Source)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:93)
11-29 09:16:02.228: E/AndroidRuntime(22528): at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:52)
11-29 09:16:02.228: E/AndroidRuntime(22528): at java.lang.Thread.run(Thread.java:762)
public class BasicView extends View {
Label label = new Label();
public BasicView(String name) {
super(name);
ArrayList<String> playList = new ArrayList();
try {String line;//declare a string to hold each line of the document
InputStream is = getClass().getResourceAsStream("/music.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(is));//create a new buffered file reader to read a file reader
//use a while loop to read each line and add it to the list
while ((line = br.readLine()) != null) {
playList.add(line);
}
//close the buffered reader
br.close();
}
//catch block to catach and console print any exceptions
catch (IOException e)
{
System.out.println(e.getMessage());
}
ChoiceBox<String> choiceBox = new ChoiceBox();
choiceBox.getItems().addAll(playList);
choiceBox.getSelectionModel().selectFirst();
Button button = new Button("Set Track");
button.setOnAction(b -> {
System.setProperty("com.gluonhq.charm.down.debug", "true");
Services.get(VideoService.class).ifPresent(video -> {
video.getPlaylist().clear();
video.setPosition(Pos.CENTER, 0, 40, 0, 40);
video.setControlsVisible(false);
video.getPlaylist().add/*All(Arrays.asList*/(getChoice(choiceBox)/*)*/);
video.play();
Button playButton = MaterialDesignIcon.PLAY_ARROW.button();
playButton.setOnAction(e -> {
if (video.statusProperty().get() == Status.PLAYING) {
playButton.setGraphic(MaterialDesignIcon.PLAY_ARROW.graphic());
video.pause();
} else {
playButton.setGraphic(MaterialDesignIcon.PAUSE.graphic());
video.play();
}
});
Button stopButton = MaterialDesignIcon.STOP.button(e -> {
video.stop();
video.hide();}
);
getApplication().getAppBar().getActionItems().addAll(playButton, stopButton);
video.statusProperty().addListener((obs, ov, nv) -> {
if (video.statusProperty().get() == Status.PLAYING) {
playButton.setGraphic(MaterialDesignIcon.PAUSE.graphic());
} else {
playButton.setGraphic(MaterialDesignIcon.PLAY_ARROW.graphic());
}});
});
});
/*Button button = new Button("Change the World!");
button.setGraphic(new Icon(MaterialDesignIcon.LANGUAGE));
button.setOnAction(e -> label.setText("Hello JavaFX Universe!"));*/
VBox controls = new VBox(15.0, choiceBox, label, button);
controls.setAlignment(Pos.CENTER);
setCenter(controls);
}
private String getChoice(ChoiceBox<String> choiceBox) {
String music = choiceBox.getValue();
String nowPlaying = "Now Playing: ";
label.setText(nowPlaying + music);
return music;
}
#Override
protected void updateAppBar(AppBar appBar) {
appBar.setNavIcon(MaterialDesignIcon.MENU.button(e -> System.out.println("Menu")));
appBar.setTitleText("Audio Collection");
appBar.getActionItems().add(MaterialDesignIcon.SEARCH.button(e -> System.out.println("Search")));
}
}
I have a choice box that is filled by an array from a bufferedreader. That selects the music track. Then the theory is the getter method gets the selection of the choice box, sets the label and converts the selection into a string and returns it. Then the set track button activates the music by setting it up and setting the playlist after clearing the playlist. Now this all works the first time you can select any track and play it. When you stop the music and try to reselect the track you can use the choice box but as soon as you press the set track button again you get the above error. This is a gluon mobile single view project.

Resources