Calling OCCI from a windows service

Hello, I am trying to call OCCI from a windows service. And as soon as I put in the createEnvironment call the service will not load. I get an Error 1053: The service did not respond to the start or control request in a timely fashion. Anyone else seen this problem? Any ideas?

I'm using 10.2.0.1.0 downloaded a couple of weeks ago.
My english is not so good to completelly understand your last sentence.
Nobody directed me in using OCCI in a service. I had to face the proble to let my I.R. engine write XML data into an XMLTYPE object in Oracle, I downloaded the OCCI library and samples and build some code for my test.
Everityhing seems to work properly using Clob containers, while XMLType columns can be created but I can't read the value as the result of a select.
Anyway, OCCI 10.2.0.1.0 compiled with Visual C++ 2008 (VC9) with a couple of tricks with manifest to use oraocci10.lib (built for VC8) works for me even as a service.
I have to say that this code is in a DLL that I dynamically load and use.
Does it make sense for you?

Similar Messages

  • Call RFC from DELPHI Windows Services Program

    Hi all,
    Are there any way to call RFC from DELPHI Windows Services Program?
    Best regards.
    Munur EBCIOGLU

    Hi again Bhagat,
    1. Yes, it's included on 7.4 ABAP Stack (SAP NetWeaver 7.4 SP8 - Optimized for SAP HANA, Cloud and Mobile - Service Release 2 available now!). In a recent customer, SAP licences GW by user but there are other license model like session licensing: https://store.sap.com/sap/cp/ui/resources/store/html/SolutionDetails.html?pid=0000009470&catID=&pcntry=US&sap-language=EN&_cp_id=id-1385059687642-0
    2. You could install as an AddOn on your 7.3 system, there are many options depending on your desired infrastructure: SAP Gateway deployment options in a nutshell For example our customer have deployed Central Hub Gateway in a standalone stack ABAP to act as an standalone oData bridge between ABAP/nonAbap systems.
    3. You could deploy SAPUI5 apps in 7.x, Java Web Servers or HTTP Web Servers. You must consider your SSO scenario:
    - SSO Logon Tickets. You will need to configurate SSO Logon Tickets between SAP NW Portal & SAP NW Gateway & your backend (ECC, etc). In order to pass SAP session cookie you will need setup SAP Web Dispacther and access portal & gateway throught SAP WD with the same domain.
    - SAML2 Tickets. This scenario lets you provide portal & gateway on different domains enabling SSO. You could configure SAP NW Portal as an Identity Provider and other systems must trust SAP Portal as IdP.
    Cheers

  • Calling Illustrator from a Windows Service

    Hello,
    A project I'm working on has an internal document conversion process that uses Adobe Illustrator.  The conversion script is in Javascript and uses the Illustrator SDK to go through the document and extract some information. We have a script that initiates this by calling Illustrator and instructing it to run the Javascript file.  This whole process works well.
    To make this easier for people to use, we have a program that runs on a server and watches a special directory.  When a file is dropped into that directory, this program notices, runs the script, and saves the output in another folder.  This process works well, too.
    To ensure that this program stays running and starts immediately when the system boots, we would like to run it as a Windows Service.  This is where we run into trouble.  Our program runs fine as a service, except that when we call Illustrator, it just hangs without executing our script.
    I don't see any output or error messages that would help us diagnose the problem.
    I was wondering if anybody else had tried calling Illustrator from a Windows Service, and maybe had some suggestions for getting it working?
    Thanks!
    -----Scott.

    I'm afraid I don't know anything that might help you on this one. I wouldn't have thought Illustrator was doing anything that unusual that might cause running from a Service grief. The only two suggestions I can think of are ones you may already have tried:
    1) check the event viewer -- there might be something there that doesn't show up in stderr or stdout
    2) Try posting in the Scripting forum; it feels like they might be more likely to have tried something like this than people in here. This is typically for plugin development, thoug I don't blame you at all for posting here -- it certainly would have seemed worth a shot to me Anyways, the AI Scripting forum is in:
    http://forums.adobe.com/community/illustrator/illustrator_scripting
    Hopefully someone there will have tried this and can help you out. Good luck!

  • Need to create a PDF Portfolio programatically using the Adobe SDK in C# from a Windows Service.

    What classes/methods should I be using?
    We need to create a PDF portolio from a windows service written in C#.
    We need to merge several PDF documents into a single PDF portfolio from our windows service (programatically).
    I have seen documentation in the Adobe help on how to do it using the Adobe UI, but we need to do this step programatically from our windows servie.
    Thanks!

    You can't access Acrobat from a service - since we won't run in Service mode...only in standard Application mode.  In addition, we don't run on a server.
    But if you were doing this from a standard application - then you'll want to read the JavaScript documentation in the SDK as well as the documents about the .NET/JS bridge.

  • RFC call from a Windows Service

    Hi All,
    I have created a simple windows service which is making an RFC call to R/3 system. This is not working. Whereas the same piece of code written in a windows application projects(exe) works properly. Does anyone had similer issues working with Windows services ? Is it a known issue of RFC calls from windows service ???
    Thanks & Regards
    Ganesh Datta

    Hi Juergen,
    After I put the debug statements I figured out that connection to R/3 system is unsuccessful.
    I am using the SAP .Net Connector 2.0. I wrote a windows service which is manually started. Withing my service I am using Single sign on to connect .This is what was causing the problem. If I disable Single sign on and supply userID and password then connection is successful and also subsequent RFC calls.
    I guess within windows service Single sign on does not work.
    Thanks for your reply
    Best Regards
    Ganesh Datta

  • Calling SSIS package from C# Windows Service Fails

    Hi All.
    I've got an SSIS package that reads from an Excel file and populates a database. The Excel file location gets passed in to the package as a variable. Also the Protection Level of the package is set to EncryptSensitiveWithPassword.
    This all works fine when I run the package from Visual Studio or using DTEXEC. When I try to run it from a C# Windows Service though I get the following exception:
    SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft Office Access Database Engine"  Hresult: 0x80004005  Description: "The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively
    by another user, or you need permission to view and write its data.".
    SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Input Excel Connection" failed with error code 0xC0202009.  There may be error messages posted before this
    with more information on why the AcquireConnection method call failed.
    Dedupe Worksheet failed validation and returned error code 0xC020801C.
    One or more component failed validation.
    There were errors during task validation.
    The windows service runs with LocalSystem account and the following code is used to call the SSIS Package:
                    Application app = new Application();
                    Package package = null;
                    app.PackagePassword = "*******";
                    //Load the SSIS Package which will be executed
                    package = app.LoadPackage(@"C:\Projects\DataDedupeMatch\DataDedupeMatch\DataDedupe.dtsx", null);
                    //Pass the varibles into SSIS Package
                    package.Variables["User::FilePath"].Value = e.FullPath.Replace(@"\\", @"\");
                    Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();
    I would really appreciate if someone could help me out with this.
    Thanks in advance,
    Deon

    Instead of hosting the SSIS runtime in your service, you should use a separate host process for your SSIS package.  You're using the Office drivers, which aren't designed or supported for running in long-lived unattended processes like a Windows Service. 
    You can use your own SSIS hosting code, or just use dtexec.exe to host your package.  In either case you would start the child process with
    Process.Start. 
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Call a program via windows service

    Hi! I have write a windows service,and it works. I want to call a .exe file,and my .exe file is signature. The program can not work when I call it through my service. How can I solve my problem? Thanks!

    Hi Hassan,
    Thank you for sharing the code with us! 
    As I understand it, your code handles the situation of an user that is already logged on to an interactive window station (those of you, who need to create a UI-process of a user not yet logged on, could use
    CreateProcessWithLogon, or
    LogonUser to get the token). Because calling CreateProcessAsUser() requires advanced privileges (such as "Replace a process token level", or "Act as part of the operating system", privileges usually not held by a user unless specified so by the security
    policy), the code also implies a service running in the local system account (or equivalent).
    To make it easier to read, I'll post here the C#-version of your code:
    using System;
    using System.Runtime.InteropServices;
    using System.Diagnostics;
    namespace WindowsServiceLaunchingExe
    class NativeMethods
    [StructLayout(LayoutKind.Sequential)]
    public struct PROCESS_INFORMATION {
    public IntPtr hProcess;
    public IntPtr hThread;
    public System.UInt32 dwProcessId;
    public System.UInt32 dwThreadId;
    [StructLayout(LayoutKind.Sequential)]
    public struct SECURITY_ATTRIBUTES {
    public System.UInt32 nLength;
    public IntPtr lpSecurityDescriptor;
    public bool bInheritHandle;
    [StructLayout(LayoutKind.Sequential)]
    public struct STARTUPINFO {
    public System.UInt32 cb;
    public string lpReserved;
    public string lpDesktop;
    public string lpTitle;
    public System.UInt32 dwX;
    public System.UInt32 dwY;
    public System.UInt32 dwXSize;
    public System.UInt32 dwYSize;
    public System.UInt32 dwXCountChars;
    public System.UInt32 dwYCountChars;
    public System.UInt32 dwFillAttribute;
    public System.UInt32 dwFlags;
    public short wShowWindow;
    public short cbReserved2;
    public IntPtr lpReserved2;
    public IntPtr hStdInput;
    public IntPtr hStdOutput;
    public IntPtr hStdError;
    [StructLayout(LayoutKind.Sequential)]
    public struct PROFILEINFO {
    public int dwSize;
    public int dwFlags;
    [MarshalAs(UnmanagedType.LPTStr)]
    public string lpUserName;
    [MarshalAs(UnmanagedType.LPTStr)]
    public string lpProfilePath;
    [MarshalAs(UnmanagedType.LPTStr)]
    public string lpDefaultPath;
    [MarshalAs(UnmanagedType.LPTStr)]
    public string lpServerName;
    [MarshalAs(UnmanagedType.LPTStr)]
    public string lpPolicyPath;
    public IntPtr hProfile;
    internal enum SECURITY_IMPERSONATION_LEVEL {
    SecurityAnonymous = 0,
    SecurityIdentification = 1,
    SecurityImpersonation = 2,
    SecurityDelegation = 3
    internal enum TOKEN_TYPE {
    TokenPrimary = 1,
    TokenImpersonation = 2
    [DllImport("advapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
    private static extern bool CreateProcessAsUser(IntPtr hToken, string lpApplicationName, string lpCommandLine, ref SECURITY_ATTRIBUTES lpProcessAttributes, ref SECURITY_ATTRIBUTES lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, ref STARTUPINFO lpStartupInfo, ref PROCESS_INFORMATION lpProcessInformation);
    [DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    public static extern bool DuplicateTokenEx(IntPtr hExistingToken, uint dwDesiredAccess, ref SECURITY_ATTRIBUTES lpTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, ref IntPtr phNewToken);
    [DllImport("advapi32.dll", SetLastError = true)]
    private static extern bool OpenProcessToken(IntPtr ProcessHandle, int DesiredAccess, ref IntPtr TokenHandle);
    [DllImport("userenv.dll", SetLastError = true)]
    private static extern bool CreateEnvironmentBlock(ref IntPtr lpEnvironment, IntPtr hToken, bool bInherit);
    [DllImport("userenv.dll", SetLastError = true)]
    private static extern bool DestroyEnvironmentBlock(IntPtr lpEnvironment);
    private const short SW_SHOW = 1;
    private const short SW_SHOWMAXIMIZED = 7;
    private const int TOKEN_QUERY = 8;
    private const int TOKEN_DUPLICATE = 2;
    private const int TOKEN_ASSIGN_PRIMARY = 1;
    private const int GENERIC_ALL_ACCESS = 268435456;
    private const int STARTF_USESHOWWINDOW = 1;
    private const int STARTF_FORCEONFEEDBACK = 64;
    private const int CREATE_UNICODE_ENVIRONMENT = 0x00000400;
    private const string gs_EXPLORER = "explorer";
    public static void LaunchProcess(string Ps_CmdLine)
    IntPtr li_Token = default(IntPtr);
    IntPtr li_EnvBlock = default(IntPtr);
    Process[] lObj_Processes = Process.GetProcessesByName(gs_EXPLORER);
    // Get explorer.exe id
    // If process not found
    if (lObj_Processes.Length == 0)
    // Exit routine
    return;
    // Get primary token for the user currently logged in
    li_Token = GetPrimaryToken(lObj_Processes[0].Id);
    // If token is nothing
    if (li_Token.Equals(IntPtr.Zero))
    // Exit routine
    return;
    // Get environment block
    li_EnvBlock = GetEnvironmentBlock(li_Token);
    // Launch the process using the environment block and primary token
    LaunchProcessAsUser(Ps_CmdLine, li_Token, li_EnvBlock);
    // If no valid enviroment block found
    if (li_EnvBlock.Equals(IntPtr.Zero))
    // Exit routine
    return;
    // Destroy environment block. Free environment variables created by the
    // CreateEnvironmentBlock function.
    DestroyEnvironmentBlock(li_EnvBlock);
    private static IntPtr GetPrimaryToken(int Pi_ProcessId) {
    IntPtr li_Token = IntPtr.Zero;
    IntPtr li_PrimaryToken = IntPtr.Zero;
    bool lb_ReturnValue = false;
    Process lObj_Process = Process.GetProcessById(Pi_ProcessId);
    SECURITY_ATTRIBUTES lObj_SecurityAttributes = default(SECURITY_ATTRIBUTES);
    // Get process by id
    // Open a handle to the access token associated with a process. The access token
    // is a runtime object that represents a user account.
    lb_ReturnValue = OpenProcessToken(lObj_Process.Handle, TOKEN_DUPLICATE, ref li_Token);
    // If successfull in opening handle to token associated with process
    if (lb_ReturnValue) {
    // Create security attributes to pass to the DuplicateTokenEx function
    lObj_SecurityAttributes = new SECURITY_ATTRIBUTES();
    lObj_SecurityAttributes.nLength = Convert.ToUInt32(Marshal.SizeOf(lObj_SecurityAttributes));
    // Create a new access token that duplicates an existing token. This function
    // can create either a primary token or an impersonation token.
    lb_ReturnValue = DuplicateTokenEx(li_Token, Convert.ToUInt32(TOKEN_ASSIGN_PRIMARY | TOKEN_DUPLICATE | TOKEN_QUERY), ref lObj_SecurityAttributes, SECURITY_IMPERSONATION_LEVEL.SecurityIdentification, TOKEN_TYPE.TokenPrimary, ref li_PrimaryToken);
    // If un-successful in duplication of the token
    if (!lb_ReturnValue) {
    // Throw exception
    throw new Exception(string.Format("DuplicateTokenEx Error: {0}", Marshal.GetLastWin32Error()));
    else {
    // If un-successful in opening handle for token then throw exception
    throw new Exception(string.Format("OpenProcessToken Error: {0}", Marshal.GetLastWin32Error()));
    // Return primary token
    return li_PrimaryToken;
    private static IntPtr GetEnvironmentBlock(IntPtr Pi_Token) {
    IntPtr li_EnvBlock = IntPtr.Zero;
    bool lb_ReturnValue = CreateEnvironmentBlock(ref li_EnvBlock, Pi_Token, false);
    // Retrieve the environment variables for the specified user.
    // This block can then be passed to the CreateProcessAsUser function.
    // If not successful in creation of environment block then
    if (!lb_ReturnValue) {
    // Throw exception
    throw new Exception(string.Format("CreateEnvironmentBlock Error: {0}", Marshal.GetLastWin32Error()));
    // Return the retrieved environment block
    return li_EnvBlock;
    private static void LaunchProcessAsUser(string Ps_CmdLine, IntPtr Pi_Token, IntPtr Pi_EnvBlock) {
    bool lb_Result = false;
    PROCESS_INFORMATION lObj_ProcessInformation = default(PROCESS_INFORMATION);
    SECURITY_ATTRIBUTES lObj_ProcessAttributes = default(SECURITY_ATTRIBUTES);
    SECURITY_ATTRIBUTES lObj_ThreadAttributes = default(SECURITY_ATTRIBUTES);
    STARTUPINFO lObj_StartupInfo = default(STARTUPINFO);
    // Information about the newly created process and its primary thread.
    lObj_ProcessInformation = new PROCESS_INFORMATION();
    // Create security attributes to pass to the CreateProcessAsUser function
    lObj_ProcessAttributes = new SECURITY_ATTRIBUTES();
    lObj_ProcessAttributes.nLength = Convert.ToUInt32(Marshal.SizeOf(lObj_ProcessAttributes));
    lObj_ThreadAttributes = new SECURITY_ATTRIBUTES();
    lObj_ThreadAttributes.nLength = Convert.ToUInt32(Marshal.SizeOf(lObj_ThreadAttributes));
    // To specify the window station, desktop, standard handles, and appearance of the
    // main window for the new process.
    lObj_StartupInfo = new STARTUPINFO();
    lObj_StartupInfo.cb = Convert.ToUInt32(Marshal.SizeOf(lObj_StartupInfo));
    lObj_StartupInfo.lpDesktop = null;
    lObj_StartupInfo.dwFlags = Convert.ToUInt32(STARTF_USESHOWWINDOW | STARTF_FORCEONFEEDBACK);
    lObj_StartupInfo.wShowWindow = SW_SHOW;
    // Creates a new process and its primary thread. The new process runs in the
    // security context of the user represented by the specified token.
    lb_Result = CreateProcessAsUser(Pi_Token, null, Ps_CmdLine, ref lObj_ProcessAttributes, ref lObj_ThreadAttributes, true, CREATE_UNICODE_ENVIRONMENT, Pi_EnvBlock, null, ref lObj_StartupInfo, ref lObj_ProcessInformation);
    // If create process return false then
    if (!lb_Result) {
    // Throw exception
    throw new Exception(string.Format("CreateProcessAsUser Error: {0}", Marshal.GetLastWin32Error()));
    To use the code, create a new windows service project, and add code like the following one:
    using System;
    using System.Diagnostics;
    using System.ServiceProcess;
    using System.Timers;
    namespace WindowsServiceLaunchingExe
    public partial class ExeLauncherSvc : ServiceBase
    public ExeLauncherSvc() {
    InitializeComponent();
    Timer timer;
    protected override void OnStart(string[] args) {
    timer = new Timer(5000);
    timer.Elapsed += (sender, e) => {
    try {
    timer.Stop();
    EventLog.WriteEntry("WindowsServiceLaunchingExe", "Launching process...");
    NativeMethods.LaunchProcess(@"C:\Windows\notepad.exe");
    } catch (Exception ex) {
    EventLog.WriteEntry("WindowsServiceLaunchingExe", ex.Message);
    timer.Start();
    protected override void OnStop() {
    Because NativeMethods.LaunchProcess() throws exceptions on errors, be sure to enclose calling code in a try/catch-block.
    I also would recommend reading this:
    Stephen Martin - The Perils and Pitfalls of Launching a Process Under New Credentials
    http://asprosys.blogspot.com/2009/03/perils-and-pitfalls-of-launching.html
    Stephen Martin - Launch Process From Service (code download)
    http://www.asprosys.com/Downloads/LaunchProcessFromService.zip
    Marcel

  • Unable to start Oracle Process Manager from the windows services for OBIEE

    Hi,
    I have OBIEE 11g installed on a 32-bit windows machine. Of the two windows services installed, I am unable to start the Oracle Process Manager. When I try to start it I get the following error:
    Error 1053: The service did not respond to the start or control request  in a timely fashion.
    At the back end, this service is calling the file opmn.exe which is placed at MIDDLEWAREHOME\Oracle_BI1\opmn\bin. On trying to execute this file the error we get is:
    The procedure entry point longjmp could not be located in the dynamic link library orauts.dll
    I have tried replacing the orauts.dll file, but to no avail.
    Please let me know if you have any clue regarding what is to be done.
    Thanks
    Naman

    Hi Naman,
    This error occurs for the following reasons,
    *Path variable is not set properly
    *Multiple Oracle homes exists in the same machine.
    Follow the below steps and let me know if it works,
    1. Select My Computer -> Right Click -> Properties
    2. In the System Properties screen go to Advanced Tab
    3. Click on Environment Variables
    4. In the System Variables section select PATH variable & Click edit
    5. Now you will find that it will contain invalid directories. Remove the incorrect entries. This may happen when you have multiple oracle homes in the same machine
    6. Restart the service.
    Rgds,
    Dpka

  • Calling Tuxedo from java web service

    i am new to tuxedo,i have developed web service in javax-ws.now i want to call tuxedo server from my web service,please any one let me guide how to do such thing.
    if any one have any related information please share with me.its urgent.
    Thanking You

    Hi,
    Thanks for valuable information and quick response.
    I need more information on the same line. As all suggestion given by you required license assuming our component running in another JEE environment. Is there any option available which doesn't required any additional cost?
    If not can you provide estimate cost of license for below option.
    1. Jolt
    2. Salt
    3. JCA adapter of Tuxedo
    Awaiting for your reply. Thanks in advance.
    Regards,
    Kiran Sankpal
    Edited by: user12023492 on Feb 9, 2010 10:08 PM
    Edited by: user12023492 on Feb 9, 2010 10:08 PM

  • Calling Webdynpro from a Portal service

    Hi,
    I am new to EP. I have a task where i have to write a Portal service which has to call a prewritten Webdynpro. Can someone guide me as to how I can call WebDynpros from Portal services.
    Thanks,
    Sudhir

    Hi Sudhir,
    That makes no sense. Portal Services are "faceless components", i.e. they have no user interface. WD is just all about UI. How should that kind of integration work / make sense?!?!
    Hope it helps nevertheless
    Detlev

  • Reg: Calling Function from an ESB Service

    I receive the following error while calling a db function returning a number value, using db adapter service
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:Server</faultcode><faultstring>oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.xml.parser.v2.XMLDOMException: invalid namespace http://xmlns.oracle.com/pcbpel/adapter/db/SOABPEL/FN_NEW_LOAN_APPLICATION/ for prefix xmlns
         at oracle.xml.parser.v2.XMLElement.setAttributeNS(XMLElement.java:1015)
         at oracle.tip.esb.utils.DOMUtil.copyContentsTo(Unknown Source)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(Unknown Source)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    </faultstring><faultactor></faultactor></env:Fault></env:Body></env:Envelope>
    Please suggest.
    Thanx
    AJ

    Hi AJ,
    I am also running into similar exception. In my case I am working with eBiz adapter making a PL/SQL procedure call with in/out parameters. Can you please give little more details about the patch you applied.
    Thanks in advance.
    Regards,
    Rajesh

  • Printing Crystal Report to Printer from Windows Service

    Hello Support,
    We are currently using 13.0.3.612 version of Crystal report. We want to print the report to the printer from the windows service. For printing the report to the printer we are using the “PrintOutputController.PrintReport” method. At our end on the Windows 8 machine this method is giving following error:
    Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
    StackTrace:    at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)
       at PMLWLibrary.CrystalReport.LoadReports()
    And on the Windows 7 machine the report is sent to the print spooler, however the report is not printed on the printer. Not sure what could be causing the issue. Can you please let us know what could be causing the issue.

    Hi Brian,
    Thank you for your response.
    We tried running the service under the domain user account as well which has access to the printer, but even this fails. Further, from the regular .net application when we try to print the report to the printer, it directly prints the report without displaying any print window. So I assume that even from the service no print window should be launched. Can you please confirm on this.
    We are attaching herewith the code snippet which we have used to print to printer through the service. Can you please review the same and let us know if we are missing something here.
    Dim printReportOptions As New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions
    Dim printOutputController As New CrystalDecisions.ReportAppServer.Controllers.PrintOutputController
    Dim rptClientDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument
    rptClientDoc = ReportDocument.ReportClientDocument
    printReportOptions.PrinterName = "\\pc2\HP LaserJet 1015"
    printReportOptions.JobTitle = [Enum].GetName(GetType(ReportNames), PrinterSetting)
    printReportOptions.Collated = False
    printReportOptions.AddPrinterPageRange(1, 1)
    rptClientDoc.PrintOutputController.PrintReport(printReportOptions)

  • Windows service does not stop when DB is shutdown from SQL*Plus

    I have a 11g XE DB in a Windows 7 machine.
    The installation has created a Windows service called OracleServiceXE. It's status is STARTED.
    I then login to SQLPLUS as sysdba and do a shutdown immediate;
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Problem is, when I refresh the services, the OracleServiceXE is still showing as STARTED.
    If I use the listener control to stop the listener the Windows service OracleXETNSListener changes status to BLANK.
    Why is this?

    tvCa-Oracle wrote:
    That service is a prerequisite Windows service to be able to start the database, but it is not the status of the database itself.
    When you do start the database, he may or may not start the service automatically (not sure there), but it is a needed service, for each database SID, on Windows.
    If you want to know what it is, open Task Manager or Process Explorer, only start the service (not the database), and see which OS process is launched.
    AFAIK, this is only on Windows, there's no comparable component on Linux/Unix for this.
    The Windows service OracleServiceXE has c:\app\oracle\product\11.2.0\server\bin\ORACLE.EXE XE as the Parth to executable.
    If I click on the Services tab in Task manager, then right-click the OracleServiceXE and click Go to process, it show the oracle.exe in the processes tab.
    If stop it, the service, from the Windows service control, the oracle.exe disappears and we cannot login to the DB.
    If we start the service from the windows service control, the oradim.exe appears, then a second later the oracle.exe appears. Once the DB status of the Windows service is STARTED, the oradim.exe disappears.
    So, I can start and stop the oracle DB with the Windows service. But If I stop the DB from sql*plus the the service is not stopped....

  • Windows 8.1 & Skype: how to call a contact from the Windows Contact List?

    Hi  I just added a contact on Win 8.1 Surface. When I try to call directly from the windows contact list I get a message that skype has been replaced by skype for desktop. When I remove the skype app (and keep skype for desktop) calling from the list is also not possible: I get a message that no app is associated (message-skype-com) Is there a way around it? Or is it currently not possible to call a skype contact from windows contacts? 

    Hi, Pancake12,
    Because I am not certain I an interpreting what you mean - although it looks quite literal - I am going to provide three separate pieces of information:
    - To remove a contact's name from your Skype sign-in window, please refer to the instruction in this FAQ article - using their account name, not yours:  https://support.skype.com/en/faq/FA11070/how-can-i​-remove-my-skype-name-from-the-sign-in-screen-in-s​...
    - In case you mean removing a contact from the Skype Home Screen when you say, "sign in window," unfortunately, we cannot do this.  Skype has some arbitrary algorithm which places recently contacted people on the Home Screen.
    - In case you mean removing a contact from your contact list, here is an FAQ with the details how to do this:  https://support.skype.com/en/faq/FA421/how-do-i-or​ganize-my-contacts   In Windows, it's as easy as highlighting by single-clicking a contact's name, right-click, and choose Remove from Contacts or Block.
    Hope this helps!
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Excel Automation with Interop - Windows Service - Microsoft Excel cannot access the file

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file:
    Unhandled exception Occured : 'Microsoft Excel cannot access the file 'bla.xls'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another program.
    The workbook you are trying to save has the same name as a currently open workbook.'.'
    The code snippet used to open the file:
    xlApp = new Application();xlApp.Visible = false;xlApp.UserControl = false;xlApp.Application.ScreenUpdating = false;xlApp.DisplayAlerts = false;xlWorkbook = xlApp.Workbooks.Open( Filename: filePath,  UpdateLinks: 2,  IgnoreReadOnlyRecommended: true, Editable: false);
    The console app and windows service are running on a Win Server 2008 64-bit OS with Excel 2013 32-bit installed. The service is running with a special user account, which has all the right permissions on accessed files and folders. The excel process is also
    started with the same account (I cheched that one). 
    I already tried to do the following, but to no avail:
    Run excel.exe /automation -> worked fine
    Created the folders and also gave full control to the account under which the service is run (even gave full control to Everyone)
    C:\Windows\SysWOW64\config\systemprofile\Desktop
    C:\Windows\System32\config\systemprofile\Desktop
    Configured DCOM
    Excel Application -> Identity -> Specific user account
    Excel Application -> Identity -> Interactive User
    Excel Application -> Security -> Launch permissions -> Everyone full control
    Several combinations of the above
    So I really am stuck with this problem right now. Any input on this is appreciated.

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file
    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office
    may exhibit unstable behavior and/or deadlock when Office is run in this environment.
    If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side.
    If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
    You can read more about that in the
    Considerations for server-side Automation of Office article.

Maybe you are looking for