Create a Service Instance.

Hi all,
Could you pls help me with the next problem?
I created a new service sVacations. An error occurs during executing the next part of code:
ASVacations oVacations = sVacationsServiceProxy.create();
oVacations.getAspect().sendChanges();
The text of the error is:
Root Cause
The initial exception that caused the request to fail, was:
   java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspectRow
Could you pls advise me how to handle this situation?
Thanks in advance.
P.S. In the beginning of the iplementation the next imports are inserted:
import com.sap.tc.col.client.generic.api.IAspectRow;
import com.sap.yk_services_1.services.yk_services_1.svacationsservice.sVacationsServiceProxy;

Yulia,
It's a part of portalapp.xml file from the working application:
  <application-config>
            <property name="SharingReference"    value="sap.com/tcwddispwda"/>
            <property name="SharingReference"    value="sap.com/cafUIptn~common"/>
            <property name="SharingReference"    value="sap.com/tcwdcorecomp"/>
            <property name="SharingReference"    value="sap.com/cafruntimeear"/>
            <property name="SharingAccess"       value="true"/>
            <property name="LibrariesReference"    value="tc/ddic/ddicservices"/>
            <property name="LibrariesReference"    value="webservices_lib"/>
            <property name="LibrariesReference"    value="com.sap.aii.proxy.framework"/>
            <property name="LibrariesReference"    value="tc/graphics/igs"/>
            <property name="LibrariesReference"    value="com.sap.mw.jco"/>
            <property name="LibrariesReference"    value="com.sap.lcr.api.cimclient"/>
            <property name="LibrariesReference"    value="sapxmltoolkit"/>
            <property name="LibrariesReference"    value="com.sap.aii.util.rb"/>
            <property name="LibrariesReference"    value="com.sap.util.monitor.jarm"/>
            <property name="LibrariesReference"    value="tc/ddic/ddicruntime"/>
            <property name="LibrariesReference"    value="com.sap.security.api.sda"/>
            <property name="LibrariesReference"    value="com.sap.aii.util.xml"/>
            <property name="LibrariesReference"    value="tc/col/api"/>
            <property name="LibrariesReference"    value="com.sap.aii.util.misc"/>
            <property name="LibrariesReference"    value="tc/cmi"/>
            <property name="LibrariesReference"    value="tc/col/runtime"/>
                  <property name="ServicesReference"   value="sld"/>
                                </application-config>
The class mentioned by you is for sure in the
             <property name="LibrariesReference"    value="tc/col/runtime"/>
(you can check it on your WAS in the C:\usr\sap\F38\JC30\j2ee\cluster\server0\bin\ext\tccolruntime\_col_client_generic_metadata_apis.jar)
Maybe problem that you've added this reference as a SharedReference instead of LibrariesReference...
Udachi
Regards,
Andrei

