[Openroad-users] Class not found in Application/Image Problem

Paul White pwhite at peerlessit.com.au
Wed Apr 30 23:15:42 EST 2008


Hi Jonathan

You wrote
>> There are no complilation errors in the application that uses the
image
So you hint that there are compile errors elsewhere in the build.
(perhaps the previous application?) OR41sp3 is less forgiving with
compile errors than SP2.   Also I think some compile time restrictions
are not picked up when you are just building an image.

In the past, I made it a rule to force compile clean without errors. I
sometimes found different errors at compile time than when building an
image. I remember an old bug where not all components were picked up
during the compile stage. Check the modification dates of all components
in the app immediately after the compile.   


>> Fetching abmrolloverjobcla from database . . . done.
This doesn't say the component was compiled.  Did you build with the
force Compile switch?



Here's some other suggestions for investigation.

Check the patch level are you on.  You didn't mention if the runtime was
under the same patch as the build environment. This is absolutely
critical.

Check the output of the runtime w4gl.log with -Tall turned on. Look for
doubled up references to ActiveX objects. They can cause problems later
on. Compare the output to when you are running via workbench.

What command line options are you using to build?  I've found compiling
and building applications outside of workbench sometimes to behave
differently than building within workbench - even with the background
switch turned on.

Is ABMeetingRolloverControlFm in the same application as
abmrolloverjobcla or in an included application? 
Where are these components in relationship to each other in the include
tree?
Do you build separate images for included apps or just one.
Do you override the include tree when building the app?
Is the reference to abmrolloverjobcla  qualified by the appname. Eg
appname!abmrolloverjobcla.
Are there copies of these components in any other application in the
image?

Can you check the output of queryimage for the working image compared to
a broken image


Paul




-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Jonathan
Barton
Sent: Wednesday, 30 April 2008 8:56 PM
To: International OpenROAD Users
Subject: Re: [Openroad-users] Class not found in Application/Image
Problem

Hi

There are no complilation errors in the application that uses the image
or the class itself.
In fact the build log says:

Fetching abmrolloverjobcla from database . . . done.
...
Writing abmrolloverjobcla to M:\UWEApps\Isis2\Bin\BusinessObjects.img .
. . done (1 of 634).
...
The image file M:\UWEApps\Isis2\Bin\BusinessObjects.img has been built
successfully.

When we run the application we get this in the w4gl.log:

E_WT0029 Error at line 52 of ABMeetingRolloverControlFm.

E_WT0044 Object abmrolloverjobcla is not defined for the current
    application.
     An attempt was made to execute either a frame or procedure that is
not
    a component of the current application.  The component must either
be
    created, or if it's in another application already, that application
    must be included with the current application.

There can't be anything wrong with the class itself as when we add a
dummy class (before the problem class alphabetically) the the
application following a re-build works fine. 

Maybe a restart is a way forward, but we build quite frequently - and to
be honest (despite is lack of integrity) I would rather use the dummy
class option. ;-)

Many thanks.

Jonathan



More information about the Openroad-users mailing list