Workshop hangs in classes inherited fromPageFlowController

hi group
i have a really strange problem which seems to be project specific. i already recreated the project several times, re-installed workshop, switched/created new workspace, disabled autonomy services and validation...
when i edit a file containing a class inherited from PageFlowController, the whole workshop hangs periodically for several seconds. it's not possible to work anymore, when I type, it displays max. 10 characters and then the system hangs for about 10 seconds. i suspect it could be some kind of encoding stuff because i once saw a message about encoding cant be saved, but now i dont have that message anymore and it still freezes. one other thing could be the "updating property editor" which appears shortly before the freeze, but i am not sure about that...
any ideas ?
best wishes
-ToM-

hi group
i have a really strange problem which seems to be project specific. i already recreated the project several times, re-installed workshop, switched/created new workspace, disabled autonomy services and validation...
when i edit a file containing a class inherited from PageFlowController, the whole workshop hangs periodically for several seconds. it's not possible to work anymore, when I type, it displays max. 10 characters and then the system hangs for about 10 seconds. i suspect it could be some kind of encoding stuff because i once saw a message about encoding cant be saved, but now i dont have that message anymore and it still freezes. one other thing could be the "updating property editor" which appears shortly before the freeze, but i am not sure about that...
any ideas ?
best wishes
-ToM-

