Sample Adapter - Error in NWDS for import stmt of class PermissionMode

Hello,
I downloaded the latest code of Sample Adapter from the SAPNote 1004000.
I am trying to build the code in SAP NWDS. I am getting an error for the import statements -
import com.sap.aii.security.lib.KeyStoreManager;
import com.sap.aii.security.lib.PermissionMode;
I looked into the jar for the package com.sap.security. There is no 'lib' folder inside this. These two class are also not in any of the folders and subfolders in this package.
Now for the KeyStoreManager Class, I found a jar sap.comtcjekeystore_apiAPI.jar which contain a class by the name of KeystoreManager in the package com.sap.engine.interfaces.keystore.
1. Is this KeystoreManager the same class file as KeyStoreManager?
2. In which jar can I find the class PermissionMode ?
Best Regards,
Neeraj
Edited by: Neeraj Kumar on Aug 20, 2009 10:44 AM

Hello Neeraj,
Now as I mentioned earlier, when I go to com.sap.aii.security package in the jar com.sap.aii.sec.svc_api.jar there is no 'lib' folder. Also there is no security.class in any of the subfolders in com.sap.aii.security .
- In PI7.1 security.class is in folder ext, check whether you can find the folder ext.
- Your SampleAdapter has already implementation code in it, as you mentioned in the source there are import statements, so the point to focus is to make your source error free, after compile.
- In case you have the sap.comtcsecssfcore.jar added to your build path, try to reimport the two classes, still if it show error try to close and open your module project.
Regards,
Prasanna

