Debugging a Zen class not found.. Error Message

1,048 views
Skip to first unread message

Dawn Wolthuis

unread,
Jul 27, 2011, 4:06:53 PM7/27/11
to InterSystems: Zen Community
We have been getting this error recently and I suspect it has to do with recent changes we have made to our application in getting 2010.2.1 working (likely injecting a bug that causes this), but I haven't tracked it down yet and thought someone else might have seen something like this before. Obviously we looked at Component.menu but we had not changed it at all for this release. So, I trashed it and turned it into this class and get the exact same error, so I don't think it is actually in the menu component. Our new menu component is:

Class Component.menu Extends %ZEN.Component.menu [ Language = mvbasic ]
{

Parameter NAMESPACE = "<<our usual namespace here>>>";

XData Style
{
<style type="text/css">
</style>
}

}

-------------First message we get---------------

Zen class not found Component_menu

---------------Then this is the next pop-up---------------

ZEN EXCEPTION

A JavaScript exception was caught in function zenCreatePageModel
TypeError: o is undefined
====================================
Error building ZEN Page Model.
====================================
Stack trace:
js:zenExceptionHandler(TypeError: o is undefined,[object Arguments],Error building ZEN Page Model.)
js:zenCreatePageModel()
js:zenInitWindow([object Window])
js:zenPageEventHandler(onload)
js:function ([object Event])

---------------Then the one after that is-----------------
ZEN ERROR:
zenPage object is missing or invalid for this page

--
Dawn M. Wolthuis

Take and give some delight today

Neerav Verma

unread,
Jul 27, 2011, 4:27:47 PM7/27/11
to intersys...@googlegroups.com
may be something to do with the namespace
how about trying to change that and re-compling etc


--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions



--
Neerav Verma
http://www.linkedin.com/in/vneerav
"There is only one success--to be able to spend your life in your own way"

Jay Ayliff

unread,
Sep 22, 2014, 10:28:40 AM9/22/14
to intersys...@googlegroups.com, InterSys...@googlegroups.com
Hi Dawn and Neerav,

Did you ever arrive at a solution to this? I have exactly the same problem.

Regards

Jay Ayliff

Dawn Wolthuis

unread,
Sep 22, 2014, 10:35:35 AM9/22/14
to InterSystems: Zen Community
I see my most recent response on this thread and think that was the way to resolve it -- delete the generated .js files in the namespace and recompile to get them back. I have not worked with Zen for a couple of years, however, so others here might know more.  Best  --dawn

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
---
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to intersystems-z...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

peter cooper

unread,
Sep 22, 2014, 4:07:17 PM9/22/14
to intersys...@googlegroups.com

Hi Jay

 

This could be caused by the global ^ZEN.IncludeDir being incorrect for your machine

When custom components are compiled support files (js and css) are written to the location defined by ^ZEN.IncludeDir

It needs to match the directory as defined in Management Portal for that CSP/ZEN app

If it’s pointing to somewhere else the files are missing and the page will blow up.

 

Peter

--

Jay Ayliff

unread,
Oct 20, 2014, 3:27:33 PM10/20/14
to intersys...@googlegroups.com, InterSys...@googlegroups.com
Hi Peter,

I've been working on my local machine on which I can't find a global by that name. I just checked on the Dev server and the global is present but I don't have the OS permissions to check it is set right.

I've also noticed problems compiling the code on the dev server since I started adding compound and custom components, could this be the same problem?

Best regards

Jay Ayliff

Dinesh Kumar

unread,
Jun 17, 2016, 2:54:23 AM6/17/16
to InterSystems: Zen Community, InterSys...@googlegroups.com
Hello All,

             I also has the same problem(zen class not found).If you found the solution means please suggest me .

Thanks,
Dinesh
Reply all
Reply to author
Forward
0 new messages