JCO3 JCoDestination property

Hi,
  Can someone please shed some more light on below properties applicable to JCoDestination. The documentation does not provide much detail
jco.destination.peak_limit      Maximum number of active connections that can be created for a destination simultaneously
jco.destination.pool_capacity      Maximum number of idle connections kept open by the destination. A value of 0 has the effect that there is no connection pooling.
jco.destination.expiration_time      Time in ms after that the connections hold by the destination can be closed
jco.destination.expiration_check_period     Period in ms after that the destination checks the released connections for expiration
My requirement is to always have a pool capacity of 1,max limit of 1 with expiration time of say 300 seconds. However with this configuration I do see no physical socket connection opened is more than 1 (>max_limit).
What should be the best configuration to achieve the above requirement??

As a starter it might be best to take try out the examples that ship with the JCo3 distribution. I cannot comment much on your code, as it's an excerpt and doesn't show everything. E.g. I have no clue what the line this.getDestination().getAttributes() means; usually you retrieve destinations via the class JCoDestinationManager and there you always have to at least provide the name of the destination.
So let me give some generic comments instead:
<ul style="list-style:circle">
<li>Properties for destinations can be returned via a class that implements the interface DestinationDataProvider; you can register your own implementation (once) via static method Environment.registerDestinationDataProvider().</li>
<li>SAP ships the JCo with a generic file handler for providing destination attributes: It basically searches in the current directory (i.e. from where you started your application) for client destinations with the given name and extension ".jcoDestination" (server destinations use extension ".jcoServer"). As far as I remember you can also change the directory where those destination property files are searched for by setting System property "jco.destinations.dir".</li>
<li>I strongly recommend registering your own DestinationDataProvider (or ServerDataProvider) and so does SAP; this is especially true if you get your properties from somewhere else (as it seems to be in your case) or want some specific processing (e.g. use encrypted passwords in your properties that you decrypt upon loading).</li>
<li>For troubleshooting your existing coding I'd verify that you did actually create the file with the properties and that the file name (without the extension) matches the name that you use when trying to retrieve the destination.</li>
</ul>
Cheers, harald

