0

This class is yet to be initialized by calling method init()

asked 2015-05-19 10:52:07 +0800

PKSingh gravatar image PKSingh
1

this error is coming while running the application , is there any external java file we need write to invoke init method or is there anything by default that i am missing.

delete flag offensive retag edit

Comments

Faults can be searched when you have at least a stacktrace. It should be even better to include the code where it comes from.

chillworld ( 2015-05-19 11:19:40 +0800 )edit

SEVERE: Unknown element: max-upload-size, at [SYS jndi:/localhost/PATS/WEB-INF/zk.xml line 18 col 19] May 21, 2015 11:04:11 AM org.zkoss.zkex.init.WebAppInit init:29 WARNING: This is an evaluation copy of ZK EE and will terminate after sixty days from the first date of installation. Should you requi

PKSingh ( 2015-05-21 07:28:29 +0800 )edit

<?xml version="1.0" encoding="UTF-8"?> is there any need to change version in zk.xml file i have given the version related code in the xml.

PKSingh ( 2015-05-22 08:09:37 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-05-19 11:53:42 +0800

Darksu gravatar image Darksu
1991 1 4

Hello PKSingh,

The best thing to do is to review again your code based on a good example as shown below:

http://www.zkoss.org/zkdemo/getting_started/mvvm

Most probably you have not set correctly the init.

i.e @init('demo.getting_started.mvvm.SearchViewModel')

If you still have problems, please post your code and any log files available.

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2015-05-21 09:51:23 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Your fault is actually because you have a fault in zk.xml.

The max-upload-size is set wrong.

Normally this should be like this :

<zk>
    ...
    <system-config>
       ...
       <max-upload-size>5120</max-upload-size>
    </system-config>
</zk>

Check if it's under the correct tag, the system-config.

Greetz chill.

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: 2015-05-19 10:52:07 +0800

Seen: 16 times

Last updated: May 21 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More