Configuring Alert in RZ20 from Java system

Hi Experts!!!
We have configured solman for ccms alert monitoring,We get the alerts displayed inthe solman for all the system in the landscape.But is it possible for us to monitor the java system (add-in installation) using rz20 from the abap system.We have configured the csmreg user and generated file and also registered the user through visual admin,But in the j2ee engines there data is not displayed.There were no errors occured during the configuration.
Regards,
Vamshi.

Have you changed your java administrator password recently? If so, have you changed it in the configtool as well?
Kind regards,
Mark

Similar Messages

  • Automatic email when an alert occurs (RZ20) from SAP R/3 4.0B

    Hi SAP Experts.
    How do I configure the Automatic email when an alert occurs (RZ20) in the system SAP R/3 version 4.0B (AIX +Oracle) ?
    Best regards.
    Luis Gòmez

    Hi Luiz
    check this out
    Note 429265 - CCMS monitor architecture: Central auto-reaction
    Note 176492 - Automatic email when an alert occurs (RZ20)
    SAP Note 939616 - CCMS auto-reactions: Help with Troubleshooting
    Check SAP Note 617547 - RZ20: Sending alerts as mail and SMS
    https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
    Setting Up your Central Monitoring [original link is broken]
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/106a4d88-2a36-2c10-549b-dc549d00b8b9
    Read SAP Note 522878 - iSeries: Availability of CCMS Agents
    Regards
    Uday

  • Using Inbound IDOC from Java system creation of Outbound delivery

    Dear Experts,
    The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
    The scenario is,
    After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
    Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
    Now Query is,
    1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
    2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
    3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
    Thanks in advance for the replies I am going to get
    Regards,
    VEL

    Thanks for the feedback. This question is resolved

  • Outbound delivery creation with inbound IDOC transfer from Java system

    Dear Experts,
           The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
    The scenario is,
                   After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
                 Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
    Now Query is,
                   1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
                   2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
                   3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
    Thanks in advance for the replies I am going to get
    Regards,
    VEL

    Didn't get any feedback from experts for long time. So we are closing the question

  • How to configure alerts in SAP R/3 System.

    Hi,
       We have R/3 system installed in our system.Now i want configure alerts to display for users.How can i configure alerts in that R/3 System.Send me the realted information and links.
    Regards,
    Kiran.

    Hi Bhogi,
    The Alerts in SAP XI can be raised for error happening in:
    1. Adapter Engine
    2. Integration Engine.
    1. These Alerts are system generated in case anything happens in either of the component.
    For this you need to:
    1. Create ALert Category in the Trnasaction ALRTCATDEF
    2. Create Alert rules in Runtime Workbench--> ALert Configuration and associating these rules to Alert category.
    If you want you can do it without a BPM
    and throw an exception in case any of the values is missing:
    have a look at this weblog on how to throw exceptions
    in a nice way:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    Also just go through Raising Exceptions in SAP XI Mapping and see if it helps you solve the problem.
    Also go through these links:
    Forwarding Alerts to Alert Management (ALM)
    Alert Management
    XI: Alerts - Step by step
    XI: Alerts - Troubleshooting guide
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2243d711d1893e0000e8323c4f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/2166e6a91d11d188de0000e8216438/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/05/bb223905b61b0ae10000000a11402f/content.htm
    For a Simple case with BPM refer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
    To send an EMAIL, assign an EMAIL ID to the corresponding user in the transaction SU01 and then set up SCOT and you can send emails when the ALERT is triggered..
    Once you have configure Alerts, you will get the Alerts into ALERT INBOX in RWB of the user. To also get the email, the following needs to be done,
    1. In SU01 -- Assign the Email ID for the Recipient of the ALERT.
    2. In , RWB>ALERT INBOX> PERSONALIZATION--> Time Independent Delivery and Email are selected.
    3. Finally, SCOT needs to be set up to send Emails. Check this for the same. You can ask your BASIS team to do this step.
    http://help.sap.com/saphelp_nw04/helpdata/en/23/1edf098ea211d2b47300609419ed29/frameset.htm
    Also, In ALRTCATDEF, go to SETTINGS--> CONFIGURATION. By default, the option selected is INTERNAL PROCESSING. Select the option SMTP FORWARDING AS XML and give the email id. This will enable you to send an email alert whenever an error occurs in XI.
    I hope it helps.....
    Reward points if this helps
    Regards
    Vani.

  • Error MUT-02041 : While exporting the data from Java system.

    Dear Friends,
    When exporting data from Java system (source system) using SAPINST. We are getting
    the below error in 4 of 5 (Archiving SDM Repository) stage.
    Error :
    MUT-02041 SDM call of createsdmkitjar ends with returncode 2
    With this, I am unable to proceed further. Please help me on this to proceed further.
    Thanks in advance,
    regards,
    Srinivas

    Hi All,
    I could find the below error log from sapinst.log file.
    =============
    Info: Exclude components as specified
    in /usr/sap/IPD/DVD_JAVA/51033746_1/Installation_Master_6.20_6.40_05_08/IM_AIX_PPC64/SAPINST/COMMON/INSTALL/JMIG/EXCLUDE.XML
    Info: Resulting JAR
    file: /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR
    Info: No temporal directory for packing is provided. SDM home directory
    will be used.
    Info: Pack directory exists already. Remove it first.
    Info: Start packing the components of com.gsk in
    packedOrigin_com.gsk.jar
    Info: Create /usr/sap/IPD/JC02/SDM/program/pack/packedOrigin_com.gsk.jarInfo: The components of com.gsk were successfully packed in
    packedOrigin_com.gsk.jar
    Info: Start packing the components of local in packedOrigin_local.jar
    Info: Create /usr/sap/IPD/JC02/SDM/program/pack/packedOrigin_local.jar
    Info: Create /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR
    Warning: Warning during command execution: No metadata files exist for
    development
    component 'revtrac_agu11'/'local'/'LOKAL'/'0.2009.08.11.10.56.14'/'0'.
    Cannot pack this archive.
    No metadata files exist for development
    component 'revtrac_aug13eartest'/'local'/'LOKAL'/'0.2009.08.13.14.44.25'/'0'. Cannot pack this archive.
    No metadata files exist for development
    component 'Aug10_09'/'local'/'LOKAL'/'0.2009.08.10.14.39.29'/'0'.
    Cannot pack this archive.
    No metadata files exist for development
    component 'Aug14'/'local'/'LOKAL'/'0.2009.08.14.10.46.38'/'0'. Cannot
    pack this archive.
    No metadata files exist for development
    component 'Aug14two'/'local'/'LOKAL'/'0.2009.08.14.10.55.21'/'0'.
    Cannot pack this archive.
    No metadata files exist for development
    component 'revtrac_aug11b'/'local'/'LOKAL'/'0.2009.08.13.14.36.43'/'0'.
    Cannot pack this archive.
    Missing archives may lead to errors after the packed SDM installation
    has been extracted later.
    Info: This SDM installation has been packed
    to /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR
    To unpack this installation again,
    extract /oracle/IPD/sapdata1/data_export/SDM/SDMKIT.JAR and invoke the
    SDM command install with parameter extractpackedinst=true
    Executed, but finished with warning(s). Return code: 2
    Error: Executed, but finished with warning(s). Return code: 2
    ERROR 2010-10-21 15:54:48
    MUT-02041 SDM call of createsdmkitjar ends with returncode 2
    =============
    Can you please check this and help me on this to proceed further.
    thanks..
    Srinivas

  • Configuration of EWA reports for java systems.

    Hello,
    I am facing a problem with configuration of EWA reports for SAP NW Portal.
    I have already configured EWA for abap systems, and those are running good on weekly basis. but i have problem with configuration of reports for java systems.
    So far, i have installed an SMD agent and CA on my EP-satellite system. I have also configured and SMD server on my Sollution Manager and registered the SMD agent on SMD server and installed Willy Introscope on SMD server.
    I  am using a central SLD which is running on different host as Solution Manager. I did all the configuration (smsy_setup, configuration of sld_data_supplier etc... )
    I have also created the system in SMSY, matched the smsy with SLD and assigned Logical component to java system.
    So far, so good according to manuals but when i  want do define data collection in the SMD for Gargage Collection  (task in scheduler) i cannot see host of my portal system.
    I can see only the hosts (scheduler tasks ) of all abap system for which the EWA reports have already been  generated.
    Am i missing something?
    Some configuration in SMD?
    My solution manager is running on Sap NW 7.0, SPS16,
    Sattelite system  NW 7.0 EP, SPS 6 (planning to SPS 19)
    Thank you for your advices!!!

    Hi Suveer,
    I did the configuration before. I forgot to mention it.
    I found this errors in Diagnostic Setup, maybe this could be the cause of the issue.
    Step BI Details
    Cannot invoke CCMSBISETUP on host localhost
    !! Exception : An exception occured during the execution of this function 'CCMSBI_RUN_SIMPLE_SETUP_IN_BTC'.(cause=com.sap.sup.admin.abap.rfc.exception.RfcExecutionException The function named 'CCMSBI_RUN_SIMPLE_SETUP_IN_BTC' doesn't exist!)
    Exceptions
    com.sap.sup.admin.abap.rfc.exception.RfcExecutionException: An exception occured during the execution of this function 'CCMSBI_RUN_SIMPLE_SETUP_IN_BTC'.
    at com.sap.sup.admin.abap.rfc.function.RfcFunction.execute(RfcFunction.java:92)
    at com.sap.sup.admin.setup.AbapSysRfcAdapter.setupBIConfiguration_ccmsBiSetup(AbapSysRfcAdapter.java:743)
    at com.sap.sup.admin.setup.AbapSysRfcAdapter.setupBIConfiguration_ccmsBiSetup(AbapSysRfcAdapter.java:727)
    at com.sap.sup.admin.setup.ManagingServices.startCcmsBiSetup(ManagingServices.java:2686)
    at com.sap.sup.admin.setup.SetupStep.execute(SetupStep.java:334)
    at com.sap.smd.agent.plugins.remotesetup.SapInstance.setup(SapInstance.java:304)
    at com.sap.sup.admin.setup.wizard.monitoring.ConfirmationView.setupSMDServer(ConfirmationView.java:378)
    at com.sap.sup.admin.setup.wizard.monitoring.ConfirmationView.onActionSetupServer(ConfirmationView.java:211)
    at com.sap.sup.admin.setup.wizard.monitoring.wdp.InternalConfirmationView.wdInvokeEventHandler(InternalConfirmationView.java:278)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.sup.admin.abap.rfc.exception.RfcExecutionException: The function named 'CCMSBI_RUN_SIMPLE_SETUP_IN_BTC' doesn't exist!
    at com.sap.sup.admin.abap.rfc.function.RfcFunction.execute(RfcFunction.java:62)
    ... 37 more
    And also this one>>
    Step RFC Details
    Failed to create TCP/IP RFC on ABAP side (SM59)
    !! Exception :      Source system cannot be set to Unicode                              , error key: RFC_ERROR_SYSTEM_FAILURE
    Exceptions
    com.sap.aii.proxy.framework.core.BaseProxyException:      Source system cannot be set to Unicode                              , error key: RFC_ERROR_SYSTEM_FAILURE
    at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
    at com.sap.sup.admin.setup.abapproxy.tcpiprfc.TcpIpRfcProxy_PortType.inst_Create_Tcpip_Rfcdest(TcpIpRfcProxy_PortType.java:16)
    at com.sap.sup.admin.setup.ManagingServices.createTcpIpRFC(ManagingServices.java:663)
    at com.sap.sup.admin.setup.ManagingServices.createTcpIpRFC(ManagingServices.java:637)
    at com.sap.sup.admin.setup.SetupStep.execute(SetupStep.java:300)
    at com.sap.smd.agent.plugins.remotesetup.SapInstance.setup(SapInstance.java:304)
    at com.sap.sup.admin.setup.wizard.monitoring.ConfirmationView.setupSMDServer(ConfirmationView.java:378)
    at com.sap.sup.admin.setup.wizard.monitoring.ConfirmationView.onActionSetupServer(ConfirmationView.java:211)
    at com.sap.sup.admin.setup.wizard.monitoring.wdp.InternalConfirmationView.wdInvokeEventHandler(InternalConfirmationView.java:278)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    And in the troubleshooting setup for managed systems, i can see that no initial upload was found form the SMD agent which is running on Java System.
    Thanks a lot for your remarks

  • Fetching data from java system

    Hi All
    I want to fetch the data from Java application into my SAP system how can i fetch that .
    Thanks and rgards
    Saurabh Khanna

    you need BI system to do this, need to extract data using reports.
    can also do from solman ehp1.
    regards
    nag

  • Configure SCOT for Alertmails from XI System

    Hello,
    i configured my XI as described here:
    The specified item was not found.
    But the System send noh Mails.. so i think i have to configure the SCOT for this.. is this right?
    I have never executed the SCOT.. what i have to configure here?
    Thanks for your help

    Thanks.. but this did not help.. if you make a routing test.. the following message occurs:
    Cannot process message, no route from BAYERSCB to MAILADRESS
    Message no. XS826
    Diagnosis
    To continue processing, the system requires a valid route from sender BAYERSCB to recipient MAILADRESS(type INT).
    System Response
    The action was terminated.
    Error occurred in SAP in SAPconnect
    Procedure
    If this error was generated within the SAP system by SAPconnect, you have the following options:
    Create a route (i.e. assign a suitable address area, which covers the above address, to a node).
    1. Check whether the route exists, but the node to which it is assigned is not in operation. If this is the case, change the route or put the node into operation.
    2. Change the recipient address if it has been entered incorrectly.
    If the error was detected outside of the SAP system, please read the operator's manual for your communication software or contact the manufacturer.

  • Configure LDAP in my Sun Java System Application Server 7

    Hi All,
    I'm trying to connect a ldap server with my Sun One 7 (2004Q2). I think that I follow the needed steps but I don't achieve my purpose.
    These are the steps that I follow:
    1) From Administrator Web, in Security -> Realms -> ldap -> properties, I configure:
    - directory: ldap://10.95.35.59:2222
    - base-dn: cn=UsuariosExternosiGRI,ou=Groups,dc=hi,dc=inet
    - jaas-context: ldapRealm
    2) Next, in Security, mark "ldap" as a default Realm.
    An that's all. When I access via http, must be appeared an authentication window in order to the authenticate in LDAP server.
    In server.log there are any errors. Are there any way to know (seeing server.log or other file) if the ldap has been configured correctly?
    Could somebody help me?
    I hope everybody understand me because my english is not so fine.
    Thank you very much,
    Javier Arenales.

    Could there be a possibility that you have both Type 4 and Type 3 drivers in app server classpath? Even though you've got configuration parameters for Oracle thin dirver in your server.xml file, the error message "Entered SecClientRequestInterceptor::send_request()" looks like it came from a Type 3 driver.

  • Calling back c++ method in an exe (not a dll) from java?

    Hi all,
    I have to make an hybrid C++/java from an existing C++
    application that compiled is a big single exe not a dll.
    I'm running under win32.
    The application consists of several windows. The hybrid
    will have widows in C++ and some in java. They have the
    same menu and tool bar. In the C++, there are some
    callbacks called when a button is pressed. How to call
    these callback from java given the fact that the JVM and
    the java classes are launched by the exe file.
    I know how, from C++, start JVM and call my java window.
    I also know how to call a C++ method that is in a dll from
    java. It's from the tutorial
    http://java.sun.com/docs/books/tutorial/native1.1/index.html
    But I don't know how to call a C++ method that is in in an
    exe which has launch a JVM from an object running in this
    JVM.
    Is there somewhere an example like this?
    Thanks,
    Xavier.

    Thanks this helped.
    For those who want a complete example, here it is:
    Tested on XP, java 1.4.2, VC++ 6.0.
    ************ File invoke.cpp *****************************
    #include <stdlib.h>
    #include <jni.h>
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #else /* UNIX */
    #define PATH_SEPARATOR ':'
    #endif
    #define USER_CLASSPATH "." /* where Prog.class is */
    void JNICALL displayHelloWorld(JNIEnv *env, jobject obj)
        printf("Hello world: made by printf from C++\n");
        return;
    void main() {
        JNIEnv *env;
        JavaVM *jvm;
        JavaVMInitArgs vm_args;
        jint res;
        jclass cls;
        jmethodID mid;
        jstring jstr;
        jobjectArray args;
        char classpath[1024];
         int result;
        /* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
         JavaVMOption options[3];
         options[0].optionString = "-verbose:gc";
         sprintf (classpath, "-Djava.class.path=%s", USER_CLASSPATH);
         options[1].optionString = classpath;
         options[2].optionString = "-Djava.compiler=NONE";
         vm_args.options = options;
         vm_args.nOptions = 3;
         vm_args.ignoreUnrecognized = JNI_TRUE;
            vm_args.version = JNI_VERSION_1_4;
         /* IMPORTANT: Note that in the Java 2 SDK, there is no longer any need to call
          * JNI_GetDefaultJavaVMInitArgs. It causes a bug
        /* Append USER_CLASSPATH to the end of default system class path */
        /* Create the Java VM */
        res = JNI_CreateJavaVM(&jvm,(void**)&env, &vm_args);
        if (res < 0) {
            fprintf(stderr, "Can't create Java VM\n");
            exit(1);
        cls = env->FindClass("mypackage/Prog");
        if (cls == 0) {
            fprintf(stderr, "Can't find mypackage/Prog class\n");
            exit(1);
       JNINativeMethod nm;
       nm.name = "displayHelloWorld";
       /* method descriptor assigned to signature field */
       nm.signature = "()V";
       nm.fnPtr = displayHelloWorld;
       env->RegisterNatives(cls, &nm, 1);
        mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
        if (mid == 0) {
            fprintf(stderr, "Can't find Prog.main\n");
            exit(1);
        jstr = env->NewStringUTF(" from C++! calleded by C++, using argument from C++ but java method");
        if (jstr == 0) {
            fprintf(stderr, "Out of memory\n");
            exit(1);
        args = env->NewObjectArray(1,
                            env->FindClass("java/lang/String"), jstr);
        if (args == 0) {
            fprintf(stderr, "Out of memory\n");
            exit(1);
        env->CallStaticVoidMethod(cls, mid, args);
        jvm->DestroyJavaVM();
    }********************* File ./mypackage/Prog.java **************************
    package mypackage;
    public class Prog {
           public native void displayHelloWorld();
        public static void main(String[] args) {
            System.out.println("Hello World" + args[0] +"\n");
            Prog prog = new Prog();
            prog.displayHelloWorld();
            System.out.println("(called from java)");
            System.out.println("\nSo to sumurize:");
            System.out.println(" -1 Starting point is an exe (not DLL, there is no DLL) so C++ code");
            System.out.println(" -2 From C++ call java method using argument from C++");
            System.out.println(" -3 From java, that was launched by the exe, call to");
            System.out.println("    a native using the RegisterNatives in C++\n");
            System.out.println("You got a bidirectional example with as starting point");
            System.out.println("a single exe, launching JVM, loading class call back C++!");
    }******************* Command line for all ****************************************
    javac mypackage/Prog
    cl -I"D:\Program Files\j2sdk1.4.2_03\include" -I"D:\Program Files\j2sdk1.4.2_03\include\win32" -MT
    invoke.cpp -link D:\PROGRA~1\j2sdk1.4.2_03\lib\jvm.lib
    (Remark, the last path is using the short name for "Program Files" because with the blank
    even adding double quotes result into an error)
    You must have jvm.dll in your path for me it's Path=D:\Program Files\j2sdk1.4.2_03\jre\bin\client;
    Then simply call invoke and see the result. :-)

  • Configtool: Java System properties not customizable under Services

    Hi SDN'ers,
    We have a CE 7.11.5 environment.
    When trying to change Java system porperties under Services for example, "com.sap.security.core.ume.service" and property "ume.ldap.access.multidomain.enabled" it is not mofifiable. The custom value can't be changed.
    Also via the web interface via SAP NetWeaver Administrator > Configuration Management > Infrastructure and via Java System Properties, then  the properties are not modifiable via the web.
    The following properties show the same problem:
    ume.ldap.access.additional_password.1
    ume.ldap.access.additional_password.2
    ume.ldap.access.additional_password.3
    ume.ldap.access.additional_password.4
    ume.ldap.access.additional_password.5
    On other CE version's I have seen it is modifiable...
    Can someone help?
    Regards Dries

    Hi,
    These parmaters might be set to "final", Try browsing to the propertysheet via the configtool editor and check if the parameter is set to final.
    Kind regards,
    Cathal

  • Earlywatch Alert configuration for Java system

    Hi All,
    I have configured the Solution manager diagnostics for early watch
    alerts for a java system by following the guide "EWA for non-ABAP
    components" in note 976054.
    I am able to get the EWA reports manually, i.e by downloading
    the "service download" file from http://<host-name>:<port>/smd/services
    and uploading it in T-code DSA in Solution manager system and by
    generating the "word" file over there. But i require the automatic
    configuration to work. This automatic reports generation is not working presently.
    Is there any separate configuration to be done for the automatic report
    generation for Non-ABAP systems.
    Waiting for any one of your help,
    Points will be awarded for any useful solutions.
    Regards,
    Phani.

    Hi,
    Normally you have nothig to do, the report should be generated each week automatically. But you have some checks in  document attached to <b>SAP Note 976054</b> to see if everything is activated (SDCCN, NONE Destination, etc...).
    Regards,
    Stephan

  • The Java load in database SID / hostname has not been configured yet. You cannot run an installation from the System Copy folder with this load

    Dear Gurus,
    We are facing the below issue when performing a homogeneous system copy of NW 7.0 system using backup/restore method for DB6 system.
    The Java load in database <SID>/<hostname> has not been configured yet. You cannot run an installation from the System Copy folder with this load.
    We went through the SAP Note http://service.sap.com/sap/support/notes/2049842, and followed the same but no luck.
    We updated the Kernel to the latest, but still no luck.
    Request for your quick help as we have to complete it by EOD today.
    Thanks a lot in advance.
    Best Regards,
    Anuj

    Hello Ashutosh ,
    Thanks for your reply.
    We have gone followed the below sequence:
    SCS Installation
    Database Instance Installation using backup/restore method
    CI installation. -> getting error, when we provide the Java Components DVD.
    Best Regards,
    Anuj

  • EWA alert report for java system shows wrong data

    Hi,
    In our solman system, EWA alert reports are configured every week for all the production systems (both ABAP and JAVA). Recently oracle database was upgraded from 10g to 11g in all the production systems. The EWA alert report for ABAP systems is correctly taking the 11g database details and is suggesting parameter changes. Unforunately the EWA alert report for Java systems is still pointing to 10g database and is suggesting the parameter changes for 10g only but the systems are on 11g.
    In SMSY, the database of the java systems is maintained as 11g only and not 10g. STill we are not sure where the data is being fetched from.
    Please help me in finding the issue.
    Regards,
    Ragav

    Hello,
    iNote 1482818 would be iapplicable if not java checks are being made. You are not reporting no java checks, you are reportijng the check is being performed, but has the wrong value. When you updated the database dis you perform Solman_setup, Mnaaged system setup?
    The reason I ask s that is what prepares the java side for EWA. For isntance if you had on old version of ST-SER such as 700_2008_2 then it does not know about Oracle 11.2....but that is on the ABAP side, you would need ST-SEr 701_2010_1 to
    recognize ORacle 11.2 on the ABAP side.
    So while I am not 100% sure in this specific instance, it seems logical that if the Java side isn't recognizing the Oracle Database version ( which means it is making this check) then you may need to run the Solman_setup, Mnaged system setup to pick up the ability to detect a new version of Oracel on the Java side.
    It is certainly worth the try.
    Regards,
    Paul

Maybe you are looking for

  • Satellite U - Crashes when starting windows and recovery cannot fix

    Most of the time but not every time the laptop crashes when starting windows. I get a blue screen, a dump file is created and then it restarts and gives me the option of starting windows normally or using windows recovery. The windows recovery cannot

  • Content Filter - attachment stripping logic not working like I think it should

    Hello, I am working on a content filter for stripping file attachments - my logic is this: Condition: If File Type does NOT EQUAL file type Documents: attachment-filetype != "Document" Action: Strip File Attachment by File Info: drop-attachments-by-s

  • How to include background image in 'FP.Get Image' method?

    Hi, in LV8.20 you can set background pictures by right-clicking right scrollbar of the frontpanel and selecting 'properties'. It's nice and works fine... But: When using an invoke node with method 'Front Panel-> Get Image' the background image is NOT

  • J2SE 5.0 Qns

    Hi i have a qns. why when i use the J2SE 1.4 the transformer factory got no error but when i upgrade to 5.0 i got the following error: Exception in thread "Thread-9" javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.

  • Sending payroll from external system to SAP

    Hello SAP experts, please could you help me to find optimal solution for the following scenario? We use external system which generates payroll and we need to send the data to SAP. SAP then should post it to a bank and also to GL accounts. We can not