Problem when trying to execute OS Command in Notification Method

Hi gurus,
I am using EMGC 10.2.0.2 on windows XP, I have created a Notification method with a OS Command which is a batch file which intern calls a perl script to send a mail notification. When there is an alert the Alert History logs says that 1 OS Command is executed and show s the bat file name, but I am not getting any mail as expected. I have given the absolute path for bat file. What could be the reason for this and where can I find the logs for this knowing the status of OS command execution details.
Thanks,
Ashok Chava

Hi bazza,
My perl script is running fine in isolation no issues with that. I thought it may be becasue of the some time out issues then I have increased time from 30 second to 120 seconds by changing the property value "em.notification.os_cmd_timeout" in emoms.properties but with out any success. I dont have any logging messages put in the perl script I will check with that also. I have checked bat file by giving some logging messages the bat file eexcuting properly.
Thanks,
Ashok Chava.

Similar Messages

  • Permission problems when trying to execute simple system command

    Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got:
    <%@ page import="java.io.*" %>
    <HTML>
    <BODY>
    <%
        Runtime rt = Runtime.getRuntime();
    Process p = rt.exec("/bin/ls");
    // for reading the output of the program
    // (out of the program is in for us)
    BufferedReader sOut = new BufferedReader(new
            InputStreamReader(p.getInputStream()));
    // read the output
    String line;
    while ((line = sOut.readLine()) != null)
            out.println("line<BR/>");
    %>
    </BODY>
    </HTML>However, when I run this, I get the following:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /research/test.jsp:7
    4: <%
    5: Runtime rt = Runtime.getRuntime();
    6:
    7: Process p = rt.exec("/bin/ls");
    8:
    9: // for reading the output of the program
    10: // (out of the program is in for us)
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    root cause
    java.security.AccessControlException: access denied (java.io.FilePermission /bin/ls execute)
    java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    java.security.AccessController.checkPermission(AccessController.java:546)
    java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    java.lang.SecurityManager.checkExec(SecurityManager.java:779)
    java.lang.ProcessBuilder.start(ProcessBuilder.java:447)
    java.lang.Runtime.exec(Runtime.java:593)
    java.lang.Runtime.exec(Runtime.java:431)
    java.lang.Runtime.exec(Runtime.java:328)
    org.apache.jsp.research.test_jsp._jspService(test_jsp.java:49)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    Seems like it has something to do with the permissions granted to the JVM? I have googled high and low and still haven't found a way to solve it. I've also tried adding grant { permission java.io.FilePermission "file:/bin/ls", "execute"; } to my java.policy file but to no avail. Could somebody point out how to solve this? Thanks!

    I would think it is an OS permission thing rather than java permission
    What user is apache running as on this system?
    Does the user apache is running as have permissions to run these commands, in the directory where you are running them? Try executing them yourself when logged in as that user.
    I would also recommend you read the article [when runtime.exec() won't|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html].
    Cheers,
    evnafets

  • Problems when trying to execute the jarfile

    I am facing a problem while executing a jar file.
    I have got a few .class files, when I run them in jbuilder , they run fine without any problems. Then I create a jar file using the jbuilder archive builder and try to run the jar file in dos prompt. It throws me an exception in one of my classes saying
    cannot instantiate class : com.evermind.server.rmi.RMIInitialContextFactory

    Hi,
    Could you please clarify on how you are trying to
    execute a jar file ? Do you mean that you do something
    like
         java <Classname> -cp <classpath>
    ? What do you do in your java program ? could you
    elaborate a little more ?
    Amlan.

  • Problemas when trying to execute a stored procedure

    hi.
    I'm trying to execute a stored procedure but i'm receiving this error:
    WSIF JCA Execute of operation 'myoperation' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Connection Cache with this Cache Name is Disabled]
    ; nested exception is:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Connection Cache with this Cache Name is Disabled]
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Connection Cache with this Cache Name is DisabledError Code: 17142.
    My bpel was working before and now i can't figure out what is going wrong.
    Thank you.

    'exec' is an sqlplus directive. If you run this query in PHP, try:
    $query = "BEGIN
    load_image('distribuido.JPG', '1');
    END;";
    (you may have to remove the ; after 'END')

  • Problems when trying to migrate from 6.0 to 6i

    Hi,
    I'm having problems when trying to migrate a Designer 6.0 application to 6i.
    When I get to start the migration after having selected the source application, the process fails immediately after I've pressed the button.
    I'm getting the error: CDR-21244: This process has been aborted and the advice to check the log file. But no log file is created.
    I've read Note 234984.1 which gives two suggestions in this situation: That the ORACLE_HOME environment variable is unset, and that the LOG_DIRECTORY_RAU directory is writeable. Both is fulfilled in my situation. However it seems that the migration procedure tries to start imp - I've noticed a short flash with the command prompt screen - and when I try to start imp manually from the command prompt I get errors. I was able to fix this error by setting ORACLE_HOME and ORA_NLS33. But the defining ORACLE_HOME is "illegal" ref. Note 234984.1. Of course I tried to leave it anyway, but that didn't help neither: The migration still dies a quick and silent dead.
    So now I'm stucked. How can I carry on?
    The source is on version 6.0.3.5.0 running on 8.1.5, and the taget is version 6.5.92.1.9 running on 8.1.7.4.
    Regards, Michael

    The migration from Designer 6.0 to 6i requires careful planning. Please read the migration guide on OTN (http://www.oracle.com/technology/products/designer/index.html) for advice and to assist you with the migration.
    Regards
    Sue

  • Getting error -2147221219 when trying to execute OpenMsgStore function on Exchange 2007 Server

    Hello,
      I am getting error -2147221219 when trying to execute OpenMsgStore API on Exchange Server 2007. I have created the Public Folder also on the same server. Also, I have installed the Microsoft Exchange Server MAPI Client and Collaboration Data Objects 1.2.1 on the server. Please do let me know if our previous MAPI / CDO applications would work for Exchange Server 2007 in this environment?
      Also, while executing the Microsoft Exchange MAPI editor when I click on Session -> Logon and Display Store Table I see Err:0x8004010F=MAPI_E_NOT_FOUND in the row type column. The MAPI initialization is successful and in the Display Name I get Public Folders and Mailbox - Administrator. Please let me know how to I make work the MAPI Editor.
      Thanks for your time and cooperation !!
    Thanks & Regards,
    Neel

    Answers in social.msdn.microsoft.com/Forums/en-US/3a2e9489-6137-42fb-95d1-bebcfe2ea138 may solve your problem.
    PR_PROFILE_CONNECT_FLAGS = 0 will also work.

  • Problem when trying to place a post wrt BSP

    Colleagues,
    for a few days i am encountering problems when trying to place a post regarding BSP issue. I am not sure if this is just an IE settings problem or sth on the SDN forum side.
    Another option is to check for customized corporate settings of the current project owner.
    Any cool ideas are warmly welcomed.
    Cheers, Harry
    OK, this has been working fine. So what is the problem on the BSP forum? SAP buddies, please assist!
    Many THX in advance!
    Edited by: Harald Schwenger on May 8, 2008 10:50 AM
    Edited by: Harald Schwenger on May 8, 2008 10:52 AM

    Your launch services database, which stores information about which applications should open certain documents, may need to be repaired. Open the Terminal application found in /Applications/Utilities and paste in this command (all one line):
    System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/La unchServices.framework/Versions/Current/Support/lsregister -kill -r -domain system -domain local -domain user
    Hit the return key, log out and log in.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • I got problem when trying to contact my iphone 4 using facetime,it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

  • I am having the problem when trying to take a panorama picture.   It may only take the first frame or doesn't even start at all when I press the shutter button. even though when i  hold the phone straight up and down, so that camera is at the top

    I am having the problem when trying to take a panorama picture. 
    It may only take the first frame or doesn't even start at all when I press the shutter button.
    even though when i  hold the phone straight up and down, so that camera is at the top on the back and the home button is on the bottom on the front.
    This problem is irritating me....?

    To take panorama
    - ensure that the panorama option is on
    - press the shutter button once
    - you will see a line with an arrow
    - move around in a circle  ( I keep the camera steady and turn myself around in a circle)
    - as you do this you will see the arrow moving across the screen as it captures pictures
    - at the end of the capture, you will be able to see your panorama picture
    I hope that this helps, do report back.

  • How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    Hey tyjox,
    Thanks for the question. After reviewing your post, it sounds like you need to deactivate Find My iPhone on a device that does not work. You will need to work with the family member of the account the iPhone is registered with. I would recommend that you use this article to help you resolve or isolate the issue.
    iCloud: Remove your device from Find My iPhone
    http://support.apple.com/kb/PH2702
    Remove an iOS device you no longer have
    If you no longer have the iOS device because you gave it away or sold it, you need to remotely erase it before you can remove it.
    Sign in to icloud.com/#find with your Apple ID (the one you use with iCloud).If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click Find My iPhone.
    Click All Devices, then select the device.
    Click Erase [device], then enter your Apple ID password. Because the device isn’t lost, don’t enter a phone number or message.If the device is offline, the remote erase begins the next time it’s online. You’ll receive an email when the device is erased.
    When the device is erased, click Remove from Account.All your content is erased and someone else can now activate the device.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a

    I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a second copy, but this is identic with the one I already had in Lightroom, and I can see noe result of the clone process.

    At the moment I would say it is uncertain whether Acrobat is completely ignoring the change, or whether the changes you are making aren't affecting the ink density. I have a suggestion for a test you could make to see which is the case.
    When editing in Photoshop just add a box or mark on the image, for your tests.
    - If this box does not appear in Acrobat, you know Acrobat is not seeing the edit
    - If this box does appear in Acrobat, you know the problem is that your tool for changing ink densities is not taking effect.

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • Problem when trying to print standart invoice crystal report for SAP

    Hi All, I have the following problem when trying to print a system invoice report in crystal reports for SAP
    I pass params and load the report using this code
    Private Sub DisplayThreadReportSeq()
    Dim oView As New frmViewReport
    Dim strReportPath As String = ""
    Dim strParamName As String = ""
    Try
    Dim CR As New ReportDocument
    CR.Load(oReport.CrstPath)
    ' Declare the parameter related objects.
    SetReportValues(CR)
    Dim crParameterDiscreteValue As ParameterDiscreteValue
    Dim crParameterFieldDefinitions As ParameterFieldDefinitions
    Dim crParameterFieldLocation As ParameterFieldDefinition
    Dim crParameterValues As ParameterValues
    ' Get the report's parameters collection.
    For Each oPar As cslParam In oReport.Params
    crParameterFieldDefinitions = CR.DataDefinition.ParameterFields
    crParameterFieldLocation = crParameterFieldDefinitions.Item(oPar.ParName)
    crParameterValues = crParameterFieldLocation.CurrentValues
    crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
    crParameterDiscreteValue.Value = oPar.Value
    crParameterValues.Add(crParameterDiscreteValue)
    crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
    Next
    If pPrint Then
    If oReport.Printer "" Then
    CR.PrintOptions.PrinterName = oReport.Printer
    End If
    CR.PrintToPrinter(IIf(oReport.Copies = "", 1, oReport.Copies), False, 0, 0)
    SBO_Application.StatusBar.SetText("Printed Document Successfully", SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
    Else
    oView.Text = pReport
    oView.TopMost = True
    oView.Viewer.ReportSource = CR
    oView.Hide()
    oView.ShowDialog()
    End If
    Catch ex As Exception
    Util_GenErrorLog("DisplayReport", ex)
    End Try
    End Sub
    This code works fine when the report invoke to print is developed in crystal reports version for .net 2008 or .net 2005
    when trying to print a report standart getting from SAP BO 8.8.1 using this code I getting the following error:
    Error in File C:UsersecombaAppDataLocalTemp5ARInvoiceStandartSap {300B9A68-DF05-4D7B-8F3B-1670A4493BEE}.rpt:
    Error in formula .
    'Shared numberVar SectionTotalMaxHeght;
    A number, currency amount, boolean, date, time, date-time, or string is expected here.
    This report is the standart report that SAP 8.8.1 includes and works fine on SAP.
    I referenced this dlls CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.CrystalReports.Shared, version 10.2.3600
    How I can get these dll´s version for Crystal Report 2008 for SAP Business one or How I can solve this problem
    thanks in advance,
    Ezequiel.

    Hi Ezequiel,
    You can try to search in SAP Business One Reporting & Printing forum section or post there.
    nd.Q

  • Hi There, I have a problem when trying to print either Email or from a web page.

    Hi There,
    I have a problem when trying to print contents fro either Email's or from web pages, the problem started after i opened Google earth and it down loaded Google Chrome i do not like Google chrome so i removed it from my pc via add and remove programmes since then when i try to print an email i get what looks like the computer settings for writing the email and not the text same for web pages, as anyone come across this problem before i can print any word or spreadsheet documents but problem is with email's and web pages.
    Many Thanks.

    Something changed on your system, possibly when Google Chrome installed. It could  be many things, but what it boils down to, is it needs to go back to the way it was. Either by removing whatever else might still be left from the install, or maybe by reinstalling the printer itself.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • GenericServiceFactory initialization problem when trying to load Web servic

    Hi,
    I am making a Guided procedure that calls a webservice. I have created a new Destination Template and was able to load the webservice definition successfully, but when I test the callable object I created for that same webservice y get the error:
    GenericServiceFactory initialization problem when trying to load Web service model for WSDL.
    Somehow I think there is something wrong with the user authentication. The Destination template has a user and password but somehow I think the callable object test is not using this information at all.
    Can anyone help ?
    Thanks in advance

    Hi Hans,
    Have you verified if you can call any external web service calls from your J2EE engine?  Go into the SOA Management / Global settings (if you are on CE - if you're on 7.0 it's in manage WS desintations).
    Look at your proxy settings and set them like your web browser that enables external calls.  For example, in the SAP network I set my global proxy settings on my local J2EE engine to be:
    Proxy host:  proxy
    Proxy port: 8080
    Exclude list:  *.sap.corp
    Does that make sense - have you verified if your settings are correct for your company?
    Regards
    Ginger

Maybe you are looking for

  • How do I sync Game Center games progress with my other devices?

    Is there a way to maintain game progress in Game Center games between devices on the same apple ID?

  • Change of variable text in BEx selection screen

    Hi all, in our BW system the key users are allowed to create queries and also create variables. In some cases, especially for often used info objects like 0DATE the number of variables is increasing very quickly. The reason for this is, that 0DATE is

  • Context Problem when using Use One As Many

    Hi SapGuru's. i have got a requirement in an IDOC To File Interface where the segments in the IDOC are like E1LFA1M->E1LFM1M->E1WYT3M THE Test data is like below <?xml version="1.0" encoding="UTF-8"?> <ns0:IDOC_Test_Mt xmlns:ns0="urn:sap.shoprite.co.

  • I'm stuck! Following the Java Tutorial

    I'm confused :=Q I am following the Java tutorial and am trying to do the ClickMe applet. The html file was saved as text in notepad. I downloaded the ClickMe and Spot source files. They compiled without errors along with the html file. I double chec

  • Calling a java class from asp

    Hello all i have a problem to call a Java class from a asp Here what I do: [JavaSays.java] package JavaCom; public class JavaSays public String Hello() return "Hello world" ; then javareg /register /class:JavaCom.JavaSays /progid:JavaCom.JavaSays md