Similar Messages

  • JCoDestination Problem: JCO_ERROR_RESOURCE: Destination does not exist

    Hello Experts,
    I followed the JCo3 tutorial of accessing backend ABAP system.
    I implemented the following code:
    File configuration = new File(JCO_DESTINATION_APP +".jcoDestination");
    if(!configuration.exists() || updateprovider) {
       Properties properties = new Properties();
       properties.setProperty(DestinationDataProvider.JCO_ASHOST, Configuration.getInstance().ashost);
       properties.setProperty(DestinationDataProvider.JCO_SYSNR, Configuration.getInstance().sysnr);
       properties.setProperty(DestinationDataProvider.JCO_CLIENT, Configuration.getInstance().client);
       properties.setProperty(DestinationDataProvider.JCO_USER, Configuration.getInstance().user);
       properties.setProperty(DestinationDataProvider.JCO_PASSWD, Configuration.getInstance().passwd);
       properties.setProperty(DestinationDataProvider.JCO_LANG, Configuration.getInstance().lang);
       properties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, "" + Configuration.getInstance().connections);
       properties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT, "" + Configuration.getInstance().connections);
       FileOutputStream fos = new FileOutputStream(configuration, false);
       properties.store(fos, JCO_DESTINATION_APP);
       fos.close();
    When I execute the following code:
    this.getDestination().getAttributes()
    I get the following error:
    com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination JCO_DESTINATION_APP does not exist
         at com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:163)
         at com.sap.conn.jco.rt.DefaultDestinationManager.searchDestination(DefaultDestinationManager.java:292)
         at com.sap.conn.jco.rt.DefaultDestinationManager.getDestinationInstance(DefaultDestinationManager.java:90)
         at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:61)
         at com.exz.app.common.helper.IntegrationPlatformAccessor.getDestination(IntegrationPlatformAccessor.java:83)
         at com.exz.app.common.helper.IntegrationPlatformAccessor.<init>(IntegrationPlatformAccessor.java:67)
         at com.exz.app.common.helper.IntegrationPlatformAccessor.getInstance(IntegrationPlatformAccessor.java:32)
         at com.exz.app.interfacemng.services.Template_WebService.<init>(Template_WebService.java:34)
         at com.exz.app.interfacemng.services.ConfigurationScenarioServiceClient.<init>(  ...
    What am I missing?
    Regards.

    As a starter it might be best to take try out the examples that ship with the JCo3 distribution. I cannot comment much on your code, as it's an excerpt and doesn't show everything. E.g. I have no clue what the line this.getDestination().getAttributes() means; usually you retrieve destinations via the class JCoDestinationManager and there you always have to at least provide the name of the destination.
    So let me give some generic comments instead:
    <ul style="list-style:circle">
    <li>Properties for destinations can be returned via a class that implements the interface DestinationDataProvider; you can register your own implementation (once) via static method Environment.registerDestinationDataProvider().</li>
    <li>SAP ships the JCo with a generic file handler for providing destination attributes: It basically searches in the current directory (i.e. from where you started your application) for client destinations with the given name and extension ".jcoDestination" (server destinations use extension ".jcoServer"). As far as I remember you can also change the directory where those destination property files are searched for by setting System property "jco.destinations.dir".</li>
    <li>I strongly recommend registering your own DestinationDataProvider (or ServerDataProvider) and so does SAP; this is especially true if you get your properties from somewhere else (as it seems to be in your case) or want some specific processing (e.g. use encrypted passwords in your properties that you decrypt upon loading).</li>
    <li>For troubleshooting your existing coding I'd verify that you did actually create the file with the properties and that the file name (without the extension) matches the name that you use when trying to retrieve the destination.</li>
    </ul>
    Cheers, harald

  • JCO3: NullPointerException unregistering server with custom repository

    Hello,
    I have a JCO 2 project running on a J2EE server that we ported over to JCO3, and the ultimate issue is that when I
    stop the JCoServer in the application, it's throwing a null pointer exception.  Seemingly because the JCoServers
    are in a higher classloader, they are still there on restart, and then I get the NullPointerException trying to
    recreate the server as well.  I very well may be doing something totally wrong here...
    I'm creating the Data Provider, Repository, and Server as follows:
    ========================================================
    // This is a simple implementation of ServerDataProvider
    markviewDataProvider = new MarkviewServerDataProvider();
    if (!Environment.isServerDataProviderRegistered()){
      log.debug("Registering data provider");
      Environment.registerServerDataProvider(markviewDataProvider);
    else{
      log.error("Data provider already registered.");
      throw new IllegalStateException("Data provider already registered.  Please restart application server.");
    // Create the neccessary properties and assign to data provider
    // Their values are being read from a database
    serverProperties.setProperty(ServerDataProvider.JCO_GWSERV, rfcServerInfo.getGatewayServer());
    serverProperties.setProperty(ServerDataProvider.JCO_GWHOST, rfcServerInfo.getGatewayHost());
    serverProperties.setProperty(ServerDataProvider.JCO_PROGID, rfcServerInfo.getProgramId());
    serverProperties.setProperty(ServerDataProvider.JCO_CONNECTION_COUNT, maxConnections.toString());
    //XXX: We have to get this to work or else the server will not restart correctly
    //More on this later.
    //serverProperties.setProperty(ServerDataProvider.JCO_REP_DEST, "custom destination");
    markviewDataProvider.setServerProperties(serverName, serverProperties);
    // Get back the configured server from the factory.
    JCoServer server;
    try
      server = JCoServerFactory.getServer(serverName);
    catch(JCoException ex)
      throw new RuntimeException("Unable to create the server " + serverName
      + ", because of " + ex.getMessage(), ex);
    // rfcRepository is a singleton that contains
    // repository = JCo.createCustomRepository(name);  
    // and methods to add structures to the repository            
    server.setRepository(rfcRepository.exposeRepository());
    // add in the handlers, start the server
    ========================================================
    So...the first issue is this: if I set ServerDataProvider.JCO_REP_DEST to anything, the program won't run because
    it looks for the repository host connection info in a text file with that name, just like the example code does. 
    According to the javadoc, custom repositories don't have a destination, so it seems this property should be NULL. 
    Yet if I leave that property null, it works fine...until I need to stop the server (or, I get the same error when
    the above code runs again on restart, as the JCoServerFactory.getServer code runs in both places - tries to refresh
    a server that survived the restart as it failed to shut down due to the error).
    For completeness, the shutdown code essentially reads:
    =========================================================
    JCoServer server = JCoServerFactory.getServer(serverName);
    server.stop();
    =========================================================
    Then what happens is this:
    java.lang.NullPointerException
            at com.sap.conn.jco.rt.StandaloneServerFactory.compareServerCfg(StandaloneServerFactory.java:91)
            at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:116)
            at com.sap.conn.jco.server.JCoServerFactory.getServer(JCoServerFactory.java:56)
            at com.markview.integrations.sap.gateway.sap2mv.JCoServerController.destroy(JCoServerController.java:310)
    I decompiled and debugged StandaloneServerFactory and I'm seeing this in compareServerCfg:
    =========================================================
            key = "jco.server.repository_destination";
            if(!current.getProperty(key).equals(updated.getProperty(key)))
                return CompareResult.CHANGED_RESTART;
            } else
                return CompareResult.CHANGED_UPDATE;
    =========================================================
    Clearly, if getProperty() returns null, the .equals is going to raise NullPointerException, so this appears to be
    the cause of that error.  In other words, if this code runs, I'm going to have this problem because the property
    needs to (seemingly) be null for my program to run at all.
    Any insights on how to fix this / work around this would be greatly appreciated!
    Thanks in advance,
    Corey

    <div style="width:58em;text-align:left">
    Whoa, a long posting and I'm not sure I read it thoroughly enough to fully understand your problem - so please be patient with me if any comments are silly...
    Your RFC server program provides an implementation for your own ServerDataProvider. If you reference a repository destination the default DestinationDataProvider implemented will look for a file name with the repository and extension .jcoDestination. If you don't like this behavior you simply need to provide your own implementation and register it, same as you did for the server data.
    According to the javadoc, custom repositories don't have a destination, so it seems this property should be NULL.
    Not sure where you found this. I'm assuming that you're talking about com.sap.conn.jco.JCoCustomRepository, which can of course be backed by a destination, i.e. see the comments in method setDestination:
    <div style="text-align:left">Set the destination for the remote queries.
    If the requested meta data objects are not available in the repository cache, i.e. not set by the application, the remote query to the specified destination will be started. Default value is null meaning the remote queries are not allowed.
    Note: As soon the destination is provided, the repository can contain mixed meta data - set statically by the application and requested dynamically from the ABAP backend.</div>
    I usually prefer using a connection to a backend providing the meta data instead of hard coding the meta data insertion into a custom repository. As the data is cached this introduces an acceptable overhead for retrieving meta data for long running server programs.
    Anyhow, when you create your custom repository via JCo.createCustomRepository(java.lang.String name) you obviously must give it a name. That's the name I'd expect in the server data as a reference for your repository (property ServerDataProvider.JCO_REP_DEST). However, if your custom repository is not backed by a complete online repository you obviously have to ensure that all meta data is already provided.
    So for testing it might be interesting to see if adding a JCoDestination to your custom repository helps. Another option might be to enable tracing and see what goes wrong...
    Cheers, harald
    </div>

  • About login_parameter 'use_sapgui' and 'abap_debug' in jco3.0.

    hello.
    in jco2.1.8 createclient,there is parameter  'use_sapgui' and 'abap_debug',but in JCO3.0 connectProperties,whether have the two parameter? how to write in java script? it's better to give example script.
    best regards.
    vera pang.

    Hi Charles,
    any progress with your problem? I've a similar problem. I have to call BAPI_DOCUMENT_CHANGE2 to change an original of a DIS.
    This won't work unless a SAPGUI is attached to the connection. With JCo 2.1.8 I set the connection property USE_SAPGUI to 1 or 2
    and everything works fine. After connecting there is a SAPGUI running in background and during the BAPI call the SAPGUI starts
    a saphttp.exe with managed the file transfer to the Server. In Jco 3.0 I'm missing this property, as you do. No SAPGUI, no saphttp.exe, but also
    no error or exception from BAPI_DOCUMENT_CHANGE2 and no filetransfer from client to server.
    regards,
    Boris

  • JCO3 and SLD

    Dear all,
    I am trying to interact with SLD via my standalone java application using jco3 to get all destinations and to retrieve information about the sap landscape but I can't find how to do it with jco3 (I found a solution only with jco2). Any help on that ?
    Thanks in advance.
    Regards,
    Mehdi.

    In the meantime I found out how to do it right:
    // After getting the desired destination, create a custom destination for it
    JCoDestination destination = JCoEnvironment.getDestination( "<DestinationName>" );
    JCoCustomDestination custDest = destination.createCustomDestination();
    // From the custom destination you can get and manipulate the corresponding UserData object
    UserData data = custDest.getUserLogonData();
    // On this object you can set the desired fields (see Javadoc for UserData for more information)
    data.setAliasUser( ... );
    data.setClient( ... );
    data.setLanguage( ... );
    data.setPassword( ... );
    data.setSSOTicket( ... );
    data.setUser( ... );
    data.setX509Certificate( ... );
    // Then, use the custom destination to do things
    JCoContext.begin( custDest );
    JCoContext.end( custDest );
    I only tried it using a different user/password combination than configured and it worked. Didn't yet try with SSO.
    Note that JCo creates one physical connection to the R/3 system when getting the destination and a second when creating the custom destination.
    Edited by: Carsten Erker on Apr 1, 2009 10:32 PM

  • SAP JCo3 connection pool instance release

    Hi Experts,
    I am using SAP JCo3 version to connect SAP from remote Java application.I have created connection pool with JcoDestination.
    I want to know how to release a Jcodestination (pool instance)once its finishes with the functionalities so that connection pool can be managed properly.
    Thanks In advance.

    Hi,
    I think we dont need to close the connection. Anyway we define Connection Timeout(ms) while JCO Destionations configurations. I guess that is enough.
    Size 
    Currently used 
    Maximum used 
    Max.connections 
    Max.pool size 
    Connection Timeout(ms) 
    Max. wait time(ms) 
    Timeout Check Period(ms)
    See the information about connection closing in below link:
    http://www.winfobase.de/lehre/lv_materialien.nsf/intern01/FB09D79A41930E34C125709F0046180C/$FILE/Tips&Tricks_JCo_Programming.pdf
    Regards,
    Charan

  • SAP JCo3 connection pooling

    Hi,
             I am very new to sap jco 3 . I want to make connection pooling using jco3 .But in jco3 there is no class like JCO.Pool
    and JCO.Client .I think both class are available in com.sap.mw.jco.* but i dont know from where i can get them .
    So, can anybody suggest me how to make connection pooling using SAP Jco3 and how its work ?
    Thanks in advance.

    This Topic is a litte bit older and I guess you have found an answer yet (at least I hope so )
    However here are your answers.
    The Pooling is managed within the Destination:
    You can set this by createing a DestionationProperty by hand:
    Properties connectProperties = new Properties();
    connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, <HOST>);
    connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR, <SYS_NR>);
    connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, <e.g. 100>);
    connectProperties.setProperty(DestinationDataProvider.JCO_USER, <RFC-User>);
    connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, <pass if working with RFC-User>);
    connectProperties.setProperty(DestinationDataProvider.JCO_LANG, <en|de|fr|...>);
    connectProperties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, <e.g. 3>);
    connectProperties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT, <e.g. 10>);
    Due to seurity reasons this is not the recommended way. But since I guess your code will run on some SAP-ApplicationSserver in the end you can easyly set the Destionation properties in the NetWeaver Administrator (http://<server>:<port>/nwa) under Konfiguration -> Security -> Destinations
    then you can use:
    JCoDestinationManager.getDestination(<destinationName>);
    to get a JCoDestination. This is more or less what you wanted with JCO.Client
    I know the documentation on this Topic is not very detailed but with this few informations you should find what you need.

  • How many have jco3 DestinationDataProvider properties ?

    hello,experts.
    connect sap using jco2.1.8,have following connect properties:
    String[][] login_params = {
            { "client" ,   "value"      },
            { "user"   ,   "value"  },
            { "passwd" ,   "value" },
            { "language" , "EN"       },
            { "sysnr"   ,   "value"  },
            { "ashost" ,   "value" },
            { "abap_debug" , "0"       },
            { "use_sapgui" , "1"       },
    question:
    1.using JCO3 DestinationDataProvider , whether have abap_debug and use_sapgui property?
    2.in unix os, whether can use use_sapgui property?(in unix os,PlatinGUI-AIX-710r6.jar has been installed).
    best regards.
    Vera P.

    Ok, I found it eventually...
    The JVM always try to download a .class file first, when loading
    a resource bundle. If it does not find it in the .jar file, it will
    ask the web server.
    The solution is to use only .class files for resource bundles and
    not property files. It is quite easy to convert a property file
    to a java classs by extending the ListResourceBundle class.
    This has another good effect : it really speeds up the connection...
    -- Alexis

  • Javascript  - is there something like an "active row count" property??

    Lets say I have a tabular form. Every time I use the form, the # of rows returned by the query will vary. Maybe first time I go to the page, the select statement returns only 5 rows, but the next day it returns 25 rows.
    Is there some type of system variable to stores the # of rows visible on the page at a given time within this tabular form?
    I realize that if I have an tabular form item with an id of f03 for example, then on each row it will be referenced as f03_0001, then f03_0002 on the next row and then f03_0003 on the next row etc...
    In pseudocode, here is what I want to do:
    For i = 1 to ACTIVE_ROW_COUNT (assuming this is the # of rows in the HTML table)
    perform some operation on 'f03_000' + ACTIVE_ROW_COUNT
    Do you see what I'm after? I checked the APEX api, but I couldn't find such a property. It seems like you can't do much if you can't figure out this current index # or the max on the page.
    Also, I tried playing around with the "this" keyword in hopes of finding a pointer to the "current item" that would have triggered the onchange event, but no luck either.
    Thanks in advance.

    Hi:
    Within javascript you can reference the columns of the tabular form as
    <script>
    col1 = document.forms0.f01;  // the first updateable column of your report
    alert (col1.length) ;   //  number of rows
    </script>varad
    Edited by: varad acharya on Dec 8, 2008 5:53 PM

  • Retrieving ALL values from a single restricted user property

    How can I retrieve ALL values of a single restricted user property from within
    a .jpf file?
    I want to display a dropdown list within a form in a JSP which should contain
    all the locations listed in the property 'locations'. I ever get just the default
    value when I access the property via
    ProfileWrapper pw = userprofile.getProfileForUser(user);
    Object prop = pw.getProperty("ClockSetup", "Locations");

    Well, the code you've got will retrieve the single value of the property
    for the current user. You're getting the default value because the
    current user doesn't have Locations property set, so the ProfileWrapper
    returns the default value from the property set.
    I assume you want to get the list of available values that you entered
    into the .usr file in Workshop. If so, I've attached a
    SetColorController.jpf, index.jsp, and GeneralInfo.usr (put in
    META-INF/data/userprofiles) I wrote for an example that does just this.
    It uses the PropertySetManagerControl to retrieve the restricted values
    for a property, and the jsp uses data-binding to create a list from that
    pageflow method.
    For a just-jsps solution, you can also use the
    <ps:getRestrictedPropertyValues/> tag. I've attached a setcolor-tags.jsp
    that does the same thing.
    Greg
    Dirk wrote:
    How can I retrieve ALL values of a single restricted user property from within
    a .jpf file?
    I want to display a dropdown list within a form in a JSP which should contain
    all the locations listed in the property 'locations'. I ever get just the default
    value when I access the property via
    ProfileWrapper pw = userprofile.getProfileForUser(user);
    Object prop = pw.getProperty("ClockSetup", "Locations");
    [att1.html]
    package users.setcolor;
    import com.bea.p13n.controls.exceptions.P13nControlException;
    import com.bea.p13n.property.PropertyDefinition;
    import com.bea.p13n.property.PropertySet;
    import com.bea.p13n.usermgmt.profile.ProfileWrapper;
    import com.bea.wlw.netui.pageflow.FormData;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    import java.util.Collection;
    import java.util.Iterator;
    * @jpf:controller
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
    * <view-properties>
    * <pageflow-object id="pageflow:/users/setcolor/SetColorController.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="80" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action:setColor.do#users.setcolor.SetColorController.ColorFormBean">
    * <property value="240" name="x"/>
    * <property value="220" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:index.jsp@#@action:setColor.do#users.setcolor.SetColorController.ColorFormBean@">
    * <property value="240,240,240,240" name="elbowsX"/>
    * <property value="144,160,160,176" name="elbowsY"/>
    * <property value="South_1" name="fromPort"/>
    * <property value="North_1" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:index.jsp">
    * <property value="240" name="x"/>
    * <property value="100" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@">
    * <property value="116,160,160,204" name="elbowsX"/>
    * <property value="92,92,92,92" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#begin.do#@action:setColor.do#users.setcolor.SetColorController.ColorFormBean@">
    * <property value="204,160,160,116" name="elbowsX"/>
    * <property value="201,201,103,103" name="elbowsY"/>
    * <property value="West_0" name="fromPort"/>
    * <property value="East_2" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="control:com.bea.p13n.controls.ejb.property.PropertySetManager#propSetMgr">
    * <property value="31" name="x"/>
    * <property value="34" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="control:com.bea.p13n.controls.profile.UserProfileControl#profileControl">
    * <property value="37" name="x"/>
    * <property value="34" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="formbeanprop:users.setcolor.SetColorController.ColorFormBean#color#java.lang.String"/>
    * <pageflow-object id="formbean:users.setcolor.SetColorController.ColorFormBean"/>
    * </view-properties>
    public class SetColorController extends PageFlowController
    * @common:control
    private com.bea.p13n.controls.ejb.property.PropertySetManager propSetMgr;
    * @common:control
    private com.bea.p13n.controls.profile.UserProfileControl profileControl;
    /** Cached possible colors from the User Profile Property Set definition.
    private String[] possibleColors = null;
    /** Get the possible colors, based upon the User Profile Property Set.
    public String[] getPossibleColors()
    if (possibleColors != null)
    return possibleColors;
    try
    PropertySet ps = propSetMgr.getPropertySet("USER", "GeneralInfo");
    PropertyDefinition pd = ps.getPropertyDefinition("FavoriteColor");
    Collection l = pd.getRestrictedValues();
    String[] s = new String[l.size()];
    Iterator it = l.iterator();
    for (int i = 0; it.hasNext(); i++)
    s[i] = it.next().toString();
    possibleColors = s;
    catch (P13nControlException ex)
    ex.printStackTrace();
    possibleColors = new String[0];
    return possibleColors;
    /** Get the user's favorite color from their profile.
    public String getUsersColor()
    try
    ProfileWrapper profile = profileControl.getProfileFromRequest(getRequest());
    return profileControl.getProperty(profile, "GeneralInfo", "FavoriteColor").toString();
    catch (P13nControlException ex)
    ex.printStackTrace();
    return null;
    // Uncomment this declaration to access Global.app.
    // protected global.Global globalApp;
    // For an example of page flow exception handling see the example "catch" and "exception-handler"
    // annotations in {project}/WEB-INF/src/global/Global.app
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward begin()
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="begin.do"
    protected Forward setColor(ColorFormBean form)
    // set the color in the user's profile
    try
    ProfileWrapper profile = profileControl.getProfileFromRequest(getRequest());
    profileControl.setProperty(profile, "GeneralInfo", "FavoriteColor", form.getColor());
    catch (P13nControlException ex)
    ex.printStackTrace();
    return new Forward("success");
    * FormData get and set methods may be overwritten by the Form Bean editor.
    public static class ColorFormBean extends FormData
    private String color;
    public void setColor(String color)
    this.color = color;
    public String getColor()
    return this.color;
    [GeneralInfo.usr]
    [att1.html]

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Hi there,
    I use visual studio community 2013 to develop app for office. When I create app project using template and directly run it, it shows me this error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    Can anyone help? Thanks in advance.

    Hi holm0104,
    Did you add custom code into the project? Can you reproduce the issue in a new project without custom code?
    If not, did you have issue when you create a normal web application?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" while attempting to open UNIX/Linux monitor

    We have upgraded our System Center to 2012 R2, and we cannot open any of the UNIX/Linux LogFile monitor property or the UNIX/Linux process monitor property for those monitors created prior to the upgrade.  Error we get is below.  Any assitance
    appreciated.
    Date: 9/30/2014 10:01:46 PM
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message:
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.TypeContainer.get_ContainedType()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.AddTemplatePages(LaunchTemplateUIData launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Initialize(Object launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.RunPrivate(Object[] userData)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Run(Object[] userData)

    It's possible the upgrade did not update everything properly as it looks like a dll mismatch or a missing file. I'd open a support ticket with MS and have a support engineer look at the upgrade logs. What version of SCOM did you upgrade from?
    Regards,
    -Steve

  • How to use property of dimension to filter the 2nd dimension in Allocation?

    Hi experts,
    How do we use a property of one dimension to filter out the members of another dimension in allocation script engine?
    eg of two dimensions
    1.)Entity dimension - (entity dimension)
      memberset:                                        Channeltype (property)
                       Stores
                        Store1                           Boutique
                        Store2                           Kiosk
                        Store3                           Branch
                        Store4                           Concession
                        Store5                           Franchise
                      Nonstore
    2.)business Channel dimension - (user define)
       memberset:
                   Channeltype   
                       Boutique
                       Kiosk
                       Branch
                       Concession
                       Franchise
                       Nochannel
    in allocation code
    *runallocation
    *factor
    *dim entity                          what=Nonstore;                where=bas(Stores)
    *dim businesschannel        what=nochannel;             where= ? ;
    *endallocation
    The thing is that when the engine selected store 2 for entity it should select kiosk as its businesschannel.
    Please advise.
    Thanks as always,
    yajepe

    Hi,
    In this case, I believe, you should have the allocation within a for loop. But you should note that the performance might reduce.
    *FOR %VAR% = BAS(STORES)
       *RUNALLOCATION
       *FACTOR
       *DIM ENTITY WHAT = NONSTORE; WHERE = %VAR%
       *DIM BUSINESSCHANNEL WHAT = NOCHANNEL; WHERE = %VAR%.CHANNELTYPE
       *ENDALLOCATION
    *NEXT
    Hope this helps.

  • Using a Variable in the Get PRoperty Tag???

    This is what I tried:
    <% String colname="code02"; %>
    <jsp:getProperty name='Input' property='<%=colname%>' />
    Produced this:
    Internal Servlet Error:
    org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'com.infomed.InputBean'
    at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:616)
    at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
    at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:771)
    at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:220)
    at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    Any Help you can give would be greatly appreciated, what I need to do is cycle through code01, code02....code15
    and use the string to do it, but use a counter integer to create the string, ie..'code0' + i and then use the sting to access
    on of the member properties in the been...(Code01, Code02) ertc.
    If I simply do a
    <jsp:getProperty name='Input property='code02'/>
    everything works great.
    when I try to replace the property='code02' with a variable, so that I can run through a loop, I run into the problems
    Any ideas would be of great help as I am pounding my head against the brick wall

    Expressions aren't allowed in the getProperty tag:
    http://java.sun.com/products/jsp/pdf/card11.pdf

Maybe you are looking for