Groupwise Custom Field Creation throws exception

Hi,
When I am trying to create a new field definition (String type) using the object API (8.0.1)(gwoapi_800.h), I got the following exception
System Message #1: "An error occurred in allocating memory.", System Message #2: "Error Message: "Exception occurred.", Source "FieldDefinitions.Object"",
IGWFieldDefinitionPtr pDIGWFieldDefinitions;
pIGWFieldDefinitions->Add()
Is this a known API issue?
Thanks.

I put a fix to 8.0.3 and the next major release
or GroupWise. The problem was there is a custom
field table that gets created. If the user had
no custom fields, there was a problem creating
the first custom field.
You can get around the problem (until the fix
is available) by first creating a custom field
using the GW Client.
Preston
>>> On Tuesday, June 15, 2010 at 1:28 PM, Preston
Stephenson<[email protected]> wrote:
> I created a bug to investigate the issue.
> I'll get to it when time permits.
>
> Thanks.
> Preston
>
>>>> On Tuesday, June 15, 2010 at 12:46 PM,
> pranov2001<pranov2001@no‑mx.forums.novell.com> wrote:
>
>> Preston
>> Thanks a lot for your response. Here is the snapshot of the code that I
>> am trying to achieve.
>>
>> _COM_SMARTPTR_TYPEDEF(DIGWAddressBooks, DIID_DIGWAddressBooks);
>> _COM_SMARTPTR_TYPEDEF(IGWAddressBooks2, IID_IGWAddressBooks2);
>> _COM_SMARTPTR_TYPEDEF(IGWAccount4, IID_IGWAccount4);
>> _COM_SMARTPTR_TYPEDEF(DIGWCAddressBook, DIID_DIGWCAddressBook);
>> _COM_SMARTPTR_TYPEDEF(IGWCAddressBook2, IID_IGWCAddressBook2);
>>
>> _COM_SMARTPTR_TYPEDEF(DIGWFieldDefinitions,IID_DIG WFieldDefinitions);
>> _COM_SMARTPTR_TYPEDEF(IGWFieldDefinitions,
>> IID_IGWFieldDefinitions);
>> _COM_SMARTPTR_TYPEDEF(DIGWFieldDefinition,
>> DIID_DIGWFieldDefinition);
>>
>> DIGWAddressBooksPtr pDIGWAddressBooks;
>> IGWAddressBooks2Ptr pIGWAddressBooks;
>> IGWAccount4Ptr pIGWAccount;
>> LPCTSTR AddrBookName = _T("Test Contacts");
>> CComVariant vName(AddrBookName);
>> DIGWCAddressBookPtr pDIGWCAddressBook;
>> HRESULT hr;
>> DIGWFieldDefinitionsPtr pDIGWFieldDefinitions;
>> IGWFieldDefinitionsPtr pIGWFieldDefinitions;
>> DIGWFieldDefinitionPtr pDIGWFieldDefinition;
>> IGWCAddressBook2Ptr pIGWCAddressBook;
>> LPCTSTR FieldName = _T("AliasName");
>>
>> //Opening an Addressbook
>> pIGWAccount‑>get_AddressBooks(&pDIGWAddressBooks );
>>
>>
>
pDIGWAddressBooks‑>QueryInterface(IID_IGWAddress Books2,((LPVOID*)&pIGWAddr
> essBo
>> oks));
>> hr = pIGWAddressBooks‑>Item(vName, &pDIGWCAddressBook);
>> if (hr>=0)
>>
>>
>
pDIGWCAddressBook‑>QueryInterface(IID_IGWCAddres sBook2,((LPVOID*)&pIGWCAdd
> ressB
>> ook));
>>
>> //Adding the field to the Addressbook
>> pIGWCAddressBook‑>get_FieldDefinitions(&pDIGWFie ldDefinitions);
>>
>>
>
pDIGWFieldDefinitions‑>QueryInterface(IID_IGWFie ldDefinitions,((LPVOID*)&p
> IGWFi
>> eldDefinitions));
>> _bstr_t btFieldName(FieldName);
>> pIGWFieldDefinitions‑>Add(btFieldName, 1, &pDIGWFieldDefinition);
>>
>> The interesting fact is, it works in one worstation and not in other,
>> even if there is no OS or Groupwise client version difference between
>> those workstations.
>>
>> Preston Stephenson;1987092 Wrote:
>>> The error is reporting something missing.
>>> Can you support more of your code that you
>>> are trying to use?
>>> A small test app would be even better.
>>>
>>> Thanks.
>>> Preston
>>>
>>> >>> On Thursday, June 10, 2010 at 3:26 PM,
>>> pranov2001<pranov2001@no‑mx.forums.novell.com> wrote:
>>>
>>> > Hi,
>>> >
>>> > When I am trying to create a new field definition (String type)
>>> using
>>> > the object API (8.0.1)(gwoapi_800.h), I got the following exception
>>> >
>>> > System Message #1: "An error occurred in allocating memory.", System
>>> > Message #2: "Error Message: "Exception occurred.", Source
>>> > "FieldDefinitions.Object"",
>>> >
>>> > IGWFieldDefinitionPtr pDIGWFieldDefinitions;
>>> > ....
>>> > pIGWFieldDefinitions‑>Add()
>>> >
>>> > Is this a known API issue?
>>> >
>>> > Thanks.

