How to setup application with multiuser

asked 2011-04-20 23:17:31 +0800

rqabonk gravatar image rqabonk


my name is rqabonk, i have a problem with multiuser... my application cannot run if some user join to used.
can anybody help me to explain how to fix it....


delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2011-04-21 03:34:17 +0800

mjablonski gravatar image mjablonski
1284 3 5

Sounds like you've used a shared component in your code. Maybe you did declare a field referencing a ZK-component as static. If so, remove the static qualifier.

Cheers, Maik

link publish delete flag offensive edit

answered 2011-04-21 05:05:50 +0800

rqabonk gravatar image rqabonk


tq so much for your explanation... but when i saw my source code, i don't found anything about decaration static component.
i use PE license, maybe i have to upgrade to EE License... what do u think?

the problem is... if anyone join my application... there is an error message.... then old user cannot access the current application...

thx maik...

cheers, rqabonk

link publish delete flag offensive edit

answered 2011-04-21 07:19:57 +0800

mjablonski gravatar image mjablonski
1284 3 5

It's not related to which edition you use. CE, PE or EE are working fine for multi-user applications.

Can you try to build and post an simple example which shows the problem?

Cheers, Maik

link publish delete flag offensive edit

answered 2011-04-24 21:39:25 +0800

rqabonk gravatar image rqabonk


sory, maybe my explanation not spesific, the error message like this "cannot access component by another desktop"....
the error message show up when another user access the same application...



link publish delete flag offensive edit

answered 2011-04-24 23:38:45 +0800

paganekoso gravatar image paganekoso

Same my problem.


<borderlayout id="main" apply="com.zkdesktop.web.MainLayoutComposer" width="100%" height="100%">
	<north border="0" flex="true" margins="0,0,0,0"><label>Header</label></north>
	<center id="mainContent" autoscroll="true" border="normal" flex="true" margins="0,0,0,0"></center>
	<south border="0" flex="true" margins="0,0,0,0"><label>Footer</label> </south>


public class MainLayoutComposer extends GenericForwardComposer {

	public void doAfterCompose(Component comp) throws Exception {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("url", "main");
		ZKPageUtil.sendRedirectURL("/pages/main.zul", params);



public class ZKPageUtil {


	public static void setComponent(Component component) {
		ZKPageUtil.component = component;

	public static void sendRedirectURL(String filename, Map<String, Object> params) {
		String bookmark = (String) params.get("url");
		try {
			if(component != null) {
				final Center mainContent = (Center) component.getRoot().getFellow("mainContent");
				Executions.createComponents(filename, mainContent, params);
		} catch (Exception e) {
			_log.warn(e.getMessage(), e);


This show error message: "You don't access components to another desktop". Maybe you know what is this problem...


link publish delete flag offensive edit

answered 2011-04-25 05:35:42 +0800

dennis gravatar image dennis
3669 1 6

updated 2011-04-25 05:37:00 +0800

you should not store component in static way, (precisely , you should not store any non-application scope object in static way in j2ee application)
why did you do this?

link publish delete flag offensive edit
Your reply
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




Asked: 2011-04-20 23:17:31 +0800

Seen: 303 times

Last updated: Apr 25 '11

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