Invalid session error when trying to transfer line items to shopping basket

Hi All,
I have a requirement in E-Commerce application.
when a user searches for a product in B2B webshop in 'products' tab in left frame, search results table get displayed which will have a shopping basket icon for each line item.
There we can transfer only a single item to shopping basket.
if we want to transfer more than one item, again shopping basket icon has to be clicked..
Now my requirement is that I have to add check boxes before each line item and a button below the results table ,so that when it is cliked, all the checked items should move to shopping basket in a shot.
I added a button and called '/catalog/updateitems.do' (onclick of buttton) which is the action called when  'transferselection' button in 'productISA.jsp' is clicked.
Now I am getting  an error saying 'Invalid session' when that button is clicked. I am not able to guess the reason.
And also I want to ask experts, is this the correct way of proceeding for the requirement ?
I am new to E-Commerce and any pointers in this regard will be of great help.
Thanks,
Anasuya.

Hello Anasuya,
Any reason why Catalog is not used but "Product" search list is used in the process? Catalog gives a more organized way of displaying and searching capabilities and makes the buying experience simple. Product search is a convenience tool for power users when you know the product.
Without major UI changes - like de-framing, the use of Product search for "Add to Cart" of all "selected" products from search list will not excite the end users. Catalog is a powerful tool that is available to you. Unless you have a strong business reason, it is better to use the features the way they are intended. You need to go back to the drawing board with your customer.
Anyway, I am assuming that you are doing a POC. I will give the same help I provided for your previous message on a similar topic. Re: Null poiner exception when trying to store extension data in existing BO.  We need to understand the basics of Servlet / JSP. Just adding any action (calling servlet) from any page (JSP) may not help. We must understand that the action (servlet) may be expecting many values in the request context which is available in the page (JSP) it was placed in. If that action is blindly placed in another page, it is highly unlikely that it will work, unless, you also took the pain to provide the servlet behind that action with the data it is expecting. So, adding the action from _'productsISA.jsp' _ in organizer-content-product-search1.jsp will have bad results. If you have done the required changes to the JSP, then let us know the changes you have done to really understand the issue.
If you have not done so, here is what you can do for the POC. If you look at the JSP organizer-content-product-search1.jsp, it doesn't have any useful <INPUT tags that would pass on the Product data to the servlet. So
Surround the product (tech key) with <Input tag. (Hint: see productISA.jsp)
I am sure you already have this for the quantity1 and the new checkbox.
Add a button to a custom action.
inside the custom action read all the items and create a simple Java List of  BasketTransferItem. Use BasketTransferItemImpl to actually use the instance.
Use methods setProductKey(String techKey), setQuantity(String quantity) and if you know the UoM use setUnit(String unit) to set the BasketTransferItemImpl object.
Add each instance of BasketTransferItem to the java List.
Now, place this list object in the request context under the attribute name baskettransferitemlist.
On success forward to "addtodocument"
Make proper changes to config.xml
I hope this will work without much changes.
(Note: This is not a cake served in a plate, but just a tested recipe for the cake. Please cook it nicely. If you need the cake immediately, then hire a Chef! - )
Easwar Ram
http://www.parxlns.com

