Problem - Adding item using wwsbr_api.add_item

Hi, I´m using portal 10.1.2.0.2 and when I try to add an file using wwsbr_api.add_item, it returns me the following error "ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException"
But It happens only when the file name has special caracter.
Anybody has any idea how to solve it?

You mentioned at the top of the thread that the region type had not been defined. I have not tried this in 10.1.4, but I know in previous versions if you programmatic ally added a item to an undefined region it didn't show up until that region was manually configured as an item region. The symptoms were as you describe -- nothing showed up in edit or view mode. As soon as the region was setup as a item region, the items appeared.
Roche's suggestion will establish if the item is even being created at all.
Rgds/Mark M.

Similar Messages

  • ITEM_CREATION_ERROR when using wwsbr_api.add_item

    308 on Sun Solaris :
    Here is my simple code :
    New_Master_Item_Id := wwsbr_api.add_item
    ( p_caid => 118,
    p_folder_id => 14489,
    p_display_name => 'title',
    p_type_id => wwsbr_api.ITEM_TYPE_FILE,
    p_type_caid => wwsbr_api.SHARED_OBJECTS,
    p_region_id => 5,
    p_file_filename => '/array_dd/oracle-IAS/portal30/images/voltimum_map_france.gif')
    I'm getting the followgin exception :
    ITEM_CREATION_ERROR
    Note that my file resides on DB Unix machine. Read access is OK for all.
    Any idea ?

    Franck,
    ik have a similar problem. I tried to execute the following code:
    declare
    l_item_nr number;
    l_site_id number;
    l_corner_id number;
    l_type_id number;
    l_type_caid number;
    l_region_id number;
    begin
    l_site_id := 73;
    l_corner_id := 1;
    l_type_id := 2;
    l_type_caid := 0;
    l_region_id := 5;
    l_item_nr := wwsbr_api.add_item ( p_caid => l_site_id
    , p_folder_id => l_corner_id
    , p_display_name => 'my test item'
    , p_type_id => l_type_id
    , p_type_caid => l_type_caid
    , p_region_id => l_region_id
    , p_text => 'my own piece of text'
    commit;
    end;
    Unfortunately, i ran into the same exception as you did. The weird thing is that the exception is only being raised the first time that i execute this code during a session. If i execute the code multiple times, the text-item is indeed being inserted. You mentioned that you did something with the language of your content area. What exactly? And how does the language of the content area interfere with the creation of this text item?
    Thanks in advance!!
    Bindert Glazema

  • Using WWSBR_API.ADD_ITEM raises exception ITEM_CREATION_ERROR

    All,
    i create a very simple procedure in the schema of the portal owner:
    create or replace procedure test_insert_item is
    l_item_nr number;
    l_site_id number;
    l_corner_id number;
    l_type_id number;
    l_type_caid number;
    l_region_id number;
    begin
    l_site_id := 154;
    l_corner_id := 6989;
    l_type_id := 2;
    l_type_caid := 0;
    l_region_id := 5;
    l_item_nr := wwsbr_api.add_item (
    p_caid => l_site_id
    , p_folder_id => l_corner_id
    , p_display_name => 'my test item'
    , p_type_id => l_type_id
    , p_type_caid => l_type_caid
    , p_region_id => l_region_id
    , p_text => 'my own text'
    commit;
    end;
    If i run this procedure in SQL*Plus as the Portal-owner, then the first time during a session the procedure raises the exception
    WWSBR_API.ITEM_CREATION_ERROR. Each following time that i run the procedure it inserts the text item as expected.
    How come? I checked for invalid object etc., but there are none.
    Any ideas?
    Thanks in advance!
    Regards,
    Bindert Glazema

    I experimented a little bit further. If i change the procedure to:
    create or replace procedure test_insert_item is
    l_item_nr number;
    l_site_id number;
    l_corner_id number;
    l_type_id number;
    l_type_caid number;
    l_region_id number;
    begin
    l_site_id := 154;
    l_corner_id := 6989;
    l_type_id := 2;
    l_type_caid := 0;
    l_region_id := 5;
    l_item_nr := wwsbr_api.add_item (
    p_caid => l_site_id
    , p_folder_id => l_corner_id
    , p_display_name => 'my test item'
    , p_type_id => l_type_id
    , p_type_caid => l_type_caid
    , p_region_id => l_region_id
    , p_text => 'my own text'
    commit;
    exception
    when WWSBR_API.ITEM_CREATION_ERROR then
    l_item_nr := wwsbr_api.add_item (
    p_caid => l_site_id
    , p_folder_id => l_corner_id
    , p_display_name => 'my test item'
    , p_type_id => l_type_id
    , p_type_caid => l_type_caid
    , p_region_id => l_region_id
    , p_text => 'my own text'
    commit;
    end;
    then no exception will be raised when i run the procedure the first time during a SQL*Plus session and still the item is inserted. The weird thing is, that when i call this procedure from a dynamic page:
    <HTML>
    <BODY>
    <ORACLE>
    begin
    portal30.test_insert_item;
    exception
    when portal30.wwsbr_api.ITEM_CREATION_ERROR
    then
    htp.p('Item creation error');
    end;
    </ORACLE>
    </BODY>
    </HTML>
    then the item is not inserted when the page is run, but the page shows 'Item creation error' instead. Does anyone have an idea why this doesn't work?
    null

  • Problem adding item to list using a function.  Error - Null pointer

    Hi Guys,
    I'm not sure what the problem is, but for some reason I am unable to add an item to a list using a function. I can add an item when I call it in the same function that the list is created, but I cannot add the item from anoter function. Here is the code:
    Main:
    import java.awt.Color;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class main {
          * @param args
         public static void main(String[] args) {
              JFrame JFrame = new JFrame();
              JFrame.setSize(400,400);
              testpanel panel1 = new testpanel();
              panel1.setBackground(Color.red);
              JPanel panel2 = new testpanel();
              panel2.setBackground(Color.BLUE);
              JFrame.add(panel1);
              JFrame.add(panel2);
              JFrame.setLayout(new FlowLayout());
              //THIS GIVES ERROR:
              //NullPointerException
              panel1.addListItem("test");
              JFrame.setVisible(true);
    }And here is the testpanel class:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * testpanel.java
    * Created on Apr 7, 2010, 6:10:24 PM
    import java.awt.List;
    import java.awt.ScrollPane;
    import java.awt.event.ActionListener;
    * @author Snowraver1
    public class testpanel extends javax.swing.JPanel {
         public void addListItem(String string){
              list.add(string);
        /** Creates new form testpanel */
        public testpanel() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            ScrollPane scrollPane = new ScrollPane();
            List list = new List();
            jButton1.setText("jButton1");
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
            this.setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(49, Short.MAX_VALUE)
                    .addComponent(jButton1)
                    .addGap(46, 46, 46))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(123, 123, 123)
                    .addComponent(jButton1)
                    .addContainerGap(139, Short.MAX_VALUE))
            this.add(scrollPane);
            scrollPane.add(list);
        }// </editor-fold>//GEN-END:initComponents
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private javax.swing.JButton jButton1;
        private ScrollPane scrollPane;
        private List list;
        // End of variables declaration//GEN-END:variables
    }Thanks for the help!
    -- Snow

    You should check how you are initializing your variables in your testpanel class. You initialize your button correctly, but your other class variables are being overridden. As a result, your class variables still have a value of 'null'.

  • Problem ADDING ITEM

    Hello there!!!
    I am having problems trying to add a new item in a content area, the following error pop up:
    ORA-01403: no data found
    ORA-06512: at "PORTAL.WWV_ADDITEM", line 270
    ORA-06512: at line 7
    DAD name: portal
    PROCEDURE : PORTAL.wwv_additem.additem
    URL : http://PORTAL:80/pls/portal/PORTAL.wwv_additem.additem
    PARAMETERS :
    ============
    P_THINGID:
    P_SEQ:
    P_LANGUAGE:
    us
    P_SITEID:
    94
    P_CURRCORNERID:
    4210
    P_SETTINGSSETID:
    1
    P_PARENTID:
    this happens once i try to define the item type (moving toward step 2 in the wizard).
    I will appreciate any help.
    null

    Jose,
    The upgrade scripts are available on technet at http://technet.oracle.com/support/products/iportal/listing.htm .
    You first need to upgrade the Early Adopter Release to 3.0.6. You should then upgrade to the latest release (3.0.8). Any patches you have will be included in the upgrade.
    Regards,
    Jerry

  • Problem Adding BOM using Product Trees Object

    Hey I am having problems with the following code:
    qProductTree = (SAPbobsCOM.ProductTrees)this.m_SboAddon.SboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees);
    int RetVal = 0;
    qProductTree.TreeCode = "productTree1";
    qProductTree.TreeType = SAPbobsCOM.BoItemTreeTypes.iProductionTree;
    qProductTree.Quantity  = 5;
    qProductTree.Items.ItemCode = "test1";
    qProductTree.Items.Price = 20;
    qProductTree.Items.Quantity = 1;
    qProductTree.Items.Currency = "Eur";
    qProductTree.Items.Comment = "test comment";
    qProductTree.Items.IssueMethod = SAPbobsCOM.BoIssueMethod.im_Manual;
    RetVal = qProductTree.Add();
    string errMsg;
    int errCode;
    if (RetVal != 0 )
         this.m_SboAddon.SboCompany.GetLastError(out errCode, out errMsg);
         MessageBox.Show(errMsg);
    I get an error message with ID 2028 which when I look it up in the SDK it states DataSource - No Data found.
    Any ideas?

    Hi Laura!
    In DI reference you can find topic 'Add a Bill Of Material sample', hope it'll help you.
    Note, that there are some lines in that sample:
        Dim vItem As SAPbobsCOM.Items
        <b>Set vItem = vCmp.GetBusinessObject(oItems)</b>
        Dim vProdTree As SAPbobsCOM.ProductTrees
        Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
               'Get the Item I want to create as Product Tree
        <b>RetVal = vItem.GetByKey("MyProdTree")</b>
        'Set Values to the fields
        vProdTree.TreeCode = <b>"MyProdTree"</b>
        vProdTree.TreeType = iProductionTree
    In my mind, you should find an existing Item (via GetByKey) before you create ProductTree.

  • Having problem adding citations using endnote with pages 4

    Help needed
    When I go to insert and find a quote in my endnote library and hit insert it appears as if it has done something but no quote appears in my pages document however something is in there because it moves the curser along and when I press delete it acts as if it is deleting something.......wierd.  Ive downloaded and installed the plug in and the same thing seems to work fine on my Imac.

    If all your professors are using MS Office, then I recommend you should too.  It is not realistic to think Pages will always generate word format docs the same way MS Office would have done so.

  • Problems adding narrations using Elements 11 on Mac

    I keep getting an error message saying I don't have any input channels and to go to the audio hardware and change it to default device to rectify this issue.  Well, I've tried...for the past hour and I keep getting an error message saying, "Ensure I have launched premiere elements in administration mode"? Whaaat???? I had my Logitech sound dock connected to my computer via usb but unplugged it.  Still, NOTHING! Premiere elements 11 has crashed on me a few times and now I wished I would have shelled out the $300 for FCP X.  At least I wouldn't be going thorugh this trouble w/ deadlines to meet.

    LightsCamAction
    Thanks for the reply. Sorry the news is not better.
    Although Windows and Mac are indeed different, I tried to reach a common ground since the Premiere Elements worksflows are similar be they based on Windows or Mac (although Mac does seem to get short changed on some features here and there).
    However since you said yourself you are getting messages to the effect
    "Ensure I have launched premiere elements in administration mode"?
    my suggestion about your permissions and Administrative Accounts was quite relevant since Premiere Elements has always been highly dependent on those factors as well as the latest version of QuickTime installed.
    I am not sure how much help will be forthcoming from Adobe since it classically deals with current version and 12 is released, but you could try to contact Adobe through Adobe Chat and see how far you get.
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=using-my-product-or-se rvice
    When the link opens, click on "I still need help." to bring up the Adobe Chat pop up. I pre-selected the topic as "Using my product and service."
    I did come across the following online discussion which sounds very close to your situation, Premiere Elements 11 Mac et al. In that case, a person identified as coming from Adobe stepped in. It is an 11 month old post with no posted conclusion. Nonetheless you might want to explore the contact cited at the end of the post.
    http://feedback.photoshop.com/photoshop_family/topics/premiere_elements_11_for_mac_frequen tly_crashes_while_editing
    By any chance was that you posting in that article?
    Unlike that article, this is a user to user forum with no expected visits from Adobe.
    We will watch for further developments.
    Thanks again for the follow up.
    ATR

  • Has anyone else had problems returning items using TNT?

    Long story short, returned my iPad to apple last week.  Contacted apple today (a week after the courier collected the iPad) to ask why the status hadn't changed.  Apparently the courier TNT delivered apple an empty box, so at the moment i am £460 out of pocket...

    Well, as with all things operated by humans, sometimes the wires get crossed.  Happens all the time.
    Do you have any type of homeowners insurance?  My policy would cover replacement in this situation.
    Good Luck!

  • Wwsbr_api.add_item problems

    Hi there,
    I'm trying to use wwsbr_api.add_item to add content to a content area folder from a PL/SQL procedure invoked from SQL*Plus.
    I'm having no luck...
    For text items I keep getting WWSBR_API.ITEM_CREATION_ERROR exceptions.
    I've also tried setting context of the PORTAL30 SSO user via WWCTX_API.SET_CONTEXT which seems to be working as it is not raising an exception.
    My Content Area id = 93 (wwsbr_all_content_areas)
    My test upload folder id = 3359 (wwsbr_all_folders)
    BEGIN
    wwctx_api.set_context(p_user_name => 'PORTAL30'
    ,p_password => 'PORTAL30');
    v_master_item_id := wwsbr_api.add_item
    (p_caid => 93
    ,p_folder_id => 3359
    ,p_display_name => 'TEST'
    ,p_type_id => 2
    ,p_type_caid => 0
    ,p_region_id => 5
    ,p_text => 'AUTOMATIC TEXT TESTING!'
    v_master_item_id := wwsbr_api.add_item
    (p_caid => 93
    ,p_folder_id => 3359
    ,p_display_name => 'TEST2'
    ,p_type_id => 1
    ,p_type_caid => 0
    ,p_region_id => 5
    ,p_file_filename => 'c:\temp\test.doc'
    COMMIT;
    EXCEPTION
    END;
    For Files I get file permission problems in SQL*Plus which I resolved for a specific file using
    call dbms_java.grant_permission ('PORTAL30','java.io.FilePermission','c:\temp\test.doc','read');
    commit;
    but then I get the same wwsbr_api exceptions as per the text file! Also how would I set the permissions globally for a whole directory?
    I've loaded the procedure into PORTAL30 and am running it as that user.
    John

    ok had a typo in my folder_id which didn't help - doh! Fixed that and text items would upload.
    to fix the file permission issues you can reference either individual files or folders with a wildcard in dbms_java.grant_permission, i.e.,
    call dbms_java.grant_permission ('PORTAL30','java.io.FilePermission','c:\temp\test.doc','read');
    call dbms_java.grant_permission ('PORTAL30','java.io.FilePermission','c:\temp\*','read');
    ...that fixed it! Excellent!
    Oh and if I'm executing the procedure from portal30 schema I don't need to use wwctx_api.set_context either...

  • Change item level security using wwsbr_api.modify_item

    Hi.
    Im using wwsbr_api.modify_item for change item level security.
    Its code for change type access for item of my procedure
    l_masterid := portal30.wwsbr_api.modify_item(
    p_master_item_id => 7061,
    p_item_id => 7062,
    p_caid => 136,
    p_folder_id => 1,
    p_display_name => 'test',
    p_region_id => 5,
    p_access_level => portal30.wwsbr_api.item_access,
    p_text => 'test change item security',
    p_addnewversion => true, -- My content area have item versioning
    level is audit
    After execute my procedure access type = folder.
    I see in wwv_things table new record
    masterthingid = 7061,
    id = 7064,
    security = 'folder'
    How to change item level security programmatically?
    Thanks

    Jerry,
    Please forgive me for persisting with this, and thankyou for your continued patience, but let me try to explain the issue I'm having in another way...
    I have a function that calls wwsbr_api.modify_item to change, say, the description. In this case "description" is the one and only thing I want to change about the item. As you've described above, I am able to query most things associated with the item (via wwsbr_all_items, wwsec_api.grantee_list, etc) so that I can pass current values to the wwsbr_api.modify parameters. However, I haven't found a way to query the current level of access control for a given item (i.e. wether it is currently set to ITEM_ACCESS, FOLDER_ACCESS, or null). As documented, I can force the item to be ITEM_ACCESS or FOLDER_ACCESS. However, I don't want to force a value and as we have concluded, passing null will nullify the current state.
    So, in summary, an answer to this question will solve my problem:
    Is it possible to query the current access control level of an item (either directly via one of the published views or indirectly via one of the views)?
    If the answer is yes - great that solves my problem. How please?!?!?
    If the answer is no - this must be a bug is it would mean that it isn't possible to use wwsbr_api.modify_item without inadvertently altering the current access control level of the item.
    Again thanks for your patience...
    Mark

  • Hi i am using OS 10.8.5 i hv a problem moving items to trash when i delete any thing it deletes from specific folder but dosnt appear in trash n my hard drive space is not getting free kindly help me

    hi i am using OS 10.8.5 i have a problem moving items to trash when i move a specific thing to trash it deletes from that folder but does not appear in trash and my hard drive space is not getting free i am a new user to mac kindly help  me out

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • Adding a new schedule line for a line item using bapi_po_change

    hi experts,
    can i know how to add a new schedule line for a line item using<u> bapi_po_change</u>. what are the parameters that need to be filed. i filled poitem with total quantities and poschedule table with 2 different schedule lines and passing as the parameter.but then i get the error saying item 0000 doesnt exist

    Hi,
    Please check if you have properly populated the following fields in POSCHEDULE:
    PO_ITEM
    SCHED_LINE
    and the other fields required for your schedule line such as delivery date and quantity, etc.
    After that, make sure to properly populate fields in POSCHEDULEX:
    PO_ITEM -> same value as found in POSCHEDULE
    SCHED_LINE -> same value as found in POSCHEDULE
    All other values populated in POSCHEDULE should be ticked as 'X' in POSCHEDULEX.
    Kind Regards,
    Darwin
    Kind Regards,
    Darwin

  • Adding a new line item using BAPI_OUTB_DELIVERY_CHANGE

    Hi,
    I have a requirement to add a new line item to outbound delivery to the existing line items using the FM BAPI_OUTB_DELIVERY_CHANGE.Pls suggest how to do it.
    Thanks in advance.
    Anand

    Hi,
    Did you Check IN SCN like [THIS|Re: BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item].
    Regards,
    Rahul

  • Cannot place order ERROR: "There was a problem adding your product to cart"

    Hey guys,
    Well, once again Best Buy's online system is preventing me from making an order. It seems like nearly every time I log in I experience some new problem. This time, I'm unable to add anything to my cart. It doesn't matter what item I try to add to my cart or what browser I use or if I clear cookies...it happens every time, on every browser, with every product in the store. The error shows a red & white triangle with a message "There was a problem adding your product to cart".
    Just to clarify ahead of time: 1) I have already tried signing in using 4 different browsers (explorer, firefox, chrome, opera) & they all give the same error; 2) Prior to posting here I researched this problem & found out it is somewhat common & has been occurring since at least 2012 on BestBuy.com; 3) Every time someone posts in here about this problem, customer service offers the same "fix" every time - to sign out, clear their browser cache of cookies, shut down the browser, restart the browser, sign back in, etc.... The only problem is, this "solution" has not worked ONE time our of the many times this problem has cropped up in here over the past 3+ years. Why this "solution" keeps getting told to people even though it never works is beyond me. But, there you have it.
    Just to clarify: I have already tried this solution, And just like with everyone else before me, it didn't work for me either. So, what's the next step? There must be something else that can be done other than waiting a couple more days for it to magically fix itself (it seems that is the only thing that ever "works"...is to let several days go by and the problem ends up getting fixed in some back-end server-side patch up). 
    What I'm hoping for from you is a solution that can fix this immediately. This problem has already prevented me from making a couple purchases for items that were temporarily on sale over the past couple days. So, those are lost sales for Best Buy. What I'm hoping to do now is pre-order the Elder Scrolls Online (PS4) in order to take advantage of the $10 pre-order reward. The game releases on Tuesday the 9th. So, in order to get this done in time I need to place the order sometime today (on the 8th).
    With all these repeated technical problems making purchasing a chore & wasting my time every single time I want to buy a product it's almost as if Best Buy is telling customers "We don't care if our online system works reliably...go spend your money at Amazon instead". lol
    Thank you in advance for your timely help on this matter.
    -Marc (removed per forum guidelines)

    Hello mjswooosh,
    I'm very disheartened to hear that you've had ongoing problems when attempting to order from BestBuy.com. Our goal is ever to provide a fun and efficient shopping environment! Certainly creating aggravation serves neither you nor us and I apologize sincerely for this having been your experience.
    We recommend the troubleshooting steps you mentioned (i.e., clearing the browser cache, deleting temporary internet files and cookies) because this is the most common cause of this type of problem. I too have encountered this issue from time to time and these steps have almost always resolved the problem. I say almost always because there's one further step you can try: ensure that you have signed out of BestBuy.com, then perform the browser maintenance steps we've recommended. Afterward, before signing in to BestBuy.com, add your desired items to your cart and sign in as part of the checkout process. When the standard steps have not netted a resolution for me, this has solved the problem each time.
    I hope this helps. I'm very grateful that you took the time to write to us with your concerns and for sharing your very valuable feedback about your online experience.
    Sincerely,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

Maybe you are looking for