Problems in accessing UCM  items from public spaces

Hi everybody,
Please, how can I manage access to UCM repository to display properly items in "*public spaces*" ???
Thank you :)

Hello,
I duplicated your project (as far as the checkboxes go).
Here is the process value change code that I used:
    public void checkboxGroup1_processValueChange(ValueChangeEvent event) {
        log("start process value change");
        String[] selection=(String[])checkboxGroup1.getSelected();
        for (int i = 0; i < selection.length; i++) { // add new items to the list
            log("PVC: Selected: " + selection);
log("end process value change");
// The following line is to avoid validation of other required components
FacesContext.getCurrentInstance().renderResponse();
I do not see the problem that you are seeing. That is, selected has a length bigger than 1.
However, by calling renderResponse() at this phase, you are making the app bypass the phase where copies selected to sessionBean1.availabilitiesSelected.
Rather than call renderResponse to bypass validation of other required components, perhaps you might try putting the check box in a virtual form.
For more information, see http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/virtual_form.html and http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/virtual_forms.html.

Similar Messages

  • Problem with accessing Signed Applet from javascript method

    Hi,
    I am facing the following problem while accessing Signed Applet from javascript method.
    java.security.AccessControlException: access denied (java.io.FilePermission c:/temp.txt read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at FileTest.testPerm(FileTest.java:19)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    I am using jdk1.5 for my development...
    Can anyone help to resolve this security issue. Urgent...
    Thanks in advance.

    Hey thanks. I wasn't able to get it to work with that sample but I did find this very similar code that does allow javascript to call JFileChooser in an applets public method.
    java.security.AccessController.doPrivileged(
    new java.security.PrivilegedAction()
    public Object run(){                           
    //do your special code here
    return null; //return whatever you want
    It seems a bit tempermental in that if you don't select a file quickly, it will hang the browser....no perfect solution but I'm going in the right direction.
    Thanks,
    Scott

  • Problem with access to SipFactory from jsp-pages in JBoss environment

    Hello!
    I have an installation of the OCMS 10.1.3.3. deployed into a JBoss (jboss-4.0.5.GA) environment. Unfortunately I have a problem with accessing the SipFactory from a jps-page. Encouraged by the "messagesender" example I tried to get an instance of SipFactory from my jsp-page simply by calling:
    SipFactory sipFactory = (SipFactory) application.getAttribute(SipServlet.SIP_FACTORY);
    But unfortunately there seems to be no attribute "SipServlet.SIP_FACTORY" and I only get a null pointer. I have also tried running that code in the orignal messagesender example but it didn't work either. So I wonder if this should definetely work in a JBoss environment or if this might be a known problem. Is there anything that I could check/do regarding this problem? I suppose there must be an oracle module which should take care of making the SipFactory availabe after it is deployed. Perhaps something went wrong during the deployment?!
    Best regards,
    Tim

    Hi
    On JBoss, OCMS does not support converge applications.
    I.e the SipFactory can be retrieved from the servlet context when running on OC4J.
    Instead the SipFactory can be found in JNDI as described in the Developer's Guide:
    "External Access to SIP Servlets
    To enable convergent applications between SIP and HTTP, the OCMS Container allows you to get access to the javax.servlet.sip.SipFactory by looking it up through JNDI. The SIP Factory will be registered under the same name as the display name of your SIP servlet as illustrated in Example 2–12. The <display-name> in the sip.xml in this case must be "My sip app".
    Example 2–12 Accessing the Data for a SIP Session through JNDI
    InitialContext ic = new InitialContext();
    SipFactory sipFactory = (SipFactory)ic.lookup("sip/My sip app");"
    Cheers
    Lucas Persson

  • Problem with accessing init parameters from JSP file

    Hi,
    I have my init parameters and Jsp configured in web.xml
    <servlet>
              <servlet-name>TestJsp</servlet-name>
              <jsp-file>/Test.jsp</jsp-file>
              <init-param>
                   <param-name>username</param-name>
                   <param-value>Balboa</param-value>
              </init-param>
    </servlet> How do I access 'username' field from JSP file.
    Kindly help.
    Thanks.

    you can do this in the jsp
    <%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
    <%!  String userName = null; 
      public void jspInit() {   
        ServletConfig config = getServletConfig();   
        userName   = config.getInitParameter("userName ");  
    %>
    Hello <%=userName%>

  • Access page item from Javascript

    I have searched the forum, and based on my findings this is what I've done so far:
    I have a page item where the Google Map key is stored. I want to access it from Javascript so that I can call the Google map with the key. (Note: The key can't be hardcoded as it will be pulled from DB according to the environment/url the app is running on. e.g. - dev, test, production.)
    Here's a javascript code block:
    <script>
       var google_key = $x('P1_GOOGLE_KEY').value;
       var l_url = "http://maps.google.com/maps?file=api&amp;v=2&amp;key=" +
                   google_key +
                   "&sensor=false";
    </script>I have tried, $v('P1_GOOGLE_KEY') , $x('P1_GOOGLE_KEY') , &P1_GOOGLE_KEY. and none of them work.
    How do I access a page item from Javascript?
    Thx!
    Marc

    Marc,
    I am going to take a shot in the dark, but are you referencing this item outside of a function in your head tag? So basically it tries to reference the item on load? If so this is not going to work because the item does not exist yet. If you are using jQuery change your code to look like:
    $(document).ready(function(){
       var google_key = $x('P1_GOOGLE_KEY').value;
       var l_url = "http://maps.google.com/maps?file=api&amp;v=2&amp;key=" +
                   google_key +
                   "&sensor=false";
    });This will tell the javascript to fire after everything has fully loaded. If you are not using jQuery then you can use a little javascript snippet from here to add a ready event to your page. or you can copy paste this into a script tag.
    (function () {
      var ie = !!(window.attachEvent && !window.opera);
      var wk = /webkit\/(\d+)/i.test(navigator.userAgent) && (RegExp.$1 < 525);
      var fn = [];
      var run = function () { for (var i = 0; i < fn.length; i++) fn(); };
    var d = document;
    d.ready = function (f) {
    if (!ie && !wk && d.addEventListener)
    return d.addEventListener('DOMContentLoaded', f, false);
    if (fn.push(f) > 1) return;
    if (ie)
    (function () {
    try { d.documentElement.doScroll('left'); run(); }
    catch (err) { setTimeout(arguments.callee, 0); }
    else if (wk)
    var t = setInterval(function () {
    if (/^(loaded|complete)$/.test(d.readyState))
    clearInterval(t), run();
    }, 0);
    document.ready(function (){
    var google_key = $x('P1_GOOGLE_KEY').value;
    var l_url = "http://maps.google.com/maps?file=api&amp;v=2&amp;key=" +
    google_key +
    "&sensor=false";
    Good Luck,
    Tyson Jouglet

  • Gett 403 error code when trying to access UCM 11g from Admin console -- deployment

    We have deployed UCM 11g in cluster mode. When I test the application via the admin conssole --> deployment --> UCM.   I can access  UCM only on one member of the cluster.  The other member gives me a 403 error code.. 

    Please, take a look at https://blogs.oracle.com/proactivesupportWCC/entry/clustering_and_high_availability_for (and contact the support group as advised)

  • Problem in Accessing User Objects from ADS

    hi,
    I am trying to search for the users from the root domain exchange.com in Active Directory Service
    I am getting an exception like this
    javax.naming.PartialResultException: Unprocessed Continuation Reference(s); rema
    ining name 'dc=exchange,dc=com'
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2695)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2669)
    at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1757)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1680)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirCon
    text.java:368)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCom
    positeDirContext.java:328)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCom
    positeDirContext.java:313)
    at javax.naming.directory.InitialDirContext.search(InitialDirContext.jav
    a:238)
    at SearchActive.main(SearchActive.java:55)
    The Code I used is as follows
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.Hashtable;
    import java.util.Enumeration;
    public class SearchActive
         public static void main(String[] args)
              // rechargement de l'environnement de l'initialisation du context
              DirContext ctx = null;
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://200.200.200.12/");
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,"200.200.200.12\\Administrator");
              // specify the username
         //     env.put(Context.SECURITY_CREDENTIALS,"digactive");
              // specify the password
              try {
                   // Crer le context initial
                   ctx = new InitialDirContext(env);
                   System.out.println("8");
                   SearchControls cons = new SearchControls();
                   cons.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   NamingEnumeration answer = ctx.search("dc=exchange,dc=com","objectclass=user",cons);
                   while(answer.hasMore())
                        SearchResult result = (SearchResult)answer.next();
                        Attributes rattr = result.getAttributes();
                        for(NamingEnumeration ne = rattr.getAll();ne.hasMore();)
                             Attribute natt = (Attribute)ne.next();
                             String sid = natt.getID();
                             for(Enumeration vals = natt.getAll();vals.hasMoreElements();)
                                  System.out.println(sid+": "+vals.nextElement());
              catch(Exception e)
                   e.printStackTrace();     
    Can anybody tell me where is the problem
    Thanks
    Thiru

    Hi, all
    Please help me to check where is wrong for the code to access LDAP and get a user's email address.
    The code is shown below.
    It works before calling ctx.getAttributes, and it shows the error msg as below after calling ctx.getAttributes.
    "Problem getting attribute:javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C0905FF, comment: In order to perform  this operation a successful bind must be completed on the connection., data 0, veceFinished executing"
    I don't know if the getAttributes parameter setting is wrong or the env constant setting wroong.
    package com.mycompany;
    import java.io.*;
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.directory.InitialDirContext;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.Attributes;
    import javax.naming.NamingException;
    public class aaa
         public static void main(String args[]) throws Exception
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://mycompany.com");
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,"mycompany.com/Administrator/");
              env.put( Context.REFERRAL, "follow" );
              try
         System.out.println("0");
              // Create the initial directory context
              DirContext ctx = new InitialDirContext(env);
         System.out.println("1");
              Attributes attrs = ctx.getAttributes("cn=andym,cn=Users,dc=mycompany,dc=com");
                   System.out.println("mail: " + attrs.get("mail").get());
              catch (NamingException e)
              System.err.println("Problem getting attribute:" + e);

  • Urgent ! problem in accessing pdf file from client

    Problem : Unable to access the temp(.pdf) file from the client.
    Scenario: I,m working on pdf reports.Pdf file is created each time the user submits the form.
    The file can be accessed from the server itself.But can't be accessed from the client.
    Description :
    Path i,m specifying for run time creation of the .pdf file is :
    C:\PStudio\RepMenu|RepMenuWeb\tempp_files\
    The C:\ drive is of the server machine.
    After creating the temp file say,
    C:\PStudio\RepMenu|RepMenuWeb\tempp_files\temp_rpt_53881.pdf
    I assign this path to the variable as :
    dir_Path=C:\PStudio\RepMenu|RepMenuWeb\tempp_files\temp_rpt_53881.pdf
    and also create the hidden variable as :
    out.println("<input type='hidden' name='hfile' value="+dir_Path+">");
    Now onClick of image I invoke js function as :
    function clickOn()
         var path="";
         path=document.form1.hfile.value;     
         document.form1.action = path;
         document.form1.submit();
    Help me to figure out where I,m making the mistake.
    For any futher query Kindly mail me at [email protected]

    I had similar issue. Despite of having "Define workstation application in network" for PDF setup for Application Type 3 "print" with Application %AUTO% I was only getting the .pdf file displayed in Adobe Reader instead of getting it printed.
    Solution:
    set Application to "AcroRd32.exe /t" to get the files opened in the Adobe Reader, printed and closed. The only thing I wasn't able to do was to get the Adobe Reader application closed after the print.
    regards,
    Jacek

  • How to access oracle forms from public ip through internet browser

    Dear Team,
    I have following setup:-
    We are using oracle database 11gR2
    Oracle Forms & reports : 11.1.2
    O.S : Windows 7 Professional
    I am currently accessing forms through local network through browser from server successfully.
    Now I want to access the same forms through public ip through internet browser from a remote location and not from our local network.
    I have also installed Xammp 1.7.7 apache server in the same setup computer.
    Last time I tried to access oracle through http server but xampp http port was conflicting with oracle http server so i needed to disable oracle http server for xampp apache server to work, at that time i was not needing oracle http server, now I need both. Is there any workaround to this for oracle and xampp to work at the same time in the same setup, please let me know.
    Can anybody help me to find solution for this issue.
    Thanks in Advance.

    You have to use two different -different ports for the both
    use 8080 port for the Oracle http and another for another web server.
    you can use proxy to filter the requests and redirect then to another port as per requirement.

  • How to access ucm table from external application?

    Hi All.
    Is it possible to access an ucm table (configuration manager-> tables) from of the other external application?
    If yes, how to do it?
    Regards,
    Diovani

    It's just another DB table so JDBC would work fine.
    You can connect to the UCM schema using a free tool like Oracle SQLDeveloper and look at the tables this alos uses a JDBC connection.
    HOWEVER
    I would not really recommend you use this approach without knowing a lot more. Certainly you should not have an external application making changes to the UCM DB. If you just want to read data SQL over JDBC is fine
    BUT
    It is better really to use the existing UCM services to access the data - if there is not a service that does what you want then you create it. This keeps you within the same design pattern of UCM and means you can continue to benefit from security and other rich services that UCM provides over and obove JDBC
    Tim

  • Problem with executing work item from the inbox

    Hello All,
       I'm able to send mails from R/3 to Outlook along with the attachment to execute the work item directly from the outlook.
    However upon clicking the Exectute work Item.sap file I get an sap gui popup with the description " Not all data for SAP  GUI shortcut is available. System description and GUI start parameter are unknown. Entering the missing data."
    Clicking on the OK button, leads to another window for SAP logon details. After I chose the right system and on Clicking OK, it opens up the logon prompt. Entering the logo info opens up the work item correctly.
    We are on ECC 5.0 with SAP GUI 640 patch level 18 on it. Any suggestions about what am I missing to directly jump into an sap screen provided a session already is open in SAP.
    Thanks and Regards
    Uday

    Hello Uday,
    Sounds like something is wrong in the SAPLogon <i>on the client PC</i>. The system sends out a shortcut, and when it's opened it does not relate to a unique entry in the saplogon. Either it's called differently or you have two entries for the same system with different parameters.
    Hope that helps,
    Mike

  • Problem in accessing Web Service from Excel

    Hi All,
    I have faced a new problem when calling WS from Excel.
    I have created a WS from CAF which has one method and the method takes a list (a table) of structure as an input and returns a string as output. The structure contains three fields
    such as
    medPlace -- String
    publictn - String
    amount - long
    This WS is working fine when I am testing from WS Nevigator.
    Now I have imported the WS in Excel and now the data types are like
    medPlace -- String
    publictn - String
    amount - double
    My requirement is to send the multiple row of the Excel to the WS at a time( I mean as a List). So when I have executed it first time I got error like “deserialisation error”. But I got an article (SAP Web Services and Microsoft Office: How to Create Simple Composite Applications ) by Marcus Schiffer and that problem is resolved.
    But Now I am getting the error like ......Client:Type conversion failure for element eXLSTRUCT0 HRESULT=0x80020005: Type mismatch. - Client:Unspecified client error. HRESULT=0x80020005: Type mismatch.
    eXLSTRUCT0 - This is my structure name in input.
    Can you please help me to solve this issue.
    Thanks in advance
    Chandan

    "vikceo" <[email protected]> wrote in
    message
    news:gm1pl9$s5h$[email protected]..
    > hie
    >
    > here is the code:
    >
    > <mx:HTTPService id="headCountService"
    > resultFormat="e4x"
    > fault="headCountService_fault(event);"
    > result="headCountService_result(event);"
    >
    > url="
    http://localhost:8988/HeadCount-HeadCountService-context-root/headcountwsso
    > aphttpport"/>
    >
    >
    > private function
    headCountService_fault(evt:FaultEvent):void {
    > var title:String = evt.type + " (" + evt.fault.faultCode
    + ")";
    > var text:String = evt.fault.faultString;
    > alert = Alert.show(text, title);
    > }
    >
    > private function
    headCountService_result(evt:ResultEvent):void {
    > var statListAll:XMLList = new XMLList(evt.result.stat);
    > }
    >
    > I am calling the service in the main mxml file as
    > <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > showFlexChrome="false"
    > layout="vertical"
    > preinitialize="headCountService.send();">
    >
    > And error is coming from the method
    headCountService_fault
    Is it possible that your web service is receiving something
    with an ill
    formed tag. I'd second bitwyse's suggestion.

  • Problems in accessing UWL Items - Using SAP r/3 4.7 with External ITS

    Hi,
    When i am trying to open the Tasks in UWL, the Tasks which are calling any Tcode are giving blank page and some Tasks are opening but the Attachments in that Tasks are not opening.
    Tasks and Attachments are pointing to:
    1) http://vq2wk.corio.com:81/scripts/wgate/webgui/!?%7Etransaction=*SWK3+P_INSTID%3D0030000063%3BP_TYPEID%3DZSDQUOTE%3BP_CATID%3DBO%3BDYNP_OKCODE%3DONLI%3B&%7Eokcode=ONLI&%7Eclient=120&%7Elanguage=en&%7Eaccessibility=0
    2) http://vq2wk.corio.com:81/scripts/wgate/webgui/!?%7Etransaction=*SWK1+p_nosecm%3DX%3Bwi_id%3D000000156456%3B&%7Eclient=120&%7Elanguage=en&%7Eaccessibility=0
    All the Connections (RFC, SSO, SLD) and WebGui Tcodes with External ITS are working fine.
    Could any one please suggest me that i am missing any more configuration or any authorizations. Else any Session Managment needs to be done.
    Some times it is showing "/!Session not fall-safe/!\" in the status bar.
    Thanks in Advance.
    Regards,
    Sridhar.

    I already checked in SMLT tcode ,My system is MDMP .I passed that error and now I am getting this
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (GSI) INFO: dbname   = "D3320110118070143                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "SAPTST2K3E32                                                    "
    (GSI) INFO: sysname  = "Windows NT"
    (GSI) INFO: nodename = "SAPTST2K3E32"
    (GSI) INFO: release  = "5.2"
    (GSI) INFO: version  = "3790 Service Pack 2"
    (GSI) INFO: machine  = "2x Intel 80686 (Mod 29 Step 1)"
    (VK) ERROR: invalid migration key
    E:\usr\sap\D33\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    E:\usr\sap\D33\SYS\exe\run/R3load.exe: END OF LOG: 20110118215221
    any idea on this??

  • Problems with accessing Essbase cube from Interactive studio

    Hi All,
    I have a report in IR for which essbase is the source. When i try to process the report i am getting an error as below.
    Request [Report] from user[username] was terminated since it exceeded the time limit
    Any idea on how this could be resolved ?

    Probably query governors on the Essbase server, contact the Essbase DBA.
    Hope this helps.
    Andy King
    http://www.analitica.co.uk

  • Set and access application items

    Hi,
    How can I set and access the values of application items from package? is't recommended to access application items from procedure?
    thanks,

    Hi,
    in PL/SQL functions or procedures regardless if they are packaged or not:
    set procedure: APEX_UTIL.SET_SESSION_STATE('MY_ITEM','myvalue');
    get function: V('MY_ITEM')
    Regards Garry

Maybe you are looking for

  • Text Editor using cl_gui_textedit

    Hi, I need a text editor box on selection screen in display mode. and I'm using cl_gui_textedit class to get it.. but for some reason its not working. Here is the code below - report YLTEST1        no standard page heading line-size 255. DATA: g_text

  • Looking for a good spam-proof guestbook!

    Hello. Anyone know of a good guest book component that uses flash and/or cold fusion. The only good ones I can find are with php. :( I don't want to use php. I bought a decent one last year from cfmagic but the evil spam people destroyed my guest boo

  • JBO-26080 - (Repost)

    I am getting the following error while trying to update a record. The error message is as follows: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for MyTableName. I am using JDeveloper 3.2 running on a Windows NT 4.0 platform. I am

  • Regarding DatePicker

    I am beginner in Visual Studio 2013. Earlier I used VB 6.0. I am trying to develop an personal App for Windows Phone, but there I am facing some difficulties in TimePicker and Date picker control. I need to store the selected time and date in some se

  • Cannot preview messages

    Hi, for some weeks I have to restart MAIL in order to be able of previewing messages but now I cannot preview any message. It asks to connect to the account to preview messages. Before, I just had to restart the Mail application and it was solved, bu