Similar Messages

  • PowerPivot - SP2013 - Cannot create the service instance because the parent Service does not exist

    Unable to setup PowerPivot using PowerPivot configuration tool.
    I have One server which has SQL 2012 SP1 and SP2013.
    The farm is configured with all service applications.
    SQL has default instance with DB Engine and SSAS Tabular. Reporting Services has been configured using SharePoint mode and has a service application.
    The Power Pivot instance is set up with DB Engine and the SSAS.
    I keep getting this error. Ive tried so many times uninstalling, making sure features removed, rebuilding the farm (thank god for autospinstaller..)
    11/07/13 12:06:17:6858 Verbose: CreateSystemServiceInstance.NeedsExecute
    11/07/13 12:06:17:6858 Verbose: Running function IsFarmConfigured to check whether SharePoint is configured regardless of availability
    11/07/13 12:06:17:6858 Verbose: Farm is configured
    11/07/13 12:06:17:6858 Verbose: Entering function GetService(Guid)
    11/07/13 12:06:17:6868 Verbose: Service is not installed.
    11/07/13 12:06:17:6868 Verbose: Service instance not found in local server.
    11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.NeedsExecute(True)
    11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.CanExecute
    11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.CanExecute(True)
    11/07/13 12:07:41:5662 Verbose: CreateSystemServiceInstance.Execute
    11/07/13 12:07:41:5682 Verbose: Entering function GetService(Guid)
    11/07/13 12:07:41:5702 Verbose: Service is not installed.
    11/07/13 12:07:41:5702 Verbose: CreateSystemServiceInstance.Execute(Skipped)
    11/07/13 12:07:41:5702 High: Cannot create the service instance because the parent Service does not exist.
    11/07/13 12:07:41:5702 High: Prerequisites check for execution failed. Farm is not in a valid state.

    Did you install the PowerPivot add-in for SharePoint? There are 2 parts to this - the SQL Server Power Pivot for SharePoint which is the Analysis Services instance running in Tabular Mode and the PowerPivot Add-in. The last line in your error message seems
    to tell you that you have a missing component in the farm, possibly the PowerPivot Add-in
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Service-name meaning in the service instance command

    Hi,
    in the Cisco 7600 we have the following command to configure a service instance:
    service instance id ethernet  [service-name]
    Searching information for the meaning of the service-name option I didn't find nothing..
    Do you know what service-name do and when (or why) it might be configured?
    Often the service instance configuration is
    service instance 100 ethernet without any service-name
    thx
    Riccardo

    Hi,
    Router(config-if-srv)#service instance id {Ethernet [service-name]}
    Creates an service instance (instantiation of an EVC) on an interface. It sets the device into the config-if-srv sub-mode.
    http://www.cisco.com/en/US/products/hw/routers/ps368/products_configuration_guide_chapter09186a00807f3f7e.html

  • Cant create more than 16 services instances in ME3600

    I have an issue in creating services instances with bridge-domain in ME3600x
    the license level is AdvancedMetroIPAccess.
    i have currently 16 services instances, and if i create 1 more the number 16th puts himself in shutdown. 
    show version results:
    Cisco IOS Software, ME360x Software (ME360x-UNIVERSAL-M), Version 15.1(2)EY2a, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2012 by Cisco Systems, Inc.
    Compiled Wed 04-Apr-12 06:37 by prod_rel_team
    ROM: Bootstrap program is WHALES boot loader
    MIL-PE-3600-01 uptime is 20 weeks, 4 days, 22 hours, 51 minutes
    System returned to ROM by power-on
    System restarted at 00:20:14 GMT Sun Nov 17 2013
    System image file is "flash:/me360x-universal-mz.151-2.EY2a/me360x-universal-mz.151-2.EY2a.bin"
    License Level: AdvancedMetroIPAccess
    License Type: Permanent
    Next reload license Level: AdvancedMetroIPAccess
    cisco ME-3600X-24TS-M (PowerPC8572) processor (revision A0) with 1015808K/32760K bytes of memory.
    Processor board ID FOC1617V1GZ
    Last reset from power-on
    32 Virtual Ethernet interfaces
    25 Gigabit Ethernet interfaces
    2 Ten Gigabit Ethernet interfaces
    The password-recovery mechanism is enabled.
    1536K bytes of flash-simulated non-volatile configuration memory.

    I had a couple of small hard disks (scsi) that I amalgamted into one large disk using raidtools. I then used LVM on the 'MD0' result of that to slice it into 23 bits as RAW.
    Worked fine. You should be able to use the same methods (or parts therof as needed) on IDE.
    Now that you can buy a firewire HD and Firewire cards (check out driver chip type first)without breaking the bank, this would be the simplest option for a RAC.
    HTH

  • WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface com.microsoft.bingads.campaignmanagement.ICampaignManagementService should have WSDL information

    package com;
    import java.rmi.*;
    import com.microsoft.bingads.*;
    import com.microsoft.bingads.campaignmanagement.*;
    public class AdExtensions   {
        static AuthorizationData authorizationData;
        static ServiceClient<ICampaignManagementService> CampaignService;
        private static java.lang.String UserName = "chandan-ai";
        private static java.lang.String Password = "Algo1234";
        private static java.lang.String DeveloperToken = "BBD37VB98";
        private static long CustomerId = 9548596;
        private static long AccountId = 38360461;
        public static void main(java.lang.String[] args) {
            try
                authorizationData = new AuthorizationData();
                authorizationData.setDeveloperToken(DeveloperToken);
                authorizationData.setAuthentication(new PasswordAuthentication(UserName, Password));
                authorizationData.setCustomerId(CustomerId);
                authorizationData.setAccountId(AccountId);
            //      String namespace ="https://bingads.microsoft.com/CampaignManagement/v9";
                //  String url ="https://api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v9/CampaignManagementService.svc?wsdl";
           CampaignService = new ServiceClient<ICampaignManagementService>(
                             authorizationData,ApiEnvironment.SANDBOX,
                             ICampaignManagementService.class);
                 ArrayOfCampaign campaigns = new ArrayOfCampaign();
                 Campaign campaign = new Campaign();
                 campaign.setName("Winter Clothing " + System.currentTimeMillis());
                 campaign.setDescription("Winter clothing line.");
                 campaign.setBudgetType(BudgetLimitType.MONTHLY_BUDGET_SPEND_UNTIL_DEPLETED);
                 campaign.setMonthlyBudget(1000.00);
                 campaign.setTimeZone("PacificTimeUSCanadaTijuana");
                 campaign.setDaylightSaving(true);
                 campaign.setDailyBudget(52.00);
                 campaigns.getCampaigns().add(campaign);
              ArrayOflong campaignIds = addCampaigns(AccountId, campaigns);
              printCampaignIdentifiers(campaignIds);
             } catch (Exception ex) {
                 // Ignore fault exceptions that we already caught.
                 if ( ex.getCause() instanceof AdApiFaultDetail_Exception ||
                      ex.getCause() instanceof EditorialApiFaultDetail_Exception ||
                      ex.getCause() instanceof ApiFaultDetail_Exception )
                 else
                     System.out.println("Error encountered: ");
                     System.out.println(ex.getMessage());
                     ex.printStackTrace();
         // Adds one or more campaigns to the specified account.
         static ArrayOflong addCampaigns(long accountId, ArrayOfCampaign campaigns) throws RemoteException, Exception
             AddCampaignsRequest request = new AddCampaignsRequest();
             // Set the request information.
             request.setAccountId(accountId);
             request.setCampaigns(campaigns);
             System.out.println(request.getCampaigns() + "\n"+ request.getAccountId());
             return CampaignService.getService().addCampaigns(request).getCampaignIds();
         // Prints the campaign identifiers for each campaign added.
         static void printCampaignIdentifiers(ArrayOflong campaignIds)
             if (campaignIds == null)
                 return;
             for (long id : campaignIds.getLongs())
                 System.out.printf("Campaign successfully added and assigned CampaignId %d\n\n", id);
    when running this program i am getting error
     WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface com.microsoft.bingads.campaignmanagement.ICampaignManagementService should have WSDL information
    javax.xml.ws.WebServiceException: WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface com.microsoft.bingads.campaignmanagement.ICampaignManagementService should have WSDL information
        at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
        at javax.xml.ws.Service.getPort(Unknown Source)
        at com.microsoft.bingads.internal.ServiceFactoryImpl.createProxyFromService(ServiceFactoryImpl.java:117)
        at com.microsoft.bingads.ServiceClient.getService(ServiceClient.java:94)
        at com.AdExtensions.addCampaigns(AdExtensions.java:91)
        at com.AdExtensions.main(AdExtensions.java:49)
                                          

    Hello.
    Please make sure you have the correct dependency versions e.g. cxf-rt-frontend-jaxws version 3.0.2. You can find a list of all dependencies for the Bing Ads Java
    SDK here:http://mvnrepository.com/artifact/com.microsoft.bingads/microsoft.bingads/9.3.2-beta
    If you create a Maven project e.g. in Eclipse, the dependencies are included automatically. 
    I hope this helps!

  • Service Manager 9.21: How to create a new instance of scautolistener and assign a port to it.

    Hi,
    2 instances of scautolistener are already running and i want to create a new instance of scautolistener.
    The sm.cfg file entry of scautolistener instances are:
    sm -scautolistener:12670 -debugscauto -log:..\logs\scauto.log
    sm -scautolistener:12690 -log:..\logs\scsmtp.log
    Please guide me as how to create a new instance of scautolistener.

    first, you cannot create instances of methods. but you can create instances of classes (==objects).
    the algorithm for primes does not work yet (its your work) but i inserted the code to create your object.
    import java.math.*;
    public class IsPrime {
    public boolean isPrime1(int arg){
    for(int e = 2; e < arg; e++){
    int remainder=arg%e;
    if(remainder==0){
    System.out.println("This number is not a prime number");
    break;
    else {
    System.out.println("This number is a prime number");
    break;
    return true;
    public static void main(String[] args){
    System.out.println(args.length);
    if (args.length>1){
    System.out.println("Sorry you can only enter one number");
    else{
    String sNum =args[0];
    int iNum=Integer.parseInt(sNum);
    IsPrime myPrimesObject = new IsPrime(); // here is your object
    if (myPrimesObject.IsPrime1(iNum)==true)
    System.out.println("is a prime");else System.out.println("is not a prime");
    }

  • SP 2010 - Error when creating a new Search Service Instance

    Hi experts,
    I'm getting the below error logged in my SharePoint 2010 SP2 Server. Any ideas to resolve it please? Thanks in advance.
    Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (9b011033-0dc6-4d77-8f22-c16aa010532f).  Reason: Exception from HRESULT: 0x80040D23 
    Technical Support Details: System.Runtime.InteropServices.COMException (0x80040D23): Exception from HRESULT: 0x80040D23   
    at Microsoft.Office.Server.Search.Administration.MSSITLB.IGatherManagerAdmin3.get_ConfigurationVersion()   
    at Microsoft.Office.Server.Search.Administration.Gatherer.ProvisionGlobalProperties()   
    at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()   
    at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
    Hamza Grandi

    did you see any error in Event/application logs? could you please tell us at what point you getting the error?
    mostly this is happen when An index corrupted, may need to rebuild / reset the index.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Creating a service ; What needs to be added to tnsnames.ora and JDBC url?

    DB version: 11.2.0.2
    OS platform : Solaris 10
    We have a 2 node RAC.
    DB name   = mbsprd
    Instance1  = mbsprd1
    Instance2  = mbsprd2I want Instance 1 (mbsprd1) to be used for our OLTP application and Instance 2 (mbsprd2) to be used for another application of DSS nature.
    Based on the syntax
    srvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>I am going to create 2 services
    -- Creating a service called OLTP
    srvctl add service -d mbsprd -s OLTP  -r mbsprd1 -a mbsprd2-- Creating a service called DSS
    srvctl add service -d mbsprd -s DSS  -r mbsprd2 -a mbsprd1-- Starting the services
    srvctl start service -d mbsprd -s OLTP
    srvctl start service -d mbsprd -s DSSI guess the above steps are enough to configure a service at the server side.
    I would like to know what needs to be done at the client side.
    Currently the tnsnames.ora file and JDBC url used by our clients are shown below. What needs to be added to tnsnames.ora file and jdbc URL to start using services configured above?
    -- SCAN based TNS entry
    mbsprd =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = tcp.world)
            (PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964))
        (CONNECT_DATA =
          (SERVER       = DEDICATED)
          (SERVICE_NAME = mbsprd)
          (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))
    -- TNS entry based on local listener
    -- Instance 1
    mbsprd1 =
    (DESCRIPTION =
       (ADDRESS_LIST =
       (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973))
       (CONNECT_DATA =
             (SERVICE_NAME = mbsprd)
             (INSTANCE_NAME = mbsprd1)
    -- Instance 2
    -- TNS entry based on local listener
    mbsprd2 =
    (DESCRIPTION =
       (ADDRESS_LIST =
       (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973))
       (CONNECT_DATA =
             (SERVICE_NAME = mbsprd)
             (INSTANCE_NAME = mbsprd2)
    )JDBC entry for RAC
    jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd -- Alternative version used by some clients because the above had 'some issues'
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))

    OLTP =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = OLTP)
    DSS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DSS)
      )JDBC entry for RAC
    jdbc:oracle:thin:@p148149-scan.tpam.net:36964:service_name
    jdbc:oracle:thin:@new_tns_entry_description(if you would like to connect the database with particular service)
    try this and let us know any issues,

  • Ibase and configuration error while creating a Service Contract

    Hi,
    I am creating a Service Contract programatically and not manually through the T-code CRMD_ORDER.
    I am using the Function module CRMXIF_ORDER_SAVE for the same as the FM BAPI_BUSPROCESSND_CREATEMULTI and CRM_ORDER_MAINTAIN did not work for me because of the number of parameters that needs to be passed for creating the Service contract.
    The Service contract does get created but there are errors corresponding to the Point of delivery and configuration missing.
    The error corresponding to the point of delivery says "IS-U:allocate a point of delivery to the item" even though I am passing the values in the REF_OBJECTS field of the CRMXIF_BUSTRANS_ITEM structure.
    Structure for the same is :
    ls_objects_i-TYPE_REF_OBJ = 'B'.
      ls_objects_i-object_task = 'I'.
      ls_objects_i-PRODUCT_GUID = lv_product_guid.
      ls_objects_i-PRODUCT_ID = p_product_id.
      ls_objects_i-IBASE_COMP_GUID = ls_output-IBASE_GUID.
      ls_objects_i-IB_INSTANCE = 1582.
      ls_objects_i-IB_COMP_VALID = '20070926093651'.
      ls_objects_i-SERIAL_NUMBER = '0102 46CC9C278B92025BE10000000AD5920E'.
      append ls_objects_i to lt_objects_i.
      p_ls_item-REF_OBJECT-data = lt_objects_i.
      p_ls_item-REF_OBJECT-datax = 'X'.
    Similarly,the error for the configuration says "Configuration for the item missing" and here again I am passing the values in the CONFIGURATION structure.
    Structure for this is :
      p_ls_item-configuration-data-consist = 'T'.
      p_ls_item-configuration-data-kbname = 32.
      p_ls_item-configuration-data-kbvers = '0.0'.
      p_ls_item-configuration-data-kbprofile = 'E_H_B'.
      p_ls_item-configuration-data-complete = 'T'.
      p_ls_item-configuration-data-spras = 'E'.
      p_ls_item-configuration-data-cfginfo = 'VCOND=VARIANT_CONDITION_KEY'
      ls_cuins-OBJ_TYPE = 'SERV'.
      ls_cuins-class_type = 300.
      ls_cuins-obj_key = 'E_H_B'.
      ls_cuins-obj_txt = 'E_H_B'.
      ls_cuins-QUANTITY = '1.0'.
      ls_cuins-COMPLETE = 'T'.
      ls_cuins-CONSIST = 'T'.
      append ls_cuins to lt_cuins.
      ls_config_i-instance = lt_cuins.
      p_ls_item-configuration-data = ls_config_i.
      p_ls_item-configuration-datax = 'X'.
      clear ls_config_i.
      ls_cuval-charc = 'DISCOUNT_EUR'.
      ls_cuval-charc_txt = 'DISCOUNT_EUR'.
      ls_cuval-value = '0.0'.
    ls_cuval-value_txt
      append ls_cuval to lt_cuval.
      ls_instance-value = lt_cuval.
      insert ls_instance into table lt_instance.
    ls_config_i-instance = lt_instance.
    p_ls_item-configuration-data = ls_config_i.
    p_ls_item-configuration-datax = 'X'.
    clear ls_config_i.
    Kindly help if anyone has worked on this.......
    Regards,
    Puneet Jhari.

    Hi,
    I am creating a Service Contract programatically and not manually through the T-code CRMD_ORDER.
    I am using the Function module CRMXIF_ORDER_SAVE for the same as the FM BAPI_BUSPROCESSND_CREATEMULTI and CRM_ORDER_MAINTAIN did not work for me because of the number of parameters that needs to be passed for creating the Service contract.
    The Service contract does get created but there are errors corresponding to the Point of delivery and configuration missing.
    The error corresponding to the point of delivery says "IS-U:allocate a point of delivery to the item" even though I am passing the values in the REF_OBJECTS field of the CRMXIF_BUSTRANS_ITEM structure.
    Structure for the same is :
    ls_objects_i-TYPE_REF_OBJ = 'B'.
      ls_objects_i-object_task = 'I'.
      ls_objects_i-PRODUCT_GUID = lv_product_guid.
      ls_objects_i-PRODUCT_ID = p_product_id.
      ls_objects_i-IBASE_COMP_GUID = ls_output-IBASE_GUID.
      ls_objects_i-IB_INSTANCE = 1582.
      ls_objects_i-IB_COMP_VALID = '20070926093651'.
      ls_objects_i-SERIAL_NUMBER = '0102 46CC9C278B92025BE10000000AD5920E'.
      append ls_objects_i to lt_objects_i.
      p_ls_item-REF_OBJECT-data = lt_objects_i.
      p_ls_item-REF_OBJECT-datax = 'X'.
    Similarly,the error for the configuration says "Configuration for the item missing" and here again I am passing the values in the CONFIGURATION structure.
    Structure for this is :
      p_ls_item-configuration-data-consist = 'T'.
      p_ls_item-configuration-data-kbname = 32.
      p_ls_item-configuration-data-kbvers = '0.0'.
      p_ls_item-configuration-data-kbprofile = 'E_H_B'.
      p_ls_item-configuration-data-complete = 'T'.
      p_ls_item-configuration-data-spras = 'E'.
      p_ls_item-configuration-data-cfginfo = 'VCOND=VARIANT_CONDITION_KEY'
      ls_cuins-OBJ_TYPE = 'SERV'.
      ls_cuins-class_type = 300.
      ls_cuins-obj_key = 'E_H_B'.
      ls_cuins-obj_txt = 'E_H_B'.
      ls_cuins-QUANTITY = '1.0'.
      ls_cuins-COMPLETE = 'T'.
      ls_cuins-CONSIST = 'T'.
      append ls_cuins to lt_cuins.
      ls_config_i-instance = lt_cuins.
      p_ls_item-configuration-data = ls_config_i.
      p_ls_item-configuration-datax = 'X'.
      clear ls_config_i.
      ls_cuval-charc = 'DISCOUNT_EUR'.
      ls_cuval-charc_txt = 'DISCOUNT_EUR'.
      ls_cuval-value = '0.0'.
    ls_cuval-value_txt
      append ls_cuval to lt_cuval.
      ls_instance-value = lt_cuval.
      insert ls_instance into table lt_instance.
    ls_config_i-instance = lt_instance.
    p_ls_item-configuration-data = ls_config_i.
    p_ls_item-configuration-datax = 'X'.
    clear ls_config_i.
    Kindly help if anyone has worked on this.......
    Regards,
    Puneet Jhari.

  • Problem with user services (creating a service for mpdas)

    Hi, I'm using mpd and using a user service to start it.
    However, I'm trying to create a service for mpdas (a mpd client for last.fm) and getting some errors:
    currently, my mpdas.service is as following:
    [Unit]
    Description=AudoScrobbler client for MPD
    After=mpd.service
    [Service]
    ExecStart=/usr/bin/mpdas
    [Install]
    WantedBy=default.target
    Which giving me the following errors:
    (14:49:55) [ERROR] You are not root. Not changing user ..
    (14:49:55) [INFO] Connected to MPD.
    (14:49:56) [INFO] Last.fm handshake successful. SessionID: ...
    terminate called after throwing an instance of 'std::ios_base::failure'
      what():  basic_filebuf::underflow error reading the file
    Aborted
    Which are the same errors I get if I run just "mpdas" instead of running it with sudo.
    If I use it as a root service (instead of a user service) it fails on startup, but works fine when I restart the server.
    So, I'm assuming:
    1) mpdas needs root permission
    2) if used as a root service, it fails at startup cause the mpd service (enabled as a user service) hasn't started yet
    3) if used as a user service, it fails cause it needs root permission
    What's the 'correct' way to solve this? (I believe mpdas should be a user service, cause it runs with a config that is just for my user).
    Is there a way to make a user service run with root privileges?
    I couldn't figure out the best way to configure it.
    Last edited by alv-r- (2014-11-29 18:37:56)

    TheSaint wrote:Why should it fails with sudo?
    It works only with sudo. It was failing as a system service because it needs mpd, which I configured as an user service. Then when systemd starts the system services (when booting) there's not mpd instance running and it fails.
    TheSaint wrote:Doesn't it works with fakeroot ?
    As a noob, I don't know exactly how fakeroot works, I'll take a better look at it, but running it with fakeroot takes rid of the errors I was getting when not running as sudo.
    The problem I have now is that it still fails on startup, but there isn't any helpful (or unhelpful) message. It just shows the PID and says it failed.
    If I run
    systemctl --user start mpdas
    it works well though. Any ideas of why this happens?
    My current unit file looks like this:
    [Unit]
    Description=AudoScrobbler client for MPD
    After=mpd.service
    Requires=mpd.service
    [Service]
    ExecStart=/usr/bin/fakeroot /usr/bin/mpdas
    [Install]
    WantedBy=default.target
    Raynman wrote:Why does it need root privileges? Maybe you just need to configure it properly to run under your normal user?
    Seeing the options in the man page and the config options for the config file, I don't see any that could do the trick.
    I'll send a message to the developer with the error I'm getting (when not running as sudo).
    Last edited by alv-r- (2014-11-29 18:36:59)

  • Trying to create a service that starts at boot

    People,
    I'm trying to create a service that will start at boot (in single-user mode, actually). I am up and running but I do NOT want to run the service now. I only want to run the service when the machine reboots.
    I've been rummaging around all day trying to figure this out but I'm stuck. I can create a service that runs. I can create an XML file in /var/svc/manifest/site/patch-install.xml that will be read when I boot- because after I boot, I can list the service:
    svcs -a | grep patch
    disabled       18:23:23 svc:/site/patch-install:defaultI have inserted the following in my xml:
    <create_default_instance enabled='true' />and also
    <create_default_instance enabled='false' />but it makes no difference. Anyone have any idea? What is the purpose of create_default_instance? I don't understand; item 9 on http://www.sun.com/bigadmin/content/selfheal/sdev_intro.html seems rather opaque to me.
    Also, what exactly is the purpose of /var/svc/profile/ ? I tried putting some code to enable my xml but it didn't do anything. Just wondering if this might fit into the picture.
    BTW, I do not want the login prompt to appear until my method is complete.
    Thanks.
    -mschwage
    Here fyi is my /var/svc/manifest/site/patch-install.xml file:
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <service_bundle type='manifest' name='Patches:patch-install'>
    <service
            name='site/patch-install'
            type='service'
            version='1'>
            <create_default_instance enabled='false' />
            <single_instance />
            <dependent
                    name='patch-install_single-user'
                    grouping='require_all'
                    restart_on='none'>
                    <service_fmri value='svc:/milestone/single-user' />
            </dependent>
            <exec_method
                    type='method'
                    name='start'
                    exec='/var/tmp/S92delay'
                    timeout_seconds='86400' />
            <exec_method
                    type='method'
                    name='stop'
                    exec=':true'
                    timeout_seconds='0' />
            <property_group name='startd' type='framework'>
                    <propval name='duration' type='astring' value='transient' />
            </property_group>
            <stability value='External' />
            <template>
                    <common_name>
                            <loctext xml:lang='C'>
                            Install patchset upon boot.
                            </loctext>
                    </common_name>
            </template>
    </service>
    </service_bundle>

    Hushpuppy wrote:
    People,
    I'm trying to create a service that will start at boot (in single-user mode, actually). I am up and running but I do NOT want to run the service now. I only want to run the service when the machine reboots.I'd probably create the service now (by importing the manifest manually rather than waiting for the reboot), then set general/enabled in the default instance to be be true with svcprop. That should tell it to start at boot, but not enable it immediately.
    I've been rummaging around all day trying to figure this out but I'm stuck. I can create a service that runs. I can create an XML file in /var/svc/manifest/site/patch-install.xml that will be read when I boot- because after I boot, I can list the service:Yes, that's the default. Or you can load it immediately to create the service now.
    # svccfg import patch-install.xml
    I have inserted the following in my xml:
    <create_default_instance enabled='true' />and also
    <create_default_instance enabled='false' />but it makes no difference. Anyone have any idea? What is the purpose of create_default_instance? I don't understand; item 9 on http://www.sun.com/bigadmin/content/selfheal/sdev_intro.html seems rather opaque to me.There's a difference between a "service" like network/smtp or console-login and an "instance" like network/smtp:sendmail or console-login:default. In most cases, you just want a single "default" instance of your service. The above line sets the default instance 'enabled' property to true or false. When I import your manifest as is, the service comes in as 'disabled'. If I set it to true, it comes in as 'maintenance' (almost certainly because it was enabled, tried to start, and couldn't find the start method on my machine).
    Also, what exactly is the purpose of /var/svc/profile/ ? I tried putting some code to enable my xml but it didn't do anything. Just wondering if this might fit into the picture.'profiles' are loaded exactly once, and they are mainly used to set certain services to enabled or disabled.
    3 of them are loaded if present, platform.xml, generic.xml, and site.xml. The last is not generated by the OS, but left for you to use. But it's usually only useful as a "first boot" type thing. Because if you make changes to it, it will not be reread. This isn't usually a problem because after first boot you're in control of the services. The usual thing is that at first boot the manifests load to create services, then the profiles are loaded to set then enabled or disabled. This isn't possible before that point because there's no service to modify yet.
    BTW, I do not want the login prompt to appear until my method is complete.Any login prompt like a network login, or only the console login prompt? If the latter, then you'll want a dependency so that system-console-login depends on your service. But if your service has a problem at boot time, you'd make it difficult to log in.
    Darren

  • SC error while creating a service request

    Hi experts,
    I am on SRM 7 , ECS . I am trying to create a service request in the shopping cart through SC full functionality/operational purchaser.
    I am getting the  error when i clcik on the  "supplier/service agents"
    SRDBIQCI02
    http://srdbiqci02.ssw.local:8010/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    UNCAUGHT_EXCEPTION
    Called method not supported by current PDO instance
    Method: /SAPSRM/IF_PDO_BO_SC~PRODUCT_CONV_INT of program /SAPSRM/CL_CLL_SER_PDO========CP
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_DODM_SC_I_SOSCP
    Method: WDDOINIT of program /1BCWDY/T2R7E4WKA5D7C8DML3PR==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/T2R7E4WKA5D7C8DML3PR==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
    Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
    http://srdbiqci02.ssw.local:8010/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    Rgds
    Sumendra

    Hi Sumendra,
    I have the same issue. Did you solve it?
    BR,
    Ivá

  • How to create a service for TAF without LB?

    Hi,all:
    env: 11.2.0.1 RAC (2 nodes of test6/test7 ,corresponding instance: testrac1/testrac2),db :testrac
    I want to create a service to use Service-side TAF ,and also need let some app use rac1 only ,while other app use rac2 only. So I issue the following command:
    testrac1: srvctl add service -d testrac -s testsrv -r testrac1 -a testrac2 -P BASIC -y AUTOMATIC -j LONG -e SELECT     -m BASIC -z 5 -w 30
    srvctl start service -d testrac -s testsrv
    create user cxall to test:
    create user cxall identified by cxall ;
    grant resource,create session,select any dictionary to cxall;
    and I add entry in tns:
    testrac_11g_staf =
    (DESCRIPTION=
    (ADDRESS = (PROTOCOL = TCP)(HOST = test6-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = test7-vip)(PORT = 1521))
    (CONNECT_DATA=(SERVICE_NAME=testsrv))
    on client:
    sqlplus cxall/cxall@testrac_11g_staf
    select host_name from v$instance;
    HOST_NAME
    test6
    and then I shutdown testrac1 to simulate testrac1 is off service:
    srvctl stop instance -d testrac -i testrac1
    and then re-execute the above command:
    select host_name from v$instance;
    It return error.report ORA-03113.
    Can not fail over to testrac2!
    why ?

    $>srvctl status service -d testrac -s testsrv
    Service testsrv is running on instance(s) testrac1
    $>srvctl config service -d testrac -s testsrv
    Service name: testsrv
    Service is enabled
    Server pool: testrac_testsrv
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: SELECT
    Failover method: BASIC
    TAF failover retries: 5
    TAF failover delay: 30
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Preferred instances: testrac1
    Available instances: testrac2
    if I stop instance testrac1,
    srvctl stop instance -d testrac -i testrac1
    $>srvctl status service -d testrac -s testsrv
    Service testsrv is not running.
    the testsrv service cannot start on instance testrac2 auto,so the client connection will return ORA-12514 due to the testsrv is not running.
    I have a doubt why Available instances doesn't effect!
    If I use the following :
    srvctl add service -d testrac -s testsrv -r testrac1,testrac2 -P BASIC -y AUTOMATIC -j LONG -e SELECT     -m BASIC -z 5 -w 30
    the TAF will work well.But that may let some connection use testrac2 instance.
    So I have such idea:
    1.create service
    srvctl add service -d testrac -s testsrv -r testrac1,testrac2 -P BASIC -y AUTOMATIC -j LONG -e SELECT     -m BASIC -z 5 -w 30
    2.
    srvctl start service -d testrac -s testsrv
    3.
    client tns:
    testrac_11g_staf =
    (DESCRIPTION=
    (load_balance=off)
    (ADDRESS = (PROTOCOL = TCP)(HOST = test6-vip)(PORT = 1521)) ---I need app only use test6,but also need TAF
    (ADDRESS = (PROTOCOL = TCP)(HOST = test7-vip)(PORT = 1521))
    (CONNECT_DATA=(SERVICE_NAME=testsrv))
    4.
    some test script:
    in test6:
    I make a huge file copy to make the test6 high load.
    cat a.sh
    count=0
    while [ $count -lt 3 ] ;
    do
    count=`expr $count + 1`
    cp *.zip aa
    rm -rf aa/*.zip
    done
    nohup sh a.sh &
    test.sh ---a loop shell to test which instance it connect
    count=0
    while [ $count -lt $1 ] ;
    do
    count=`expr $count + 1`
    sqlplus -s cxall/cxall@testrac_11g_staf<test.sql
    done
    test.sql
    col host_name format a30
    select host_name from v$instance;
    5.
    perform the test:
    test6:
    sh test6.sh 10000 --- the output is test6
    sh a.sh ---make the test6 high load,the tes6.sh output is still "test6"
    srvctl stop instance -d testrac -i testrac1 -o abort ---stop testrac1 of test6
    ---the test6.sh output become to "test7" ,TAF is affect.
    srvctl start instance -d testrac -i testrac1 ---restart instance testrac1 of test6 again
    ---the test6.sh output revert to "test6"
    the test indicate the TAF and non-LB all work well.

  • Problems While Creating A Oracle Instance In Windows 7

    Hi All,
    I am trying to create a primary standby configuration in windows 7. When I am trying to create a oracle instance using oradim I am facing the below issue:-
    I am using Oracle version 10.2.0.1.0.
    C:\>ORADIM -new -sid STDBY -SRVC OracleServiceSTDBY -STARTMODE auto -SRVCSTART s
    ystem -SPFILE;
    DIM-00003: An argument is missing for the parameter.
    I am not sure which parameter is missing. can you help me in this..
    Regards,
    Arijit

    Hi Abdul,
    I did the same thing mentioned by you but now I am facing some different error:-
    C:\>ORADIM -edit -sid STDBY -STARTMODE manual -SRVCSTART system -pfile E:\Arijit
    \oraclestby\dbs\initstdby.ora;
    DIM-00077: Failed to change service configuration.
    O/S-Error: (OS 5) Access is denied.
    When I tried the first step I am getting another error:-
    C:\>oradim -edit -sid STDBY -startmode auto -srvcstart system
    DIM-00077: Failed to change service configuration.
    O/S-Error: (OS 5) Access is denied.
    Please suggest.
    Regards,
    Arijit

  • Can't create a service for failover on 2 node windows2008 RAC

    To create a new service for failover,
    1)Enterprise Manager can not be used by prompting an error: many people already mentioned.
    2)Net Manager could create a service but it fails to test showing:
    Attempting to connect using userid: qa1
    The test did not succeed.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Q1: According to doc, it should be used ONLY for Non-cluster and single instance. Is this why I have an error?
    Q2: If not, what should I need to do to fix this problem?
    3)Using command line like
    C:\Users\administrator.QAPF2>srvctl add service -d ORCL -s NLS -r orcl1 -a orcl2
    C:\Users\administrator.QAPF2>srvctl start service -d ORCL -s NLS
    C:\Users\administrator.QAPF2>srvctl status service -d ORCL -s NLS
    Service NLS is running on instance(s) orcl1
    C:\Users\administrator.QAPF2>sqlplus /nolog
    SQL> connect sys as sysdba
    SQL> alter system register;
    When I try to connect from client using "jdbc:oracle:thin:@orarac-scan:1521:NLS" connection string, I got the following error:
    Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:orarac-scan:1521:NLS
    Note: If I use "ORCL1" instead of NLS, then it works. ORCL1=SID on node1, NLS=service name.
    Q3: Are there anything I should do more?
    Q4: How do I add a listener for this new service(NLS)? I added the following using Net Manager but no effect:
    (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orarac-scan)(PORT = 1521)))

    Yes, it worked with sqlplus commandline(local or from remote) like:
    C:\>sqlplus system@NLS
    SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 20 17:11:19 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    From a remote client:
    C:\oracle>sqlplus qa1@NLS
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 24 10:12:31 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter password:
    Connected to:.............................................................................
    However, if I use the connection string suggested by you:
    C:\oracle>sqlplus qa1@\"orarac-scan:1521/NLS\"
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 24 10:14:30 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    additional information:
    From a remote client:
    C:\oracle>nslookup orarac-scan
    Server: admin01.qalab01.nextlabs.com
    Address: 10.23.57.5
    Name: orarac-scan.qapf2.qalab01.nextlabs.com
    Addresses: 10.23.57.35, 10.23.57.34, 10.23.57.36
    The followings are from node1:
    C:\>srvctl status service -d ORCL -s NLS
    Service NLS is running on instance(s) orcl1
    C:\Users\administrator.QAPF2>srvctl status scan
    SCAN VIP scan1 is enabled
    SCAN VIP scan1 is running on node orarac2
    SCAN VIP scan2 is enabled
    SCAN VIP scan2 is running on node orarac2
    SCAN VIP scan3 is enabled
    SCAN VIP scan3 is running on node orarac2
    C:\Users\administrator.QAPF2>srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node orarac2
    SCAN Listener LISTENER_SCAN2 is enabled
    SCAN listener LISTENER_SCAN2 is running on node orarac2
    SCAN Listener LISTENER_SCAN3 is enabled
    SCAN listener LISTENER_SCAN3 is running on node orarac2
    C:\Users\administrator.QAPF2>srvctl status listener
    Listener LISTENER is enabled
    Listener LISTENER is running on node(s): orarac2,orarac1
    C:\Users\administrator.QAPF2>srvctl config service -d orcl -s NLS
    Service name: NLS
    Service is enabled
    Server pool: ORCL_NLS
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: NONE
    Edition:
    Preferred instances: orcl1
    Available instances: orcl2
    Edited by: 928042 on Apr 24, 2012 10:36 AM

Maybe you are looking for

  • How can I do Count the Words in a cell with Numbers?

    I'm producing a documentary, with a long list of captions. I was hoping using numbers to organize the captions in sequence. them take the word count and do a simple calculation to work out the numbers of frames required per caption, based on a certia

  • Q on the various ports used by portal .... can anyone reply this ..?

    this is w r t the Oracle 9iAS Release 2 (9.0.2) installation guide for Sun SPARC Solaris, found at following - http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/DOCTEAM/DOCINSTCONF/INSTALL.PDF Goto Appendix F - Default Port Numbers and Por

  • First Play Option is Greyed Out

    I've added another track to my project to play a 4 second logo before the title menu. However, when I control click the item in the Outline tab, the "First Play" option is greyed out. This is the same for my other two tracks consisting of the main fe

  • Illustrator Frozen at Startup

    Every time I open Illustrator, it freezes within the first five seconds after loading. All my other Adobe programs work fine. Here is the crash report: Date/Time:       2012-12-11 13:58:44 -0500 OS Version:      10.7.5 (Build 11G63) Architecture:   

  • Displaying parameter view instead of results in a portlet

    I posted this first in the Portal Content Areas discussion and they asked me to repost it here. When displaying an Application-Report as a portlet, how do I get the parameter view to show by default instead of the results view? Sure, I can wait for t