Similar Messages

  • Custom XSLT Functions Throw Exception

    Hi,
    I have following requirement-
    1. I have defined and configured some custom XSLT functions in Jdev and BPEL, which throw exception in case of an error.
    2. Now I want to catch that exception in my BPEL process
    3. In My BPEL process I have defined transformation step ( which is using those Custom XSLT functions) in a scope and added a catch branch to that
    4. But even XSLT java function throw an exception , it is not being catch by catch branch.
    Could you please help me regarding this and tell me any other way to catch an exception in BPEL process thrown by Custom XSLT function within transformation step?
    Thanks.

    Hi,
    Its the problem with the date. In the configuration file i used dateTime for java.util.Date, because of this i cant see "User Defined" option in Jdeveloper component pallete. I checked at XML data types i had seen dateTime for java.util.Date Class, but its not working.
    Do anyone created a custom xslt function which has date as parameter or return type?, If so wht they had used as data type for xml and java.
    Thanks,
    RR

  • Custom Indirection Container throwing exception in constructor

    Hi I've following the how-to and implemented my own custom indirection container. However, when reading an object from the database I'm getting the following exception. I'm guessing that it could be related to having null references stored as 0 in id columns. Any help would be greatly appreciated.
    Thanks,
    Jon
    Exception thrown in main Exception [TOPLINK-152] (OracleAS TopLink - 10g (9.0.4.8) (Build 050712)):
    oracle.toplink.exceptions.DescriptorException
    Exception Description: The operation [buildContainer constructor (null) Failed: java.lang.NullPointe
    rException] is invalid for this indirection policy [oracle.toplink.internal.indirection.ContainerInd
    irectionPolicy@cc0e01].
    Mapping: oracle.toplink.mappings.OneToOneMapping[ryFromMail]
    Descriptor: Descriptor(com.peoplesoft.crm.omk.design.PsRyedocVar --> [DatabaseTable(PS_RYEDOC_VAR)])
    Local Exception Stack:
    Exception [TOPLINK-152] (OracleAS TopLink - 10g (9.0.4.8) (Build 050712)): oracle.toplink.exceptions
    .DescriptorException
    Exception Description: The operation [buildContainer constructor (null) Failed: java.lang.NullPointe
    rException] is invalid for this indirection policy [oracle.toplink.internal.indirection.ContainerInd
    irectionPolicy@cc0e01].
    Mapping: oracle.toplink.mappings.OneToOneMapping[ryFromMail]
    Descriptor: Descriptor(com.peoplesoft.crm.omk.design.PsRyedocVar --> [DatabaseTable(PS_RYEDOC_VAR)])
    at oracle.toplink.exceptions.DescriptorException.invalidIndirectionPolicyOperation(Descripto
    rException.java:669)
    at oracle.toplink.internal.indirection.ContainerIndirectionPolicy.buildContainer(ContainerIn
    directionPolicy.java:62)
    at oracle.toplink.internal.indirection.ContainerIndirectionPolicy.valueFromQuery(ContainerIn
    directionPolicy.java:254)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java
    :898)
    at oracle.toplink.mappings.OneToOneMapping.valueFromRow(OneToOneMapping.java:1302)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:876)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder
    .java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:322)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:
    242)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:368)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:510)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1962)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolic
    y.java:254)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java
    :898)
    at oracle.toplink.mappings.OneToOneMapping.valueFromRow(OneToOneMapping.java:1302)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:876)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder
    .java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:322)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:
    242)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:368)

    Clients of your class might not like you throwing
    exceptions from the ctor. If they're checked
    exceptions it'll mean try/catch blocks. If there are
    LOTS of checked exceptions that'll mean lots of catch
    blocks. Could get messy fast. You could catch in the
    ctor and wrap in a subclass of
    java.lang.RuntimeException. Those are unchecked, like
    java.lang.IllegalArgumentException.I would strongly advise against making your checked exceptions unchecked just so that the caller's code will compile without try/catch blocks. Either way--checked or unchecked--if I do Foo foo = new Foo();
    foo.doStuff(); I won't get to doStuff() if the ctor threw an exception.
    You'd throw unchecked exceptions in those cases where it's appropriate--e.g., the caller passed you invalid args (bad code on the caller's part, appropriated for unchecked exception), or the VM couldn't get enough memory to create your object (probably not something the caller can do anything about, so, again, appropriate for unchecked).
    But if, for example, he's passing you database login parameters that an end user provided, and the password is wrong or the host is unreachable, then you'd want to throw a checked exception, because it's not bad code on the caller's part, and there might be something he can do to recover.
    Note that the example of the incorrect password above is quite different from the "invalid args" example in the previous paragraph. Your method would throw IllegalArgumentException if the caller passed args that violate your method's precondition--e..g. lie outside some range of numbers. That is, it's a value that your method simply can't use. A bad password for a db login, on the other hand, is legal as far as your method is concerned, it just failed authentication in the db.
    @%: I know you're aware of the proper use of checked/unchecked exceptions, but the way you worded you post kind of sounded like you were saying, "just use unchecked if you find the caller has too many try statements."
    &para;

  • Dump after custom field creation in SRM shoppinc cart

    I have created a custom field(using a custom data element and a custom domain) and it is displayed in the Item Basic Data screen.
    Then I create a basket assigning a value for this field.
    The dump occurs when I try to view the basket after creation, from the Status Select or from the link in Approval Screen
    Runtime Errors:  GETWA_NOT_ASSIGNED
    Short text: Field symbol has not yet been assigned.
         The current ABAP program "SAPLGCNV" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    Screen: SAPLBBP_PDH_CUF 0100

    Hi
    <b>Please ensure that the Z structures (Append Structures) created in this case are Activated completely (and should not be in Partially Active or InActive State).</b>
    <u>Since these structures will be used in the BADI Tables (SC Item level / Header level), these must be activated once again, incase you add / modify/ change the structures in the meanwhile.</u>
    If you want to define fields on item level in shopping carts, use structure INCL_EEW_PD_ITEM_CSF_SC. If you want to see the fields defined on item level in the search results for the shopping carts (for example, in the status), use structure INCL_EEW_PD_SEARCH_ITM_CSF_SC.
    If you have defined document-specific fields on header and/or item level, you also have to define them in structures INCL_EEW_PD_HEADER_CSF (for the fields of the header) and INCL_EEW_PD_ITEM_CSF IF THEY HAVE NOT BEEN DEFINED THERE YET. Consequently, these structures contain the combination of header or item fields of all document-specific fields.
    For more details, please refer to OSS note - 672960 (User-Defined Fields 2) Please carefully read the documentation.
    <b>Few other related OSS notes to refer -></b>
    <u>1018714 Change documents: Time stamp of the application server
    1006898 Deleted vendor not displayed in Change hist of Shopping cart
    731037 Converting SUS 1.0 and SUS 2.0 documents to SUS 3.0
    820201 Document changes for attachments does not work
    691880 Changes in tolerances not displayed in purchase order</u>
    Let me know incase you still face any issues.
    Regards
    - Atul

  • Custom field creation using ajax in SP 2010

    Hi,
    If anybody create custom field using ajax toolkit, kindly share me the link or steps.
    Thanks,
    Senthil

    yes. I have created custom field using Ajax toolkit which one available by default in VS 2010 under Ajax controls menu. do we need any other details on this, let me know.
    I just drag and drop the Ajax update panel in aspx page that used in custom field solution. then i just run the code and see the result on the new form in  the custom list. so i dont think, we need to do more work on this.
    Thanks,
    Senthil

  • EEWB Custom fields creation problem

    Hi All,
    I have scenario in which I have to add 3 custom fields in Service Desk (Solution Manager) , I could able to do this if my project is saved in local($TMP)  but if I am doing it using a project which is saved in package it is giving me error message no TK885 (No Request as sent through the interface ).
    EEW Bus.Object : SERVICE_TRANSACTION
    Extension Type  : CUSTOMER_H
    Please help.
    Regards,
    Manohar

    Hello,
    For EEWB the system setup is important in order to create EEWB transports.
    First of all via SM30 check the view V_OXT_SYSTAB, assign the proper logical system name and system role should be Development system.
    Furthermore read/implement the following SAP Note (especially the included PDF file).
    Note 1086848 - EEW enhancements cannot be transported
    Success.
    Wim

  • Custom adapter module throwing exception

    Hi,
         We have written an adapter module (EJB) to convert a file structure into XML for conversion in XI. Using file adapter(FTP), we are getting the files converted into XML without any problem. However, when there is no file in the directory the module is throwing an exception and writing an entry into the log (polling interval is 1 minute).
    The requirement is when there is no file in the directory, the adapter should keep on polling, but without generating any exception or making an entry in the log.
    Can anyone help out with this please?

    strange...
    if a file is not found in the specified directory where your file adapter is polling, it is not possible that the control comes to the adapter module you have specified in the module chain.
    have you done something unusual in your CC config i.e. added only your module in the module chain and removed CallSAPAdapter

  • ISendMailService Instance creation throws exception.

    Hi All,
    I am using the following piece of code to send mails
    try {
      com.sap.security.api.IUser contentOwner =
                     UMFactory.getUserFactory().getUserByLogonID ("abcuser");
    String contentOwnerEmail = contentOwner.getEmail();
    IChannel channel = ChannelFactory.getInstance().getChannel(ChannelFactory.EMAIL);
    ISendMailService sendMailSvc = (ISendMailService) ResourceFactory.getInstance().getServiceFactory().getService(ISendMailService.SERVICE_ID);
      ISendMailItem mailItem = sendMailSvc.createMailItem();          
      mailItem.setContent(  "Hello.. Welcome to portal");
    mailItem.setSubject("Test Mail");
      mailItem.setMimeType("text/html");
    mailItem.setTo(contentOwnerEmail);
      mailItem.setFrom(notificatorSvc.getDefaultFromAddress(channel));
      mailItem.send();
    } catch (ResourceException re) {
    exception " + re.getMessage());
    System.err.println("run error:sendNotificationMail: Resource exception " + re.getMessage());           
           } catch (GroupwareException ge) {
          System.err.println("run error:sendNotificationMail GroupwareException exception " + ge.getMessage());
           } catch (WcmException wcme) {
           System.err.println("run error:sendNotificationMail WcmException exception " + wcme.getMessage());
           } catch (UMException ume) {
      System.err.println("run error: sendNotificationMail:UMException exception " + ume.getMessage());
    }catch (Exception e){
    log.errorT("Run error: Exception " + e.getMessage());
    e.getStackTrace().toString());
    I am getting exception in the line where i create the instance of the ISendMailService . When i catch the exception and see the message, it says "com.sap.ip.collaboration.gw.impl.service.mail.SendMailService". Nothing more.Stacktrace is also printing the same message.
    I couldn't figure out the reason. The same piece of code was working.
    any clue??
    Thanks & Regards,
    Siva
    PS: pts will be awarded for helpful answer

    hi, Sivakumar:
    Can you tell me which jar file and package name the class ISendMailService is in and under which component?
    I search for all the BC_api.jar and km_api.jar, but i couldn't find out.
    I would like to use the same way to send an email.
    My email address is [email protected] can also send me email as well.
    Thanks,
    Elaine

  • Custom fields not visible in the Active Subject Area column

    Hello,
    I have created several custom fields in the Object Service Request. I need to create a report with those fields, but some of them are not visible / displayed.
    Is there any delay between the custom field creation and its availability in Oracle Answer? Because, only the "old" custom fields appears in the list.
    Thanks in advance for your advices.
    Laurent

    it generally takes one day to appear in analytics

  • Custom field in shopping cart

    Hi All,
    I need to add a custom filed in the shopping cart in SRM. I added the field by appending a structure in INCL_EEW_PD_ITEM_CST_SC and INCL_EEW_PD_ITEM_CSF_SC. I also executed the report BBP_DYNPROS_GENERATE by entering the prog name SAPLBBP_PDH_CUF. After doing these things when I go to shopping cart wizard and go to item details where my field should be visible, it gives a short dump "Field symbol has not been assigned yet (GETWA_NOT_ASSIGNED) ".
    Is there anything else I need to do to add a filed in the shopping cart.
    Please help.
    Thanks in advance.
    Neerja

    Hi Neerja,
    Go through the following links:
    Re: Dump after custom field creation in SRM shoppinc cart
    Re: Customer fields
    Adding fields in shopping cart
    And try to follow the steps given in the following blog:
    How to create custom fields in SRM
    Hope this helps
    Thanks,
    Pradeep

  • Add a custom field in output tab of po header SRM 7.0

    Hello All,
    Please let  me know How to add a custom field in output tab of po header SRM 7.0.
    Regards,
    Neelima

    Hello Neelima,
    Have you already check the note 458591, which help to custom fields creation? I think this note can be relevant for you.
    Best regards,
    Denise Zanuz

  • Customer fields

    Hi experts
    Someone could send me some documentation about how to create customer fields in SRM, specialy in shopping carts.
    Thanks
    Nilson

    Hi,
    if you have defined document-specific fields on header and/or item
    level, you also have to define them in structures INCL_EEW_PD_HEADER_CSF
    (for the fields of the header) and INCL_EEW_PD_ITEM_CSF IF THEY HAVE NOT
    BEEN DEFINED THERE YET. Consequently, these structures contain the
    combination of header or item fields of all document-specific fields.
    Please read note 672960 carefully
    Also see this  thread;
    Re: Dump after custom field creation in SRM shoppinc cart
    BR,
    Disha.

  • Work Manager 6.1: Adding custom field for notification creation

    Hi,
    I already added new fields in the past, and also in WM6.1 for fetch BAPIs, but now I'm trying to do it for the NotificationAdd Transaction and I'm not able to make it work. I guess I forgot some step but I don't know which, so I will describe what I did:
    Agentry:
    Added new field to the Notification object
    Added new field to the NotificationAdd Transaction
    Added new field to the NotificationAdd Detail Screen
    Java:
    Created class Notification.java extending com.syclo.sap.component.lam.notification.object.Notification
    Added new field to the new Notifciation class
    Copied constructors calling super method.
    Override method setProperties(User u, NotificationPostBAPI bapi). Now is calling the super method and afterwards setting the new field. Here is where I have the error when I debug, the u.getString("transaction.Z_NewField")) i returning an empty string because it's not finding the value when reading from the transaction.
    Created class NotificaitonPostBAPI extending from com.syclo.sap.component.lam.notification.bapi.NotificationPostBAPI.Override method setHeaderParameters to set the value in the ABAP structure for the new field after calling the super method.
    Configuration Portal:
    Changed global parameter to assign the customer NotificationPostBAPI class
    Created global parameter to assign a BAPI wrapper to the new customer NotificationPostBAPI class
    Change the global parameter to assign the class for Notification object in order to use the new customer class
    Do you know why during the setProperties method created in Java, Step1 the transaction value for the Z field is empty? It seems I'm forgetting something quite simple here.
    Thanks in advance.

    Hi,
    May be the setter and getter methods, the value from transaction is not captured in the properties
    public void setProperties(User u, NotificationPostBAPI bapi)
    throws Exception
       setABC(u.getString("transaction.notification.ABC"));
    public String getABC()
      return this.ABC;
    public void setABC(String ABC)
         this.ABC= ABC;
    Regards,
    Sravanthi

  • Reservations creation with customer fields in ECC from SRM does not work?

    Hi,
    I have to create reservations into backend system (ECC) from shopping cart creation in SRM 7.0.
    Reservation items contiain two customer fields.
    RESB is extended by adding an append structure that contains an include with the data structure of the two customer-specific fields.
    When reservation is created by BAPI_RESERVATION_CREATE1 function in ECC customer fields are filled.
    In SRM I use FILL_RS_INTERFACE1 method of BADI BBP_CREATE_BE_RS_NEW.
    When a shopping cart is created in SRM and then approved a reservation is created in ECC but customer fields are empty.
    Why?
    Thank you for your collaboration.
    Best regards.
    Al

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90bd6f78-bcce-2a10-17ac-a74187b924ea?quicklink=index&overridelayout=true
    Note 885458 - SRM partner maintenance: 'Add to invoicing party' is missing
    Note 1034662 - BBP_VENDOR_SYNC: Invoicing Party not getting changed
    in classic there may not be any issue since while creating a PO partner function automatically determined correctly int he ECC purchase order .
    In SRM , we might pulled only VN vendors.
    this could be one of the grey area in SRM Extended classic mode.
    check with SAP and update SAP comments / suggection here.
    Are PI  (invoice party) and VN ( real supplier) vendor number ranges same?
    Are many vendor VN and PI  different?
    Note 1022311 - SRM Integration: Partner at purchase order item level
    In Supplier Relationship Management (SRM), you can maintain partners at item level. During the replication into the ECC back end, this partner information is no longer available because there are no partners for the document item in the ECC back end.
    Other terms
    Business Add-Ins:
    ME_BAPI_PO_CUST, ME_PROCESS_PO_CUST, ME_GUI_PO_CUST, MB_MIGO_BADI, MRM_PARTNER_CHECK
    let us wait for others reply
    Muthu

  • Validation of Enterprise Customer Fields in Project Creation Page

    I want to do the validation on the Enterprise Custom Fields of PWA site for Project center. A set of custom fields have been added on the Project Creation Page.
    Custom Business Validation (such as a field value should be unique or based on another field) is required for some custom fields. This validation is required on clicking Save button in Project Creation Page of Ms Project Server 2010. The validation ought
    to be done on clicking "Save" button.
    Any help in this regard would be apppreciated.

    The link mentioned by you ToonS is not acessible.
    Here is the link:
    http://msdn.microsoft.com/en-us/library/office/gg615466(v=office.14).aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

Maybe you are looking for