Probelms Adding items to JList Component

i tried to add items to JList from the database.... and it can add to the variable but the list isnt displaying....
here is my code for that button...
list_ListTopic = new JList(new DefaultListModel());
DefaultListModel listModel = (DefaultListModel)list_ListTopic.getModel();
jScrollPane1 = new JScrollPane(list_ListTopic);
jScrollPane1.setViewportView(list_ListTopic);
Vector data = new Vector();
listModel.clear();
while (lrs.next())
        data.add(lrs.getString("tName"));                                       
        i++;
list_ListTopic.setListData(data);
jScrollPane1.setViewportView(list_ListTopic);Thanks!

Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]How to Use Lists. It shows you how to initially load data into a list and then how to add/remove entries from the list. In general, you don't update the Vector after the ListModel has been created you update the model directly.

Similar Messages

  • How do i add a Scroll Bar to a  JList Component using absolute positioning?

    I've got a applet whose content pane is set to null. I've create a jlist component on this applet and using absolute positioning set the bounds at
    ListBox1.setBounds(380,10, 500, 500);.
    My problem is creating add a scroll bar to the list box.
    JScrollPane scrollPane = new JScrollPane(ListBox1);
    C.add(scrollPane);
    The above code is what i use and when i run this applet i don't see the list box at all. How do i add a scrollbar to this list box or JList component. Please help.

    You need to setBounds() on the JScrollPane, not the JList.
    The JScrollPane is the component that is being added to the panel.

  • Add item in JList

    How i can add each item to JList. Using loop not use array?

    I have not used a JList before, but looking at the API, one of the JLists constructors will take a Vector as one of it's argument
    JList API http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JList.html
    constructor
    JList(Vector listData) so you would be able to add elements to the vector in a loop using the add() method of the vector class
    then construct the JList after the elements have been added to the vector, this will mean that you do not have to specify the size of the vector (all thought you can) as it will dynamically grow as you add items to it.
    So if you don't know the amount of items that you will be adding to your JList to start with, it is a better bet than using an array
    again have a look at the vector API http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html
    hope that points you in the right direction
    JaVAmUG3380

  • SSRS 2008 Work order Report , when added item descriotion , somehow costgroup id is not working , donot know why, ( need help)

    SSRS 2008 Production orders created report, when I added item description some how cost group id is not working ,
    my costgroup id did not break into labor , only Mat Cost showed in the total,
    my query is as below,  did I link the wrong field,   I want to show Labor total also
    can some one suggest what I did wrong .
    any advise will be great
    SELECT        PRODTABLE.PRODID, PRODCALCTRANS.COSTGROUPID, PRODTABLE.QTYCALC, PRODTABLE.PRODSTATUS, PRODCALCTRANS.COSTAMOUNT,
                             PRODCALCTRANS.COSTMARKUP, PRODCALCTRANS.REALCOSTAMOUNT, PRODCALCTRANS.CALCTYPE, PRODTABLE.DATAAREAID, PRODCALCTRANS.KEY3,
                             PRODCALCTRANS.CONSUMPVARIABLE, PRODCALCTRANS.REALCONSUMP, PRODTABLE.ITEMID, PRODTABLE.SCHEDDATE, PRODTABLE.FINISHEDDATE,
                             PRODCALCTRANS.KEY1, PRODCALCTRANS.TRANSDATE, PRODCALCTRANS.QTY, PRODCALCTRANS.KEY2, PRODCALCTRANS.COLLECTREFLEVEL,
                             PRODCALCTRANS.LINENUM, INVENTTABLE.ITEMNAME, INVENTTABLE.ITEMID AS Expr1, PRODTABLE.INVENTTRANSID
    FROM            PRODTABLE INNER JOIN
                             PRODCALCTRANS ON PRODTABLE.PRODID = PRODCALCTRANS.PRODID AND PRODTABLE.DATAAREAID = PRODCALCTRANS.DATAAREAID INNER
    JOIN
                             INVENTTABLE ON PRODCALCTRANS.DATAAREAID = INVENTTABLE.DATAAREAID AND PRODCALCTRANS.KEY1 = INVENTTABLE.ITEMID
    WHERE        (PRODTABLE.PRODSTATUS = 7) AND (PRODTABLE.DATAAREAID = N'AR1') AND (PRODTABLE.ITEMID = @itemid) AND
                             (PRODTABLE.FINISHEDDATE >= @Paramfromdate) AND (PRODTABLE.FINISHEDDATE <= @Paramtodate) AND (PRODCALCTRANS.COLLECTREFLEVEL
    = 1) AND
                             (PRODCALCTRANS.CALCTYPE >= 0)

    Hi Bitia,
    As per my understanding, after you add Item field to the report, it does not calculate total of matl group, right? If that is the case, please refer to the following steps to troubleshoot the problem:
    Modify the dataset used to retrieve data, delete the fields will not be used in the report.
    Run the query in SQL Server Management Studio (SSMS) to make sure that there is data for matl cost group.
    Make sure that row group and totals are correctly added.
    In addition, do you want to add Finished date to page header? If that is the case, we can use ReportItem to achieve the goal. Please refer to the following steps:
    In design surface, right-click the report and click Insert, then click Page Header.
    Drag Text Box from Toolbox to page header.
    Right-click inside of Text Box, then click Expression.
    In the expression text box, type the code like below:
    =ReportItems!FinishedDate.Value
    If the problem remain unresolved, please provide the screenshot of the report in design view, the following screenshot is for your reference:
    Reference:
    ReportItems Collection References
    Adding Grouping and Totals
    Thanks,
    Wendy Fu

  • Error Message while adding Item in Item Master Data- [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting the nvarchar value 's008 01' to data type int. (CINF)

    Dear Experts
    I am getting the following error message while adding item in Item Master data. I have modified the following SBO_SP_transactionNotification in SQL server after that could not able to add the item
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                      -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                       -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    --    IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
      BEGIN
       IF EXISTS(
        SELECT T0.Price FROM IGN1 T0
        where  IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
       BEGIN
        SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
      END
    end
    -- Select the return values
    select @error, @error_message
    end

    Hi Rathna,
    Just put the SP like this, without the -- before the IF. A -- marks the line as a command therefore you need to uncomment and it will work.
    IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
      BEGIN
       IF EXISTS(
        SELECT T0.Price FROM IGN1 T0
        where  IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
       BEGIN
        SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
      END
    end
    Hope it helps

  • Error : while adding Items to Cart and while going to Checkout

    Hi All
    When I add Items to cart and when I click on checkout button below Error is coming
    atg.commerce.pricing.PricingException: Failed to get an adjuster for pricing model Item Discount - Percent Off:200131
            at atg.commerce.pricing.DiscountCalculatorService.getAdjuster(DiscountCalculatorService.java:361)
            at atg.commerce.pricing.ItemDiscountCalculator.priceQualifyingItems(ItemDiscountCalculator.java:561)
            at atg.commerce.pricing.ItemDiscountCalculator.priceItems(ItemDiscountCalculator.java:312)
            at atg.commerce.pricing.ItemPricingEngineImpl.applyCalculator(ItemPricingEngineImpl.java:844)
            at atg.commerce.pricing.ItemPricingEngineImpl.applyPromotions(ItemPricingEngineImpl.java:673)
            at atg.commerce.pricing.ItemPricingEngineImpl.priceItems(ItemPricingEngineImpl.java:557)
            at atg.commerce.pricing.PricingTools.priceItemsForOrderTotal(PricingTools.java:2448)
            at atg.commerce.pricing.PricingTools.priceOrderSubtotalShipping(PricingTools.java:1795)
            at atg.commerce.pricing.PricingTools.priceOrderSubtotalShipping(PricingTools.java:1737)
            at atg.commerce.pricing.PricingTools.performPricingOperation(PricingTools.java:3064)
            at atg.commerce.pricing.processor.PriceOrderTotal.runProcess(PriceOrderTotal.java:138)
            at atg.service.pipeline.PipelineLink.runProcess(PipelineLink.java:233)
            at atg.service.pipeline.PipelineChain.runProcess(PipelineChain.java:343)
            at atg.service.pipeline.PipelineChainContext.runProcess(PipelineChainContext.java:185)
            at atg.service.pipeline.PipelineManager.runProcess(PipelineManager.java:453)
            at atg.commerce.pipeline.CommercePipelineManager.runProcess(CommercePipelineManager.java:101)
            at atg.commerce.order.purchase.PurchaseProcessHelper.runProcess(PurchaseProcessHelper.java:452)
            at atg.commerce.order.purchase.PurchaseProcessHelper.runRepricingProcess(PurchaseProcessHelper.java:358)
            at atg.commerce.order.purchase.PurchaseProcessHelper.runProcessRepriceOrder(PurchaseProcessHelper.java:317)
            at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:890)
            at atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3245)
            at atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:2870)
            at atg.projects.store.order.purchase.StoreCartFormHandler.addItemToOrder(StoreCartFormHandler.java:1299)
            at atg.projects.store.order.purchase.StoreCartFormHandler.handleAddItemToOrder(StoreCartFormHandler.java:1516)
            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)
            at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:287)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:383)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
            at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
            at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
            at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:1
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:662)
    22:29:13,662 ERROR [CartFormHandler]
    CAUGHT AT:
    CONTAINER:atg.commerce.CommerceException: An unknown error occurred while adding an item to the Order with id [o400001].; S
            at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:942)
            at atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3245)
            at atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:2870)
            at atg.projects.store.order.purchase.StoreCartFormHandler.addItemToOrder(StoreCartFormHandler.java:1299)
            at atg.projects.store.order.purchase.StoreCartFormHandler.handleAddItemToOrder(StoreCartFormHandler.java:1516)
            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)
            at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:287)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:383)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
            at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
            at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
            at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:1
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:662)
    Caused by: atg.commerce.CommerceException: An error occurred when running the pricing order chain after adding items to ord
            at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:901)
            ... 72 more
    SOURCE EXCEPTION:
    atg.commerce.CommerceException: An error occurred when running the pricing order chain after adding items to order [o400001
            at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:901)
            at atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3245)
            at atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:2870)
            at atg.projects.store.order.purchase.StoreCartFormHandler.addItemToOrder(StoreCartFormHandler.java:1299)
            at atg.projects.store.order.purchase.StoreCartFormHandler.handleAddItemToOrder(StoreCartFormHandler.java:1516)
            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)
            at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:287)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:383)
            at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
            at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
            at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
            at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
            at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:1
            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:662)
    Anybody could provide the solution or rootCause to this issue(I know this error is throwing by pricing pipe line but why its throwing I am not getting) Please any body tell me ASAP, I am gated with this issue.
    ThanksInAdvance

    I don't know much about promotions, But it looks like that there is some problem while applying some promotions for the added item.
    Check for this id:200131
    atg.commerce.pricing.PricingException: Failed to get an adjuster for pricing model Item Discount - Percent Off:200131
            at atg.commerce.pricing.DiscountCalculatorService.getAdjuster(DiscountCalculatorService.java:361)
    Try adding some other item.
    FYI - if it's promotion issue and promotion for all order, issue will come for other item too
    Thanks,
    Nitin.

  • Sharepoint throw a javascript error while adding items to sharepoint list

    sharepoint throw javascript error when adding item to list
    error called:  this._registeredValidators[validatorIdx].Validate is not a function
    any help please

    Hi,
    If you want to validatelist column, there is out of the box way to accomplish this with SharePoint
    There's a great blog that covers how to validate Strict Text Formats:
    http://sharepointsolutions.com/sharepoint-help/blog/2011/12/how-to-validate-strict-text-formats-in-sharepoint-2010/
    In addition, we can use JavaScript to validate column. Please make sure you use the code correctly.
    More information:
    http://chrisstahl.wordpress.com/2011/02/06/validate-a-sharepoint-list-column-with-regular-expression/
    http://blog.tallan.com/2013/09/16/how-to-add-custom-validation-logic-to-validate-a-phone-field-in-sharepoint/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Pre-populating a date/time column with the value entered in the last added item

    I have a list with a column called "expected finish date". Whenever the user adds the very first item in a list, he/she should have to enter a value for this column.
    I want to make all new item entries to pre-poplate this field with the value entered in the previously added item. This way, he/she wont have to re-enter the date every time (which rarely changes). How can this be done?

    could create a second list ("state") with column ("default finish date")...
    create a workflow on main list... if column is blank/empty, pull from second list... otherwise, update second list with the value that was entered.
    Or, customize the form (InfoPath or JavaScript)
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Recent Items in custom component.

    Hi Experts,
    Please provide me the necessary steps for showing  Recent Items in custom component.
    Thanks and Regards
      Raja

    Hi Raja
    Please refer the link:
    [Recent items - Tips to Customize |http://wiki.sdn.sap.com/wiki/display/CRM/Recentitems-Tipsto+Customize]
    This will help you.
    Regards
    Leon

  • How can i apply different color for each cell in jlist component?

    hi guys i need your help and sorry if my english is very bad..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..
    Edited by: ryrene on Mar 21, 2010 12:13 AM

    ryrene wrote:
    hi guys i need your help and sorry if my english is very bad.
    ..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..I'll see your tnx, and raise you dve bmbrs & nplm.

  • I was adding items with the intent of command z 'ing them back to their original when it crashed, autosaved, and my original numbers were lost to the temp numbers plugged in... how can i get back to the previous version? Because it had closed, command z

    I was adding items with the intent of command z 'ing them back to their original when it crashed, autosaved, and my original numbers were lost to the temp numbers plugged in... how can i get back to the previous version? Because it had closed, command z

    Sorry, this happened in CLOUD numbers....

  • Cant delete or add item to Jlist as nthing happens

    Hi all,
    regarding the first part where pass of string array into object array. I have done it (thanks again for the help). But regarding the add and remove elements from the Jlist cant be done.. below is my code for the delete button when press. I cast it into int for the ManualList.getSelectedIndex();(at part A) but cant display and keep having a error call
    java.lang.NullPointerException at ManualChange&ValueReporter.valueChanged
    code for value reporter is at part B
    Part A
    private void deleteMouseClicked(MouseEvent e)
    int n =(int)ManualList.getSelectedIndex();
    if (!(n < 0) || (n > listModel.size()))
    listModel.remove(n);
    delete.setEnabled(false);
    ManualList.repaint();
    ManualList.revalidate();
    Part B
    private class ValueReporter implements ListSelectionListener {
    public void valueChanged(ListSelectionEvent event) {
    // if (!event.getValueIsAdjusting())
    // gettext.setText(ManualList.getSelectedValue().toString());
    ManualList.repaint();
    ManualList.revalidate();
    Any help is greatly appreciated.
    alright, i redo part A the code is shown below but i still cant get the display out.
    Is there some problem in my code? or is the repaint and revalidate thing wrong usage here ? Need help regarding this. Thanks
    int n =ManualList.getSelectedIndex();
    if (!(n < 0) || (n > listModel.size()))
    listModel.removeElement(arrayObject[n]);
    delete.setEnabled(false);
    ManualList.repaint();
    ManualList.revalidate();

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.MouseEvent.*;
    import javax.swing.event.*;
    import java.io.*;
    import javax.swing.DefaultListModel.*;
    import java.util.Properties;
    import java.util.ArrayList;
        public class smallProgram extends JFrame //implements ListSelectionListener
            JPanel p;
        private DefaultListModel listModel;
         JLabel ManualJob = new JLabel();
         JTextField gettext  = new JTextField();
         JScrollPane scrollPane1 = new JScrollPane();
         JButton okButton = new JButton();
         JButton cancelButton = new JButton();
         JButton add = new JButton();
         JButton delete = new JButton();
         JList ManualList;
         int tokenNo;
         String real,ss;
         String[] values;
         Object[] arrayObject;
         java.util.StringTokenizer tokenizer;
         BufferedReader in;
         ArrayList data;
         public static void main(String args[])
             new smallProgram();
          public smallProgram()
                setTitle("Small Program");
                p = (JPanel) this.getContentPane();
                p.setLayout(null);
                setSize(515, 585);
                setVisible(true);
               //---- ManualJob ----
               ManualJob.setText("Manual Jobs Classification");
               ManualJob.setFont(new Font("Times New Roman", Font.BOLD, 14));
               p.add(ManualJob);
               ManualJob.setBounds(10, 435, 190, 35);
               setVisible(true);
               //---- gettext ----
               gettext.setFont(new Font("Times New Roman", Font.PLAIN, 12));
               p.add(gettext);
               gettext.setBounds(365, 435, 115, 25);
               setVisible(true);
               //Buttons for add, del, ok and cancel
               //---- Add ----
               add.setText("Add");
               add.addMouseListener(new MouseAdapter() {
                   @Override
                   public void mouseClicked(MouseEvent e) {
                       addMouseClicked(e);
               p.add(add);
               add.setBounds(355, 485, 60, add.getPreferredSize().height);
              //---- delete ----
               delete.setText("Delete");
               delete.addMouseListener(new MouseAdapter() {
                   @Override
                   public void mouseClicked(MouseEvent e) {
                       deleteMouseClicked(e);
               p.add(delete);
               delete.setBounds(new Rectangle(new Point(430, 485), delete.getPreferredSize()));
               //---- okButton ----
               okButton.setText("OK");
               okButton.addMouseListener(new MouseAdapter() {
                   @Override
                   public void mouseClicked(MouseEvent e) {
                       okButtonMouseClicked(e);
               p.add(okButton);
               okButton.setBounds(335, 520, 75, okButton.getPreferredSize().height);
               //---- cancelButton ----
               cancelButton.setText("Cancel");
               cancelButton.addMouseListener(new MouseAdapter() {
                   @Override
                   public void mouseClicked(MouseEvent e) {
                       cancelButtonMouseClicked(e);
               p.add(cancelButton);
               cancelButton.setBounds(420, 520, 75, cancelButton.getPreferredSize().height);
               ss = ("test1,test2,test3,test4,test5"); //My string ss
               int length = ss.length();
               int asd = (ss.indexOf('_'))+1;
               real = ss.substring(asd, length);
               tokenizer = new java.util.StringTokenizer(real,",");
               tokenNo = tokenizer.countTokens();
               data = new ArrayList();
               values = new String [tokenNo];
    //           Object[] arrayObject = data.toArray();// this is my initial code where arraylist is pass to object
                   for(int i =0; i< tokenNo; i++)   // pass string-ss into arraylist individually
                    data.add((tokenizer.nextToken(",")));
                    //values[i] = tokenizer.nextToken(",");
                    data.trimToSize();
                    //System.out.println("tokenizer"  + values);
    int aaaa = data.size();
    System.out.println("size " + aaaa);
    System.out.println("tokenizer" + tokenNo);
    System.out.println("arraylist "+ i + data.get(i));
    //JLIST
    //======== scrollPane1 ========
    //---- ManualList ---- This is my Jlist // copy arraylist into Object[] then pass it into JList
    listModel = new DefaultListModel();
    /* listModel = new DefaultListModel(); Part A also continue from above
    * for (int i = 0; i< arrayObject.length;i ++)
    * listModel.addElement(objectArray[i].toString());
    * JList ManualList = new JList(listModel); //tried using listModel.method() to remove item in Jlist but return nullException
    arrayObject = data.toArray();
    JList ManualList=new JList(arrayObject);
    ManualList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    ManualList.setSelectedIndex(0);
    ManualList.setVisibleRowCount(5);
    ManualList.setFont(new Font("Times New Roman", Font.PLAIN,12));
    ManualList.setBorder(new MatteBorder(1, 1, 1, 1,Color.black));
    ManualList.setLayoutOrientation(JList.VERTICAL_WRAP);
    values = new String[tokenNo];
    ManualList.addListSelectionListener(new ValueReporter());
    // JScrollPane listPanel = new JScrollPane(ManualList);
    scrollPane1.setViewportView(ManualList);
    p.add(scrollPane1);
    scrollPane1.setBounds(210, 435, 130, 75);
    setVisible(true);
    { // compute preferred size
    Dimension preferredSize = new Dimension();
    for(int i = 0; i < p.getComponentCount(); i++) {
    Rectangle bounds = p.getComponent(i).getBounds();
    preferredSize.width = Math.max(bounds.x + bounds.width,preferredSize.width);
    preferredSize.height = Math.max(bounds.y +bounds.height, preferredSize.height);
    Insets insets = p.getInsets();
    preferredSize.width += insets.right;
    preferredSize.height += insets.bottom;
    p.setMinimumSize(preferredSize);
    p.setPreferredSize(preferredSize);
    private void addMouseClicked(MouseEvent e)
    private void deleteMouseClicked(MouseEvent e) //nthing happen here
    int n =ManualList.getSelectedIndex();
    if (!(n < 0) || (n > listModel.size()))
    listModel.removeElement(arrayObject[n]);
    delete.setEnabled(false);
    ManualList.repaint();
    ManualList.revalidate();
    /* int n =ManualList.getSelectedIndex(); //tried using this but failed
    if (!(n < 0) || (n > listModel.size()))
    listModel.remove(n);
    delete.setEnabled(false);
    ManualList.repaint();
    ManualList.revalidate();
    private void okButtonMouseClicked(MouseEvent e) {
    private void cancelButtonMouseClicked(MouseEvent e) {
    private class ValueReporter implements ListSelectionListener {
    public void valueChanged(ListSelectionEvent event) {
    // if (!event.getValueIsAdjusting())
    // gettext.setText(ManualList.getSelectedValue().toString());
    //String name=(String) ManualList.getSelectedValue();
    //System.out.println(name);
    private void ManualListMouseClicked(MouseEvent e) {
    // int n = (int)ManualList.getSelectedIndex();
    // if (!(n < 0) || (n > listModel.size()))
    // delete.setEnabled(true);
    ok this is a small complete program
    Thanks for the time to read this

  • Reset printer settings....still no print....plus added items to menu bar...they're gone

    reset printer settings....still no print....plus added items to menu bar...they're gone from bar & customize window...title bar changed

    Firefox doesn't print some pages well, but if you have this problem on all pages, there may be some problem with Firefox's ability to work with your printer driver. If it's only particular pages, can you post the URLs for an assessment?
    I'm not clear on what happened with Cut, Copy & Paste: you moved them from the menu drop-down to the toolbar and then they disappeared?
    If you return to Customize mode, try clicking Restore Defaults and see whether things return to normal.
    When you say "toolbar background" do you mean a theme you were using in an earlier version of Firefox? Otherwise, there's not much to see.
    If Firefox is becoming transparent or showing some desktop or showing other display glitches it may be incompatible with your graphics card drivers. The standard workaround for that is to disable Firefox's use of hardware acceleration for graphics.
    3-bar menu button (or Tools menu) > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    This will take effect the next time you exit out of Firefox and restart it.

  • A quick way to set different color for certain items in JList?

    is there a quick way of setting different color for certain items in JList?

    Either use HTML strings as the values in your JList (quickest, but may not be the most convenient, especially if your model isn't just text), or create your own ListCellRenderer (e.g. extend DefaultListCellRenderer).
    There is no such thing as "list.setItemForeground(int index, Color c)". You'll have to use one of the methods above.

  • [svn] 3501: Adding the new CallResponder component.

    Revision: 3501
    Author: [email protected]
    Date: 2008-10-06 17:42:26 -0700 (Mon, 06 Oct 2008)
    Log Message:
    Adding the new CallResponder component. This is best used from MXML to implement
    a specific invocation of a specific RPC service operation. It separates the use of the
    RPC operation from its definition.
    QE: New class (and MXML component)
    Docs: Yes - see the asdoc for info.
    Checkintests: pass
    Reviewer: Pete, Seth, Ed, Sameer
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/manifest.xml
    Added Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as

    Did you import the 3 required SC:
    SAP-JEE,
    SAP_BUILD
    SAP_JTECHS
    the DC: sap.com/tc/ddic/metamodel/content is part of SC SAP_JTECHS
    You can brouse all imported DCs from CBS
    SAPs should be 161. The one you are looking for is N:31 in the SAP_JTECHS
    If you have problem with the local bild, than you havn't checked out all DC to your NWDS.
    Regards, Angel

Maybe you are looking for

  • How can I pass paramters to next page with session protection on?

    Hi, guys: I encounter a problem of session protection problem. In a report page I set up a column of "map" link, so I can pass several parameters extracted from the same row to the new page where I can show map. I was using javascript popup2, and it

  • Can't install newest iphoto after upgrading to Yosmite

    Hi guys, After upgrading my OS to Yosmite, my iPhoto icon has a "no-entry" icon covering over it. When I tried to open, it asks for an update. When in the app store, I can't seem to install the newest iPhoto app. Anyone experiencing the same problem

  • Error deploying EJBs on Sun App Server

    Someone please help, I am getting a strange problem when deploying an EJB jar. I have had this code working before (before Xmas), but now I am getting the following error: java.lang.NoSuchMethodException: com.enterprise.entity.ContentBean.getId();Rem

  • Document tagging excludes fields

    To achieve accessibility, we have Acrobat 8 tag the content in PDF files.  The fields don't get included in the tag process.  Is there some setting that affects this?

  • IMessage stopped working on iMac

    i message stopped working on imac