-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I forgot to put @WireVariable on service ,and action which wants to use it appears ZK popup window with message : "Unknown exception: java.lang.NullPointerException." but the console does not show anything . How can I figure out where's take this error or see more stack trace. I've had other such errors ZK popup window and it is difficult to understand what exactly is the problem. I use Eclipse Mars 2.
Hello Radoslav86,
Have you checked out the following documentation?
https://www.zkoss.org/wiki/ZKDeveloper'sReference/Supporting_Utilities/Logger
Best Regards,
Darksu
you should use @WireVairalbe
inside a Composer/ViewModel because it's a ZK-made annotation. Only ZK processes the annotation.
If the exception is triggered by a specific action, you can set a breakpoint on related code in your composer and run the code step by step to find out the root cause.
Hello Darksu, I saw the link you gave me, but i do not have pom.xml I have web.xml . hawk your suggestion is good and I found the problem , but I want to see some stack trace in console who point me to the problem. I test to remove @WireVairalbe for service in different project and there throw "AbstractAnnotatedMethodInvoker.java:90".Thus I understand my problem is missing annotation somewhere . But in my project i do not have stack trace only popup window in browser with message : "Unknown exception: java.lang.NullPointerException."
Asked: 2017-01-20 14:25:29 +0800
Seen: 49 times
Last updated: Feb 02 '17