Invoking the JNI urgent

Hi,
I am trying to invoke the jvm from c code. I m having a simple main class in the mentioned classpath
this c code is compiling without errors
but when i try to execute it im getting the following error
"The instruction at "0x004010c5" referenced memory at "0x00000000". The memory could not be "read"
And the program exits with a negative value for JNI_CreateJavaVM
Can anybody help me out of this.... v urgent
Thanks for ur time in advance
I have given my c code here (Moreover wat to do with jvm.lib and jvm.dll)
#include "jni.h"
#include<stdio.h>
#include<stdlib.h>
//#define PATH_SEPARATOR ';'
//#define USER_CLASSPATH "D:\\Workspace\\eclipse\\SunExample"
int main()
JavaVMOption options[3];
     JavaVMInitArgs vm_args;
     JNIEnv *env;
JavaVM *jvm;
long res;
     jclass cls;
jmethodID mid;
jclass jstr;
jclass stringClass;
jobjectArray args;
     options[0].optionString ="-Djava.class.path=D:\\Workspace\\eclipse\\SunExample\\";
     options[1].optionString = "-Djava.compiler=NONE";
     vm_args.ignoreUnrecognized = JNI_FALSE;
     options[2].optionString="-veribose:jni";
     memset(&vm_args,0,sizeof(vm_args));
     vm_args.version = JNI_VERSION_1_4;
     vm_args.nOptions = 3;
     vm_args.options = options;
     res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
     if(res == JNI_ERR){
          printf("Error Creating JVM\n");
               return 1;
     else
          printf("Result is %ld",res);
     //res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
     cls = (*env)->FindClass(env, "Prog");
     //mid = (*env)->GetStaticMethodID(env, cls, "main","([Ljava/lang/String;)V");
     mid = (*env)->GetStaticMethodID(env, cls, "main","([Ljava/lang/String;)V");
     if (mid == NULL) {
goto destroy;
     jstr = (*env)->NewStringUTF(env, " from C!");
if (jstr == NULL) {
goto destroy;
     stringClass = (*env)->FindClass(env, "java/lang/String");
args = (*env)->NewObjectArray(env, 0, stringClass, jstr);
     (*env)->CallStaticVoidMethod(env, cls, mid, args);
destroy:
if ((*env)->ExceptionOccurred(env)) {
(*env)->ExceptionDescribe(env);
(*jvm)->DestroyJavaVM(jvm);
     return 0;
Thanks, Manoj

Not sure, but those string assignments look mighty suspicious.
Have you triedd putting printfs in various spots?

Similar Messages

  • Urgent!! i need help on invoking the JVM from C++

    Hi.. I have tried invoking the JVM and calling a java class through c++ but all i get is "can' find class java.lang.NoClassDefFoundError (Wrong class path?)
    anyone has any ideas as to what i need to do.. i have set the path and classpath variables to my <jre>\bin\classic and <jre>\bin
    here is the code..
    //MyCApp2.cpp//
    #include <windows.h>
    #include <stdio.h>
    #include <jni.h>
    #define MAIN_CLASS "myApp1"
    int main(int argc, char** argv)
    JNIEnv               *env;
    JavaVM               *jvm;
    JDK1_1InitArgs     vmargs;
    jint               rc;
    jclass               cls;
    jmethodID          mainId;
    // get classpath env setting
    char* szClasspath = getenv("CLASSPATH");
    vmargs.version = 0x00010001; // version 1.1
    int temp = JNI_GetDefaultJavaVMInitArgs(&vmargs);
    // the classpath returned by JNI_GetDefaultJavaVMInitArgs is wrong
    vmargs.classpath = szClasspath;
    printf("\nclasspath ,%s\n\n",vmargs.classpath);
    rc = JNI_CreateJavaVM(&jvm, (void**)&env, &vmargs); // create the jvm
    if(rc <0 )
         printf("Can't create Java VM ,%d\n",rc);
         return 1;
    printf("Passed the CreateVM Stage");
    // load the class containing the static main ()method
    cls = env->FindClass(MAIN_CLASS);
    if ( cls == 0 )
         printf("Could not find class %s\n",MAIN_CLASS);
         return 1;
    // find main method
    mainId = env->GetStaticMethodID(cls,"main","([Ljava/lang/String;)V");
    if (mainId ==0 )
         printf("Could not find main()\n");
              return 1;
    env->CallStaticVoidMethod(cls,mainId, 0); // call main()
    jvm->DestroyJavaVM(); // kill jvm
    return 0;

    You say you set your classpath to jre\bin and jre\bin\classic; did you include the path to MyApp.class?
    Perhaps you forgot "."?

  • Impdp error while attaching the job - Urgent - Prod batches are stopped

    I am getting following error, when I invoke the following command.
    impdp "'/ as sysdba'" attach ="SYS"."SYS_IMPORT_TABLE_01"
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORA-39006: internal error
    ORA-39065: unexpected master process exception in DISPATCH
    ORA-44003: invalid SQL name
    ORA-39097: Data Pump job encountered unexpected error -44003
    The actual import job was stopped with stop_job in impdp> prompt.
    DB Version: 10.2.0.2.
    Please throw some lights to fix this issue. Production batches are already on hold. It is very urgent.

    I can't remember the number of the bug sorry, but i haven't the same issue and I had to update to 10.2.0.3.0 (I opened a SR before in my previous company when i worked)

  • How to invoke the remote slsb in jboss

    i deploy the Stateless session bean in server machine , the web system in web machine . i need to invoke the slsb from web to slsb , how to do that ?
    By the way , my j2ee server is jboss .
    It is urgent . Thanks very much!!

    Assuming you use JBossMQ (and not JBossMessaging), what you are looking for is here: http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDestinations

  • Invoking the Java VM from a DLL

    Hi,
    I'm trying to invoke the JVM from a Windows DLL using JNI -- my aim is to create the JVM when the DLL loads and destroy it when it unloads.
    Unfortunately, execution hangs when JNI_CreateJavaVM(...) is executed. The exact same JVM initialization code runs as expected when invoked from the main() method of a standalone executable.
    I'm aware of a similar post to this forum not too long ago, but there was no real solution given.
    Has anyone experienced (and hopefully resolved) a similar snag while
    invoking the JVM from a DLL?
    Best,
    Mark
    Platform: I'm using JDK 1.4.0_01 on Windows 2000 and compiling with MS
    Visual C++ 6.0.

    im on the same platform and am using jdk 1.4 also. and that was the same problem i ran into.
    the only solution i could come up w/ is to have all my functions call an invoking function. my invoking function tests to see if the jvm has been created already, if not, then it invokes one. so far it has worked out fine that way. ive tested the dll by loading it into a separate win32 c++ application both statically and dynamically. also have loaded it to a PowerBuilder application.
    txjump

  • Finding classes within OSGi bundles via the JNI?

    As an example, I have a class com.company.bundle.myJavaClass within the OSGi bundle com.company.bundle.MyClass.
    Within my C++ code, after starting the JNI and OSGi via the usual invocation (with com.company.bundle in the classpath), If I try the following within C++ code:
    jclass myclass = jniEnv->FindClass("com/company/bundle/MyClass/");the FindClass call returns null, because the JNI apparently could not find the bundle.
    However, if I set everything up such that once the JVM is loaded, OSGi creates an instance of MyClass which then calls the C++ library
    JNIEXPORT void JNICALL Java_com_company_bundle_MyClass_c_1SimpleCall (JNIEnv * jniEnv, jobject manager)
    jclass myclass = jniEnv->FindClass("com/company/bundle/MyClass");
    }myclass is successfully found and I can successfully invoke MyClass methods through the JNI. However, if I ever try to do this outside of the above JNICALL function, it will fail to find the class (regardless of whether or not the bundle is loaded or if an instance of class exists.) Keeping track of the jniEnv pointer returned by the JNICALL function doesn't help, either.
    How can I get my C++ code to always succesfully find MyClass?
    Any insight would be appreciated!
    Edited by: mmetzger on Aug 20, 2009 10:05 PM

    mmetzger wrote:
    Thanks, I appreciate the condescension. :)
    It turns out that the actual problem is that classes loaded by OSGi do not use the system class loader like "normal" Java classes do. So the JNI cannot load the class anymore than any other non-OSGi code could.
    [This page|http://blog.springsource.com/2009/01/19/exposing-the-boot-classpath-in-osgi/] Is a much better description of the issue than I could hope to write.
    Interesting but nothing in there nor in a brief google look suggested anything other than that a custom class loader was used.
    And one can certainly load classes in JNI via custom class loaders.
    If you attempt to load a class that is only available via custom class loader and do not use that loader then the class will fail to load.

  • Invoking the device driver

    Hi
    I have written a non-STREAMS character device driver for Solaris...It passes the 'modload', 'modinfo' and 'modunload' test successfully.....
    Now, I have the xxopen(), xxclose(), xxattach(), xxdetach() entry points in my driver.. I am also using the ddi_create_minor_node() function in my xxattach() routine but I do not see any device node being created in /devices.
    I am trying to write a sample application which will invoke open(2) and close(2) system calls... What is the path that I provide to the open(2) system call for oepning the file.. also, exactly when will the device node get created in the /devices directory.
    also, how can my user-land application invoke the xxattach() routine of the driver ??
    Awaiting urgent replies..
    -Kaushik

    Thanks a lot.... My driver is for a physical device, and hence is not a pseudo driver.
    somebody told me that for a device driver meant for a real, physical device, I need to supply a set of PCI IDs the driver should bind to.... Can you tell me where to specify these PCI IDs and how do I get to know more about them ? (Basically, I want to know the process of creation of device nodes under /devices directory and symlinks in the /dev directory for 'real hardware' drivers and not pseudo drivers)
    Also, upon copying my driver to /usr/kernel/drv and issuing 'add_drv' results in the following message
    "Driver (vmci) successfully added to the system but failed to attach"
    Running "dmesg | tail" tells me that only the init() routine was called when I issued "adddrv" command......
    I then tried commenting the entire block of code inside xxattach() but it still gives me the same error upon issuing "add_drv".. Is it because I need a .conf file (containing the PCI IDs) before my driver is able to attach to the device ??

  • Cannot open message catalog when invoked through JNI

    Hello there.
    I'm having the following problem:
    I've coded a simple workstation tuxedo client (tuxedo version 9.1) that uses a couple of services. When I compile it as an executable and run it everything works fine, with no issues. However, when compiled as a dynamic library and invoked from JAVA via JNI, all functionalities operate correctly (the client connects to the server and invokes the services without a hitch), except that in the event of an error, when I invoke the function tpstrerror(), the following error is returned instead of the proper error description:
    NLS:4: Cannot open message catalog LIBWSC_CAT, set 1, num 1142; check TUXDIR=/home/adrian/bea/tuxedo9.1, LANG=C
    I've checked and re-checked the environment variables. I now include the values for those I think could be relevant to the issue, printed in the C code, obtained with the getenv() function.
    These are the values printed when run as an executable:
    TUXDIR=/home/adrian/bea/tuxedo9.1
    LANG=en_US.UTF-8
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/java/jdk1.5.0_06/bin:/home/adrian/bea/tuxedo9.1/bin
    NLSPATH=/home/adrian/bea/tuxedo9.1/locale/C
    And these when run as a dynamic library invoked from Java code:
    TUXDIR=/home/adrian/bea/tuxedo9.1
    LANG=en_US.UTF-8
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/java/jdk1.5.0_06/bin:/home/adrian/bea/tuxedo9.1/bin
    NLSPATH=/home/adrian/bea/tuxedo9.1/locale/C:/usr/dt/lib/nls/msg/%L/%N.cat
    The only difference is marked in bold, but I don't think it matters much (don't know what is appending that extra value to the variable though).
    I've tried setting LANG=C and NLSPATH=/home/adrian/bea/tuxedo9.1/, with no luck. Is there maybe a native library that has to be included in order to open the message catalogs that is not in TUXDIR/lib?
    I'd highly appreciate if anyone could point me in the right direction here.
    Thank you in advance for taking the time to read the post.
    Regards.
    Edited by evertonland at 01/31/2008 7:10 AM

    Haven't entirely given up on solving this "the right way", but implemented a partial solution that is of some help nonetheless. Check out the following thread if by some cruel whim of fate you're having this same problem:
    http://forums.bea.com/thread.jspa?threadID=300005078

  • How do I install Mavericks without invoking the OSX Server Plugin?

    How do I perfrom a clean install of Mavericks from the Recovery Partition without it automatically installing, and then invoking or executing the OSX Server Plugin that ultimately results in rendering open directory operable as well as the server.  I have ignored this continously, but the other day I went into the terminal and typed ARP -s that lists the shortname for the host of my MacBook Pro and it gave a totally different name than what I had given it in the wi-fi network interface under the WINS tab. More importantly, I do not want to install open directory nor the osx server plugin as it opens up more complexity than I want to deal with.  Any suggestions is greatly appreciated.  BTW, below are the steps I performed for installing Mavericks.
    1. Powered on the MacBook Pro and then hit the Option key.
    2. This took me into the Recovery Partition, whereby I went into the Disk Util and erased or formatted the hard-drive.
    3. I then clicked out of the Disk Utility and went into the Recovery Mode by clicking on reinstall the current OS.
    4. I went through all the prompts and the system downloaded a current version of Mavericks.
    5. After completion, I turned on my Macbook Pro and went through the prompts to install Mavericks.
    6. This is all I did, and I didn't download the OSX plugin nor invoke it in the new version of the Operating System. 
    I just assumed that it was a standalone version until I found the server for osx running with open directory invoked, the server invoked, along
    with other components relative to a new standalone version.
    Again, my question is simple: How can I reinstall Mavericks without it downloading and automatically
    iinvoking the components as described above? 

    Hi. Because both Mavericks and Windows 8 are still new, they may not be free of error. Apple needs more time to perform more tests to ensure that these two different OS's will work properly without getting in conflicts. If it's posdible, I highly recommand you to downgrade back to Lion or Mountain Lion and install Windows 7 (if you have a copy of it). In my experience, all advises from Genius Bar members and computer articles confirm that  Windows 7 will work on Macs with Lion OS. It should also work on Mountain Lion. Besides Boot Camp, you could try to virtualize Windows OS and its applications by using VirtualBox, CrossOver and other VMs. I already have an Oracle VirtualBox but I would like to try Boot Camp since it allows me to enjoy almost all Windows features that may be limited in VMs.

  • How do you invoke the default browser for Unix/OSX

    Does anyone know how to programmatically display the contents of a URL in the default browser for a Unix system? I found a javaworld article on doing this using Runtime.getRuntime().exec(cmd). The article gives the cmd string for invoking the default browser in Windows, and for invoking the Netscape browser in Unix.
    This can easily be extended to invoke any known browser executable in a known path on a Unix system; but I'd like to invoke the default browser without knowing what or where it is. I'm specifically targetting Mac/OSX, but any Unix solution is worth trying.
    Is there a Unix command for launching the default browser to display the contents of a given URL? Or is there an alternative approach, rather than invoking Runtime.exec()?
    -Mark

    After extensive google searching, I came across a partial solution. This code detects the default browser on a Mac, and provides an elegant solution for trying standard browsers in turn for other Unix systems. I tested it on WIndows XP and Mac OSX 3.9, and it detected the default browser each time. A suped up version of this tool is available as a SourceForge project. You can find it here:
    http://sourceforge.net/projects/browserlaunch2/
    Here's the simplified code:
    //  Bare Bones Browser Launch                          //
    //  Version 1.5                                        //
    //  December 10, 2005                                  //
    //  Supports: Mac OS X, GNU/Linux, Unix, Windows XP    //
    //  Example Usage:                                     //
    //     String url = "http://www.centerkey.com/";       //
    //     BareBonesBrowserLaunch.openURL(url);            //
    //  Public Domain Software -- Free to Use as You Like  //
    import java.lang.reflect.Method;
    import javax.swing.JOptionPane;
    public class BareBonesBrowserLaunch {
       private static final String errMsg = "Error attempting to launch web browser";
       public static void openURL(String url) {
          String osName = System.getProperty("os.name");
          try {
             if (osName.startsWith("Mac OS")) {
                Class fileMgr = Class.forName("com.apple.eio.FileManager");
                Method openURL = fileMgr.getDeclaredMethod("openURL",
                   new Class[] {String.class});
                openURL.invoke(null, new Object[] {url});
             else if (osName.startsWith("Windows"))
                Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
             else { //assume Unix or Linux
                String[] browsers = {
                   "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" };
                String browser = null;
                for (int count = 0; count < browsers.length && browser == null; count++)
                   if (Runtime.getRuntime().exec(
                         new String[] {"which", browsers[count]}).waitFor() == 0)
                      browser = browsers[count];
                if (browser == null)
                   throw new Exception("Could not find web browser");
                else
                   Runtime.getRuntime().exec(new String[] {browser, url});
          catch (Exception e) {
             JOptionPane.showMessageDialog(null, errMsg + ":\n" + e.getLocalizedMessage());
       }

  • How do you invoke the customer satisfaction guarantee on HP photo paper?

    OK, perhaps this is a silly question, but I can't find anything on the HP site or forums that addresses this.  How does one invoke the customer satisfaction guarantee on HP photo paper?  The instructions in the box (and website) tell me to call HP customer care.  I did that, and spent 25 minutes having a technician tell me it was a problem with my printer (HP Photosmart C6180), my printer was out of warranty, and I would need to exchange it and pay a fee to upgrade to a newer model with a 1 year warranty.  She seemed not to care or know anything about the customer satisfaction guarantee for paper; she was only trained to tell you the problem was most surely with the printer.
    In case anyone here can help, I have the HP Premium Plus 4x6 glossy paper, and whenever I use it the picture quality is extremely poor--not at all what I expected from the paper.  It appears the ink has "balled" up, and it looks very splotchy.  I am setting the paper type appropriately when printing, and I use original HP 02 inks.  When I use other photo paper to print photos, they come out perfectly.  Having wasted quite a bit of ink and paper trying different things, I'm just not satisfied and would like to discuss this further with HP.

    The only numbers available (I've just reached over and picked up a box of premium plus 4X6 from my supply shelves to look) are on the bottom end back of the box.  They are directly under their corresponding bar codes; the Product Number (for 4X6 premium plus it's Q1978AC) and what looks like the SKU (on my box, ignoring the small 8 and 5 at either end, that reads 0873654213).  Additionally, there is a "Lot Number" (printed in white dot printing on a gray box background) directly above the product number (which should have "US" in the upper left, and a string below that...mine is US00204805).  There is no number on the back of the paper, just the HP logo and a string of 6 small dots under it in a diagonal pattern spread across it.
    So, I expect they want all three; Product Number, SKU, and Lot Number...the last likely so that that can pull a lot sample from their QA inventory and attempt to reproduce the issue back at the lab.
    Hope that helps.
    H
    Message Edited by HLansing on 08-14-2009 06:15 AM

  • How do I get a byte array from an object passed into the JNI?

    This is what my java code looks like:
    public class streamedData
    protected byte[] m_value = null;
    public byte[] getByteArray ()
    return m_value;
    /* code not pertaining to this question snipped. */
    jclass streamedDataClass = env->GetObjectClass(jstreamedData);
    // Get methodIDs for the various NPKI_Extension methods
    value = env->GetMethodID(streamedDataClass, "getByteArray", "()[B");
    lstreamedData->value = (unsigned char *)malloc (lstreamedData->length);
    if (lstreamedData->value == NULL)
    return INSUFFICIENT_MEMORY;
    memset (lstreamedData->value, 0, lstreamedData->length);
    memcpy (lstreamedData->value, env->CallByteMethodA(streamedDataClass, value, NULL), lstreamedData->length);
    This is not working.
    My question is, how do I get a copy of or read m_value in the JNI layer? Do I have to make the byte array public and access it as a field ID?
    Any help would be appreciated. Why oh why can't there be a CallByteArrayMethod????

    My question is, how do I get a copy of or read m_value in the JNI layer? Do I have to make the byte array public and access it as a field ID?
    You can retrieve a handle to the byte array, through a method call, as you're doing now, or by directly accessing it through GetFieldID.
    In the case of the method call, you'll want to do:jmethodID getByteArrayMethod = env->GetMethodID(streamedDataClass, "getByteArray", "()[B");
    jbyteArray byteArray = static_cast<jbyteArray>( env->CallObjectMethod( jstreamedData, getByteArrayMethod ) );In the case of field access, you can do:jfieldID m_valueFieldID = env->GetFieldID( streamedDataClass, "m_value", "[B" );
    jbyteArray byteArray = static_cast<jbyteArray>( env->GetObjectField( jstreamedData, m_valueFieldID ) );Once you have byteArray, you need to access it using the array operations:lstreamedData->value = env->GetByteArrayElements( byteArray, 0 );
    // Do what you want to do, then release the array
    env->ReleaseByteArrayElements( byteArray, lstreamedData->value, 0 );As always, Jace, http://jace.reyelts.com/jace, makes this easier. For example,void printByteArray( jobject jstreamedData ) {
      streamedData data( jstreamedData );
      JArray<JByte> byteArray = streamedData.m_value();
      for ( int i = 0; i < byteArray.length(); ++i ) {
        cout << byteArray[ i ];
    }God bless,
    -Toby Reyelts

  • Calling Web Service From Oracle PL/SQL do not invoke the webservice in SOA Server

    Hi ,
    Trying to call the webservice from oralce pl/sql Function
    created a Function
    Not able to invoke the web service of SOA Server .
    CREATE OR REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 AS 
        service_ sys.utl_dbws.SERVICE; 
        call_ sys.utl_dbws.CALL; 
        service_qname sys.utl_dbws.QNAME; 
        port_qname sys.utl_dbws.QNAME; 
        response sys.XMLTYPE; 
        request sys.XMLTYPE; 
        BEGIN 
         sys.utl_dbws.set_http_proxy('Host name : Port'); 
          service_qname := sys.utl_dbws.to_qname('ns1', 'process'); 
           service_      := sys.utl_dbws.create_service(service_qname); 
           call_         := sys.utl_dbws.create_call(service_); 
            sys.utl_dbws.set_target_endpoint_address(call_, 'http:/host name : port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep'); 
            sys.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'process'); 
            request       := sys.XMLTYPE('<ns1:process xmlns:ns1="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"><ns1:input></ns1:input></ns1:process>'); 
         response      := sys.utl_dbws.invoke(call_, request); 
         return response.extract('//HelloWorld/child::text()', 'http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld').getstringval(); 
         DBMS_OUTPUT.PUT_LINE ('Values of OutputsVariables8');
    --  Return 'S';
       END;
    Execute----the below code:
      Select HelloWorld_WebServices('Hi') from dual;
    Error:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError
    ORA-06512: at "SYS.UTL_DBWS", line 403
    ORA-06512: at "SYS.UTL_DBWS", line 400
    ORA-06512: at "APPS.HELLOWORLD_WEBSERVICES", line 74
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.

    Well, you should first test if your webservice is reachable with a simple WS - Client or a Browser - Plugin, then verify the respones of the web service and after that you can take further investigations on your problem domain. The error - message refers to a line in your function, obviously, but I can't see which line and because there is more than one call to sys.utl_dbws I don't see at what point the script fails. NULL - Pointer - Execptions usually indicate that a method was invoked on a variable which should contain an object reference but is NULL.

  • Error while invoking the ABAP Proxy via SOAP Adapter

    Hi,
    My scenario involves SOAP Client invoking a webservice hosted in PI which in turn invokes the ABAP Proxy asyncronously.
    SOAP Client -> PI -> ECC (ABAP Proxy) . This works fine.
    Next , I have exposed the ECC Service Interface as webservice using SOA Manager transaction. Now, once the service is created using SOAManager, i replaced the XI Adapter with SOAP Adapter and provided the target URL as the URL provided by the SOAManager.
    SOAP Client -> PI -> ECC (ABAP Proxy via SOAP Adapter)
    With this approach, i am encountering the below error message
    2009-05-29 12:17:55 Error Adapter Framework caught exception: null
    2009-05-29 12:17:55 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException.
    Any ideas on the above errror message? Any pointers or inputs will be appreciated.
    Thanks,
    Vinayak Kamath

    > 2009-05-29 12:17:55 Error Adapter Framework caught exception: null
    > 2009-05-29 12:17:55 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException.
    This is a generic error message which does not have any information about the error which has occurred.
    Do you see any error messages in the SOAP client?
    Regards
    Stefan

  • Error while invoking the URL of xcm for ISA application

    Hi,
    I am getting the an error when I invoke the below urls. I am working on ISA application.
    http://localhost:port/xxx/b2b/init.do
    http://localhost:port/xxx/admin/xcm//init.do
    The code was build successfully without any errors.
    Error:
    Application error occurred during request processing.
    Details:   Error [javax.servlet.ServletException: Initialization of Extended Configuration Management failed.
    Could not initialize XCM configuration in Database.
    Check if you have deployed the Software Component 'SAP JAVA DATA DICTIONARY 5.0'].
    Exception id: [44455354420000790000005000001D3400047AAFFB0A8DAC]
    Could any one please help me in resolving this.
    Regards
    MQ

    Hi Rafael,
    Please deploy the following two sca files.
    SAPCRMDICXXXXX.SCA
    SAPJ2EECORPXXXXX.SCA
    Regards
    V. Suresh Kumar

Maybe you are looking for