ALERT from JNI invocation

When I invoce the jvm from C++ with -verbose:jni I get the following :
***ALERT: JNI local ref creation exceeded capacity (creating: 17, limit: 16)
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:858)
***ALERT: JNI local ref creation exceeded capacity (creating: 18, limit: 16)
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:858)
Can anyone explain what's happening ??

Here's the code that brought up the ALERT :
STDMETHODIMP CComToJava::CreateJavaVM()
     // TODO: Add your implementation code here
     JavaVM *jvm;
     JNIEnv *env;
     JavaVMOption options[3];
     JavaVMInitArgs vmArgs;
     vmArgs.version = JNI_VERSION_1_2;
     options[0].optionString = "-Djava.compiler=NONE"; /* disable JIT */
     options[1].optionString = "-Djava.class.path=c:\\prototyping\\jni\\classes"; /* user classes */
     options[2].optionString = "-verbose:jni"; /* print JNI-related messages */
     vmArgs.options = options;
     vmArgs.nOptions = 3;
     vmArgs.ignoreUnrecognized = TRUE;
     jint result = JNI_CreateJavaVM(&jvm,(void**) &env, &vmArgs);
     jclass jni2AtlClazz = env->FindClass("jni2atl/Jni2Atl");
     if(result == 0) {
          cout << "VM created" << endl;
     else {
          cout << "VM not created" << endl;
          exit(1);
     if(jni2AtlClazz == NULL) {
          cout << "Didn't find class" << endl;
          exit(1);
     return S_OK;
/&ers

Similar Messages

  • JNI Invocation retry from JNI_ENOMEM leads to JNI_ERR

    We are using JNI Invocation from a C++ program to call from C++ to Java in a cross-platform Windows/Mac program. Usually this works great. Lately, though, we have been running into some issues on Windows XP (no problems so far on either Windows Vista or Mac OS X).
    In the problem cases, when we try to create the JVM, we get a JNI_ENOMEM error. This is odd since there appears to be plenty of memory available. We then try again, asking for less JVM memory. But that never seems to work - instead, we get a JNI_ERR message when retrying, at which point we are giving up. Asking for less memory does work when we do it the first time we try to create the JVM. But setting the maximum memory value that small would cause us to run out of JVM memory when handling larger data sets.
    Here's the basic code that we are using. Is there something obvious that we are doing wrong here when trying to create the JVM a second time?
    JavaVM *Jvm_mine;
    JNIEnv *Env_mine;
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    char* classpathC;
    char* vmpathC;
    // Omitting classpathC and vmpathC assignment
    options[0].optionString = classpathC;
    options[1].optionString = "-Xms32m";
    options[2].optionString = "-Xmx512m"
    vm_args.version = JNI_VERSION_1_4;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    // JNU_FindCreateJavaVM taken from Liang's JNI book
    CreateJavaVM_t pCreateJVM = JNU_FindCreateJavaVM(vmpathC);
    result = pCreateJVM(&Jvm_mine, (void**)(&Env_mine), &vm_args);
    // Usually this works, but sometimes on XP we get JNI_ENOMEM
    if (result == JNI_ENOMEM) {
        options[2].optionString = "-Xmx256m";
        result = pCreateJVM(&Jvm_mine, (void**)(&Env_mine), &vm_args);
        // We nearly always get a JNI_ERR value in result here
    }Pointers to debugging tools we could use to figure out why we are getting either the first JNI_ENOMEM error or the second JNI_ERR error would also be appreciated.
    Thanks for any assistance!
    Michael

    I also need to destroy the jvm from w/in a dll but i havent been able to get it to work properly. So far, everything ive read in the forum says just dont use it. but i dont want to just leave it hanging around.
    if you hear anything different, please share. :)
    txjump

  • JNI Invocation: open file in Java, write file in CPP

    Hello,
    Warning: I am a dunce, bad CPP code ahead!
    Using JNI invocation, I am trying to read a binary file in Java and write it in CPP.
    Everything compiles and runs without error, but the input and output jpg files are of course different.
    TIA to any help,
    kirst
    (begin ByteMe.java)
    import java.io.*;
    public class ByteMe
        // Returns the contents of the file in a byte array.
        public byte[] getBytesFromFile(String strInfo) throws IOException
            System.out.println("Testing:" + strInfo);
            File file = new File("1.jpg");
            InputStream is = new FileInputStream(file);
            // Get the size of the file
            long length = file.length();
            // Create the byte array to hold the data
            byte[] bytes = new byte[(int)length];
            // Read in the bytes
            int offset = 0;
            int numRead = 0;
            while (offset < bytes.length
                   && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {
                offset += numRead;
            // Ensure all the bytes have been read in
            if (offset < bytes.length)
                throw new IOException("Could not completely read file "+file.getName());
            // Close the input stream and return bytes
            is.close();
            return bytes;
        public ByteMe()
              //System.out.println("in constructor");
    }(end ByteMe.java)
    (begin ByteMe.cpp)
    #include <stdlib.h>
    #include <string.h>
    #include <jni.h>
    #include <windows.h>
    // for file operations:
    #include <fstream>
    int main( int argc, char *argv[] )
         JNIEnv *env;
         JavaVM *jvm;
         JavaVMInitArgs vm_args;
         JavaVMOption options[5];
         jint res;
         jclass cls;
         jmethodID mid;
         jstring jstr;
         jobject obj_print;
         options[0].optionString = "-Xms4M";
         options[1].optionString = "-Xmx64M";
         options[2].optionString = "-Xss512K";
         options[3].optionString = "-Xoss400K";
         options[4].optionString = "-Djava.class.path=.";
         vm_args.version = JNI_VERSION_1_4;
         vm_args.options = options;
         vm_args.nOptions = 5;
         vm_args.ignoreUnrecognized = JNI_FALSE;
         // Create the Java VM
         res = JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
         if (res < 0)
              printf("Can't create Java VM");
              goto destroy;
         cls = env->FindClass("ByteMe");
         if (cls == 0)
              printf("Can't find ByteMe class");
              goto destroy;
         jmethodID id_construct = env->GetMethodID(cls,"<init>","()V");
         jstr = env->NewStringUTF(" from C++\n");
         obj_print = env->NewObject(cls,id_construct);
         // signature obtained using javap -s -p ByteMe
         mid = env->GetMethodID(cls, "getBytesFromFile", "(Ljava/lang/String;)[B");
         if (mid == 0)
              printf("Can't find ByteMe.getBytesFromFile\n");
              goto destroy;
         else
              jbyteArray jbuf = (jbyteArray) env->CallObjectMethod(obj_print,mid,jstr);
              jlong size = jsize(jbuf);
              printf("size is: %d\n", size); // size shown in output is
              std::ofstream out("data.jpg", std::ios::binary);
              out.write ((const char *)jbuf, 100000);     
         destroy:
             if (env->ExceptionOccurred())
                env->ExceptionDescribe();
        jvm->DestroyJavaVM();
    }(end ByteMe.cpp)

    Hello,
    Me again. Well, not such a dunce after all. Here is code that works correctly, and compiles with no errors and no warnings.
    Will much appreciate help with clean-up code.
    TIA,
    kirst
    (begin ByteMe.java)
    import java.io.*;
    public class ByteMe
        public long getFilezize(String strInfo) throws IOException
              // demonstrates String parameter passed from CPP to Java:
              System.out.println("(getFilesize) Hello world" + strInfo);
              File file = new File("1.bmp");
              InputStream is = new FileInputStream(file);
              // Get the size of the file
              long length = file.length();
              is.close();
              return length;
        // Returns the contents of the file in a byte array.
        public byte[] getBytesFromFile(String strInfo) throws IOException
            System.out.println("(getBytesFromFile) Hello world" + strInfo);
            File file = new File("1.bmp");
            InputStream is = new FileInputStream(file);
            // Get the size of the file
            long length = file.length();
            System.out.println("length is: " + String.valueOf(length));
            // Create the byte array to hold the data
            byte[] bytes = new byte[(int)length];
            // Read in the bytes
            int offset = 0;
            int numRead = 0;
            while (offset < bytes.length && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0)
                offset += numRead;
            // Ensure all the bytes have been read in
            if (offset < bytes.length)
                throw new IOException("Could not completely read file "+ file.getName());
            // Close the input stream and return bytes
            is.close();
            return bytes;
        public ByteMe()
              //System.out.println("in constructor");
    }(end ByteMe.java)
    (begin ByteMe.cpp)
              Signature obtained with command:
                   "C:\Program Files\Java\jdk1.5.0_15\bin\javap.exe" -s -p ByteMe
                   Compiled from "ByteMe.java"
                   public class ByteMe extends java.lang.Object{
                   public long getFilezize(java.lang.String)   throws java.io.IOException;
                     Signature: (Ljava/lang/String;)J
                   public byte[] getBytesFromFile(java.lang.String)   throws java.io.IOException;
                     Signature: (Ljava/lang/String;)[B
                   public ByteMe();
                     Signature: ()V
         Compiled VC++ 2005 Express, run on Vista
    #include <stdlib.h>
    #include <string.h>
    #include <jni.h>
    // file operations
    #include <fstream>
    int main( int argc, char *argv[] )
         JNIEnv *env;
         JavaVM *jvm;
         JavaVMInitArgs vm_args;
         JavaVMOption options[5];
         jint res;
         jclass cls;
         jmethodID mid;
         jmethodID sizeid;
         jstring jstr;
         jobject obj_print;
         jlong filesize;
         options[0].optionString = "-Xms4M";
         options[1].optionString = "-Xmx64M";
         options[2].optionString = "-Xss512K";
         options[3].optionString = "-Xoss400K";
         options[4].optionString = "-Djava.class.path=.";
         vm_args.version = JNI_VERSION_1_4;
         vm_args.options = options;
         vm_args.nOptions = 5;
         vm_args.ignoreUnrecognized = JNI_FALSE;
         // Create the Java VM
         res = JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
         if (res < 0)
              printf("Can't create Java VM");
              goto destroy;
         cls = env->FindClass("ByteMe");
         if (cls == 0)
              printf("Can't find ByteMe class");
              goto destroy;
         jmethodID id_construct = env->GetMethodID(cls,"<init>","()V");
         printf("%s\n",id_construct);
         jstr = env->NewStringUTF(" from C++!\n");
         if (jstr == 0)
              // Normally not useful
              printf("Out of memory (could not instantiate new string jstr)\n");
              goto destroy;
         obj_print = env->NewObject(cls,id_construct);
         //BEGIN BLOCK to get file size
         sizeid = env->GetMethodID(cls, "getFilezize", "(Ljava/lang/String;)J");
         if (sizeid == 0)
              printf("Can't find ByteMe.getFilezize\n");
              goto destroy;
         else
              printf("got here\n");
              filesize =(jlong) env->CallObjectMethod(obj_print,sizeid,jstr);
              printf("got filesize\n");
         // END BLOCK to get file size
         // BEGIN BLOCK to write file
         mid = env->GetMethodID(cls, "getBytesFromFile", "(Ljava/lang/String;)[B");
         if (mid == 0)
              printf("Can't find ByteMe.getBytesFromFile\n");
              goto destroy;
         else
              jbyteArray ret =(jbyteArray) env->CallObjectMethod(obj_print,mid,jstr);
              // Access the bytes:
              jbyte *retdata = env->GetByteArrayElements(ret, NULL);
              // write the file
              std::ofstream out("data.bmp", std::ios::binary);
              //out.write ((const char *)retdata, 921654);
              out.write ((const char *)retdata, (long)filesize);
         // END BLOCK to write file
         destroy:
             if (env->ExceptionOccurred())
                env->ExceptionDescribe();
        jvm->DestroyJavaVM();
    }(end ByteMe.cpp)

  • When I get an alert from my car sat nav the music on my iphone has a long delay before it comes back on and misses a part of the track why does it do this.

    When I get an alert from my car sat nav the music on my iphone has a long delay before it comes back on and misses a part of the track why does it do this.
    It only seems to do this since an iphone download last year.......its driving me mad !

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    To copy iTunes purchases to the computer you have to log into (authorize) the account that purchased them and them transfer
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    When associating a device with an Apple ID see the following regarding the 90 day limit.

  • On iOS 7, my wife receives alerts from my calendar even though she chose not to see my calendars on her iPhone (We have the same iCloud account). How can I turn off my alerts on her iPhone 5 but nor her alerts ?

    My wife decided to use her calendar on her iPhone 5 via our iCloud account so that it will be synchronized with her iPad 3.
    I have been using it for many years for leisure activities and for my work.
    Althought she chose, in her calendar settings, to only see her calendar and not my calendars (I have many for leisure activities, for one of my job, for my other job etc...), she still gets alerts from my calendar events even thought she do not see the events on her iPhone nor on her iPad.
    Has anyone a solution for this ?
    I read many things on internet about this but found no solutions yet.

    Well, let take the personal service point of view : let say, I had two calendars on my iCloud account : one for work, one for my leisure activities.
    On my MacBook Pro that I use at home as well as at my office, I would want the two calendars to show and since I am alone in my office, I would want the alerts for both my work and my leisure activities to show (and make a sound at the same time).
    But on my iPad that I only use at home, I would only want my leisure activities alerts to show (and make a sound) and on my iPhone that I only use for work, I would only want my work alerts to show (and make a sound).
    That is a personal service that simply does not work.
    Why would Apple give us the opportunity to hide some calendars on certain devices but not allow us, on these same devices, to switch off the alerts linked to these calendars that we have chosen to hide ? Why having alerts of calendars that do not even show on these devices ?
    And I am an Apple fan since 1984, since the very first Mac. I still do believe Macs and Apple devices and/or software (iOS, OS X and others...) are much better and much more efficient than " Microsoft, Windows, Google and other Android devices and software.
    But that does not mean everything's perfect (and I find that quite normal).
    Nevertheless, in this case, letting alerts make a sound on a device where a specific calendar is not shown, that does not make any sense : when uncheking those calendars, the alerts linked to those calendars should be automatically switch off (but alerts should be able to work on the calendars that are shown.)

  • Is it possible to call a class in a jar file from JNI environment?

    Hi
    Is it possible to call a class in a jar file from JNI environment?
    Thanks in advance.

    Could you explain a bit more what you are trying to do? (In other words, your question is vague.)
    o If your main program is written in C, you can use JNI to start a JVM, load classes from the jar of your choice, and call constructors and methods of the objects defined in the jar.
    o If your main program is java, and has been laoded from a jar, a JNI routine can call back into java to use the constructors and methods of classes defined in the jar(s).

  • How to generate alert from Mapping

    Hello,
    I know how to generate alrets by configuring ALRTCATDEF, Alert Configuration.
    I want to know how we can generate alert from mapping for ex..
    If a=b then send the message
    and if a!=b then failed the message and throw and alert.
    In java or XSLT mapping
    Thnaks and Regards
    Hemant

    Hi Hemanth,
    Bhavesh Blog explied to raise alert using UDF,if you want using JAVA or XSLT converth the same code in to JAVA Map,I think it will work.
    I had done similar requirement using Mial adapter using Java Mapping.
    Regards,
    Raj

  • How can I download a new text alert from i tunes?

    I have an Iphone 4, How can I download a new text alert from I tunes?  I can download a ringtone, but not a text alert?

    ok thanks for that, it just seems daft that for such an advanced phone it wont let you do anything as basic as changing a text alert
    on a similar gripe, would you be able to tell me why the bluetooth doesn't appear to work either?

  • Alerts from ECC

    Chek these... i have a doubt which is bold below.....
    Alert Rules
         Message-based alerting is used to notify about errors that occur during message processing. It is based on the alert framework, among other things, so you can leverage the functions it provides, such as sending the alert by e-mail, fax, or SMS.
    By defining rules within the RWB, you can filter the monitored messages according to error code, error category, and message header attributes for sender and receiver. For instance, if a customer only wants to be informed immediately when his core business scenarios fail, the message-based alerting can be restricted to the respective interfaces only.
    -     Use RWB to define Alert Rules within PI
    -     Use ABAP for defining rules within ECC and generate an alert from ECC to PI by passing the right variables.
    My question is
    how do to this.....how to define rules within ECC and generate  an alert from ECC to PI by passing the right variables...?
    any idea guys....i am going with ALRTCATDEF...

    HI
    Refer the following links
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm -
    Alert
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1 -- ccms alerts u2013 1
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2 -- ccms alerts u2013 2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3 -- ccms alerts --- 3
    Alerts with variables from the messages payload (XI) - UPDATED -
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step - Alert Configuration by Micheal
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    I hope at the end of this you may get some knowledge on Alerts.
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step XI:Alerts step-by-step. (fundamental Basic)
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i CCMS Monitoring for XI. (CCMS monitoring for XI is enough later
    we configure to Adapter Engine).
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1 Configuring scenario specific E-mail alerts in XI-CCMS: Part-1
    (This is Important)
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2 Configuring scenario specific E-mail alerts in XI-CCMS: Part-2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3 Configuring scenario specific E-mail alerts in XI-CCMS: Part 3
    /people/federico.babelis2/blog/2006/05/03/solution-manager-cen-and-alerting-configuration-guide-for-dummies Solution Manager CEN and Alerting configuration (Advanced)
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide - Trouble shoot alert config
    Alerts with variables from the messages payload (XI) - UPDATED -
    Alert configuration
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    Calling alerts from UDF
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Email Alerts
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    Alert Delivery
    /people/matt.kangas/blog/2006/06/27/personalized-alert-delivery
    Transport the alerts
    http://help.sap.com/saphelp_nw04/helpdata/en/a6/5a94413aaad960e10000000a1550b0/frameset.htm
    XI: Alerts - Step by step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    http://help.sap.com/saphelp_nw04s/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm
    Triggering by Calling a Function Module Directly.
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Alerts with variables from the messages payload (XI) u2013 UPDATED
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Simple Steps to Get Descriptive Alerts from BPM in XI
    /people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
    Triggering XI Alerts from a User Defined Function
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Throwing Smart Exceptions in XI Graphical Mapping
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    cheers

  • Alerts from PI for Exception Handling

    We have a scenario where the incoming message is examined and if the value exceeds certain threshold, we want to generate alerts and send notification to a set of users.  What are some of the options available that SAP would recommend or other customers have implemented? 
    Thank you!
    Cheers
    George

    Multiple ways to trigger alerts in XI.
    One of them shown in this blog of mine :
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Or use BPM based alerts and so on.
    Regards
    Bhavesh

  • How to generate alerts from the oaf page

    hii.......
    I need to generate simple alert from oaf page...........
    can u suggest me sample code for this????????

    Hi Nazeer,
    Nazeer again and again you are replying the same answer and again and again I'm asking you the same question.
    What do you mean by alert?? is it some mail that you want to send from OAF page??
    sample code to send mail from OAF:
    import java.io.*;
    import java.net.*;
    * This program sends e-mail using a mailto: URL
    public class SendMail {
    public static void main(String[] args) {
    try {
    // If the user specified a mailhost, tell the system about it.
    if (args.length >= 1) System.getProperties().put("mail.host", args[0]);
    // A Reader stream to read from the console
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    // Ask the user for the from, to, and subject lines
    System.out.print("From: ");
    String from = in.readLine();
    System.out.print("To: ");
    String to = in.readLine();
    System.out.print("Subject: ");
    String subject = in.readLine();
    // Establish a network connection for sending mail
    URL u = new URL("mailto:" + to); // Create a mailto: URL
    URLConnection c = u.openConnection(); // Create a URLConnection for it
    c.setDoInput(false); // Specify no input from this URL
    c.setDoOutput(true); // Specify we'll do output
    System.out.println("Connecting..."); // Tell the user what's happening
    System.out.flush(); // Tell them right now
    c.connect(); // Connect to mail host
    PrintWriter out = // Get output stream to mail host
    new PrintWriter(new OutputStreamWriter(c.getOutputStream()));
    // Write out mail headers. Don't let users fake the From address
    out.println("From: \"" + from + "\" <"user.name") + "@" +
    InetAddress.getLocalHost().getHostName() + ">");
    out.println("To: " + to);
    out.println("Subject: " + subject);
    out.println(); // blank line to end the list of headers
    // Now ask the user to enter the body of the message
    System.out.println("Enter the message. " +
    "End with a '.' on a line by itself.");
    // Read message line by line and send it out.
    String line;
    for(;;) {
    line = in.readLine();
    if ((line == null) || line.equals(".")) break;
    out.println(line);
    // Close the stream to terminate the message
    out.close();
    // Tell the user it was successfully sent.
    System.out.println("Message sent.");
    System.out.flush();
    catch (Exception e) { // Handle any exceptions, print error message.
    System.err.println(e);
    System.err.println("Usage: java SendMail [<mailhost>]");
    Regards,
    Reetesh Sharma
    Edited by: Reetesh Sharma on Jun 30, 2010 3:27 AM

  • Script to get all the alerts from SCCM Management Pack

    Hi Team,
    I need a script/tool to generate all the default alerts from a Management Pack.
    Thanks and Regards, Mohd Zaid www.techforcast.com

    You may use the following SQL statement
    select displayname as MPname, b.monitorname, b.alert from(
    select displayname as monitorname, alert, a.managementpackid from (select monitorid, displayname as alert,
    monitor.managementpackid from monitor inner join displaystringview on monitor.alertmessage=ltstringid
    where languageCode='ENU') a inner join displaystringview on a.monitorid=ltstringid
    where languageCode='ENU') b inner join displaystringview on b.ManagementPackid=ltstringid
    where languageCode='ENU' where displayname ='SCCM Management Pack'
    Roger

  • How  to  generate  an  alert  from  within  a  workflow?

    Hi Experts,
    Let  me  describe  my  scenario. Presently  I  am  working  in  CRM 5.0. There is a need  to generate an alert from my workflow . This alert   should  be generated in the Web Client in  a  particular tab only.
      Now I have identified a function module called  'SALRT_CREATE_API'  which can be  used to generate alerts. But  in  that  function  module  one  of  the  import  parameters is   'IP_Category'  which accepts  the category of the alert . Now the  alerts  in  the WebClient do not have any such thing as 'Alert Category' . They only possess 'Alert Id' and 'Alert Class'. (spro => SAP Reference Img => Customer Relationship Management => Interaction Center Webclient =>Basic functions => Define Alert  and Alert Profiles ).
    So  please suggest  me  some  solution.
    Thanks & Regards ,
    Samrat Dutta

    Hi,
    I am not sure whether you have gone through this documentation:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/732041c877f623e10000000a155106/content.htm
    Which mentions that you will have to maintain the Alert Category. You can use transaction SALRTCATDEF to define your alert. You will have to maintain the Business Object from where you are triggering the alert.
    If you need it via Business workflow then you can see the documentation:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/8f507464246353e10000000a11466f/content.htm
    Hope this helps,
    Sudhi

  • Has anyone else received a phishing, "Urgent Alert From Apple Support"? It came to my actual iCloud email address.

    The message is very clearly bogus, full of errors of every kind, right from the start: "Dear Apple Custumer,"
    The fact that it came to my own iCloud address worries me since usually such schemes are to a broad group, like "[email protected]"
    I have forwarded the email, with Long Headers, to the fraud-combating websites. Can't find any hint on apple.com/support as to where at Apple itself to direct it.

    Re: Has anyone else received a phishing, "Urgent Alert From Apple Support"? It came to my actual iCloud email address.
    YES today in the UK, the email text is as below, together with several Links to "Apple" sites and an Apple logo and European support address.
    Fairly crude but could fool naive users.
    Any one know how to get to the addresses behind the links without clicking them?  Just copying and pasting as plain text doesn't seem to work. Any other way just copies the Hyperlink.
    Scam Text in square brackets:
    [This is the final notice to inform you as of 30 - January - 2015 that you have not yet updated your account information. Under "Know your Customer" legislation Apple Inc is required to perform a verification of your information, failure to do so will result in account termination in less than 48 hours.
    To stop the termination of your Apple and iCloud please validate your account information before the deadline.
    Please continue to Validate your Apple/iCloud ID »
    Sincerely,
    Apple Support]

  • Early watch alert from Solution manager

    Hi ,
    I have been receiving the earlywatch alerts from Solution manager to my mailbox.
    But this week I didn't receive early watch report . I am getting all other alerts through solution manager to my mailbox.
    I checked in the receipients list and my emailID is there and when I checked in SOST in solution manager I can't see that the report in any status there.
    What will be the probelm?
    Please do reply to this query.
    Thanks
    Gayathri.

    Subhash,
    Thanks for the reply, I checked that already.
    I checked and found that in Early watch report is with status data available , but not send .
    Its showing that the job SM:EXEC SERVICES has to run.
    This job has failed in Solution manager with the error as follows.
    ABAP/4 processor: EXPORT_TABLE_UPDATE_CONFLICT
    Job cancelled
    Thanks
    Gayathri

Maybe you are looking for

  • IPhone 4, Home button not working, stuck in recovery mode and boots straight into voice control.

    After trying everything and failing I still cant work out why this is happening. I cant restore my phone in itunes, just get an error. My phone boots into voice control for no reason and to top it off the home button stopped working along with all th

  • Time machine - 2 problems I can't solve

    Time Machine problems... I have them. And I have given up after spending hours googling, reading, trying and getting nowhere. I really hope there is some experts out there who have the time and energy to help me out. So, here goes. Crossing my finger

  • Ship to and Bill to country code issue

    The ship to and bill to on the invoice for proforma is not printing the country if being shipped to France  All other countries print just fine...it is only France that will print (see the example below).  Anyone have an idea as to why?  Customer Mas

  • .svg file missing portions

    Basically, I'm using another program (Axograph.X) to export a graph as a .svg file. When I open the graph in illustrator, lart portions of it are missing. I'm not getting any error message; just white space where there should be data points. Any help

  • Apex Collections

    When I do a select * from apex_collectionsI always get a "no data found." even though my application tells me that there does indeed exist an apex collection. For debugging purposes, what is the best way to see what is contained in an apex collection