Appidtool Id-Class generation changed ?

Hi,
is it possible that the generation of Id-classes via appidtool changed in
3.1.3 due to adding support for additional primary key fields in
subclasses.
I got an abstract base-class Person. A concrete (non-abstract) PersonId
should be used for all subclasses of Person.
When I run the appidtool from Kodo 3.1.2 the generated PersonId class was
not declared as an abstract class.
Since 3.1.3 the generated PersonId class is declared as an abstract class.
At them moment I have to remove the abstract keyword from PersonId by hand
and then everything runs as before.
Must I use for every subclass of Person an extra concrete/non-abstract
Id-Class ?
Thanks a lot, Matthias
Here is the exception
[java] java.lang.InstantiationError: xxx.yyy.zzz.jdo.business.PersonId
[java] at
xxx.yyy.zzz.jdo.business.Student.jdoNewObjectIdInstance(Student.java)
[java] at
kodo.runtime.PersistenceManagerImpl.makePersistentInternal(PersistenceManagerImpl.java:1934)
[java] at
kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1881)
[java] at
xxx.yyy.zzz.jdo.application.TestCase1.test(TestCase1.java:73)
[java] at
xxx.yyy.zzz.jdo.application.TestCase1.main(TestCase1.java:88)
JDO-Metadata:
<class name="Person" identity-type="application" objectid-class="PersonId">
</class>
Mapping-Metadata:
<class name="Person">
<jdbc-class-map type="horizontal"/>
</class>
Class-Definition:
public abstract class Person{

I forgot to post some additional data.
Mapping-Metadata:
<class name="Person">
<jdbc-class-map type="horizontal"/>
</class>
Class-Definition:
public abstract class Person {
Thank you, Matthias
Matthias K. wrote:
Hi,
is it possible that the generation of Id-classes via appidtool changed in
3.1.3 due to adding support for additional primary key fields in
subclasses.
I got an abstract base-class Person. A concrete (non-abstract) PersonId
should be used for all subclasses of Person.
When I run the appidtool from Kodo 3.1.2 the generated PersonId class was
not declared as an abstract class.
Since 3.1.3 the generated PersonId class is declared as an abstract class.
At them moment I have to remove the abstract keyword from PersonId by hand
and then everything runs as before.
Must I use for every subclass of Person an extra concrete/non-abstract
Id-Class ?
Thanks a lot, Matthias
Here is the exception
[java] java.lang.InstantiationError: xxx.yyy.zzz.jdo.business.PersonId
[java] at
xxx.yyy.zzz.jdo.business.Student.jdoNewObjectIdInstance(Student.java)
[java] at
kodo.runtime.PersistenceManagerImpl.makePersistentInternal(PersistenceManagerImpl.java:1934)
[java] at
kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1881)
[java] at
xxx.yyy.zzz.jdo.application.TestCase1.test(TestCase1.java:73)
[java] at
xxx.yyy.zzz.jdo.application.TestCase1.main(TestCase1.java:88)
JDO-Metadata:
<class name="Person" identity-type="application" objectid-class="PersonId">

Similar Messages

  • Function Modules / Classes to change cProject item

    Hello,
    I'am searching for function modules or classes to change the cProject item.
    Ich want to change some fields in the task of cProject. Can everbody help me?
    Kind regards Axel

    Dear Thomas,
    I've following requirements:
    - Automated Creation of a cFolders folder structure/hierarchy from a structured uploaded from an excel file
      from R/3 ABAP program
    - Search for a particular document in cFolders using R/3 ABAP program
    Would it be possible to do the above tasks using the BAPIs mentioned in your post.
    Thanks.

  • [svn:fx-trunk] 11454: ASyncList class ASDoc change: added explicit warning about the lack of support for re-inserting pending items .

    Revision: 11454
    Author:   [email protected]
    Date:     2009-11-04 18:17:33 -0800 (Wed, 04 Nov 2009)
    Log Message:
    ASyncList class ASDoc change: added explicit warning about the lack of support for re-inserting pending items.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer:
    Tests run:
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/AsyncListView.as

  • Using tie-classed to change name of file uploaded through FTP protocol srvr

    Hi,
    I'm trying to use the extendedPreAddItem (or Post) method in an S_TieFolder class to automatically change the name of a file (an S_PublicObject) when it enters a Folder (via an FTP put upload).
    I'm fiddling around with code like this:
    AttributeValue val = AttributeValue.newAttributeValue(newDocName);
    val.setName(Document.NAME_ATTRIBUTE);
    rightpo.setAttribute(val);
    But it does not work: in the FTP client the filename is indeed changed, but somewhere at lower levels the original filename is still being used...
    Any helpfull ideas would be appreciated.
    TOon

