Not able to add a remaining order amount to a payment group

Hello all,
I've been writing a customized kind of PaymentFormHandler, which extends the PurchaseProcessFormHandler and implements the transaction pattern.
I'm getting an exception which I am currently not able tosolve. The important code section follows, the exception caught as well.
Does anyone have a tip on solving this problem? Any help is appreciated.
(Do not consider the comment and log lines in Portuguese)
// Adicionando o default
                              String nomePaymentGroupDefault = getPaymentGroupMapContainer()
                                        .getDefaultPaymentGroupName();
                              PaymentGroup paymentGroup = getPaymentGroupMapContainer()
                                        .getPaymentGroup(nomePaymentGroupDefault);
                              logDebug("adicionando o restante do valor do order ao "
                                        + nomePaymentGroupDefault + ", id: "
                                        + paymentGroup.getId());
                              try {
                                   getOrderManager()
                                             .addRemainingOrderAmountToPaymentGroup(
                                                       getOrder(), paymentGroup.getId());
                              } catch (CommerceException e) {
                                   tratarExcecoes(e);
CONTAINER:atg.commerce.order.InvalidParameterException: atg.commerce.order.OrderResources->InvalidPaymentGroupIdParameter
: Invalid PaymentGroup id parameter.; SOURCE:atg.commerce.order.PaymentGroupNotFoundException: atg.commerce.order.OrderRes
ources->PaymentGroupNotFound : PaymentGroup with id pg640003 is not in container.
at atg.commerce.order.PaymentGroupManager.getPaymentGroupOrderRelationship(PaymentGroupManager.java:731)
at atg.commerce.order.OrderManager.getPaymentGroupOrderRelationship(OrderManager.java:5021)
at atg.commerce.order.OrderManager.addRemainingOrderAmountToPaymentGroup(OrderManager.java:2066)
at passarela.web.pagamento.PagamentoFormHandler.handleEfetuarPagamento(PagamentoFormHandler.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at atg.droplet.EventSender.sendEvent(EventSender.java:582)
at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
at atg.droplet.FormTag.sendEvents(FormTag.java:649)
at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
Thanks a lot.

No, it is in the order. These two lines work correctly:
String nomePaymentGroupDefault = getPaymentGroupMapContainer()
.getDefaultPaymentGroupName();
PaymentGroup paymentGroup = getPaymentGroupMapContainer()
.getPaymentGroup(nomePaymentGroupDefault);
I'm able to retrieve the name of the default paymentGroup and, using the name, get the payment group itself.
The problem is when i call getOrderManager().addRemainingOrderAmountToPaymentGroup(getOrder(), paymentGroup.getId()) which throws the exception above.
The default group has been successfully created by a prior CreateCreditCardFormHandler.
Thanks.

Similar Messages

  • Not able to add new log file to the 11g database.

    Hi DBA's
    I am not able to add the log file i am getting error while adding the database.
    SQL> alter database add logfile group 3 ('/oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') size 50m reuse;
    alter database add logfile group 3 ('/oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') size 50m reuse
    ERROR at line 1:
    ORA-01505: error in adding log files
    ORA-01577: cannot add log file '/oracle/DEV/db/apps_st/data/log03a.dbf' - file
    already part of database
    SQL> select a.group#, member, a.status from v$log a, v$logfile b where a.group# = b.group# order by 1;
    GROUP# MEMBER STATUS
    1 /oracle/DEV/db/apps_st/data/log01a.dbf ACTIVE
    1 /oracle/DEV/db/apps_st/data/log01b.dbf ACTIVE
    2 /oracle/DEV/db/apps_st/data/log02a.dbf CURRENT
    2 /oracle/DEV/db/apps_st/data/log02b.dbf CURRENT
    Kindly help me to add the new log file to my database.
    Thanks,
    SG

    Hi Sawwan,
    V$LOGMEMBER was written in the document,
    I query the log members as bellow
    1)select a.group#, member, a.status from v$log a, v$logfile b where a.group# = b.group# order by 1;
    GROUP# MEMBER STATUS
    1 /oracle/DEV/db/apps_st/data/log01a.dbf INACTIVE
    1 /oracle/DEV/db/apps_st/data/log01b.dbf INACTIVE
    2 /oracle/DEV/db/apps_st/data/log02a.dbf CURRENT
    2 /oracle/DEV/db/apps_st/data/log02b.dbf CURRENT
    2)SQL> select group#,member,status from v$logfile;
    GROUP# MEMBER STATUS
    2 /oracle/DEV/db/apps_st/data/log02a.dbf
    2 /oracle/DEV/db/apps_st/data/log02b.dbf
    1 /oracle/DEV/db/apps_st/data/log01a.dbf
    1 /oracle/DEV/db/apps_st/data/log01b.dbf
    But i am littile bit confused that there is no group or datafile called " Group 3 and log03a.dbf" as per the above query, how can i drop tease group and datafile.
    and i crossverified in the data top the files are exist or not but those are not existing. but still i am getting the same error that i can't create that already exist.
    can issue the bellow queris to drop those group which i dont think so it will exist?
    SQL>alter database drop logfile group 3;
    Thanks in advance.
    Regards,
    SG

  • Not able to add 320kbps Bitrate mp3 songs to my iPod

    I have also enabled "Convert higher bit rate songs to 128kbps AAC format" in my iTunes. But even then I'm not able to add 320kbps bitrate songs to my iTunes or into my iPod (5th Gen Nano).
    What should I do in order to convert those songs to 256kbps bitrate songs?
    Regards,
    Kishore.

    Hello CMCSK,
    Here are my answers to Oxinian's questions:
    I've been able to add 320 kbps MP3s to my Nano 5G without a problem, even without enabling the "convert to AAC" option. *Still I'm not able to do that.*
    So the bitrate shouldn't be the reason. Have you already tried adding a different MP3 with 320 kbps ? *Yes. But of no use !!*
    At what point in the process are you experiencing the problem ? When trying to add the file to the iTunes library ? *Yes, when trying to drag and drop in the iTunes library.*
    Are you getting any error message ? *Yes. Here it is - "iTunes could not copy "" to the iPod "" because the file could not be found"*
    Could the MP3 be corrupt ? *No. It plays well in Windows media player.*
    Could you try to get it again from elsewhere ? Re-importing from a CD or downloading it again from another place ? *Yes. No use !!*
    Regards,
    Kishore.

  • Not able to add rss to my mac mail

    i m not able to add rss to my mac mail after i deleted my rss folder in my mac mail

    I have a similar problem. I had about 7 RSS feeds in Mail. Two of them stopped working/updating but when I tried to delete them (in Mail) I found I could not. They just stayed put and remained unresponsive. Then I found (1) I could not delete any of the feeds, even the ones that were still working and (2) I could not add any new RSS feeds to Mail.
    I then went to my Library/Mail folder and manually deleted the contents of the RSS folder, without deleting the RSS folder itself. This caused the RSS feeds to disappear from Mail, along with the RSS header in the left menu bar.
    BUT I STILL CANNOT ADD NEW RSS FEEDS TO MAIL! When I click on an RSS tab in a website, it goes through all the right motions but then, nothing. The RSS feed does not show up in Mail and there is no error message.
    I/we need help please.

  • I am not able to add video files to my itunes after installing itunes 10.7

    I am not able to add video files to my itunes after installing itunes 10.7.0.21

    I Have been using, Ipad for only around a month or so (Ipad 2), and it was only yesterday that i tried to use the Itunes. I first downloaded the latest itunes (10.7.0.21), and took backup of all my Ipad data.
    After this, I wanted to add some video to my ipad, as it was essential to add the same to My itunes first, I roceeded to do just that. I went through this command {File - Add File to Library}, and then went on to select the Video file. There's just a flicker, and then nothing happens at all - the itune screen remains, and there is no error message too. Whereas, I can easily add Audio Files.
    After this, I even downaload the latest Quick time (7.7.2), as I had read somewhere that the same is necessary. When I tried to open the Video file in Quick time, it did not open. After that I downloaded the codec DivX and DivX player. Though the Video plays in DivX, it refuses to open in Itune and does not play properly in Quicktime (slider moves, but sound and video is not there).
    Frankly, I am utterly confused.
    Regards, Shekhar

  • We are Not able to Add, approved A/P invoice - Error - Tax code Missing

    Dear Experts,
    In A/P -> A/P service Invoice
    When We are going to Add Approved Invoice ,system can not allow . This
    invoice is go through a approval process ,system can not allow to change any
    of document row during approval process or after approval process.
    we are unable to add tax or remove line item after approval.
    We are Not able to Add, approved A/P invoice - Error - Tax code Missing
    [A/p Invoice Row -Tax code] Line 3 [Message 3513-14]
    I think ,It should allow the system to edit the row tax or amount after or during
    approval process

    Don't worry,AP invoice is not get posted,it will be saved as draft only,
    Default tax code for purchase documents using tax code determination.
    Create new ap invoice with tax code and send it for approval.
    Orginator should ensure all mandatory fields in document are entered correctly before
    sending it for approval.

  • SAP HANA Attribute View- Not able to add objects

    Hi All,
    I've created one attribute view in Modeler Perspective.
    Trying to add tables on data foundation using "Add Objects". But when table name is entered in pop-up window, it hangs (not-responding). And error log got created as below.
    I'm not able to add the tables.
    "SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@8e003d[ID 225800]."
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@8e003d[ID 225800].
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136)
    at com.sap.db.jdbc.ConnectionSapDB.assertOpen(ConnectionSapDB.java:224)
    at com.sap.db.jdbc.ConnectionSapDB.getTransactionIsolation(ConnectionSapDB.java:1263)
    at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1122)
    at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:888)
    at com.sap.db.jdbc.FetchInfo.executeFetch(FetchInfo.java:162)
    at com.sap.db.jdbc.FetchInfo.executeFetchNext(FetchInfo.java:157)
    at com.sap.db.jdbc.ResultSetSapDB.fetchNextChunk(ResultSetSapDB.java:2418)
    at com.sap.db.jdbc.ResultSetSapDB.next(ResultSetSapDB.java:419)
    at com.sap.db.jdbc.trace.ResultSet.next(ResultSet.java:269)
    at com.sap.ndb.studio.sql.model.tables.impl.CatalogImpl.getCatalogObjects(CatalogImpl.java:338)
    at com.sap.ndb.studio.sql.model.tables.impl.CatalogImpl.getCatalogObjects(CatalogImpl.java:414)
    at com.sap.ndb.studio.bi.search.provider.CatalogObjectSearchProvider.doSearchInternal(CatalogObjectSearchProvider.java:172)
    at com.sap.ndb.studio.bi.search.provider.CatalogObjectSearchProvider.doSearch(CatalogObjectSearchProvider.java:95)
    also,
    "Could not fetch catalog objects"
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@64b085[ID 225787].
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136)
    at com.sap.db.jdbc.ConnectionSapDB.assertOpen(ConnectionSapDB.java:224)
    at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1964)
    at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:362)
    at com.sap.ndb.studio.jdbc.JDBCConnection.prepareStatement(JDBCConnection.java:479)
    at com.sap.ndb.studio.catalog.internal.JdbcExtended.getTablesCaseInSensitive(JdbcExtended.java:277)
    at com.sap.ndb.studio.catalog.CatalogUIPlugin.internalGetTableNames(CatalogUIPlugin.java:669)
    at com.sap.ndb.studio.catalog.CatalogUIPlugin.getTableNamesNoProgressService(CatalogUIPlugin.java:1156)
    at com.sap.ndb.studio.sql.dialogs.FindTableDialog.fillContentProvider(FindTableDialog.java:504)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.filterContent(FilteredItemsSelectionDialog.java:2182)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.internalRun(FilteredItemsSelectionDialog.java:2124)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.doRun(FilteredItemsSelectionDialog.java:2096)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.run(FilteredItemsSelectionDialog.java:2083)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Thanks,
    Sujit

    Hi Sujit,
    The log seems that connection is closed. Is it true? Did your system restarted?
    What happens if you close the studio, open it and try again?
    Are you using same revision Studio than the database?
    Regards, Fernando Da Rós

  • I can't synch my iPhone with iTunes because the device does not show up in a device window when I plug it in...it's missing in action and thus I'm not able to add any content from the iTunes to my iPhone, e.g. podcasts

    I can't synch my iPhone with iTunes because the device does not show up in a device window when I plug it in...it's missing in action and thus I'm not able to add any content from the iTunes to my iPhone, e.g. podcasts.   All the instructions on synching start with "find your device in the device window".  But what if you have no device window?

    Missing "message" from above: The iPad "DGMTR" is synced with another iTunes library on DGMTR's MacBook Pro. Do you want to erase this iPad and sync with this iTunes library? An iPad can be synched with only one iTunes library at a time. Erasing and syncing replaces the contents of this iTunes library.
    I thought the libraries were the same.

  • HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says  that movies I add are in library.Which I cant add

    HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says "feature films and home movies you add to itunes appear in movies in your iTunes library. To play a movie, just double click it". And below are two options for Downloading movies from store and rent movies. Please help.

    I get the exactly the same problem with win 7, i rang apple support who suggested i try another machine/or create another account on my machine???? why should i, stupid ipad 3rd gen is now sitting here un syncable, apple support ....tut tut very poor support, its a shame im out of the 7 day period otherwise this ipad would be going straight back, older versions of itunes worked fine, some one must know a fix for this??

  • HT1351 I have a apple ipod touch but recently I restored all the settings, as well as the applications. But now I am not able to add songs to it. There is blank screen that shows the symbol like to connect to itunes first. I'm not able to use that... Plea

    I have a apple ipod touch but recently I restored all the settings, as well as the applications. But now I am not able to add songs to it. There is blank screen that shows the symbol like to connect to itunes first. I'm not able to use that... Please help

    The iPod's firmware is corrupt. You'll need to restore it again in iTunes. If necessary, place the iPod in recovery mode for iTunes to recognize the device. Use the instructions in this Apple support document to walk you through the process of placing the iPod Touch into recovery mode.
    iOS: Unable to update or restore
    B-rock

  • HT202213 I recently bought a new computer and installed itunes, i transferred my music of my old computer but i am now not able to add songs to my ipod touch off my new computer?

    I recently bought a new computer and installed itunes, i transferred my music of my old computer but i am now not able to add songs to my ipod touch off my new computer?

    Drag the folder into the library in the open iTunes program window.
    (113784)

  • I have a Iphone 4, upgraded to ios 5 with itunes 10.5  Since doing upgarde to both Itunes and Iphone I am not able to add individual songs from my itunes library to my Iphone.  I get a grey listing of the song and the sync symbo but it is not moving.

    I have a Iphone 4, upgraded to ios 5 with itunes 10.5  Since doing upgarde to both Itunes and Iphone I am not able to add individual songs from my itunes library to my Iphone.  I get a grey listing of the song and the sync symbo but it is not moving. Nothing appears on my phone screen.  So not able to add music to my phone and its driving me nuts.....

    iOS 7 requires iTunes 11.1.

  • Not able to add free item in PO

    dear all
    i am not able to add free items in already created import PO. when i add item and click on free item check box, system says "No delivery costs allowed without invoice receipt" and if i click on invoice receipt that item is no longer free item as the free item check box gets untick.
    pl help me to solve this.
    thanks & regards'
    manoj gupta

    Hi
    If there is no delivery cost condition like Freight at item level exists then
    Please check any delivery cost conditions given as Header condition.If it is given as Header condition and this cost will be distributed among the line items.When you adding the line item, the cost also distributed.For free items you can't assign any costs.
    Regards
    Ramakrishna

  • I am not able to add videos to itunes. So I am not able to sync them with my IPhone4s. I ve tried: dragging to itunes, minimize file name of mp4, adding by file/folder still not adding. WHY? Please help.

    I am not able to add videos to itunes. So I am not able to sync them with my IPhone4s.
    I ve tried:
    dragging to itunes,
    minimize file name of mp4,
    adding by file/folder, but still not adding.
    WHY? Please help.

    This is very serious. Your computer got infected with ransom malware, Cryptowall.
    Go here for further info.
    CryptoWall 2.0 Anything Good about Buying you Keys? - General Security
    CryptoWall and DECRYPT_INSTRUCTION Ransomware Information Guide and FAQ

  • Not able to add outgoing payment for vendor

    Hi to all Experts,
    I am facing problem i.e I am not able to add outgoing payment for Vendor. I have tried to multipul time using different users also. I have booked purchase first and then tried to make payment to the vendor.Docdate is 14th Jul 08, and docdue date is 18th Aug. 08.
    I have made two entries for outgoing payment using G/L A/c. option before trying to do this entry successfully.
    Can any body plz help me to resolve this issue.
    Warm Regards,
    Chintesh Soni

    Hello Chintesh,
    The scenario seems to be similar to the one described in Note 1027043.
    Here is the text from the Note:
    "You are trying to add the an Outgoing Payment for an A/P Invoice or A/P Credit Memo using Checks as Payment Means. However, after pressing the 'Add' button, the payment is not added and the system does not send an error message."
    This issue occurs when the Vendor Ref. No. field in the A/P invoice or the A/P credit memo has more than 39 characters.
    It is an application error that is fixed in PL26, 2005B (Note 1073858). Kindly upgrade to the latest patch. If not possible at the moment, you can use the workaround provided in the Note.
    I hope this helps.
    Regards,
    Lorna Real

Maybe you are looking for