0

Popup message with Unknown exception: java.lang.NullPointerException. without strak trace in eclipse console

asked 2017-01-20 14:25:29 +0800

Radoslav86 gravatar image Radoslav86
13 3

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.

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2017-01-20 18:04:21 +0800

Darksu gravatar image Darksu
1976 1 4

Hello Radoslav86,

Have you checked out the following documentation?

https://www.zkoss.org/wiki/ZKDeveloper'sReference/Supporting_Utilities/Logger

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2017-01-24 10:40:43 +0800

hawk gravatar image hawk
2018 1 5
http://hawkphoenix.blogsp... ZK Team

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.

link publish delete flag offensive edit
0

answered 2017-02-02 08:40:27 +0800

Radoslav86 gravatar image Radoslav86
13 3

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."

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-01-20 14:25:29 +0800

Seen: 40 times

Last updated: Feb 02