This Question is Answered

15 "helpful" answers available (3 pts)
6 Replies Last post: Apr 24, 2008 7:46 AM by cbarber

curl website problem - occ example not nitro ready.

Apr 22, 2008 1:27 PM

Click to view friedger's profile MVP friedger 108 posts since
Jan 13, 2008

Hi,

I just wanted to try out the occ example http://www.curl.com/developers/occ2/app1.curl

Curl 7 (Nitro) did not start as the header does not contain the 7.0. Please update the header.


The header of the applet today: {curl 6.0, 5.0, 4.0, 3.0.4+ applet}

Interestingly, Curl 3.0.6+ tried to execute the applet even though I have installed newer versions. See below for my settings from the Curl Control Panel:

Curl® Runtime Environment
Build: 7.0.0 beta kendall/0-18
Supported API Versions: 7.0.0, 6.0.1, 5.0.2, 4.0.4, 3.0.6, 2.0.8, 1.7.2
Debuggable API Versions: 7.0, 6.0, 5.0, 4.0, 3.0

Why does Curl 3 start, not Curl 6?

Friedger

Click to view Duke's profile Curl Duke 155 posts since
Oct 17, 2007
1. Re: curl website problem - occ example not nitro ready. Apr 22, 2008 2:38 PM
Hi Friedger. I think I had the same thing happen to me with an old 3.0 version of that applet. It was a little confusing at first, but then I realized that what happened was that the last time I had run it had been a long time ago, and it was the 3.0 version that had been installed on my local disk. I had clicked on the curl://occ/ link that is in the documentation, and that had started the locally installed file: version since it had previously been installed. Once the 3.0 version runs, it will check to update the contents, and then the next time you run the link curl://occ/http://www.curl.com/developers/occ2/app1.curl it will run the updated sources. So with your current installed versions and the example's current header, it would run using the 6.0 RTE.

If you go to the Curl Control Panel debugger panel (if you have the IDE), then there is the option "to run 6.0 applets under the current API", and that would let the app1.curl example run as a 7.0 applet. We are also busy getting a few other Nitro demos ready. That app1.curl linked from the OCC documentation that comes with the IDE certainly is not visually interesting, but it does illuminate a few things about the API.
Click to view friedger's profile MVP friedger 108 posts since
Jan 13, 2008
2. Re: curl website problem - occ example not nitro ready. Apr 22, 2008 3:01 PM
in response to: Duke

After I forced the browser to reload the url http://www.curl.com/developers/occ2/app1.curl it worked for me.

However, the applet (without curl://occ prefix) dies unexpectedly if the option to "run 6.0 using 7.0 " is switched on.

Friedger

Click to view Duke's profile Curl Duke 155 posts since
Oct 17, 2007
3. Re: curl website problem - occ example not nitro ready. Apr 22, 2008 3:21 PM
in response to: friedger
Which browser are you using? I notice that if I browse to the http://www.curl.com/developers/occ2/app1.curl location using Firefox and IE is my default browser, then the Firefox window is left with a dead applet because the local file: copy of the applet is relaunched in the default IE browser.

Or it could be that there is some network error during the applet checking for updates. I think we have some known bugs in the Nitro beta about not handling network errors at some points in that updating and loading process.

There is also some other bug in the current beta with Firefox. I think we will be updating the posted beta this week to fix that problem.
Click to view friedger's profile MVP friedger 108 posts since
Jan 13, 2008
4. Re: curl website problem - occ example not nitro ready. Apr 22, 2008 3:32 PM
in response to: Duke

I am using Firefox and IE is the default when starting a Curl applet.

I don't see a IE being launched.

It is reproducable every time.


Let me know if you need more details.

Friedger

Click to view friedger's profile MVP friedger 108 posts since
Jan 13, 2008
5. Re: curl website problem - occ example not nitro ready. Apr 24, 2008 1:56 AM
in response to: friedger

When I start the demo at http://www.curl.com/demos/OrderEntry/start.curl with option "use current API for curl 6.0" I get the following exception:

<Error> - An error occurred while loading this applet.
AmbiguousNameError: http://www.curl.com/demos/OrderEntry/view/ctContentFrame.scurl:946: 'COM.CURL.ORDER-ENTRY.VIEW.SkinnableFrame' is ambiguous: it is implicitly imported from both 'COM.CURL.GUI.STYLED-CONTROLS' and 'CURL.GUI.STANDARD'.

Is it me or a problem with a cached package?

Friedger

Click to view cbarber's profile Curl cbarber 115 posts since
Sep 27, 2007
6. Re: curl website problem - occ example not nitro ready. Apr 24, 2008 7:46 AM
in response to: friedger

The "run as previous version" feature is not guaranteed to work for all content. It is really intended as a way for developers to quickly try out their code under a new API without having to change all their version heralds. That is why we put it in the Debugger pane of the Control Panel, which is only available when you have installed the IDE. In this particular case, the problem is that SkinnableFrame was initially implemented for 6.0 in an external package outside of the RTE. That is what the demo is using. In 7.0, we have moved the skinnable control classes directly into the RTE packages, so when you run this using 7.0 instead of 6.0, the applet finds both versions of the class and doesn't know which one to use since they were both imported using 'import *'.

We have already updated many of our demos to run under 7.0, but just have not gotten around to that one yet.