Welcome! Log In Create A New Profile

Advanced

WM25 Error

Posted by pauly139 
WM25 Error
May 07, 2020 03:38PM
Hi

Getting this error on 1 of my test android devices - same code works fine on other phones (different versions of android)

Error is not easily reproducible. Does anyone understand enough of this message to point me to some particular sort of area of coding that could cause this?

Message=Attempt to invoke virtual method 'int fr.pcsoft.wdjava.ui.champs.zr.zb.a()' on a null object reference
Java stack=fr.pcsoft.wdjava.ui.champs.zr.nc.getModelItemCount(nc.java:773)
fr.pcsoft.wdjava.ui.champs.zr.ub.getCount(ub.java:38)
android.widget.AdapterView.isScrollableForAccessibility(AdapterView.java:1014)
android.widget.AdapterView.onInitializeAccessibilityNodeInfoInternal(AdapterView.java:989)
android.widget.AbsListView.onInitializeAccessibilityNodeInfoInternal(AbsListView.java:1569)
android.widget.ListView.onInitializeAccessibilityNodeInfoInternal(ListView.java:4048)
android.view.View.onInitializeAccessibilityNodeInfo(View.java:6640)
android.view.View.createAccessibilityNodeInfoInternal(View.java:6599)
android.view.View.createAccessibilityNodeInfo(View.java:6584)
android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145)
android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119)
android.view.View.onInitializeAccessibilityEventInternal(View.java:6536)
android.widget.AdapterView.onInitializeAccessibilityEventInternal(AdapterView.java:999)
android.view.View.onInitializeAccessibilityEvent(View.java:6524)
android.view.View.sendAccessibilityEventUncheckedInternal(View.java:6389)
android.view.View.sendAccessibilityEventUnchecked(View.java:6374)
android.view.View$SendViewStateChangedAccessibilityEvent.run(View.java:23921)
android.view.View$SendViewStateChangedAccessibilityEvent.runOrPost(View.java:23954)
android.view.View.notifyViewAccessibilityStateChangedIfNeeded(View.java:9506)
android.view.View.onFocusChanged(View.java:6252)
android.widget.AbsListView.onFocusChanged(AbsListView.java:2044)
android.widget.ListView.onFocusChanged(ListView.java:3719)
android.view.View.clearFocusInternal(View.java:6153)
android.view.View.unFocus(View.java:6189)
android.view.ViewGroup.unFocus(ViewGroup.java:1020)
android.view.ViewGroup.unFocus(ViewGroup.java:1022)
android.view.ViewGroup.unFocus(ViewGroup.java:1022)
android.view.ViewGroup.unFocus(ViewGroup.java:1022)
android.view.ViewGroup.unFocus(ViewGroup.java:1022)
android.view.ViewGroup.unFocus(ViewGroup.java:1022)
android.view.ViewGroup.unFocus(ViewGroup.java:1022)
android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:5072)
android.view.ViewGroup.removeAllViews(ViewGroup.java:5031)
fr.pcsoft.wdjava.ui.champs.onglet.a.l(a.java:96)
fr.pcsoft.wdjava.ui.champs.onglet.b.l(b.java:49)
fr.pcsoft.wdjava.ui.champs.onglet.WDOnglet.release(WDOnglet.java:95)
fr.pcsoft.wdjava.ui.v.g(v.java:38)
fr.pcsoft.wdjava.ui.champs.fenetre.w.release(w.java:213)
fr.pcsoft.wdjava.ui.champs.fenetre.WDFenetre.release(WDFenetre.java:287)
fr.pcsoft.wdjava.ui.activite.WDActivite.j(WDActivite.java:7)
fr.pcsoft.wdjava.ui.activite.c.g(c.java:71)
fr.pcsoft.wdjava.ui.activite.WDActivite.onDestroy(WDActivite.java:6)
android.app.Activity.performDestroy(Activity.java:6908)
android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1153)
android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4305)
android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4336)
android.app.ActivityThread.-wrap6(ActivityThread.java)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1588)
android.os.Handler.dispatchMessage(Handler.java:110)
android.os.Looper.loop(Looper.java:208)
android.app.ActivityThread.main(ActivityThread.java:6267)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Argus
Re: WM25 Error
May 07, 2020 04:10PM
> Message=Attempt to invoke virtual method 'int
> fr.pcsoft.wdjava.ui.champs.zr.zb.a()' on a null
> object reference

That message indicates that you are doing something on a field that is not there at the time. A simple MyField=Value can do that if myfield is not in the active window...

This kind of messages happened to me several times when the application was going in the background or trying to exit from it... And yes, with a different behavior depending on the OS version. I had in particular a lot more problems on xiomi devices because of their android implemantation (MIUI, if I remember correctly)

I had to enlist Fabrice's help to code some specific code to manage properly coming back from the background.
Re: WM25 Error
May 08, 2020 12:47AM
Thanks Argus. That gives me some clues.

To follow on, in my case I can now see it was occurring when closing a window that contained several internal window controls with loopers and instantiated classes. Something to do with the way the controls and/or classes were cleaned-up when closing the window I'd say. So I'm thinking I'd need some code in the 'Close Window' area to ensure it stayed open until all it's children were closed.

In the meantime I solved the problem by not using internal windows.

Thanks again Argus.

Rgds
Paul



Edited 1 time(s). Last edit at 05/08/2020 01:24AM by pauly139.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: