# Problem Getting Any Code to Work

**URL:** <https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [November 29, 2005, 3:59am UTC](https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095 "2005-11-29T03:59:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronak](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Ronak](https://techcommunity.softwareag.com/u/Ronak)\
**Post date:** [November 29, 2005, 3:59am UTC](https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095/1 "2005-11-29T03:59:02Z")

</div>

Hello,

I’m evaluating the CAI for use and I ran into several problems.

My environment is Windows XP/I.E. 6.0 with Tomcat 5.5/J2SE 1.5.

I created a Layout with no components except for the default header, toolbar, body, and statusbar components.

I followed the directions in the development guide.

When I preview the page in the preview pane, it works fine.

However, IE complains about a Javascript error when I try to view the page. The error is “C is null or not an object.”

What is going on in CAI? Did I forget to set something or what?

---

<div class="post-metadata">

**Author:** ![Javier\_Gallego](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/javier_gallego/32/77_2.png) [@Javier\_Gallego](https://techcommunity.softwareag.com/u/Javier_Gallego)\
**Post date:** [November 29, 2005, 5:54pm UTC](https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095/2 "2005-11-29T17:54:29Z")

</div>

Hi  
which version of CAI are you using?  
What do you mean by “view” the page? Do you mean that you published the page and then accessed it as described in the documentation (…/servlet/StartCISPage?PAGEURL…)?

Have you tried to clean the cache of your IE and view the page afterwards?

Regards,  
Javier

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [November 29, 2005, 5:55pm UTC](https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095/3 "2005-11-29T17:55:16Z")

</div>

Please start the page not by directly opening the page via URL but by calling the URL:

[http://HOST](http://HOST):PORT/WEBAPP/servlet/StartCISPage?PAGEURL=/PROJECT/PAGE.html

Example:  
[http://localhost:51010/cis/servlet/StartCISPage?PAGEURL=/cisyourfirstproject/helloworld.html](http://localhost:51010/cis/servlet/StartCISPage?PAGEURL=/cisyourfirstproject/helloworld.html)

Please do not forget to publish your page inside Layout Editor prior to viewing it outside the Layout Editor. (“Publish” is right from “Preview” icon).

I hope, this helps… Bjoern

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [November 29, 2005, 6:04pm UTC](https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095/4 "2005-11-29T18:04:15Z")

</div>

…oops, there was an “error” in my previous posting: the example URL was pointing to port 51010 - the default port is 51000 with CAI.

Bjoern

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/problem-getting-any-code-to-work/57095/5 "2021-04-02T14:38:24Z")

</div>