Similar Messages

  • RE: Partition workshop hangs

    Sounds ugly. Couple of thoughts.
    I assume you've created a test harness to load seperate partitions to ensure
    the basics are working?
    Check it out on fscript ( findproj badname, removeconf, findact, partition 0
    , showplan ). Maybe showplan
    will identify a hole in your repository.
    If you have multiple services in seperate partitions, try swapping in dummy
    noop classes for each. Could
    be you have a failed autostart plan you didn't expect.
    If that all fails, use the test harness to preload ftexec partitions in your
    environment and crank up the
    Trace flags on them and leaf through the output...
    trc:c4:5:5 info mssgs
    trc:c4:9:10 Traces all notifications sent
    trc:do:10-11 Partition manager( 10 for header, 11 for partition
    detail)
    Good luck
    -----Original Message-----
    From: [email protected]
    [SMTP:[email protected]]
    Sent: Monday, April 12, 1999 9:50 AM
    To: [email protected]
    Subject: Partition workshop hangs
    I posted this problem a couple of months ago & then didn't really have
    time to look into it, so I'm posting it again. A couple of months ago we
    started having problems running applications from the partition workshop.
    Sometime they work & sometimes they don't & there isn't any repeatable
    pattern that happened when they do work??
    Once you get into the partition workshop & click the running man, it
    churns for awhile & then we get a "loading partition into server" message
    & then it goes off into no mans land. If I look at the task manager on the
    client that's trying to run it, the ftexec isn't even getting cpu cycles,
    although it starts out getting cycles, & then all of a sudden, it just
    stops?? When I try to start Econsole to see what's happening, it won't
    even come up?? IF it does run, I can exit out, shutdown the partition
    workshop, go right back into the partition workshop, click the running man
    & this time, it doesn't run!! No errors are generated either. Once it
    "goes into no mans land", the only way to stop it is to do an "end task"
    from task manager. A cancel run from the workshop doesn't even work?
    I've played around with increasing the memory settings on the ftexec that
    starts when you start Forte Distributed, I've tried different workspaces,
    some with a shadow, others without. I've even tried uninstalling &
    reloading Forte on the machine, all to no avail. We're running NT 4.0
    clients, Forte 3.0.J.1, Digital Unix 4.0.D .
    Does anybody have any ideas or suggestions on what to do/try?? Any help
    would be greatly appreciated!!
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    Try to increase the FORTE_STACK_SIZE. I think the recommended setting for
    Digital UNIX is 60000 which is about 60k per thread.
    I encountered similar problem before on connecting to Ingres. The problem
    may be that the default is too low, so on some library calls, the thread
    just hangs. You will encounter the same problem again when trying
    distributed run because the same ftexec is being used. Sometime it works
    because maybe by chance your run fall into another ftexec.
    I handle such situation by browsing into the ftexec using Econsole or
    escript. If Econsole/escript can't get into it, that means the ftexec run
    away or hanged. I will kill -9 the ftexec and try distributed run again.
    Best regards,
    Peter Sham.
    -----Original Message-----
    From: [email protected]
    [SMTP:[email protected]]
    Sent: Monday, April 12, 1999 9:50 PM
    To: [email protected]
    Subject: Partition workshop hangs
    I posted this problem a couple of months ago & then didn't
    really have time to look into it, so I'm posting it again. A couple of
    months ago we started having problems running applications from the
    partition workshop. Sometime they work & sometimes they don't & there isn't
    any repeatable pattern that happened when they do work??
    Once you get into the partition workshop & click the running
    man, it churns for awhile & then we get a "loading partition into server"
    message & then it goes off into no mans land. If I look at the task manager
    on the client that's trying to run it, the ftexec isn't even getting cpu
    cycles, although it starts out getting cycles, & then all of a sudden, it
    just stops?? When I try to start Econsole to see what's happening, it won't
    even come up?? IF it does run, I can exit out, shutdown the partition
    workshop, go right back into the partition workshop, click the running man &
    this time, it doesn't run!! No errors are generated either. Once it "goes
    into no mans land", the only way to stop it is to do an "end task" from task
    manager. A cancel run from the workshop doesn't even work?
    I've played around with increasing the memory settings on
    the ftexec that starts when you start Forte Distributed, I've tried
    different workspaces, some with a shadow, others without. I've even tried
    uninstalling & reloading Forte on the machine, all to no avail. We're
    running NT 4.0 clients, Forte 3.0.J.1, Digital Unix 4.0.D .
    Does anybody have any ideas or suggestions on what to
    do/try?? Any help would be greatly appreciated!!
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected]
    <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Migrating from eVC++4.0 to VS2008: Menu Bar not coming for class inherited from CProterty sheet

    We are migrating code developed in eVC++4.0 to Visual Studio 2008. We are facing a Problem as descripted below. We are using Pocket PC 2003 emulator.
    We are creating a class inherited from CPropertySheet. As below:
    In Header File:
    class COptionsSheet :
    public CPropertySheet
          DECLARE_DYNAMIC(COptionsSheet)
    #if(WINVER == 0x400)// This works for MenuBAr inherited from CDialog classes.
          CCommandBar m_cb;
    #else
          CCeCommandBar m_cb;
    #endif
    public:
    virtual BOOL OnInitDialog();
    We are drawing menu bar on the property window as below:
    In .CPP file:
    IMPLEMENT_DYNAMIC(COrderSheet, CPropertySheet)
    BEGIN_MESSAGE_MAP(COrderSheet, CPropertySheet)
    ON_COMMAND(ID_CUSTOMER_COLLECTPAYMENT, OnCustomerCollectpayment)
    ON_WM_INITMENUPOPUP()
    ON_NOTIFY(GN_CONTEXTMENU, 0, OnContextMenu)
    END_MESSAGE_MAP()
    BOOL COrderSheet::OnInitDialog()
    BOOL bResult = CPropertySheet::OnInitDialog();
    m_cb.Create(this);//This we have changed for VS 2008 as menu was not appearing for class inherited from CDialog class as well. In eVC++
    4.0 code we have used. Please see m_cb in header file discription
    m_cb.InsertMenuBar(IDR_ORDER1);// This calis unable to draw mwnu bar
    CMenu *pMenu = CWnd::GetMenu();
    //pMenu becomes NULL in very next line as we are passing it as parameter below.
    gPromotion.LoadSalesPromotions(pMenu,
    "Sales", SRC_TRACE_START);
    We tried this as well but it’s also not working:
    CMenu *pMenu = new CMenu;
          BOOL cehckStatus = pMenu->LoadMenu(IDR_ORDER1);
    SetMenu(pMenu);
          CRect r;  GetWindowRect(&r);
          r.bottom += GetSystemMetrics(SM_CYMENU);
          MoveWindow(r);
    Do we have to change or add something more for the menu bar in case of Property Sheet. Is there any change between eVC++ and Visual studio 2008 that we need to incorporate here.

    This forum is for POSReady. Please try one of the Windows CE forums:
    http://social.msdn.microsoft.com/Forums/en-US/category/windowsembeddedcompact
    -Sean
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • Registering event as application event for local class inheriting grid clas

    hello all,
         i have a scenario where i have to use many events as system events and one event as a application event for a local class defined which inherits cl_gui_alv_grid can any one tell me how exactly could  i do it.
    Thanks,
    raju N

    Hello Uwe,
    Each of them- "Dynpro" and "Programs" has 2 entries:
    Dynpro     0100 Müller
                   0200 Harryhirsch
    Programs SAPTROX1
                  SAPTRIXTROX
    How can you say that "Programs" has children and "Dynpros" not?
    Regards,
    Christian

  • Memory managment for classes inheriting from PObject.

    Hey, I have a class that inherits form PObject, and im not sure how to manage the memory for it. In profiles, it shows up as leaks, so im sure im doing something wrong.
    First, how do i figure our what type of PObject it is (Transient or Persistent)
    .typ file looks like this:
    CASE=LOWER
    TYPE ist
    TYPE istt
    table looks like:
    desc ITEM;
    Name Null Type
    .. other types ...
    STAT_ARRAY STAT_VA()
    when inserting in code:
    std::vector<ist*> stats;
    for (...)
    ist* itemStatType = new ist;
    itemStatType->setstat_id(123);
    itemStatType->setstat_value(123);
    stats.push_back(itemStatType);
    static std::string sqlTypeName("STAT_VA");
    setVector(statement, 16, stats, "SCHEMA", sqlTypeName);
    statement->execute()
    and we never delete what we have new'ed, under the assumption that occi has taken ownership.
    If this is not correct, when is the correct time to delete the values? (safely?) After statement->execute() ?
    Edited by: anderse on Dec 15, 2011 8:47 AM

    You probably didn't define draw() with the exactsame
    method signatureBelieve me I did :) This was the first thing I
    checked when I saw this error for the first time...
    Any other suggestions? :)The possibilities that I can think of are (most of these have already been suggested):
    1. you didn't define draw with the correct signature
    2. you're not extending the class you think you're extending
    3. you're not compiling the class you think you're compiling
    4. there's a bug in your compiler
    I'd say 3 is extremely unlikely. So without seeing your code, we can only guess, but I would guess #1.

  • Why isn't the DefaultItemRenderer class inherited from Skin?

    \sdks\4.0.0\frameworks\projects\spark\src\spark\skins\spark\DefaultItemRenderer.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!--- The default skin class for a Spark DefaultItemRenderer class. 
          @langversion 3.0
          @playerversion Flash 10
          @playerversion AIR 1.5
          @productversion Flex 4
    -->
    The DefaultItemRenderer.mxml is skin class for ItemRenderer.cs,but isn't inherited from  skin?

    And to clarify one more thing, we also thought about making item renderers skinnable components (i.e.-ItemRenderer extends SkinnableComponent).  This way, everytime you were changing the look and feel of a component in Spark, you'd be following the exact same pattern.  But after we thought about it some more, that SkinnableComponent-Skinning model didn't really feel right here.
    With a SkinnableComponent we have a clear separation of the component properties and behavior on one side and the look and feel of the component on the Skin side.  Also, there's a clear contract we use to talk back and forth to one another.  The reason for the separation between the Skin and the SkinnableComponent is so that we can have one Button SkinnableComponent and multiple Skins for that Button which all tweak the visual appearance of it.
    It doesn't make sense for every component to be skinnable.  If you know what you're component is going to be and look like and don't need the extra flexibility skinning provides, then you can get rid of the extra overhead that skinning requires (like having 2 classes).
    With an ItemRenderer, we don't really need that separation and extra complexity.  It's really rare for someone to want to create an ItemRenderer component for a particular piece of data and want to have a separate Skin file for that ItemRenderer's look and feel.   For item renderers, the user really wants to create a custom item renderer with any extra behavior and the look and feel of the component all baked in to the same class.  Because of this, when you're creating a custom item renderer, you extend ItemRenderer, like:
    <s:ItemRenderer focusEnabled="false"
        xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
        autoDrawBackground="true">
        <s:Label id="labelDisplay" verticalCenter="0" left="3" right="3" top="6" bottom="4"/>
    </s:ItemRenderer>
    In general, if you want to build a custom component that isn't skinnable, you'd probably just extend Group (similar to our custom item renderer) and bake the child components and look and feel of the custom component right in.  If you want more flexibility and to build a new skinnable component, then you'd extend SkinnableComponent and create a default Skin for its appearance.
    Hope that helps,
    Ryan

  • Partition workshop hang - more info

    I tried something today that seems to have "fixed" this hanging problem.
    We're using the Forte keep alive processing for a couple of lock manager
    partitions that we were having problems with. We have forte_keep_count at 1,
    forte_keep_cycle at 30 & forte_keep_interval at 10. We've had a ton of
    trouble with clients at 1st Trust in St. Paul getting their connections
    terminated by the communications manager since then. I'm not sure if they're
    related or not, but what I did was on my 2nd pc were I haven't been able to
    run from the partition workshop, I turned off the keep alive settings,
    shutdown all ftexecs on the server, restarted my workspace & ran from the
    partition workshop & it fired right up!!! Just to test it again, I shutdown
    my workspace, shutdown all of the ftexecs on the server, turned the keep
    alive stuff back on & tried running from the partition workshop & it went
    off into lala land again!!
    From what we got out of the Forte documentation about the keep aliveprocessing is that BOTH the client & the server partition must have those 3
    keep alive setting turned on for the keep alive processing to be "active".
    My little test seems to indicate that by only having one side set, in this
    case the client, that the keep alive processing is still active?? Is anybody
    using the keep alive stuff?? Am I on the right track?? Any info would be
    greatly appreciated!!
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>

    I tried something today that seems to have "fixed" this hanging problem.
    We're using the Forte keep alive processing for a couple of lock manager
    partitions that we were having problems with. We have forte_keep_count at 1,
    forte_keep_cycle at 30 & forte_keep_interval at 10. We've had a ton of
    trouble with clients at 1st Trust in St. Paul getting their connections
    terminated by the communications manager since then. I'm not sure if they're
    related or not, but what I did was on my 2nd pc were I haven't been able to
    run from the partition workshop, I turned off the keep alive settings,
    shutdown all ftexecs on the server, restarted my workspace & ran from the
    partition workshop & it fired right up!!! Just to test it again, I shutdown
    my workspace, shutdown all of the ftexecs on the server, turned the keep
    alive stuff back on & tried running from the partition workshop & it went
    off into lala land again!!
    From what we got out of the Forte documentation about the keep aliveprocessing is that BOTH the client & the server partition must have those 3
    keep alive setting turned on for the keep alive processing to be "active".
    My little test seems to indicate that by only having one side set, in this
    case the client, that the keep alive processing is still active?? Is anybody
    using the keep alive stuff?? Am I on the right track?? Any info would be
    greatly appreciated!!
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>

  • Class inheritance issues!

    Hello,
    I have this code working on one computer but it won't work on another.
    // - CPoint class
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CPoint extends Object
       public double dX, dY, dHeight, dZ;
       public CPoint( double dNewX, double dNewY, double dNewHeight, double dNewZ )
          //Store coordinate values
          dX = dNewX;
          dY = dNewY;
          dHeight = dNewHeight;
          dZ = dNewZ;
    }this class compiles perfectly. However when I then compile this...
    // - PLine class
    public class PLine extends Object
       public CPoint cpoint[];
       public NewFile3 nFile3;
       double dX, dY, dHeight, dAngle, dZ;
       public PLine(String sNewzoneName, String sNewfileName, double dNewLLx, double dNewLLy, double dNewLLz)
         try
            //Call FileRead2 class
            nFile3 = new NewFile3(sNewzoneName, sNewfileName);
         catch (Exception exception)
            exception.printStackTrace();
         //Create array to store CPoint objects
         cpoint = new CPoint[nFile3.npCounter];
         dHeight = nFile3.dH + dNewLLz;
         dZ = dNewLLz;
         dAngle = nFile3.dAngle;
         for( int t=0; t<cpoint.length; t++)
            //Obtain values from FileRead2
            dX = nFile3.Points[t][0] + nFile3.dlX + dNewLLx;
            dY = nFile3.Points[t][1] + nFile3.dlY + dNewLLy;
            //Create an array of CPoint objects
            cpoint[t] = new CPoint( dX, dY, dHeight, dZ );
    }I get, amongst others, the following error...
    ".....C:\Documents and Settings\WalterOG\Desktop\New Folder\PLine.java:11: cannot resolve symbol
    symbol : class CPoint
    location: class PLine
    public CPoint cpoint[];
    It doesn't make sense because the software I'm using on both computers is the same except there maybe a newer version of Java on the machine that is giving the error???
    One other question, does Visual Studio 6 support swing? I'm not even using VS but I was just wondering??
    Anyone got any ideas??
    Cheers,
    wALLY!

    It would appear that you didn't put either class in a package. You will have to be careful that the compiler expects all your classes to be in the anonymous package. Are you using the javac command line compiler or some development environment to try to compile your code? The development environment may assume that your classes are supposed to be in some package, based on the directory path they are located under, and on your current project's properties in the IDE.
    If you are using javac, then you need to invoke it from the same directory that the .java files are located in. You can't, for instance, say "javac myDirectory" from the directory above where the source files are stored. In that case, javac would assume that your classes were in a package called "myDirectory" but they aren't so it wouldn't be able to find them.

  • Question about Abstract Classes and Class Inheritance

    The semester is winding down, and the assignments are getting more complicated....
    Prof has given us a project involving both an interface and an abstract class. There's a class Person, then an abstract class Employee that extends Person, and two types of Employees (Hourly and Salaried) that extend Employee. The finished assignment is a type of payroll program that's supposed to be able to store both types of Employees and related info (name, salary, etc). One thing the prof suggested was to store both HourlyEmployees and SalariedEmployees in an array of Employees. But you can't instantiate an array of Employees directly, of course, since it's an abstract class.
    So is it possible to create an array of Persons, cast either HourlyEmployees or SalariedEmployees into Employee objects, and then store the Employee objects in the Person array? And if I do that, can I still use methods particular to the SalariedEmployees and/or HourlyEmployees once they are in the Person array? Or can I store SalariedEmployee and HourlyEmployee directly in an array of Persons, without having to cast them into anything else? (In that case, I'm not sure what the point of having the abstract Employee class is, though). Do they become just generic "Persons" if I do this?
    Thanks for any help!

    But you
    can't instantiate an array of Employees directly, of
    course, since it's an abstract class.Sure you can. You just can't instantiate Employee (the abstact class itself, as opposed to its subclasses) objects.
    Employee[] employees = new Employee[20];
    employees[0] = new HourlyEmployee();That should work.
    So is it possible to create an array of Persons, cast
    either HourlyEmployees or SalariedEmployees into
    Employee objects, and then store the Employee objects
    in the Person array?You could do that as well, but you shouldn't need to cast it.
    Given the type hierarchy you describe, an HourlyEmployee is a Person, so you should be able to assign an HourlyEmployee directly to a Person-valued variable.
    And if I do that, can I still use
    methods particular to the SalariedEmployees and/or
    HourlyEmployees once they are in the Person array?No. If the method doesn't exist in Person, then you can't call it on a Person variable, even if the method does exist in the class implementing Person.
    But if the method exists in Person, but is implemented and possibly overridden in HourlyEmployee, you can still invoke it, by just invoking the Person method.
    public interface Person {
      public void feed();
    public abstract class Employee implements Person {
      public abstract void hire();
    public class HourlyEmployee extends Employee {
    // then:
    Person persons = new Person[20];
    // add HourlyEmployees or SalariedEmployees to persons array...
    persons[0].feed(); // OK!
    persons[0].hire(); // NOT OK!

  • Partition workshop hangs

    I posted this problem a couple of months ago & then didn't really have time
    to look into it, so I'm posting it again. A couple of months ago we started
    having problems running applications from the partition workshop. Sometime
    they work & sometimes they don't & there isn't any repeatable pattern that
    happened when they do work??
    Once you get into the partition workshop & click the running man, it churns
    for awhile & then we get a "loading partition into server" message & then it
    goes off into no mans land. If I look at the task manager on the client
    that's trying to run it, the ftexec isn't even getting cpu cycles, although
    it starts out getting cycles, & then all of a sudden, it just stops?? When I
    try to start Econsole to see what's happening, it won't even come up?? IF it
    does run, I can exit out, shutdown the partition workshop, go right back
    into the partition workshop, click the running man & this time, it doesn't
    run!! No errors are generated either. Once it "goes into no mans land", the
    only way to stop it is to do an "end task" from task manager. A cancel run
    from the workshop doesn't even work?
    I've played around with increasing the memory settings on the ftexec that
    starts when you start Forte Distributed, I've tried different workspaces,
    some with a shadow, others without. I've even tried uninstalling & reloading
    Forte on the machine, all to no avail. We're running NT 4.0 clients, Forte
    3.0.J.1, Digital Unix 4.0.D .
    Does anybody have any ideas or suggestions on what to do/try?? Any help
    would be greatly appreciated!!
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>

    I posted this problem a couple of months ago & then didn't really have time
    to look into it, so I'm posting it again. A couple of months ago we started
    having problems running applications from the partition workshop. Sometime
    they work & sometimes they don't & there isn't any repeatable pattern that
    happened when they do work??
    Once you get into the partition workshop & click the running man, it churns
    for awhile & then we get a "loading partition into server" message & then it
    goes off into no mans land. If I look at the task manager on the client
    that's trying to run it, the ftexec isn't even getting cpu cycles, although
    it starts out getting cycles, & then all of a sudden, it just stops?? When I
    try to start Econsole to see what's happening, it won't even come up?? IF it
    does run, I can exit out, shutdown the partition workshop, go right back
    into the partition workshop, click the running man & this time, it doesn't
    run!! No errors are generated either. Once it "goes into no mans land", the
    only way to stop it is to do an "end task" from task manager. A cancel run
    from the workshop doesn't even work?
    I've played around with increasing the memory settings on the ftexec that
    starts when you start Forte Distributed, I've tried different workspaces,
    some with a shadow, others without. I've even tried uninstalling & reloading
    Forte on the machine, all to no avail. We're running NT 4.0 clients, Forte
    3.0.J.1, Digital Unix 4.0.D .
    Does anybody have any ideas or suggestions on what to do/try?? Any help
    would be greatly appreciated!!
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>

  • Need help with class inheritance

    I've got a class called jemAccount and i need to create a savings account class and a checking account class that inherit from it.
    Here is the jemAccount:
    public class jemAccount
    protected String myName;
    protected double myBalance;
    protected double[] withdrawls = new double [50];
    protected double[] deposits = new double [50];
    protected int withIndex = 0;
    protected int depIndex = 0;
    public jemAccount ()
    myBalance = 0;
    public jemAccount (String newName)
    myName = newName;
    myBalance = 0;
    public jemAccount (String newName, double newBal)
    myName = newName;
    myBalance = newBal;
    public void setName(String newName)
    myName = newName;
    public double balance()
    return myBalance;
    public void withdrawl (double amount)
    if (amount < 0)
    myBalance += amount;
    else
    myBalance -= amount;
    if (withIndex < 50)
    withdrawls[withIndex] = amount;
    withIndex++;
    public void deposit (double amount)
    if (amount > 0)
    myBalance += amount;
    if (depIndex < 50)
    deposits[depIndex] = amount;
    depIndex++;
    public void printAccount()
    System.out.println("Owner of account: " + myName);
    System.out.println("Balance of account: " + myBalance);
    System.out.println("Deposits: ");
    for (int i = 0; i < depIndex; i++)
    System.out.println(" " + deposits);
    System.out.println("");
    System.out.println("Withdrawls: ");
    for (int i = 0; i < withIndex; i++)
    System.out.println(" " + withdrawls[i]);
    System.out.println("");
    System.out.println("");
    } // end of class jemAccount
    Here are my requirements for the savings account class:
    � Call the class "abcSaveAccount".
    � Have this class inherit from "jemAccount"
    � Add a float for keeping track of the yearly interest rate of the checking account. Call this class variable "interest" Make it protected.
    � Add a public constructor for the savings account class. It should have one parameter, a float that initializes the new savings account class variable. This constructor should also call the parent class constructor with no arguments.
    � Add a public method for calculating interest. Call it "calcInterest". Have it take one parameter, an integer which represents the number of months to calculate the interest for. This method should return a float, the result of the interest calculation. For example, if 30 months are entered as a parameter of 30, then 2 and one/half years of interest on the balance are calculated and returned.
    Here are the requirements for the checking account class:
    � Call the class "abcCheckAccount"
    � Have this class inherit from "jemAccount"
    � Add an array for keeping track of the checks you write. For now, just make this an array of 100 doubles, very similar to withdrawals
    � Add a public constructor for the checking account class. It should have zero parameters. This constructor should also call the parent class constructor with no arguments.
    � Add a new public method to your checking account class. Call it "writeCheck". This should take one double parameter. If the value of the parameter is positive, subtract the parameter from the balance, and copy the value into the "checks" array. (Keep the checks and withdrawals separate.) Else do nothing.
    � Override the "printAccount" method. Have the checking account "printAccount" run its parent "class printAccount", then print out a list of the checks, after the list of the withdrawals.
    Here's what i have so far for the savings account class:
    public class abcSaveAccount extends jemAccount
    protected float interest;
    public void abcSaveAccount (float newSavings)
    super ();
    public calcInterest (int numberMonths)
    return interest;
    And here's what i have so far for the checking account class:
    public class abcCheckAccount extends jemAccount
    double[] checks = new doulbe[100];
    public abcCheckAccount ()
    super ();
    public writeCheck (double value)
    if (value >= 0)
    balance = balance - value;

    Few changes,
    public class abcCheckAccount extends jemAccount {
         private double[] checks = new double[100];
         private int checkIndex;
         public abcCheckAccount() {
              super ();
              checkIndex=0;
         public void writeCheck (double value) {
              if ( value >= 0) {
                   withdrawl(value);
                   checks[checkIndex++]=value;
         public void printAccount() {
              super.printAccount();
              System.out.println("Checks:");
              for (int i = 0; i < checkIndex; i++) System.out.println("     "+checks[ i ]);
              System.out.println("");
              System.out.println("");
    } // end of abcCheckAccount classand
    public class abcprog {
       public static void main (String args[]) {
              abcCheckAccount check = new abcCheckAccount();
              check.setName("Sudha");
              check.deposit(1000.0);
              check.deposit(200.0);
              check.withdrawl(112.0);
              check.writeCheck(300.0);
              check.printAccount();
              abcSaveAccount save = new abcSaveAccount(6);
              save.setName("Mike");
              save.deposit(1000.0);
              save.withdrawl(112.0);
              save.printAccount();
              System.out.println("Calculated Interest : "+save.calcInterest(120));
    }U can use this program to test your classes.
    Sudha

  • Most VM Threads hang at Class.forName0 and ZipFile.getEntry calls

    I have production Java (1.4) system which runs on Linux (hyperthreading ON, Linux 2.4.21-27.ELsmp #1 SMP). The "top" command consistently shows "VM Thread" to be the highest CPU user. There is no load on the system and the system used to run just fine in past. The dumps consistently show "VM Thread" to be one of the runnable threads. In almost all dumps we have around 50 runnable threads of the 300 odd threads. Most of them are stuck inside native calls to Class.forName0 or ZipFile.getEntry() waiting on a condition (internal VM condition, I presume)
    I think GC is running too often, but I am unable to understand why should it suddenly behave so? Whenever the issue surfaces the dumps are almost replica of one another. Is there anyone who has faced/ solved such an issue with entire dumps almost full of native Class.forName0() calls and ZipFile.getEntry() calls?
    Please help. Any help appreicated.

    Seems to be this Sun Java6 issue
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500212
    (and duplicates) in conjunction with Hibernate's DeserializationHelper.
    Opened Hibernate Bug:
    http://opensource.atlassian.com/projects/hibernate/browse/HHH-2990
    Cheers, Tom.

  • Custom Inherited/Derived Class & the Data Warehouse

    Hi there,
    I'd like to reference an older post by Travis in regards to getting a Custom Class into the Dataware House:
    DW Reporting on Custom Class
    Scenario:
    I've created an Inherited/Derived Class, with its own Form (not an
    Extension).
    This Class Inherits from the Base Incident Class.
    Inherited Class has two (2) new properties (a String and a List Property).
    Class and Form is all working well within the SCSM Console.
    By default, this class is inheriting all the Relationships (like AssignedTo, AffectedUser, CreatedBy, HasConfigItem) from the Base Incident Class without me having to do anything in the mp apart from including the <Reference> & <TypeProjection>
    components.
    To get this class I am aware that it has
    to be defined - as in a new dimension has to be created for this Derived Class.
    Questions:
    1. Is it recommended to have these dimension/s in a separate sealed mp, or include it with the derived Class mp (sealed) - is there a best practice?
    2. Online resources (technet and other) state a dimension has to be created for the new Class <Dimensions>, but do I also need to include <Outriggers> as well as <Facts>
    for this Class?

    In JDeveloper 10.1.2, I configure in adfjclient_binding.xml:
    <controlDefinition name="JTable Ext"
    className="com.lib.swing.JTableExt"
    classPath=""
    shortLabel="JTableExt"
    longLabel="com.lib.swing.JTableExt"
    tooltipText="com.lib.swing.JTableExt"
    bindingType="DCTable"
    icon="/oracle/ideimpl/resource/images/palette/JTable.gif">
    <useTemplate>
    <![CDATA[${FieldName}.setBinding(panelBinding,"${BindingName}","${IteratorBinding.getId()}")]]>
    </useTemplate>
    <imports>
    <![CDATA[javax.swing.JTable;javax.swing.table.TableModel;com.lib.swing.JTableExt]]>
    </imports>
    </controlDefinition>
    and In my projects, I only drag and drop JTableExt into my form, it auto generate code:
    jTableExt1.setBinding(panelBinding, "SubProfileTypeView2", "SubProfileTypeView1Iterator");
    because setBinding function of JTableExt in my library, it contains setmodel function and some other function.
    Now, In JDeveloper 10.1.3, I drag and drop JTableExt into my form and I have to code one line:
    jTableExt1.setBinding(panelBinding, "SubProfileTypeView2", "SubProfileTypeView1Iterator");
    Which way is there, I haven't to code?
    Jacque

  • XML mapping inheritance problem; missing class indicator field

    Hi!
    I am currently working on a project which involves mapping a large domain model on a XSD schema. For this we use Toplink 10.1.3.1 which is mostly great. But now I have a problem while wanting to use class inheritance.
    In my XSD I have the following defined
    <xs:complexType name="Traject">
         <xs:sequence>
              <xs:element name="SoortTraject" type="SoortTraject"/>
         </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SpecialTraject">
         <xs:complexContent>
              <xs:extension base="Traject">
                   <xs:sequence>
                                 [some elements] 
                   </xs:sequence>
              </xs:extension>
         </xs:complexContent>
    </xs:complexType>My XML is an implementation of this XSD and looks like this
    <Trajecten>
            <Traject xsi:type="SpecialTraject">
                     [implementation of the elements]
             </Traject>
    </Trajecten>My domain model corresponts to the XSD, so there is a Traject object and an inherited SpecialTraject object.
    In the mapping I used the Advanced properties->inheritance on both descriptors telling the Traject descriptor that it was the 'Root Parent Descriptor' ('Use class indicator field' -> 'use XML Schema Type attribute', 'Use class indicator dictionary') and the SpecialTraject what it Child Descriptor was ('Traject').
    When I test my mapping it always results in the same error (no matter how I configure this inheritance mapping). It says :
    [TOPLINK-44] missing class indicator field
    Descriptor: XMLDescriptor(Traject --> [])What am I doing wrong? Does anybody know a sollution?
    Best regards,
    Jouke Stoel
    Developer

    This is the changed XML descriptor file. When I deploy the file it automaticly overrides the old file so it ain't possible that I was still using the wrong file
    <toplink:class-indicator-mappings>
        <toplink:class-indicator-mapping>
            <toplink:class>Traject</toplink:class>
            <toplink:class-indicator xsi:type="xsd:string">Traject</toplink:class-indicator>
        </toplink:class-indicator-mapping>
        <toplink:class-indicator-mapping>
            <toplink:class>SpecialTraject</toplink:class>
            <toplink:class-indicator xsi:type="xsd:string">SpecialTraject</toplink:class-indicator>
        </toplink:class-indicator-mapping>
    </toplink:class-indicator-mappings>I have posted the stacktrace but I had to translate a bit because my exception was in Dutch :)
    Locale is a great invention
    Exception [TOPLINK-44] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DescriptorException
    Exception description: Missing class indicator field of database row [UnmarshalRecord()].
    Descriptor: XMLDescriptor(Traject --> [])
         at oracle.toplink.exceptions.DescriptorException.missingClassIndicatorField(DescriptorException.java:887)
         at oracle.toplink.internal.ox.QNameInheritancePolicy.classFromRow(QNameInheritancePolicy.java:84)
         at oracle.toplink.internal.ox.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:13)
         at oracle.toplink.internal.ox.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:62)
         at oracle.toplink.ox.record.UnmarshalRecord.startElement(UnmarshalRecord.java:352)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205)
         at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:189)
         at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:147)
         at oracle.toplink.ox.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:228)
    .

  • About classes and Inheritance

    hi every one,
    i want use class with object in data block and i want know how i can use inheritance with objects.
    becouse i have interview in this two subjects, can any body support my.
    thanks,,,,,,,

    Hello,
    Start Forms Builder, the press F1 to display the online help.
    In the search tab, you can type "Class Property" or "Object Library" to find documentation on those topics:
    About Property Classes A property class is a named object that contains a list of properties and their settings. Once you create a property class you can base other objects on it. An object based on a property class can inherit the setting of any property in the class that makes sense for that object. Property class inheritance is an instance of subclassing. Conceptually, you can consider a property class as a universal subclassing parent. There can be any number of properties in a property class, and the properties in a class can apply to different types of objects. For example, a property class might contain some properties that are common to all types of items, some that apply only to text items, and some that apply only to check boxes. When you base an object on a property class, you have complete control over which properties the object should inherit from the class, and which should be overridden locally. Property classes are separate objects, and, as such, can be copied between modules as needed. Perhaps more importantly, property classes can be subclassed in any number of modules.
    or
    Using the Object Library These topics contain information about using the Object Library in Oracle Forms: About the Object Library Removing an Object from the Object Library Creating a tab in the Object Library Deleting a Tab in the Object Library Saving an Object in the Object Library Opening an Object Library Module Displaying the Object Library Closing the Object Library Commenting Objects in the Object Library
    Francois

Maybe you are looking for