Suddenly NoSuchMethodError on calling DOCUMENT_CREATE2 with JCo

Hi.
I'm working with JCo to create ("BAPI_DOCUMENT_CREATE2") and modify ("BAPI_DOCUMENT_CHANGE2", "BAPI_DOCUMENT_DELETE") documents in SAP R/3.
Until yesterday all worked fine. Suddenly I get a "NoSuchMethodError" if I call this methods.
Is it possible that the server denies the execution of this methods?
BAPI_DOCUMENT_GETLIST and similar methods are still working.
thanks,
Stefan

Hello
this looks like you are trying to call a java method which does not exist. Maybe you changed something in your java coding or you forgot to pack required .jar and .class files into your java application
also refer to java docs for
<a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NoSuchMethodError.html">NoSuchMethodError</a>
regards
franz
reward points if useful

Similar Messages

  • BAPI call with JCO too slow

    Hello everybody,
    I have an application which a call a BAPI in an ECC System. This BAPI is a specific one, and it is developed in Batch input to create a Billing document from a sales order.
    This call take too much time and my java program don't wait for the answer of it. I have done some performance check on the program and this call take more of 1 minutes to finish.
    Here is my program :
                   //-Fill the entry parameter-
                   //Import parameter
                   paramImport = function.getImportParameterList();
                   paramImport.setValue(SalesOrder, Constants.IV_VBELN);
                   //Define Export parameter list for the returning Data
                   paramExport = function.getExportParameterList();
                   //Execute the BAPI
                   client.execute(function.getName(), paramImport, paramExport);
    The fact it is developped in Batch input could be a problem ? Tell me if there is a solution to speed up the process or to say to my java program to wait until the answer of the BAPI.
    Thanks.

    Hello Sir,
    I am a student who is pursuing a project that deals with JCo 3.
    I read your question on the forum and think that you have done the JCo stuff and can answer my questions.
    Kindly, try to shed some light on following question:
    Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.
    I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but
    when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,
    I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.
    Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you
    know how to run the SAP JCo program.
    Your guidance will be highly appreciated
    -Thanks
    -Dmukhi

  • Hi ... Suddenly I have this problem with my iPhone4 . Whenever I am dialling or receiving calls, I am not audible at the other end , but if I am putting phone on speaker then I am audible to other person .Not sure if any setting is changed or device issue

    Hi ... Suddenly I have this problem with my iPhone4 . Whenever I am dialling or receiving calls, I am not audible at the other end , but if I am putting phone on speaker then I am audible to other person .Not sure if any setting is changed or device issue. Please suggest or help.

    There's an Apple help page on the DNS problem - at http://support.apple.com/kb/TS3408
    The first thing to try is changing your DNS settings - and for that you need to open System Preferences, then the
    Network section.
    In Network - click  on Advanced - then the DNS tab
    under DNS servers - use the + button to enter two extra lines
    either these, from google dns
    8.8.8.8
    8.8.4.4
    or from OpenDNS
    208.67.222.222
    208.67.220.220
    then click OK & then 'Apply'
    You would need to do that seperately for the Cable (Ethernet) settings and Wireless (Airport)

  • Running CSAP_MAT_BOM_MAINTAIN with JCo, is it possible?

    Hello,
    I am trying to use CA-PLM BAPI:s by the Java Connector but  CSAP_MAT_BOM_MAINTAIN gives constant exception to my application:
    JCO.AbapException: (126) ERROR: Terminate processing
    At the same time for example BAPI_MATERIAL_SAVEDATA works fine.
    Do You have any ideas what is the problem with the bom function, could it be used by the JCo or is there alternative BAPI for that?
    regards,
    a

    Hello
    seems to me that this error comes from SAP so check if you call the BAPI with the right params (also try in directly in SAP to test BAPI with given parameters in SE37 and see if an ABAP exception is raised)
    See JCO Docs:
    public void execute(JCO.Function function)
        Executes the function on the remote server synchronously
        Parameters:
            function - the function to execute on the remote server
        Throws:
            JCO.AbapException - thrown if something went awry in the called function.
            JCO.Exception - thrown if something went wrong during communication, marshalling, etc.
    unfortunately all exception from JCo are derived from RuntimeException, so they are unchecked and the Java compiler doesn't force you to catch them.
    try something like this
    JCO.Client client = .....
    try {
      client.execute (function)
    } catch (JCO.AbapException ex) {
      System.out.println ("Exception raised by SAP System");
      System.out.println (ex.getKey() + ": " + ex.getMessage());
    Regards
    franz
    reward points if useful

  • Sysid and client of caller for EJB Jco function

    Hello,
    I'm trying to identify the sender system and client (ABAP) for a processFunction call implemented as ejb (with JCO interface).
    Does someone knew a method to access caller information from the processFunction call?
    Regards,
    Frank

    Hi Frank,
    I have to admit that my proposal does not work.
    There is a thread change in the 7.0x JCo RFC Provider service so that casting the thread this way is illegal.
    I am afraid that there is no possibility as you would like to have one.
    But I think the switch with release 7.10 to internally use the new JCo would allow a similar cast then.
    I think it should be possible with release 7.10 and higher. But that does not help you right now.
    I'm sorry.
    Best regards,
    Stefan

  • Calling a remote JCo destination file

    Hi everybody.
    This is my first post here in the SAP SDN Forum.
    While I'm not a SAP developer, I'm a Java developer. Currently I'm making an application to connect to SAP AS (with JCo 3.0) and retrieve data from BAPI structures and tables. I'm using the JCo 3.0 guide (SAPJCO_Doku_3.0_EN.pdf) successfully but I have some issues:
    First: How can I call "remotely" the destination file??? For example: supose first that my destination file, let's say the ABAP_AS_WITHOUT_POOL.jcoDestination file and the Java application are stored in a directory like C:\My Documents\Files, from a first and successful run of the application. With another application in another directory I'd like to call and use that destination file, so in my second application I shouldn't create a second destination file. How can I do it??? What elements and/or properties should I use??? (Maybe the JCoDestination, the DestinationManager, the getRepository and related).
    Second: Is it the same for calling a destination file that is in a remote machine??? In a directory like +
    255.255.255.255\shared\Files+
    I guess if this is in some way equivalent to file reading in Java, but I'm not really sure.
    Please help me. Most of the sources I've read didn't say something useful about this, and I need this for my final application.
    If you can, please add some generic example-code for a better understanding.
    Thanks

    JCo provides the interfaces DestinationDataProvider and ServerDataProvider for providing connection/logon data for RFC (remote function call) clients (i.e. Java program calls RFC function on SAP server) or RFC server programs (SAP calls RFC function on Java program acting as a server). When you check the JCO API documentation for usage of those interfaces you'll see that for example for the client you can register your own DestinationDataProvider via method Environment.registerDestinationDataProvider(DestinationDataProvider).
    Thus if you don't like the default implementation delivered by SAP (i.e. file based), you can simply create your own class. Note that to some degree the document SAPJCO_Doku_3.0_EN.pdf already points you in the right direction: It mentions on page 8 in section SAP JCo Customizing and Integration:
    You should always implement the interface DestinationDataProvider to optimize data security. If you are using server functionality you should also implement ServerDataProvider. These interfaces support the secure storage of critical data.
    Cheers, harald

  • Call tranasaction with skip first screen in ecc6

    Hi,
    We are doing upgrade from 4.7 to ecc 6. We are getting an error while running a report( The addition "AND SKIP FIRST SCREEN" can't be used with "CALL TRANSACTION .. USING".  ) in ecc6. This is not showing error in 4.7. Call transaction with skip first screen is fine in 4.7. But it is throwing an error in ecc6.
    Could anybody provide me the pointers to rectify this error.
    Regards,
    Ramesh

    Hi
    Did you pass all the mandatory field values to the calling transaction , Because when you use this addition you need to pass all the mandatory field values then only it works fine. Check out whether you are passing all the mandatory field values.
    Regards
    Pavan

  • I'm suddenly in need of help with my Firefox browser (6.0.2)

    Hi there,
    I'm suddenly in need of help with my Firefox browser (6.0.2)
    (OS: I use Windows XP).
    When I open up the browser, all I see is a completely blank white screen, with all the toolbars at the top.
    I know that my physical connections are fine: I've tested the modem, turned the pc off and on etc. and I can also receive/send emails.
    This problem started today, 8th September, 2011 and has never happened before.
    Is it a coincidence that Firefox updated itself just before I logged off yesterday evening? Could it be something to do with this particular new update?
    I've also noted that just before I "open up" Firefox, I now get a small box saying:
    [JAVASCRIPT APPLICATION]
    Exc In Ev handl: TypeError: This oRoot.enable is not a function
    This has never appeared before - I hope it offers a clue a to what is wrong.
    The Browser is not stuck in Safe Mode, by the way.
    Obviously, I can't search for any solutions to the problem on the internet, as I can't physically see any websites!
    (A friend is sending this query on my behalf from their pc)
    Any light you could throw on this confusing problem would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.
    If the only option is to uninstall Firefox and reinstall it from your site, then I'm also in trouble (I can't see the internet or make any downloads).
    In that case, would you be able to send the .exe file as an attachment to my email address? If so, please let me know and I'll give you further details.
    Many thanks in advance.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • HT204053 I have a problem. I bought Pages and Numbers for my iMac and so far everything was OK.  Suddenly i have a problem with connection to iCloud. Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded in iCloud.

    I have a problem.
    I bought Pages and Numbers for my iMac and so far everything was OK.
    Suddenly i have a problem with connection to iCloud.
    Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded to iCloud. There is a sign  (small shape of iCloud), that they are waiting to be uploaded to iCloud.
    I think the iCloud is OK.
    i can see and manage documents in iCloud. i can create them on iPad and  see them and delete them in iCloud.
    But not on iMac.
    i dont know what has happened and I am not abble to find the solution. It was OK till some days ago….

    I have a similar problem! Everything stopped working after upgrading to Mac OS 10.8.4 through the App Store. Help!

  • The Web Dynpro application was called up with the wrong URL parameters

    Hi all,
    I am using the systems below:
    ERP STACK :16
    EHP : 4
    EHP SP Stack :4
    EA-HR * : 604(SP12)
    SAP-HR * :604(SP12)
    XSS JAVA components : SAP ESS 603 SP05
    SAP MSS 600 SP16
    PCUI_GP 603 SP05
    Business Package : BP ERP05 ESS 1.41 SP04
    BP ERP05 MSS 1.41 SP04
    BP ERP05 COMMON PARTS 1.41 SP04
    I am getting below error after clicking on the appraisal document:
    App. Called Up Incorrectly
    The Web Dynpro application was called up with the wrong URL parameters.
    Note
    Enter the URL parameters and their use.
    You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
    I already applied the below notes also:
    1468466 Performance Management Launchpad Configuration
    1463821 Performance Management Portal Configuration
    1416756 OBN Configuration in Performance Management
    1408243 Configuration for object-based navigation
    Plz advise me??
    Thanks,
    Anumit

    can you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!

  • Skip first screen of BD87 using call transaction with BDC_DATA option

    hello all,
    i am using call transaction with BDC_DATA option and i want to skip first screen, so can anyone please tell me how can i skip first screen of BD87 and get second screen that is output screen?
    regards.

    Hi
    Build a BDCDATA with following code..
                                                          T     BD87                                                                               
    RBDMON00     1100     X                                                                               
    BDC_CURSOR     SX_DOCNU-LOW
                                                                BDC_OKCODE     =CRET
                                                                SX_DOCNU-LOW                                                                               
    SX_CRETI-LOW     00:00:00
                                                                SX_CRETI-HIGH     00:00:00
                                                                SX_UPDDA-LOW     05.02.2010
                                                                SX_UPDDA-HIGH     05.02.2010
                                                                SX_UPDTI-LOW     00:00:00
                                                                SX_UPDTI-HIGH     00:00:00
    RBDMON00     0100     X                                                                               
    BDC_OKCODE     =BACK
    RBDMON00     1100     X                                                                               
    BDC_OKCODE     /ECBAC
                                                                BDC_CURSOR     SX_DOCNU-LOW

  • When i want to call somwhone with my i-phone, i only hear the other person, if i press the loud-speaker. does anywhone know, how i can solve this problem

    what can i do, when i call someone with mit i-phone, i only hear the other person, when i press the loud-speaker button, does anyone know, how to solve this problem

    Does hte iPhone say headphones when you adjust the volume, even when they aren't connected?
    If it does, there might be some lint or something in the jack. Take a look at this Apple document -> iPhone: Can't hear through the receiver or speakers

  • Exception calling "Activate" with "0" argument(s): "Topology does not contain any components of type Microsoft.Office.Server.Search.Administration.Topology.AdminComponen

    Hi,
    I have a Sharepoint 2013 farm I am trying to provision search for (not the same as my other thread). However, I get the below error:
    Exception calling "Activate" with "0" argument(s): "Topology does not contain any components of type Microsoft.Office.Server.Search.Administration.Topology.AdminComponent"
    In my script, I have the following:
    New-SPEnterpriseSearchAdminComponent -SearchTopology $clone  -SearchServiceInstance $SearchServiceInstanceServer3 -ErrorAction SilentlyContinue
    So I am not sure why the error happens, when I am trying to set this component. However, it's not the first component to be set (index partition on non-local servers first). I can make it first, but why does this error happen?
    UPDATE: I have noticed that the usage and health proxy on my farm is/was stopped, but I am not able to access the server(s) to look at this right now. Could this cause this issue?

    Do you already have Admin component running for the Search Service Application?
    Usage and Health Service will not cause this issue.
    Please also refer to below discussion to see if it helps:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/02f0b072-aa3a-4b7f-9662-2caf373d1e57/setspenterprisesearchtopology-identity-newtopology?forum=sharepointgeneral
    Warm Regards,
    Bhavik K Jain
    Sr. Software Engineer - SharePoint Administration
    Please vote if my reply helps and ensure that you mark a question as Answered once you receive a satisfactory response.

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • My iPhone 5S suddenly will not sync calendars with iTunes on my iMAC.  I recently upgraded the iMAC to version 10.8.5.  Am I missing a setting somewhere?

    My iPhone 5S suddenly will not sync calendars with iTunes on my iMAC.  I recently upgraded the iMAC to version 10.8.5.  Am I missing a setting somewhere?

    Hey Oynkus,
    Thank you for visiting Apple Support Communities.
    You state you updated your iMac to OS X 10.8.5.  Did you update iTunes as well?
    If so, you may find the calendar sync options under Info.
    Sync contacts, calendars, and other info with iPod, iPhone, or iPad - iTunes Help
    Sync contacts and other info with iPod touch, iPhone, or iPad
    Connect your device to your computer.
    Click the device button, then click Info.
    Select the items you want to sync.
    Click Apply.
    Take care,
    Nubz

Maybe you are looking for

  • Can't delete file from desktop. Can't get info. Doesn't appear in ls -a. What?

    Hi folks, I file has appeared on my desktop. I believe it's a temp file created while downloading something in Safari. When I try to delete it, I get "The item x can't be moved to the trash because it can't be deleted": I tried right click > Get Info

  • Message succesfully processed but still http 400 response at sender side

    Hi, I have the following scenario 3rd-party-application -> http -> PI 7.11 -> proxy -> ECC 6.0 If i send a message from the 3rd-party-application it is sent asynchronous to PI. In PI i see it is succesfully processed. In ECC i see it is also succesfu

  • Connecting peak meter to FCP and Decklink

    Hi, I need to buy an external peak meter because I'm doing more and more stuff for the telly. I was thinking of getting an RTW since they seem to be very reliable and easy to get hold of over here in Germany. Now, I was wondering whether any of you c

  • Connection with SQL Server using DBCO

    Hi, I want to connect to Misrosoft SQL Server using DBCO transaction. I have given the following fields. DB Connection = test DBMS = MSS User Name = user02 password = test Conn. info = MSSQL_SERVER=tcp:10.100.50.36 MSSQL_DBNAME=New_Wisdom permanent s

  • DW CS4 Won't open

    DW CS4 [part of a Master Suite Collection] ... Windows 7 ... won't open without renaming configuration folder as 'old' ... happens everytime, and have to wait while DW loads site cache files.  Is there a permanent fix?