    I'm aware of this... My ftp-client (FTP-Voyager) will prompt me if I "put" a file that already exists in the remote folder, and ask me to go ahead and replace the file, or cancel the put-operation.
    However in this case the ftp-client sees file X' remotely and I'm putting file X, so it does not prompt me at all...
    Stopping and restarting the FTP-client (in case it caches remote folder-contents...) does not change the behaviour.
    Timewise this is what happens:
    1) I put file X.
    2) My S_TieFolder class (extendedPreAddItem) changes it's name into X'.
    3) The ftp-put successfully completes
    4) I refresh the remote folder contents and see the X' name instead of the original X name.
    5) I re-put X (and would now like to have it changed into file X'').
    6) Before my S_TieFolder code executes, something (I'm still suspecting the cm-sdk) deletes the X' file first... ==> the logfile does not show any communication with the ftp-client here now.
    7) Then my S_TieFolder code executes and changes the name into X''.
    8) I refresh the remote folder contents: File X' disappears, file X (just re-put) changes into X''.
    More testing has shown that I'm also not able to delete these files (whose names have been changed by S_TieFolder): 'file does not exist' error.
    I need to know:
    a) If changing the files name on-the-fly using S_Tie class is supported at all.
    and
    b) if so, what am I doing wrong?
    Thanks
    Toon

  • Any FM / CLASS to change/update the Invoice-VBRK-VBELN?

    Hello Experts,
    Pls. let me know that is there any FM / CLASS to change/update the existing Invoice-VBRK-VBELN?
    BECAUSE my requirement is that I need to update/change the field - VBRK-RFBSK ('Status for transfer to accounting') of an existing Invoice in VBRK table/VF03 Tx in the system.
    Thank you

    Hi
    Why do you need to change VBRK-RFBSK, this field indicates if the bill was trasnferd to the accounting
    Max

  • Abap class to change po

    Hi experts,
       I am looking for a abap class/method to change Purchase order.
    thanks in advance.

    Thanks for your reply.
    I am still looking for the class to change PO.

  • What happens if the remote class is changed by using codebase

    Hello,
    I have read http://java.sun.com/j2se/1.3/docs/guide/rmi/codebase.html.
    My question is:
    By using codebase the remote classes can be downloaded to client only one time(first time). If the remote classes is changed at server side, then restarting server, I think the client has on chance to get new version of remote classes, because the old version is already in clocal classpath. Is that right? Has any solution?
    Lixin

    When you change the class, change its codebase.
    That will force the client to use a different ClassLoader for it, thus causing the new version to be used.

  • Class properties change

    Service pack changed the super class properties. Issue is with the subclasses in it which is raising error. I have been doing some research. there are two option either change the class properties manually or raise OSS message. Changing the class properties manually might create complications? I need some opinon

    Hello
    The properties of the class can change in Support Packages due to many reasons, and sometimes they have some logic behind that can go beyond a simple flag.
    My advice is asking SAP to modify the class or, at least, explain why the properties have been changed.
    Regards
    Joaquin

  • Container Classes generation confusion

    I repost it :
    You can run the WebLogic EJB compiler on the JAR file before you deploy the beans,
    or you can let WebLogic Server run the compiler for you at deployment time.
    For a production environment, which are the pros and contras ? (not considering deploy
    time differences on wlserver, of course). Which is the best practice ? Is it suggested
    to release the ear with the container classes already generated (run ejbc before)
    or delegate the generation to weblogic server ?
    Or there aren't any differences ?
    Thanks in advance
    Sergi

    Thanks
    Sergi
    "Dimitri I. Rakitine" <[email protected]> wrote:
    Sergi Vaz <[email protected]> wrote:
    Thanks Dimitri.
    I agree with you.
    In development mode we have our local instances, and we already test thereapp bugs,
    ejbc bugs, and so on.
    The production environment is on another machine, to which we do not haveaccess.
    Besides this (testing), I do not see any other contras.
    Can you confirm it to me pls ?I guess there should not be any difference, assuming that everything works
    Or you suggest however to generate them "before" (even if already testedin development
    environment) ?I think that 7.0 (didn't try it yet) 2-phase deployment will make it safe.
    When will the "Autogenerate build.xml for exploded .ear's" be ready ?:)
    It is - I use it for prototyping. There are few minor changes for 7.0, and
    a few issues
    with EJBGen beans. I'm too busy with my day job now - as soon as I'll have
    some time I'll
    post a working utility.
    Actually, you raised a very good question - properly packaged application
    contains
    all information nesessary not only to deploy it, but also to build it -
    WLS does run ejbc
    automatically, but I think it can be extended. I just love using Resin for
    development - you
    can deploy your web app uncompiled and it will compile all .java classes
    into .class ones and will
    track the changes - if you edit .java file it will recompile it and redeploy
    the application.
    I think this is much more convinient than 'touch'ing 'REDEPLOY' file, or
    copying new .jar's
    to the applications folder.
    Bye
    Sergi
    "Dimitri I. Rakitine" <[email protected]> wrote:
    While this is a neat feature for development, I do not think you want
    to deploy beans in production without knowing that they will ejbc successfully
    and that can fail because of application bugs, ejbc bugs etc etc.
    Sergi Vaz <[email protected]> wrote:
    I repost it :
    You can run the WebLogic EJB compiler on the JAR file before you deploythe beans,
    or you can let WebLogic Server run the compiler for you at deploymenttime.
    For a production environment, which are the pros and contras ? (not
    considering
    deploy
    time differences on wlserver, of course). Which is the best practice
    Is it suggested
    to release the ear with the container classes already generated (run
    ejbc
    before)
    or delegate the generation to weblogic server ?
    Or there aren't any differences ?
    Thanks in advance
    Sergi --
    Dimitri
    Dimitri

  • Class (Priority) change in the background job

    Hi,
    We have a program which will pick up the file from application server and will submit to one more background job by using JOB_SUBMIT. Whenever the automatic background job has submitted from another program, by default it will take the class (priority) as 'C'. Is there any way to change the priority level from C to A throuhg JOB_SUBMIT i.e changing to higher level.
    Please let me know.
    regards,
    Chandra
    null

    (1) Keep in memory that class "A" job must be reserved for system
    (2) Nevertheless
    The class is hard-coded in JOB_OPEN:
    * Jobklasse setzen / NEWFLAG auf 'O'(Open) setzen
    * (der Workflow-Job 'SWWDHEX_' bekommt immer Jobklasse A).
    * Weiterhin bekommt ein spezieller Einplaner immer Jobklasse A
    * wg. der Archivierung auf Datenbankhosts (->F.Hoffmann).
      IF ( JOBNAME EQ 'SWWDHEX' ) OR ( CALLING_ABAP EQ CENTRAL_ADK_ABAP ).
         GLOBAL_JOB-JOBCLASS  = BTC_JOBCLASS_A.
      ELSE.
         GLOBAL_JOB-JOBCLASS  = BTC_JOBCLASS_C.
      ENDIF.
    You may look at function modules BAPI_XBP_JOB_OPEN, BAPI_XBP_JOB_ADD_ABAP_STEP and BAPI_XBP_JOB_CLOSE.
    (documentation at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/edab9790-0201-0010-479a-98fcc7ebc7bd">External Interface for Background</a>)
    Regards

  • Sub-class objects changing lovu2019s in XI 3.0

    Hello all,
    I have a XI 3.0 universe where I have several classes and sub-classes like this;
    Class1
    ....Subclass1
    .............Object 1
    .............Object 2
    .............Object 3
    ....Subclass2
    .............Object 4
    .............Object 5
    .............Object 6
    ...Subclass3
    .............Object 7
    .............Object 8
    .............Object 9
    Class2
    ....Subclass1b
    .............Object 10
    .............Object 11
    .............Object 12
    While updating the objects lovu2019s (for sorting) in the properties window, Iu2019ve noticed that beginning with Object 4 that the lovu2019s are changing back to that of Object 1, this is also the case for Object 5 (changes to Object 2u2019s lov) all the way through Object 12. It seems that no mater how often I set and apply the sorted lov for all objects, they take on the settings of the objects in the first sub-class in my universe. When querys are ran from WebIntelligence, they display the correct SQL (and return no results as there is no data in my dev database as yet). Objects in other classes (not sub-classes) seem to be fine. Has anyone seen this type of behavior before?
    Iu2019m thinking that I will need to go to 3.1 and suspect this may be a bug, any thoughts or comments are appreciated....

    Hi Didier,
    I did copy some some of the objects from a subclass to another, and to make sure this was not the issue, I re-created new ones and had the same issue.  I was not aware that previous BOE versions (LOVs) had the issue though, which makes some sense. 
    At the moment, I'm suspecting this is a bug so I am asking the client to upgrade to 3.1 to see if the issue persist (I suspect it may), if so I will then open up a tech support case.
    Thanks, Joe Szabo

  • ABAP OO Class and Change Documents

    I have created a class based on the IF_WORKFLOW interface.  I created a couple of events.  I created a workflow task assigned to a custom method of the class.  I setup the Material Change Document to trigger the class event when there is a change.  The workflow task does trigger when I change a material, but I don't know how to pass the key of the Change Document (matnr) to the workflow task/method using the ABAP OO Class interface.  Any help?
    Thanks,
    Kenneth

    Thanks for the reply Florin.  Yes, I have seen Joclyn Dart's Whitepaper and blogs.  They are very helpful, but I haven't seen much information within them about Change Documents.  I tried your suggestions, but the material key is still not being filled when I trigger the change document and workflow task using tcode MM02.
    Here is what I have done:
    Created an Attribute 'Material' type mara-matnr and checked 'Key Attribute'.
    Created an Attribute M_POR type SIBFLPOR.
    Here are the methods:
    Constructor with parameter 'Material' *
    METHOD constructor.
      me->m_por-catid = 'CL'.
      me->m_por-typeid = 'ZMM_WF_MATTEC'.
      me->m_por-instid = me->material.
    ENDMETHOD.
    Find_by_lpor with parameters LPOR and RESULT (default params) *
    METHOD bi_persistent~find_by_lpor.
      DATA: p_material TYPE matnr.
      MOVE lpor-instid TO p_material.
      TRY.
          CREATE OBJECT result
            TYPE
              zmm_wf_mattec
            EXPORTING
              material      = p_material.
        CATCH cx_bo_error .
          EXIT.
      ENDTRY.
    LPOR with parameter RESULT (default param) *
    method BI_PERSISTENT~LPOR.
    result = me->m_por.
    endmethod.
    ENDMETHOD.
    Custom method MAT_CHANGED with parameter 'Material' * (not coded yet)
    This is the task being triggered by the Change Documents *
    METHOD mat_changed.
    ENDMETHOD.
    Edited by: Kenneth Moore on Nov 4, 2008 11:00 AM

  • WLS 8.1, SP1 - Weblogic does not detect my servlet class has changed

              I've come across this problem in weblogic 7.0 sp2 and 8.1 sp1 and never found the
              solution. I've asked for solution in BEA's newsgroups and official support and
              NEVER received any suitable answer. I've found other people's quesions regarding
              this problem and they didn't found an answer either. I can't believe this is not
              happenning to more people and there is not solution!!!!!!
              Sometimes (don't know when or why) when we copy our servlets developed with JBuilder
              (6, 7 or 9) or javac and ant, into our exploded archive directory application,
              weblogic does not detect the change, and it serves the the servlet's old version.
              Of course, that servlet is not included in any classpath, and even if we delete
              the class file, it still executes the old version. We even delete the .wlnotdelete
              folder under our server, temp, etc. restart the machine, etc. and it does not
              load the updated servlet.
              The only solution is to change servlet's name and the reference in our web.xml.
              That's the moment that weblogic detects changes, but, for so long? Sooner or later,
              the problem appear again... or not. WHY!!??!! What should we change/delete or
              whatever for our new servlet to be updated?
              How can I force weblogic to register again as new servlets ALL my servlets?
              Now it's even happening to a class used in a very simple tag library. CAN'T BELEIVE
              IT!!!!
              It happens in NT 4.0 and W2K Prof. It happened in Weblogic 7.0 sp2 and now in
              Weblogic 8.1 sp1. It never happened in Weblogic 5.1 sp10.
              Looking forward to hearing a solution for this.
              

              I too am looking for this answer.
              I did notice that the BEA Docs mention that the compiled file needs to be in WEB-INF/classes,
              and mine is in WEB-INF/lib. However, ALL the .jar files are in the LIB directory.
              My jar file is never found when it's in the classes dir....
              Please let me know if you find the solution.
              "Ignacio Sanchez" <[email protected]> wrote:
              >
              >I've come across this problem in weblogic 7.0 sp2 and 8.1 sp1 and never
              >found the
              >solution. I've asked for solution in BEA's newsgroups and official support
              >and
              >NEVER received any suitable answer. I've found other people's quesions
              >regarding
              >this problem and they didn't found an answer either. I can't believe
              >this is not
              >happenning to more people and there is not solution!!!!!!
              >
              >Sometimes (don't know when or why) when we copy our servlets developed
              >with JBuilder
              >(6, 7 or 9) or javac and ant, into our exploded archive directory application,
              >weblogic does not detect the change, and it serves the the servlet's
              >old version.
              >Of course, that servlet is not included in any classpath, and even if
              >we delete
              >the class file, it still executes the old version. We even delete the
              >.wlnotdelete
              >folder under our server, temp, etc. restart the machine, etc. and it
              >does not
              >load the updated servlet.
              >
              >The only solution is to change servlet's name and the reference in our
              >web.xml.
              >That's the moment that weblogic detects changes, but, for so long? Sooner
              >or later,
              >the problem appear again... or not. WHY!!??!! What should we change/delete
              >or
              >whatever for our new servlet to be updated?
              >How can I force weblogic to register again as new servlets ALL my servlets?
              >
              >
              >Now it's even happening to a class used in a very simple tag library.
              >CAN'T BELEIVE
              >IT!!!!
              >
              >It happens in NT 4.0 and W2K Prof. It happened in Weblogic 7.0 sp2 and
              >now in
              >Weblogic 8.1 sp1. It never happened in Weblogic 5.1 sp10.
              >
              >Looking forward to hearing a solution for this.
              

  • Transfer asset from on class to other class without changeing asset no.

    Dear All,
    I have a requirement.
    I want to transfer some assets from one asset class to other asset class, but I do not want to change the asset no.
    Can you help me
    b.s.rao

    Hi,
    This is not possible.
    Pankaj,
    Your solution will not work, as you cannot maintain the same number series for both sending and receiving asset classes, even though if one is having internal number assignment and another is external number assignment.
    Ex: You cannot have 2 number range objects which includes a one asset number. In AS08 system will never accept this overlapping of asset number series.
    Correct me if i am wrong...
    Thanks,
    Srinu

  • Static class to change TextField

    Hi,
    I'm trying to make a static class that will change the text written in a TextField inside a SWF file.
    In this case I have a MovieClip with a TextField inside with a message. I want to be able to make a class that giving this TextField and a message, that will change in the button.
    Certainly that I'm forgetting something obvious, I get the correct trace messages, but the textfield disappears. The initial text is "Start" and I want to change that to "OK". For now I just want to change the text, but after I want to be able to change the text format.
    So far I have this:
    package
              import flash.display.MovieClip;
              public class ChangeTextField extends MovieClip
                        public function ChangeTextField(_textField:Object, _text:String):void {
                        public static function change(_textField:TextField, _text:String):void {
                             trace("CHANGETEXTFIELD " + _textField); //Return "Start"
                             _textField.text = _text;
    In another class I've loaded the swf and it's content is inside a MovieClip so that I can reference it. To change the TextField text I would do something like:
    ChangeTextField.change(okButton.normal.label_tx, "OK");
    trace(okButton.normal.label_tx.text); //Returns "OK"
    By the trace messages everything is doing what it's supposed to do, but the TextField disappears.
    Any idea?
    Cheers.

    That was simple
    Thanks!

Maybe you are looking for

  • Block creation problem in member formula

    Hi, I have a member formula as below : IF(.....) x = a/b; ENDIF where a,b have their own member formulas. There is no issue with the calculations of x,a or b, but I am facing an issue with block creation of x. Is there a way to handle block creation

  • Visual C++ Runtime Library Runtime Error! C:\windows\explorer.exe

    Hi, I have a got crazy problem. Firstly my system specs are, CPU: AMD A8-6600k Motherboard: Gigabyte F2A88XM-DS2 Ram : Transcend 4GB. 2GB*2 "This application has requested the Runtime to terminate it in an unusual way. C:\windows\explorer.exe Please

  • Premiere Elements 12 and Davinci Resolve Lite

    I'm reaching out to see if anyone is currently using Davinci Resolve Lite along with PE12. Can't seem to find any info regarding a Workflow of color correcting / editing using these two programs. There are several regarding Premiere Pro, but not PE.

  • Not able to Enter the order  WareHouse is not populating

    Hi All, STEPS 1. Navigate> OM Sales Orders> 2. enter info on first tab. 3. Select 'Others tab at header and 4. crtl+L to activate the lov enter % for a full list. but here i am not getting any warehouse . this is R12.1.1 instance Please help Thanks,

  • If i ordered a black iphone 5 from verizon...

    i recently pre ordered a black iphone 5 from verizon and it should be coming at my door on sept 28th. but after doing some research i've heard the issues with cheeping and peeling of paint and won't want to deal with that. So i was wondering can i ta