facebook

Inconsistent behaviour between compiletime and runtime

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #276607 Reply

    Oluf Jensen
    Member

    An abstract class cointains the following variables:

    private Long sporsmalid;
    private Long indeksid;
    private String sporsmalTekst;
    private String kortversjonTekst;
    private String notes;
    private Integer showNotes;
    private Integer questionNumber;
    protected List questionareLine;
    protected List questionares;
    protected List answerLine;
    protected List answers;
    protected List subjectLine;
    protected List subjects;
    protected Integer noofAnswers = null;
    protected int noofSvar = 0;

    And I then make the follwing change:

    protected UISelectItems answerScale = null;

    and add the necessary getter and setter methods.
    This compiles ok, and I can call the setter and getter methods in a concrete subclass. However, when I run the web application using JBOSS as application server, and try to call the setter method for answerScale, the application fails.
    On a breakbpoint just prior to the call to the setter method, the class does not contain the new added variable: UISelectItems answerScale
    It is as though the system is running on the “old” version of this class.
    Any suggestion to explain this strange behaviour will be helpful.

    #276637

    Loyal Water
    Member

    Hi ojn,
    Can you paste some more information about this project. Also, can you paste your installation details here for me. The posting guideline thread is available at the top of the forum.

    #276740

    Oluf Jensen
    Member

    @support-nipun wrote:

    Hi ojn,
    Can you paste some more information about this project. Also, can you paste your installation details here for me. The posting guideline thread is available at the top of the forum.

    Hi Nipon
    Sorry for this late reply.
    Here is my installation details:

    *** Date: Wed Oct 10 08:02:08 CEST 2007

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 Milestone 2
    Build id: 20060703-5.0-M2

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Programfiler\eclipse32\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    8c4_84
    -vm
    C:\WINDOWS\system32\javaw.exe

    I am not sure what other project details you need. It is a project being developed for the internet, and we use the JSF and Spring frameworks. For JSF we use the myfaces libraries. (myfaces-api-1.1.5, myfaces-impl-1.1.5 and, myfaces), as well as tomahawk-1.1.5.
    For Spring we use the 1.2 version.
    I have not tested it, but I suspect that I could make a new clean workspace, create a project in that workspace, and import the classes I have described, then make the changes, and I would get the same kind of behaviour:
    It compiles ok. but when executed, the new variable in the class is not visible, – it is just not there?!!
    I appreciate any effort to try and find an explaination to such behaviour.
    Best regard,
    ojn

    #276772

    Loyal Water
    Member

    If your deploying a packaged deployment and forgetting to redeploy to update it, that would explain why the old version keeps running. Can you make sure your deployment is an exploded deployment.

    #276789

    Oluf Jensen
    Member

    Hi Nipun
    Thanks for your reply.
    However, this project has always been deployed in exploded format. I have also made sure to remove the old deployment before a new deployment, when such errors occur.
    In addition I have also removed the jboss.web catalog before restarting jboss.
    Best regards,
    ojn

    #276830

    Loyal Water
    Member

    ojn,
    Can you try testing your deployment with the MyEclipse Tomcat server. This would give us an idea on where the problem lies.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Inconsistent behaviour between compiletime and runtime

You must be logged in to post in the forum log in