Similar Messages

  • ERROR DURING  MIRO FOR IMPORT P.O.

    Dear All ,
                          i m doing MIRO for import P.O , here i m doing MIRO for CVD (in USD)  only , but as i m about to post the I.V an error arise as -->"Tax code V0 country IN does not exist in procedure TAXINN
    Message no. FF713
    But in FTXP i have checked that V0 ( input tax ) is maintained here , pl help what else i have to check to resolve the issue .
    sap11

    Maintain the missing entry with the transaction OBQ2:
    Access sequences - mark 'MWST', pushbutton 'Accesses'.
    Maintain the new entry on the screen 'Accesses' for the access sequence 'MWST':
    AcNo. = 10, Tab = 3 (Tax code), Requirement = is blank,
    Exclusive = not active.
    The following should be displayed as fields for the access to MWST and table 3:
    Condition, Doc.struc., Doc.field, Long key word, Direct value I
    ALAND KOMK ALAND Country (blank) (blank)
    MWSKZ KOMP MWSKZ Tax code (blank) (blank)
    OR
    OSS Note 504400
    You enter a document with Transaction MIRO, with reference to a multiple account assigned purchase order. Different control indicators are entered in the account assignment items. The document contains unplanned additional costs which are distributed to the individual account assignment items. The system displays error message: FF713 'Tax code & country & does not exist in procedure &'.
    Other terms
    MIR7, multiple account assignment, T169P, MR1M
    Reason and Prerequisites
    The problem is caused by a program error.
    Solution
    Corrected for Release 4.7 and included in R/3 Support Package for Release 4.0B, 4.5B, 4.6B and 4.6C. Advance correction: See the "Corrections" section.

  • Steps required to create Jar in NWDS for import in XI and use in UDF. Help!

    Hi !
    I'm a Java newbie. I've been reading about ejbs, NWDS, etc., but don't know how to set up a project in NWDS for the purpose of creating a jar file with a java class inside with methods to be called insde a UDF in graphical mapping. I understand that the imports inside the java class depend on each case. What type of project do I need to create in NWDS? Where do I put the class methods?
    Thanks,
    Matias.

    Hi Bhavesh !
    Thats exactly what I meant. Ok, and after writing all my methods, I've noticed I can go to Project | Rebuild All, to get my ".class" files generated..
    After that step, I can use the command line or a zip utility to make the .zip or .jar with all my .class files. Am I right ??
    There is no "Build JAR Archive" option for this kind of project..Am I doing something wrong?
    Thanks,
    Regards,
    Matias.

  • Error in NWDS WAR import. taglib.

    Hi Experts,
    my requirement is to customize the login page for CE 7.1.
    I have taken the WAR file, Imported it into NWDS.
    I imported the jar file logon.jar also. But immediately after the import,
    but im facing an error which say:
    "Cannot find the tag library descriptor for /SapLogon".
    Can anyone pls help me in solving this issue.
    Pls provide answer in detail.
    Any help would be greatful..!.
    Thanks,
    Shikha

    Hello Neeraj,
    Now as I mentioned earlier, when I go to com.sap.aii.security package in the jar com.sap.aii.sec.svc_api.jar there is no 'lib' folder. Also there is no security.class in any of the subfolders in com.sap.aii.security .
    - In PI7.1 security.class is in folder ext, check whether you can find the folder ext.
    - Your SampleAdapter has already implementation code in it, as you mentioned in the source there are import statements, so the point to focus is to make your source error free, after compile.
    - In case you have the sap.comtcsecssfcore.jar added to your build path, try to reimport the two classes, still if it show error try to close and open your module project.
    Regards,
    Prasanna

  • Audio CD burning error- I opted for importing songs into iTunes as MP3

    Hi,
    Before I started importing songs into iTunes, I chose int eh iTunes preferences to import all songs as MP3, as I wanted the option of being able to burn CDs to play on my car MP3 player.
    When I tried to burn a CD, I got an error message that these songs could not be burnt onto the CD. This had the option where I could see all the errors and the list was of all the songs that I was trying to burn.
    BTW, I created a new playlist, dragged the required songs to this playlist from the library and pressed the burn disc option.
    What am I doing wrong? Could it be that the drive is faulty?

    First of all, how long is the total time of all songs? If it is more than 80 minutes, you can't record to the CD as an audio CD. If that is the case, and you say you have an MP3 cd player in your car... you might want to try burning to the disc as an MP3 CD. Go to iTunes preferences, then click "Advanced," then "Burning" and you'll see an option for "MP3 CD." Click that, and then when you burn the disc, you can put as many songs as will fit onto the disc.
    Also, rewritable CDs aren't any better... as a matter of fact, a lot of audio CD players can't read them. A regular CD-R should be fine, even one rated at 40x speed.
    Zeb

  • 'invalid class-java beans not available for import

    Hi Experts,
    i am using java bean model in my Web Dynpro Application.
    for that one i have created command bean(Customer) and in my command bean i am using some other class(CustomerInfo) as reference. this CustomerInfo class contains 4 attribtes(name ,id ,etc  all are of type String)
    when i try to import these 2 class into web dynpro (using java bean model),for the Customer class it
    is giving an error message 'invalid class-java beans not
    available for import'.but 2nd class(CustomerInfo) is imported successfully with out giving the error.what might be reason.
    any help will be appriciated
    Thanks in advance
    With Regards
    Naidu

    Naidu,
    Please try to repeat JavaBean model import when running IDE in console mode (correspondign short-cut should be available in Windows Start menu, otherwise just copy original short-cut, edit it and change in command string "javaw" to java).
    Post here what is shown on console during import.
    VS

  • Sample adapter with NWDS

    Hi gurus
    Could any one give me a description of how to use the sample adapter (sample_ra.sda) with NWDS so that I would be able to compile it successfully.
    [I need to know what files to import and how i do it]
    Thanks in advance
    Jason

    > - How do i import this new adapter in XI?
    > - Do i need to package it in a certain way?
    you have to deploy the adapter to the XI/PCK with SDM.
    For this your create an RAR (ressource adapter archive) with WinZip and store this in an SDA file again with WinZip.
    See here:
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/eae1401b52b533e10000000a155106/frameset.htm
    The adapter meta data are uploaded to Integration Repositiory, so you can create communication channels for your adapter.
    > - Is it obligatory to have a PCK?
    No, but with a seperate testing system you minimize the risk to disrupt the XI system with bad code
    > The documentation on SDN are not very clear on the matter.
    We will work on that soon
    Regards
    Stefan

  • Getting Error while trying to import VacationRequest Sample

    Hello All,
    Am getting the following error while tring to import Vacation Request Sample:
    "One or more metadata store location(s) configured in
    file:/D:/VacationRequestApp/.adf/MetaInf/adf-config.xml are invalid
    Soa Project will not compile. Please edit this file and fix metadata-store location(s).
    MDS-01333:missing element "mds-config".
    thanks

    Hi,
    I'm following the note 139516.1 on metalink to use Discoverer 4i with E-Business Suite 11.5.10.2.
    Everything goes well until I try to import the eex files (downloaded to my Windows XP desktop). Here is what I get:
    You are running adupdeul, version 115.11
    Start of adupdeul session
    Date/time is Fri Jul 27 10:15:16 WEST 2007
    Log file is adupdeul.log
    Command line arguments are
         "connect=apps/apps@CESEBTST"
         "resp=System Administrator"
         "gwyuid=APPLSYSPUB/PUB"
         "fndnam=APPS"
         "secgroup=standard"
         "topdir=/cygdrive/c/oracle/Disco4i/Discover/discover"
         "language=US"
         "eulprefix=EUL"
         "eultype=OLTP"
         "mode=complete"
    Processing files for US language ...
    Searching /cygdrive/c/oracle/Disco4i/Discover/discover/US directory for files to import ...
    Number of files to process for US language : 2648
    Determining the character set for the import session ...
    The following encoding schemes have been found
         ISO-8859-1
         UTF-8
    ERROR : adupdeul does not support importing files with
    multiple encodings.
    adupdeul is exiting with status 1
    End of adupdeul session
    Date/time is Fri Jul 27 10:20:20 WEST 2007
    Could someone explain me this multiple encodings error and tell me how to avoid it?
    Thanks in advance!

  • Error in Service designer with sample adapter

    Hi all,
    I try to use SampleAdapter. When I create a master service based on Sample Adapter (wich is correctly in the classptah on the server). I received the following message : The Master Service does not have an adapter definition.
    I ignore it and I create an alias for this Master service. I test it in request manager and the service created with the sample adapter work ??
    What can I do to supress error message in Service Designer ?
    Thanks

    Vasanthakumar,
    in my previous experiences with internal/external parties communication, I've found out that the best practice is to create an integration scenario and then create the configuration scenario from scenario wizard. It is much simpler and easier.
    Briefly, you'll have to create a dummy party/service in order to "wrap" your internal system, since the external party should not receive information regarding internal systems (Business system name, for example).
    Regards,
    Henrique.

  • Error for importing the sessiotypes package

    Hello Friends I am trying to connect MDM server and create delete or update recordsets in MDM so I am using this program as below I am getting an error for
    import com.sap.mdm.session.SessionTypes; cannot be resolved.
    Created on Jun 6, 2007
    package com.sap.nw.mdm.rig;
    import com.sap.mdm.commands.CommandException;
    import com.sap.mdm.data.RegionProperties;
    import com.sap.mdm.extension.MetadataManager;
    import com.sap.mdm.net.ConnectionException;
    import com.sap.mdm.repository.commands.GetRepositoryRegionListCommand;
    import com.sap.mdm.session.SessionException;
    import com.sap.mdm.session.SessionManager;
    import com.sap.mdm.session.SessionTypes;
    import com.sap.mdm.session.UserSessionContext;
    This class is the starting point to execute all sample programs.
    To see a description of the various programs you can execute, please have a look at the
    documentation for the following classes.  There are static variables in each of these
    classes that point to the various programs that can be executed with a description of
    what the program does.
    <ul>
    <li>{@link com.sap.nw.mdm.rig.programs.data.blobs.BLOBDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.checkout_checkin_rollback.CheckOutCheckInRecordsProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.crud.CRUDDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.crud.bulk.BulkCRUDDataProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.keymapping.KeyMappingProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.SearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.attribute.AttributeSearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.search.field.FieldSearchProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.syndication.SyndicationProgram}
    <li>{@link com.sap.nw.mdm.rig.programs.data.workflow.WorkflowProgram}
    </ul>
    @author Richard LeBlanc
    public class Application {
         private Application() {
    Starts the application and executes a program
    @param args - not required
         static public void main(String[] args) {
              Application app = new Application();
      System.out.println("5555");
              Program program = null;
    Simply uncomment the line that contains the program you wish to execute and run this class.
    Blob Programs
    //          program = BLOBDataProgram.INSERT_IMAGE;
    //          program = BLOBDataProgram.RETRIEVE_AND_WRITE_IMAGE_TO_FILE;
    //          program = BLOBDataProgram.RETRIEVE_AND_WRITE_PDF_TO_FILE;
    Checkout/Checkin Data Programs
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_NEW_CHECK_IN;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_NEW_ROLLBACK;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_EXISTING_CHECK_IN;
    //          program = CheckOutCheckInRecordsProgram.CHECK_OUT_EXISTING_ROLLBACK;
    Create Read Update Delete (CRUD) Data Programs
    //          program = CRUDDataProgram.CRUD_HIERARCHY_TABLE;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_FLAT_AND_HIERARCHY_LOOKUP_FIELDS;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_QUALIFIED_LOOKUP_FIELD;
    //          program = CRUDDataProgram.CRUD_MAIN_TABLE_WITH_TAXONOMY_LOOKUP_FIELD;
    //          program = CRUDDataProgram.CRUD_TAXONOMY_TABLE_WITH_ATTRIBUTES;
    Bulk Create Read Update Delete (CRUD) data programs
    (many records at once)
              program = BulkCRUDDataProgram.BULK_CRUD_MAIN_TABLE;
    KeyMapping Programs
    //          program = KeyMappingProgram.RETRIEVE;
    //          program = KeyMappingProgram.MODIFY;
    Search Programs
    //          program = SearchProgram.DRILL_DOWN_SEARCH;
    //          program = SearchProgram.KEYWORD;
    //          program = SearchProgram.MASK;
    //          program = SearchProgram.NAMED_SEARCH;
    //          program = SearchProgram.QUALIFIER;
    Attribute Search Programs
    //          program = AttributeSearchProgram.COUPLED_NUMERIC;
    //          program = AttributeSearchProgram.NUMERIC;
    //          program = AttributeSearchProgram.TEXT;
    Field Search Programs
    //          program = FieldSearchProgram.BOOLEAN;
    //          program = FieldSearchProgram.CURRENCY;
    //          program = FieldSearchProgram.LITERAL_DATE;
    //          program = FieldSearchProgram.LOOKUP;
    //          program = FieldSearchProgram.TEXT;
    Syndication Programs
    //          program = SyndicationProgram.SYNDICATE_PORT;
    Workflow Programs
    //          program = WorkflowProgram.EXECUTE;
              //TODO enter MDS name
              String mdsName = "172.18.139.200"; //the name of the Master Data Server
              String repositoryName = "GDS_1"; //make sure this is the name you use when unarchiving
                                                           //the repository otherwise change it to reflect the name
                                                           //of your repository
              String regionName = "English [US]";
              String userName = "Admin"; //there is an admin user with no password in the provided repository
              String password = ""; //there is an admin user with no password in the provided repository
              app.start(mdsName, repositoryName, regionName, userName, password, program);
    Establishes a connection to the given server and logs in to the given repository
    with the given logon information and executes the given program
         private void start(String serverName, String repositoryName, String regionName,
                                  String user, String password, Program program) {
              //Create a user session context
              UserSessionContext context = new UserSessionContext(serverName, repositoryName, regionName, user);
              //Get an instance of the session manager
              SessionManager sessionManager = SessionManager.getInstance();
              //Create a user session
              sessionManager.createSession(context, SessionTypes.USER_SESSION_TYPE, password);
              program.setContext(context);
              program.setLoginRegion(getRegion(context));
              program.setRepositorySchema(MetadataManager.getInstance().getRepositorySchema(context));
              program.setAttributeSchema(MetadataManager.getInstance().getAttributeSchema(context));
              //execute the program from the list above
              program.execute();
              //destroy the session and close the connection to the MDS
              sessionManager.destroySession(context, SessionTypes.USER_SESSION_TYPE);
         private RegionProperties getRegion(UserSessionContext context) {
              RegionProperties[] regions = null;
              try {
                   GetRepositoryRegionListCommand cmd = new GetRepositoryRegionListCommand(context);
                   cmd.execute();
                   regions = cmd.getRegions();
              } catch (SessionException e) {
                   e.printStackTrace();
              } catch (ConnectionException e) {
                   e.printStackTrace();
              } catch (CommandException e) {
                   e.printStackTrace();
              for(int i=0, j=regions.length; i<j; i++) {
                   if(regions<i>.getName().equals(context.getRegionName())) {
                        return regions<i>;
              return null;

    Hi Richard,
    IN the API you have provided, Do we have a feasibility to update a Table in MDM GDS (TMData which has many lookup and qualified tables) in one short.
    As of now, we are able to insert record for 3 fields, which we are trying to insert feild by field.
    but our requirement is we have to insert data for 185 fields and read the fields of 240 feilds.
    Need your advice on this.
    With Regards,
    Jayanthi

  • ORA-12560: TNS:protocol adapter error with samples

    hello,
    I am trying to run the cdemo1 sample on Windows 2000 but I keep getting the ORA-12560: TNS:protocol adapter error. I have set the correct username and password in cdemo1.c before compiling.
    I am using Oracle 9i and I have the Oracle Client installed.
    I am able to connect to Oracle using the command line with the following command sqlplus qa/tester@TESTSERV and I am also able to connect to Oracle using the Sqlplus Net8 client interface.
    I have set ORACLE_HOME on the command line to the path of my oracle home directories. And just for kicks I have also set the ORACLE_SID on the command line to TESTSERV
    My tnsnames.ora is configured properly
    TESTSERV.COMPANY.NET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEPSI)(PORT = 1521))
    (CONNECT_DATA =
    (SID = TESTSERV)
         (SERVICE_NAME = TESTSERV.COMPANY.NET)     
    None of the methods seem to work.Anyone have any ideas why I can't connect with the cdemo1 but I can connect using command line and SQLPLUS?
    -Will

    I have had a similar problem with 8.1.6 on W2K Server. I have managed to get around it and get into svrmgrl by typing the following at the command prompt: set oracle_sid=sid_name. I am then able to get into svrmgrl without a problem. This always happens after the server has been rebooted. I have no idea why this happens or why setting the sid name works. Hope this helps.

  • When starting iTunes I continually get an error message " The registry Settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software. Please reinstall iTunes."

    When starting iTunes I continually get an error message " The registry Settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software. Please reinstall iTunes."  I have unistalled and reinstalled iTunes several times and have cleaned up the registry using a 3rd party Windows utility.  Any tips on removing this error message for good?

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing.

    Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing...
    Can I uninstall existing iTunes without losing my media library?  and then install fresh to fix this problem?

    Hi there kweitkamp,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/TS3299
    -Griff W. 

  • Receiver file adapter error for special char.

    I am using MTB in my receiver file adapter. I am getting a special character from source system at end of the string. How to resolve this type of error u2013 please advice.
    This error is not coming for every message.
    Error message:
    Column value xxxx   too long - must stop, probably configuration error in file adapter
    Thanks
    Vick

    Hi,
    Itu2019s basically IDOC to file scenario.
    This error is coming for name field.
    What I am thinking at this stage to do changes in MTB by define parameters like (NameA.enclosureConversion)

  • When opening iTunes, I get the following error message: the registry setting used by the iTunes drivers for importing an burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software.  Please reinstall iTunes.

    When opening iTunes, I get the following error message: "The registry setting used by the iTunes drivers for importing an burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software.  Please reinstall iTunes."
    I have reinstalled iTunes twice and still get the message.
    Any clues??
    Thank you.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

Maybe you are looking for