Similar Messages

  • I've started getting an error when trying to transfer purchased videos to iPhone.

    I've started getting an error when trying to transfer purchased videos to my iPhone.
    I get an error saying that selected videos will not play on the iPhone. They were purchased from iTunes and have been played on the phone previously.
    So far I've only noticed it on SD/HD videos, but not all SD/HD videos. Not had an issue yet with the judt SD files.
    Anyone else encountered this?
    Ta

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • Error when trying to view purchased items in app store

    My ipad has an error when trying to view my "purchased" items in app store, keeps "Loading...." for a while and then close the app.
    All the other options works well (featured, top charts, genius, updates...)
    I already turn off / on the ipad many times, same problem....

    I have the same problem with my iPhone 4s! Need  a solution from Apple!

  • ORA-01722: invalid number error when trying to pass a list of values

    Gurus
    We are using a function like so
    The usage for the function below is
    Select fn_st_bb_nm_uc (‘1232131312, 123213312’) from dual;
    SQL> /
    Select fn_st_bb_nm_uc ('1232131312, 123213312') from dual
    ERROR at line 1:
    ORA-01722: invalid number
    It’s giving an invalid number error. When we pass one value it is working fine but when we pass a string of values it gives this error. I have opened an SR around this but would greatly appreciate your help
    Acc_blackbar is the table and acc_blkbr_id is of type number.
    FUNCTION fn_st_bb_nm_uc (pBB_ID_LIST VARCHAR2)
    RETURN VARCHAR2 IS
    vspcm_typ_nm_uc VARCHAR2 (2000);
    CURSOR stname
    IS
    SELECT distinct st.spcm_typ_nm_uc
    FROM
    acc_blackbar abb,
    acc_specimen_type ast, acc_procedure apr,
    acc_specimen_part asp,
    specimen_type st, procedure pr,
    proc_proc_family ppf
    WHERE abb.ACC_BLKBR_ID = apr.ACC_BLKBR_ID
    AND apr.ACC_SPCM_PART_ID = asp.ACC_SPCM_PART_ID
    AND asp.ACC_SPCM_TYP_ID = ast.ACC_SPCM_TYP_ID
    AND ast.ACC_SPCM_TYP_SPCM_TYP_ID = st.SPCM_TYP_ID
    AND apr.procdr_id = pr.PROCDR_ID
    AND pr.PROCDR_ID = ppf.PROCDR_ID
    AND abb.acc_blkbr_id in (pBB_ID_LIST) ;
    BEGIN
    DBMS_OUTPUT.PUT_LINE(' BB LIST : ' || pBB_ID_LIST);
    FOR st IN stname
    LOOP
    vspcm_typ_nm_uc := vspcm_typ_nm_uc || ',' || st.spcm_typ_nm_uc;
    END LOOP;
    vspcm_typ_nm_uc := SUBSTR (vspcm_typ_nm_uc, 2);
    RETURN vspcm_typ_nm_uc;
    END;

    This ask tom thread covers multiple solutions:
    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425]

  • Using SSRS local mode, receive invalid token error when trying to export the report when running in worker thread

    We're using ASP.net with .Net 4, developing with Visual Studio 2012.  We use SSRS 2012sp1 with local reports, so exporting the report ourselves instead of using a reportviewer control (and not using the SQL Reporting service).  The reports are
    executing fine when we export the report in the main thread, but if we spawn a worker thread and run a report there we receive the following error when calling Render():
    Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Failed to load expression host assembly. Details: Invalid token for impersonation - it cannot be duplicated.
    We only receive this when running a report that uses expressions on a separate thread.  I've tried running the application pool under all the default built-in accounts (NetworkService, etc), and under admin user accounts to no avail.
    This didn't occur with the previous version of our application which used .net 3.5.

    As mentioned, we are not using the Reportviewer control, we are rendering locally.  Not certain if that would make a difference.
    Also, I had tried using all the built-in accounts.  Just for kicks I changed it to LocalSystem again, then reset IIS (see image below).  I then tried to export the report in a worker thread and received the same error.
    Here is the text from the exception:
    Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Failed to load expression host assembly. Details: Invalid token for impersonation - it cannot be duplicated.
    at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.ProcessLoadingExprHostException(ObjectType assemblyHolderObjectType, Exception e, ProcessingErrorCode errorCode)
    at Microsoft.ReportingServices.RdlExpressions.ReportRuntime.LoadCompiledCode(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, Boolean includeParameters, Boolean parametersOnly, ObjectModelImpl reportObjectModel, ReportRuntimeSetup runtimeSetup)
    at Microsoft.ReportingServices.OnDemandProcessing.Merge.Init(Boolean includeParameters, Boolean parametersOnly)
    at Microsoft.ReportingServices.OnDemandProcessing.Merge.Init(ParameterInfoCollection parameters)
    at Microsoft.ReportingServices.ReportProcessing.Execution.ProcessReportOdp.CreateReportInstance(OnDemandProcessingContext odpContext, OnDemandMetadata odpMetadata, ReportSnapshot reportSnapshot, Merge& odpMerge)
    at Microsoft.ReportingServices.ReportProcessing.Execution.ProcessReportOdp.Execute(OnDemandProcessingContext& odpContext)
    at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReportOdpInitial.ProcessReport(ProcessingErrorContext errorContext, ExecutionLogContext executionLogContext, UserProfileState& userProfileState)
    at Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
    at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension newRenderer, DateTime executionTimeStamp, ProcessingContext pc, RenderingContext rc, IChunkFactory yukonCompiledDefinition)
    at Microsoft.Reporting.LocalService.CreateSnapshotAndRender(ReportProcessing repProc, IRenderingExtension renderer, ProcessingContext pc, RenderingContext rc, SubreportCallbackHandler subreportHandler, ParameterInfoCollection parameters, DatasourceCredentialsCollection credentials)
    at Microsoft.Reporting.LocalService.Render(String format, String deviceInfo, String paginationMode, Boolean allowInternalRenderers, IEnumerable dataSources, CreateAndRegisterStream createStreamCallback)
    at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
    --- End of inner exception stack trace ---
    at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
    at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
    at Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
    at Microsoft.Reporting.WebForms.Report.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
    at IxSS.Infolinx.Report.MicrosoftInfolinxReport.ExportReport(String strFileFullyQualifiedPath, String strExportType, String strFilterDesc, Dictionary`2 extraParams, String area)
    at IxSS.Infolinx.Report.MicrosoftInfolinxReport.ExportReport(String strFileFullyQualifiedPath, String strExportType, String strFilterDesc, Dictionary`2 extraParams)

  • Logon Failed - Invalid element error when trying to connect to SalesForce

    I had a working crystal reports database connection to salesforce until I installed a Crystal Reports update on my machine.  It is currently running v12.2.0.290 (CR Developer).
    Since the update when trying to connect, I enter my password and salesforce security token to get access to the database but now I receive an error that says:
    Logon Failed
    Details: Unexpected error
    ; nested exception is
      org.xml.sax.SAXException: Invalid element in com.sforce.soap.partner.LoginResult - metadataServerUrl
    Help is resolving this error would be appreciated.

    Hi Ron -- you have installed SP2 of Crystal Reports 2008. You will need to install the FP 2.2 as per this thread -- Crystal Reports 2008 SP2 update to the Salesforce.com connectivity
    Let us know if this solved your problem.
    Thanks,
    Pete

  • Getting Entry 10: Invalid Ip error when trying to open up a port.

    Hey everyone, I'm using linksys wrt54gc wireless router. I'm trying to open up a few ports for several applications but when i try to add a port i'm getting invalid ip error. For example i'm trying to open up port 6112 for warcraft 3 and setting it to 192.168.1.10 but it says invalid ip. whatever i wrote down there it refused. any ideas ? By the way i updated to latest firmware. Thanks.

    Disable all the firewall on the computer .... also make sure that the router is working on latest firmware .... check the firmware from linksys website & see if it works ,,,,

  • Error when posting Open AR Line Items

    hello iam posting Open AR Line Items for contract account using message type
    CTRACDOCUMENT_CREATE using lsmw idoc method .iam getting error as Document type not defined but actually when iam creating document manually item is created with out any error that means it is defined and my functional consultant is also saying he defined document type.can some body explain me what is the problem.
    Regards
    priya

    Hi Priya,
    As you are using the Idoc method, is the Partner profile correctly defined.
    Please could you elaborate your error in a bit more detail.

  • Script error when trying to delete group items

    Hello,
    I have the following part of my javascript:
    //loop to remove logos
    for (i=0; i<logoKeys.length; i++) {
    if (logosArray[logoKeys[i]] == false) changeLayer.groupItems.getByName(logoKeys[i]).remove();
    And I get the following error when any of the values are set to false:
    Line 64: if (logosArray[logoKeys[i]] == false) changeLayer.groupItems.getByName(logoKeys[i]).remove();
    an Illustrator error occurred: 1128353364 ('CANT')
    The script works fine when none of the values in logosArray are false, so it must be the part
    changeLayer.groupItems.getByName(logoKeys[i]).remove();
    that is giving me problems.
    I declare the values like this:
    var values = new Array();
    ..some declarations in here for first part of the array...
    values[6]=false;
    values[7]=true;
    values[8]=false;
    values[8]=false;
    values[10]=false;
    then later populate the logosArray:
    for (i=0; i<logoKeys.length; i++) {
    logosArray[logoKeys[i]] = values[offset];
    offset++;
    The interesting thing is if I change the population of logosArray to set all values implicitly to false, it also works fine:
    ie.
    for (i=0; i<logoKeys.length; i++) {
    logosArray[logoKeys[i]] = false;
    offset++;
    So it doesn't seem to like taking the values for logosArray from my values[] array. Any idea why? Any help is greatly appreciated. Thanks.

    Update:
    When I implicitly set the values of logosArray to "false" it only works every OTHER time I run the script. Is there any kind of cache or local memory dump I have to do on illustrator between running scripts?

  • Error when trying to transfer movie rental to my iPod Classic.

    I get the following error message when I try to transfer a movie rental to my iPod Classic.
    Attempting to copy to the disk "Michael Graham's iPod" failed. This disk could not be read from or written to.
    Anyone out here know of a fix for this problem?
    Thanks

    I pugged the USB cable directly into the computer and not the USB hub. That did not help. I also followed the suggestion in the article you sent me to. It suggested that I might want to restore my iPod. I did that will no luck either. I event double checked my receipt and discovered that last day to return my iPod to Target wast July 13. So now I don't know what to do. Apple also seems to no help. Their suggestion is to update my iPod, but it is up to date. I guess I won't be using my iPod to watch movies.
    Michael

  • How do I fix the "Expected handle" error when trying to transfer a file with FireFTP?

    I'm trying to upload a ZIP file to my FTP folder with Blackbaud and cannot do so. I've entered all the parameters exactly as instructed by Blackbaud and all connections look good but when I go to transfer the file, I get the following message: "Expected handle: /users/B67E610BAA01/"H:\Downloads\BUMFS RE7 Database.zip" "BUMFS RE7 Database.zip"." All I can do is click "OK" and nothing happens other than seeing a repeated loop in the log that alternates between "noop" and "ok."

    Make sure your account has the proper permissions to write to the location. I ran into this exact same problem, and that was my solution, anyway...

  • Invalid descriptor error when trying to access nss volums

    Hi everyone,
    sorry for my english, when some users try to access shared nss volumes they get this error " invalid descriptor", but other folders are accessible at the same level.
    users are on windows 7 and the last novell client.
    thanks

    On 23/06/2014 16:06, skaii wrote:
    > sorry for my english, when some users try to access shared nss volumes
    > they get this error " invalid descriptor", but other folders are
    > accessible at the same level.
    >
    > users are on windows 7 and the last novell client.
    Since you reference Novell Client I'm thinking that you're not using
    Novell's Dynamic File Services product[1] which is what this forum is
    for. If that is the case then you should repost in a more appropriate
    forum, depending on whether you're using Open Enterprise Server (OES) or
    NetWare.
    HTH.
    [1] http://www.novell.com/products/dynamic-file-services/
    Simon
    Novell Knowledge Partner
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below. Thanks.

  • Invalid URL Errors when trying to access custom Sync Server(rev 532) from Firefox 17.0 for Android via HTTPS

    I currently have Sync Server(rev 532) installed on FreeBSD-STABLE(stable/9) and have Firefox 17 on Mac OS X and Windows XP sync successfully.
    But when I try to pair Firefox 17.0 for Android by entering 3 rows of 4 letter codes into Firefox on Desktop, the sync never ends on Android, although the Sync account gets listed in "Settings> Accounts & sync> Firefox Sync".
    If I try to pair the Android with advanced setting (using the Recovery Key), I get "Please enter valid server URL" after entering custom server URL (I tried mozsync.mydomain.tld, https://mozsync.mydomain.tld, https://mozsync.mydomain.tld/) along with my account information.
    I had my Sync Server listen on HTTPS only, but if I setup my server on HTTP, everything works as expected.
    The content of log file for SSL connection only includes the logs from my Desktop and none from my Android device.
    Direct access from Firefox for Android to "https://mozsync.mydomain.tld/weave-delete-account" succeeds, and this connection gets logged.
    My device is HTC Evo 4G (named HTC EVO WiMAX ISW11HT in Japan) with officially updated of version Android (2.3.4 Gingerbread :P) by HTC.
    I currently have my Sync Server listening on HTTP, but I am little uncomfortable with my syncing datas being tranmitted without SSL.
    Any help is appreciated!!!

    I have filed a bug [https://bugzilla.mozilla.org/show_bug.cgi?id=819762 here] at bugzilla.
    Any help is still appreciated!!!
    Edit:
    The bug was filed as duplicate of [https://bugzilla.mozilla.org/show_bug.cgi?id=756763 this].
    It turned out the CA, which issued my certificate, was not bundled and importing SSL is broken in early version of Android.
    Same applies to self-signed certificates.
    Maybe the solution is to update the Android version by rooting the phone, which is not my choice.
    I'm closing my question as solved, because the root of the problem is not Firefox.

  • Invalid number error when trying to convert a varchar2 to a number.

    I need to extract the middle four numbers from a varchar2(12) and then convert it to a number. The middle four are numbers but the first four can have letters. I've tried
    TO_NUMBER(substr(wptk.ext_wo_num,5,4))
    TO_NUMBER(LPAD(wptk.ext_wo_num,5,4))
    substr(TO_NUMBER(wptk.ext_wo_num) ,5,4)
    cast as number
    I need to get rid of any 0 that are at the beginning of the four numbers. Some of the data has no 0 and some can have up to three 0 at the beginning. Is there a way to do that?
    thanks.

    user10426897 wrote:
    I came back with 56 rows that look like this 1127-0651-E1. I am trying to translate an ingres view into Oracle that has this in the select statement: INT4(LEFT(TRIM(RIGHT(wptk.ext_wo_num,8)),4))You could use regular expressions...
    SQL> with t as (select '065101412354' as num from dual union all
      2             select '065106523237' from dual union all
      3             select '065206523238' from dual union all
      4             select '065606542356' from dual union all
      5             select '080101410218' from dual union all
      6             select '080102520218' from dual union all
      7             select '080106020218' from dual union all
      8             select '080201120219' from dual union all
      9             select '080601111214' from dual union all
    10             select '080801351216' from dual union all
    11             select '080802511216' from dual union all
    12             select '10000133013' from dual union all
    13             select '10000133SC3' from dual union all
    14             select '10000133SP4' from dual union all
    15             select '10000211011' from dual union all
    16             select '10000241011' from dual union all
    17             select '10000601S29' from dual union all
    18             select '10000601SC1' from dual union all
    19             select '10000601SH2' from dual union all
    20             select '10000601SP2' from dual union all
    21             select '10000602A11' from dual union all
    22             select '10000602A50' from dual union all
    23             select '10000602A54' from dual union all
    24             select '10000602A59' from dual union all
    25             select '10000602C06' from dual union all
    26             select '10000602E67' from dual union all
    27             select '10000602M00' from dual union all
    28             select '10000602M01' from dual union all
    29             select '10000602M07' from dual union all
    30             select '1127-0651-E1' from dual)
    31  --
    32  select num, to_number(regexp_replace(num,'^.{4}-?([0-9]{4}).*$','\1')) as num_num
    33  from t
    34  /
    NUM            NUM_NUM
    065101412354       141
    065106523237       652
    065206523238       652
    065606542356       654
    080101410218       141
    080102520218       252
    080106020218       602
    080201120219       112
    080601111214       111
    080801351216       135
    080802511216       251
    10000133013        133
    10000133SC3        133
    10000133SP4        133
    10000211011        211
    10000241011        241
    10000601S29        601
    10000601SC1        601
    10000601SH2        601
    10000601SP2        601
    10000602A11        602
    10000602A50        602
    10000602A54        602
    10000602A59        602
    10000602C06        602
    10000602E67        602
    10000602M00        602
    10000602M01        602
    10000602M07        602
    1127-0651-E1       651
    30 rows selected.
    SQL>

  • Error when trying to transfer a song...

    I just got my Ipod Nano and I was able to move a song from my itunes but another one gave me an error it said that "it will not copy because you are not authorized to play it on this computer"? I don't understand why I got this error can anyone tell me what I need to do. Thanks

    Choose Authorize Computer from the Store menu in iTunes or play a purchased song, supply your account information, and sync the iPod.
    (30260)

Maybe you are looking for

  • Text from Stock Transfer Order to Outbound delivery

    Hi guys We wish to enter line item test in a Stock transfer order UB and transfer it to an Outbound delivery type NL. The required text are 'ITEM TEXT' and 'DELIVERY TEXT'. Please advise on the appropriate configuration that is required to achieve th

  • Itunes items in My Documents

    I have installed iTunes on a network computer that gives me a ridiculously limited amount of space (50 Mb). I have saved my music files to the computers local drive but have noticed the iTunes has automatically put the itunes library files and album

  • PE11 is driving me mad, sorry!

    Just when I think I'm at last on my way with PE11, the same old weird problems keep coming at me.  OK, Bill, so I've got all my .prel files (11 of them) in the one folder I've been working on all the time (btw is it possible to upload screencaptures

  • How to put 3 column guide for website template?

    How can i put a 3 column guide in PS like I am building a website? This way I can use each section on its own and know where my boundries are. I guess I could just draw a line, but I want something that I can adjust quickly

  • I can not connect to itunes keep getting error 306

    I am trying to connect to itunes but keep getting error message saying "you can not connect to intunes error 306 please try later"