Cannot save data to the repository giftlist

Hello world

I am trying to add categoryId in giftlist repository in the gift-point point descriptor.  I created a new storegiftlist class, which extends from StoreGiftlistFormhandler and I replaced the method . addItemToGiftlist() of this method, I invoke method addCatalogItemToGiftlist() of MyStoreGiftlistManager stretching GiftListManager. this class of MyStoreGiftlistManager I am unable to access the CatalogTools. I mention the estate records

GiftlistFormHandler.properties

$class = com.src.wishlist.StoreGiftList

$scope = request

StoreGiftList.java

MyStoreGiftlistManager MysoreGM;

method() Set.

{

}

Download method()

{

}

protected void addItemToGiftlist (pRequest DynamoHttpServletRequest,

DynamoHttpServletResponse pResponse) throws ServletException.

IOException {CommerceException}

Arr$ String() = getCatalogRefIds();

int len$ = arr$ .length;

for (int I$ = 0; i$ < len$; I$ ++)

{

String skuId = $ arr [i$];

long = getQuantity() quantity.

If (quantity is 0L)

quantity = getQuantity (skuId, pResponse pRequest);

System.out.println ("Category Id" + getCategory());

System.out.println ("SkuID" + skuId);

System.out.println ("getProductId" + getProductId ());

System.out.println ("Getsiteid()" + Getsiteid() ());

System.out.println ("Quantity" + Quantity);

System.out.println ("object present" + MystoreGM);

MystoreGM.addCatalogItemToGiftlist (skuId, getProductId(), getGiftlistId(), getSiteId(), quantity,getCategory());

/ * here in this process, I added the additional parameter of getCategory() GiftListManagerof overload addCatalogItemGiftlist * /.

GiftListManager.properties

$class = com.syntel.wishlist.MyStoreGiftlistManager

siteScope = atg. ShoppingCart

After I did this when I try to run this I get java.lang.nullpointerException in myGiftlistManager class when the compiler tries to access to CatalogTools.

java.lang.NullPointerException

at com.syntel.wishlist.MyStoreGiftlistManager.addCatalogItemToGiftlist(MyStoreGiftlistManager.java:39)

at com.syntel.wishlist.StoreGiftList.addItemToGiftlist(StoreGiftList.java:137)

at com.syntel.wishlist.StoreGiftList.handleAddItemToGiftlist(StoreGiftList.java:76)

Issues related to the:

in this MystoreGiftlistManager I am an overload of addCatalogItemToGiftlist() of the GiftlistManger class because in my case I'm passing an extra parameter to this method is to say categoryId.

I'm the substitution of GiftlistTools by extending it in my own MyGiftTools class to create the getters and setters for categoryId.

This is the right way to do?

I think I've posted clearly .If not please let me know.

Thank you

RKishore.

What line in the code you see below-

java.lang.NullPointerException

at com.syntel.wishlist.MyStoreGiftlistManager.addCatalogItemToGiftlist(MyStoreGiftlistManager.java:39)


I mean what is the code on line 39?


in GiftlistFormHandler.properties-


I do not see set you the reference to your component of MyStoreGiftlistManager.


Thr should be an entry like -


mysoreGM = path to your StoreGiftlistManager



What is the line u see NPE - MystoreGM.addCatalogItemToGiftlist (skuId, getProductId(), getGiftlistId(), getSiteId(), quantity,getCategory());

MystoreGM - may be null

Tags: Oracle Applications

Similar Questions

  • How to save data from the COM port to file?

    Hi all

    can someone tell me please how to save data from the COM port on file? I transfer 1 byte of serial port... attached is the image of the vi... very basic.

    I would like to save the data in a table... I mean, 1 data--> data--> data tab 2 tab 3rd--> tab

    and so on... can anyone help?


  • Code 646, cannot install dates. The question of liciense agreement is not required.

    Code 646, cannot install dates. The question of liciense agreement is not required.

    Try this FixIt:
    Code error '0 x 80070646', '646', or '1606' when you try to install the Office updates

    http://support.Microsoft.com/kb/2258121 "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • How can you save data of the iCloud on an external hard drive?

    How can I record data of the iCloud on an external hard drive?

    Is not possible. iCloud requires a Wi - Fi connection to synchronize data. Cannot do it on an external drive.

  • Cannot save files from the iMac on external hard drive

    Hello. I recently bought an iMac 27 inches 5 k retina and I can't save files to the iMac on my external hard drive, which is a 1 to Seagate FreeAgent GoFlex. I formatted the hard drive before, so I can use it on Mac and PC. It works fine with my Macbook Pro. But not on my iMac. What could be the problem and how can I solve this problem? I don't want the hassle of the backup of my hard drive and reformatting, because there a lot of files already on it. Help, please

    Pray tell what is the format?

    What happens when you try to copy files?

    Mac can read but cannot write to NTFS without special software.

  • How to save data in the text file of Spartan 3

    Hi all

    I would like to kindly save the data table text file or a spreadsheet on vi using fpga spartan 3e as an fpga target. Once I added all the functions related to the operation of file, it gave an error that these functions are not supported by the target device.

    could you please help me with this

    Thank you

    Rania

    Hi David,

    Thank you for posting. You use LabVIEW? If so, what version of LabVIEW FPGA do you use? You use a host VI, or any deployment of code at your target to run? The file IO VI probably won't compile to target because they are not intended to be used on your host computer. Resources and the paths of files do not exist on the target FPGA, but rather on the side of the host. I have included a link below that describes how to transfer data between the FPGA and host. I hope this helps!

    http://zone.NI.com/reference/en-XX/help/371599F-01/lvfpgaconcepts/pfi_data_transfer/

  • How to do this: Photoviewer, Windows cannot save changes to the image due to a problem with the properties of the file!

    Hi, I'm trying to post a photo, but whenever I have try rotation to the right, it says something like: can't save changes to the image due to a problem with the properties of the file. My laptop is MS, but the photos were taken on the Iphone. How to do this?

    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

  • Cannot insert data with the PDO function [from: insert and update of the server in the same shape behaviors]

    I feel as if I'm fighting my way around a paper bag trying to insert a record.  I have recently converted from MySQL for PDP, which cannot be applied.  I'm not trying to write routines to update data and started with insert.  I tried the example in your PHP Solutions edition two, pp. 361-363, but I can't get a written account.

    It is a database, which I supported since the host server using phpMyAdmin.  I'm very well display the data on the site, so I guess that my login script is ok.  However, nothing I've tried has got a registered insert.  I tried to get back to the basics, and it still does not work.  This is my current code.  Something is wrong with my statement = $sql and I can't identify the problem.  Help, please!

    If (isset($_POST['insert'])) {}

    try {}

    create the SQL

    $sql = "INSERT INTO Homepage_text (enriched, h_date, h_seq, h_col, p_heading, p_text, h_hide) VALUES ($_POST ['enriched'], $_POST ['h_date'], $_POST ['h_seq'], $_POST ['h_col'], $_POST ['p_heading'], $_POST ['p_text'], $_POST ['h_hide']);"

    $sainttim-> execute ($sql);

    echo "new record successfully created ';

    }

    catch (PDOException ($e) exception

    {

    echo $sql. "< br / > '. $e-> getMessage();

    }

    }

    There are several things wrong with your code:

    • You use elements of an associative array within a double quoted string. Which will cause a parse error.
    • The values you are trying to insert in the database are for most (if not all) of the text fields. If you use a literal SQL query, text fields must be wrapped in quotes.
    • You try to use the method execute() with a literal SQL query. In AOP, execute() only works with a prepared statement. To run a literal SQL query, you must use the exec() method.
    • Passing the values in the array $_POST directly in the database without any sort of validation and without escaping quotes or other characters just asking for trouble.

    Follow the examples in the book, and use a prepared statement. To address all these issues quickly and easily.

  • Why Photoshop 7 "cannot save as because the disk is full"?

    Windows 8 / Photoshop 7. I spent more than $300 to solve this problem... repairs and upgrade 16 GB of RAM. Memory usage has changed to 84%. The C; / drive is 10% used, the D: / drive is 25% used. . I still get the warning message "cannot save (file) as because the disk is full.

    These older versions cannot process more than 512 GB hard drives. You need to partition your disks.

    Mylenium

  • OIMClient: Cannot create demand in the repository

    I use OIM 11 GR 2

    I tried to raise a request to create a role with OIMClient, but I got an error "unable to create the application in the repository.

    The user to the OIMClient has the role of Admin SPML.

    Here is my code for the creation of demand.

    String rolename = request.getParameter ("rolename");

    String displayname = request.getParameter ("displayname");

    String description = request.getParameter ("description");

    OIMService rm = oimClient.getService (OIMService.class);

    RequestData requestData = new donnees();

    RequestEntity requestEntity = new RequestEntity();

    requestEntity.setRequestEntityType (OIMType.Role);

    requestEntity.setOperation (RequestConstants.MODEL_CREATE_OPERATION);

    List < RequestEntityAttribute > entitydatalist = new ArrayList < RequestEntityAttribute > ();

    RequestEntityAttribute rolenameattribute = new RequestEntityAttribute();

    rolenameattribute.setName (RoleManagerConstants.RoleAttributeName.NAME.getId ());

    rolenameattribute.setValue (rolename);

    rolenameattribute.setType (TYPE. String);

    entitydatalist. Add (rolenameattribute);

    DescriptionAttribute RequestEntityAttribute = new RequestEntityAttribute();

    descriptionattribute.setName (RoleManagerConstants.RoleAttributeName.DESCRIPTION.getId ());

    descriptionattribute.setValue (description);

    descriptionattribute.setType (TYPE. String);

    entitydatalist. Add (DescriptionAttribute);

    DisplayNameAttribute RequestEntityAttribute = new RequestEntityAttribute();

    displaynameattribute.setName (RoleManagerConstants.RoleAttributeName.DISPLAY_NAME.getId ());

    displaynameattribute.setType (TYPE. String);

    displaynameattribute.setValue (displayname);

    entitydatalist. Add (DisplayNameAttribute);

    requestEntity.setEntityData (entitydatalist);

    requestData.setTargetEntities (Collections.singletonList (requestEntity));

    Result OperationResult = rm.doOperation (requestData, OIMService.Intent.ANY);

    Here are the first lines of the exception:

    oracle.iam.platform.tx.OIMTransactionException: oracle.iam.request.exception.RequestServiceException: cannot create the application in the repository.

    at oracle.iam.platform.tx.OIMTransactionManager.execute(OIMTransactionManager.java:28)

    at oracle.iam.request.repository.RequestRepository.createRequest(RequestRepository.java:199)

    at oracle.iam.request.impl.RequestEngine.createRequest(RequestEngine.java:1708)

    at oracle.iam.request.impl.RequestEngine.triggerOperation(RequestEngine.java:5277)

    at oracle.iam.request.impl.RequestEngine.doOperation(RequestEngine.java:5028)

    at oracle.iam.impl.OIMServiceImpl.doOperation(OIMServiceImpl.java:43)

    Finally, identify the problem.

    The problem is caused by the line:

    requestData.setTargetEntities (Collections.singletonList (requestEntity));

    The singaletonList created by "Collections.singletonList (requestEntity)" is not cloned.

  • historical data in the repository with regard to targets?

    Hi all


    I have a question regarding the historical data. We have a CMS 11.1 and 11.2 repository DB. And lots of DB/target, download data to WHO. Our question to what extent rear can be go and watch performace data?

    Who is still dependent on the AWR retention policy (our current retention during most of our database are 30 days) on the DB or is there a setting where I can tell all in WHO or repository DB saying I want to store the CWA or any retention performance for lets say 6 months? How can I do this? I won't put in AWR retention to 6 months on the actual target db. Anyway is the objectifdes AWR data to db repository?

    See the documentation
    Oracle® Enterprise Manager Administration
    11g Release 1 (11.1.0.1)
    http://download.Oracle.com/docs/CD/E11857_01/EM.111/e16790/repository.htm#i1030660

    for data retention strategies.

    The configuration of the AWR reflects only a guarded target database.

    The data collected (Agents) will be stored in the repository and is subject to the policies of data retention.

    Concerning
    Rob
    http://oemgc.WordPress.com

  • Cannot save data forms

    Hello

    I have a problem with save forms data to the Dev server, when I enter data and save it, it displays as saved but when I try to retrieve the data in Excel I don't see any data in there. I checked the mebers of the implicit sharing and scenario, everything seems to be ok. I was able to back up data and recover for the same members from another server.
    I don't understand why I'm not able to save the data for the same members on Dev?

    Any help would be greatly appreciated...

    Thank you

    The data are well taken of essbase so that there must be, this points to a problem for the POV you have set up with your excel recovery.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Save data to the database...

    HII,
    I am a new developer on oracle developer 6i... my problem is like...
    I can't store the data in the form database developer 6i (the column is the column in the database and I said as a column of formulas that I can't store and value comes from other column by some calculation)...

    Hello, welcome to the Forums. What you describe with a calculated field is expected features. Here's what the forms help system has to say about calculated fields:
    _ Guidelines for the use of the elements calculated
    * Calculated are view-only control elements.
    * Calculated items cannot be elements of database.
    * So that you can define a calculated item Enabled, navigate to mouse and keyboard navigable properties Yes, you cannot set properties Insert authorized or Update Allowed Yes.

    If you want to write these values in the database, you will need to copy the value of the calculated field in an element of Basic tab.le of your block. For example:

    /* Pre-Insert trigger */
    BEGIN
       :BASETBL_BLOCK.TOTAL_AMOUNT := :CALC_BLOCK.CALC_ITEM;
    END;
    

    Hope this helps,
    Craig B-)

    If a response is appropriate or useful, please mark accordingly.
         
    Published by: Silvere June 2, 2010 08:36

    Published by: Silvere June 2, 2010 08:36

    Published by: Silvere June 2, 2010 08:36

    Published by: Silvere June 2, 2010 08:38

    Published by: Silvere June 2, 2010 08:41

  • Failed to save data on the DataForm

    Hi all

    I am using Planning 11.1.1.1.0.

    In one of the dataforms I'm trying to get the value of an account for "FY09"-> "BegBalnace'-> 'Real', but when I hit the button 'Save'... the data disappears...

    This specific account has 'STore' as storage device... "Expenses" as a type of account, no brothers and sisters and one of their parents, I also "store."

    Any help.would appreciated.

    Kind regards.

    Alicia

    Hello

    It could be an implicit sharing, value store members account essbase "Never share" and to update it, and then try again.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • cannot access data for the ipad

    • I broke my touch screen of the iPad that it no longer responds when I touch it but everything else still works I connect my iPad to iTunes and it says to respond to my iPad, but I can't because the touchscreen does not allow me to unlock it (there is no access code). I fixed my screen twice by a part of the third and the third time, the touch screen started ghosts then I dropped it the screen cracked and now the touchscreen does not work. However, he always ghost sometimes, but rarely. All I want to do now is get my data off the unit. can anyone help?

    If you have connected the iPad to a computer, try to use the same computer, it shouldn't you Guest if you confidence before.

    On the alert to "trust this computer" on your iPhone, iPad or iPod touch - Apple Support

Maybe you are looking for

  • iPad Pro: LTE connection lose (AT &amp; T).  Peut - iOS9.3 - Related

    I noticed, over the last week, many cases where my iPad Pro loses its connection (AT & T).  He goes to 'No Service'. Ignition and extinction of airplane Mode doesn't seem to help, or not given cellular switching back then didn't seem to help.  So far

  • Satellite L40 - loss of usb and wireless

    Hi all. New Member here.I have a laptop of Satelite L40.I hope someone can help? All of a sudden I lost all ability to port and wireles usb.My usb ports to power my devices, but Duke used everything is in the port.I also lost wifi too. device is not

  • Question about MT demodulate PSK

    Hello world I'm a little confused on the demodulation process. In the example of link package, we knew that the receiver would be chopping samples in number of packets, and then demodulate each package by MT demodulate PSK.vi and in the PSK.vi to dem

  • Problem with HP officejet print neqw modem

    HP officejet 6500 wireless will not print on wireless just have chnged modem and the password how to fix it please, I have windows

  • I can not play spades on msn it repeat issue with server with firewall problem

    I can not play spades on msn I can not play spades on msn he repeats the question severor problem with the firewall. Open portsand check firewall settings, but I don't know how to do this or what to look for so can you please help me thank you.