Automation server can't create object when calling a jsp from a button

Hello,
I have created the following jsp that allow me to execute an external program that is located on the client side:
<script language="JavaScript" type="text/javascript">
<!--
function execAppli(app)
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.Run(app+".exe", 1, true);
-->
</script>
If I call this jsp in a simple html page is works correctly when i call it from a button in apex (3.0) I got the error message Automation server can't create object.
Any idea ?
Thanks,
Claude-Alain

Hi Claude,
Just be sure that you really (like really) trust your endusers, because I can see some huge opportunities for exploiting that JavaScript routine you've shown. If you're not taking steps to prevent cross site scripting (search this forum or Google for details on what that is), then it's not beyond the bounds of possibility for someone to do something 'nasty' which would do horrible things to your end users if your executing a program on their client machines without any warning or validation of what that program actually does.
Sometimes it's best to work backwards from the point of view of....what if you walk into work one morning and find that 400 end users machines have had their hard-drives wiped because the script arbitrarily executes whatever command you pass to it? Then you can perhaps see that what sometimes looks like a good idea might not be such a good idea after all ;)

Similar Messages

  • Error message: Automation server can't create object

    Hello
    I'm currently receiving the error message: 'Automation server can't create object' when trying to view reports. This only happens when i try to view them through the IIS server using the .net launchpad. It happens with both reports that i have produced and Feature example reports, it also happens from both client machines and the server.
    Any ideas on how to fix this issue?
    regards
    Matt

    Hi,
      I am not sure if you still are having this issue. In my experience I have seen this issue if for all the BO related services the rights are not proper. These have to be given from dcomconfig.
    Hope this helps
    Amit

  • ERROR: Automation server can't create object

    Hi,
    I am at my wits end, and I hope you can help me. I have
    compiled a Webhelp project that runs just fine in Firefox (with the
    exception of expanding text but blah blah blah... :P)
    When I compile the same project in IE, I get an page loading
    error that tells me that "Automation server can't create object"
    (with reference to 'whskin_pdfhtml.html' in a file path, and my ToC
    is not visible.
    My tester, who is on another machine in another location,
    tells me HIS ToC loads fine, but he gets an out of memory error at
    line 59.
    I have trawled thru these forums for an hour now, and I am no
    closer to solving this problem. I have tried creating a brand new
    empty project with one topic and I get the same error.
    Any ideas on what's happening?
    Of course, we have a demo tomorrow at 6am.
    thanks

    Guessing here.
    1] You have created webhelp pro when you don't have RoboHelp
    Server installed on the server.
    2] Your source has some output files in it. The topic
    concerned being the one that gives the memory error. This result is
    what you get when you view in RoboHelp an output file that has been
    imported into the source. I don't know whether it gives the same
    error in the output again.
    Or are you viewing the help locally instead of from a server?
    What version of IE.

  • Error: Internal/Bug( #609) Automation server can't create  object

    Hi Friends,
    I am new to Oracle BPEL.
    I am getting the following error message when I click Flow,Audit and Debug tabs after deploying the process.
    Error: Internal/Bug( #609) Automation server can't create object
    Had anybody faced this problem and resolved it?

    IIRC this can be down to browser security setting. You may find you needs to turn some security options on (or at least set to 'prompt' under tools- > internet settings -> secuirty - > custom level... etc

  • Automation server can't create object ActiveXObject jsp

    Hi
    Below code snippet is completely working fine on IE when it is embedded in an HTML document.
              var fso = new ActiveXObject("Scripting.FileSystemObject"); // creating a Scripting FileSystemObject.
              var fh = fso.CreateTextFile("data.xml", true); // creating a file handler variable which is pointing to the given file.
              fh.WriteLine(str); // Writing str value to file through file handler variable.
              fh.Close(); // closing the file handler object.
    But when I am embedding the same snippet in a JSP and trying execute on the same IE, it is failing at ""var fso = new ActiveXObject("Scripting.FileSystemObject");"" and throwing a javascript error as "automation server can't create object".
    I have gone through google and could not identify what might gone wrong.
    if some had come across the same scenario, pls throw some light on this.
    Thanks.

    Pretty sure there is a forum specifically for JSP.
    But when I am embedding the same snippet in a JSP and trying execute on the same IEJSP executes on the client not in IE.

  • Automation server can't create object SapROTWr.SapROTWrapper Wrapper

    Hi,
    I am trying to create Activex object SapROTWr.SapROTWrapper Wrapper from HTML page, but it returns the error "automation server can't create object"
    it work fine in IE6 with windows XP and SAP GUI 640
    but the error is thrown with windows 7 + IE 8 + SAP GUI 720.
    please help on this.
    Regards
    Ramakrishna Reddy
    Edited by: Ramakrishna Reddy on Nov 5, 2010 12:32 PM

    Hi,
    ActiveX control may not be registered on your machine. It may have been
    removed/cleaned from your machine, but one of its other components in the
    form of an IE Addon is still installed on your machine.
    Try running IE8 in no-Addons mode. Start>(All) Programs>Accessories>System
    Tools>Internet Explorer (no-Addons)
    Regards
    Nagaraju

  • Automation server can't create object.

    This is my kind request to redirect you techies on my problem> I have posted same thing in some old thread.But as its not a good practise,I m starting new thread.
    See the post:
    http://forum.java.sun.com/post!reply.jspa?messageID=10265047
    I m using tomcat server.
    My problem is more like Java/J2EE webApp related stuff,where server side code is not able to do some thing on client side. Again,this is my problem:
    </br>
    Looks like Java script error. All the alerts are coming,but problem comes,when execution comes on line, </br>
    var outlookApp = new ActiveXObject("Outlook.Application");
    </br>
    The same code,if given in HTML file on cleint side,works fine.
    </br>
    Basically it attaches a docuement in outlook,on client side. Btway when i go for view source of the page from browser,i am not able to get the same code,but it gives me some frameset of Documentum WebTop. Hope that s not creating a trouble.. See Its code,
    </br>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="com.documentum.webcomponent.library.contenttransfer.export.ExportContainer" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    function sendMail() {
    // Construct a mailto: URL with all the details:
    alert("javascipt called");
    var outlookApp = new ActiveXObject("Outlook.Application");
    var nameSpace = outlookApp.getNameSpace("MAPI");
    mailFolder = nameSpace.getDefaultFolder(6);
    mailItem = mailFolder.Items.add('IPM.Note.FormA');
    mailItem.Subject="CUSTOMER SERVICE";
    mailItem.To = "[email protected]"; //document.frmM.txtEmail.value;
    mailItem.HTMLBody = "SOME HTML CODE";
    myAttachments = mailItem.Attachments;
    myAttachments.Add ("C:\\kedar\\3197.txt");
    // mailItem.Attachements.Add ("C:\\kedar\\3197.txt");
    mailItem.display (0);
    alert("javascipt call ends");
    document.location = "mailto:"+comrecip+"?subject="+subject+"&body="+msg+"&attachment="+attach;
    </SCRIPT>
    </head>
    <body onload="sendMail();" >
    <form >
    kedar
    Send Mail to Bank of West and Mimi
    </form>
    </body>
    </html>
    Any idea??
    What changes I should do on my cleint & sever. Browser setting & windows script,i ve already tried.none of them worked.

    Hello sportsfan888,
    Did you try the solution provided on your other thread in regards to the same issue?
    help and support error message
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Error launching office client: Automation Server can't create object

    Hello friends, i would like to know the solution to an expected error in SAP BPC for MS 10.0. Attached the picture with error. I have tested two scenarios.
    1. Client Environment
    OS Windows 8
    Microsoft Office 7.0 (32 bits)
    IE ver 11, version 11.0.9600.17416
    I also have been tested on Server environment and failed too.
    2. Server Environment
    OS Windows 2008 R2
    Microsoft Office 10, 64 bits, ver 14.0.7128.5000
    IE ver 11, version 11.0.9600.17420
    Pls, any recommendation to this situation would be appreciated,
    Thanks in advance,
    Daniel

    Hi Daniel
    Basically when clicking on that link IE is supposed to launch Excel via an Activex/COM call and the error message says it failed to do that.
    The error you are getting is most likely due to the Internet Explorer security settings or due to inability of Internet Explorer to launch the edition of Microsoft Excel installed on that is installed on that workstation.
    Please verify the following things:
    The edition of Internet Explorer you are running is matching the edition of Excel (if you are running Excel 32 bit make sure you are launching the 32 bit edition of IE and not the 64 bit one).
    Under Internet Options -> Security -> (select the appropriate security zone corresponding to your situation) - relax the Activex security until you can find the setting that is preventing Excel to be launched.
    Stefan

  • Explain Error Automation server can't create object........

    Hello All,
    I want to create reference for the ActiveXObject("WINWORD"); Word Application but it is not created it gives the error mentioned so please give possibilities of getting this error.

    Thanks for the reply
    I checked in the Control Panel and on the New Server we have loaded:
    MSXML 4.0 SP2 (KB927978) - version 4.20.9841.0 
    MSXML 6.0 Parser - Version 6.20.3883.8
    On our Old Server we have loaded:
    MSXML 4.0 SP2 (KB927978) - version 4.20.9841.0 
    MSXML 4.0 SP2 (KB936181) - version 4.20.9848.0 
    MSXML 4.0 SP2 Parser and SDK - version 4.20.9818.0

  • Can't create DeliveryBean when call bpel from jsp

    Can't create DeliveryBean when call bpel from jsp
    /*** code ********************************/
    Properties props = new java.util.Properties();
    java.net.URL url = ClassLoader.getSystemResource("context.properties");
    props.load(url.openStream());
    Locator locator = new Locator(domain, "bpel", props);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    NormalizedMessage nm = new NormalizedMessage();
    String convId = GUIDGenerator.generateGUID();
    nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
    nm.addPart("payload", xml);
    NormalizedMessage res = deliveryService.request(processID,operationName, nm);
    /*** code ********************************/
    This code works well in java , but when I use it in jsp on tomcat server,
    the following exception ocured:
    Can not create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: Name ejb is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279) at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53) at workflow.bpel.BpelProcessHelper.invokeSyncBpel(BpelProcessHelper.java:54) at
    Will anyone to tell me where "ejb/collaxa/system/DeliveryBean" bean is?
    Which jar file is this class in ?
    Thanks

    did you try including bpel/lib/orabpel.jar & bpel/system/server/j2ee/ob_ejb_engine.jar in your tomcat classpath.

  • ActiveX can't create object when VB Script called from Labview

    I have an interesting issue that I can't find a solution for. I am using the DIAdem Run Script.VI in Labview to call a script that opens an Outlook object and sends an email. When the script is called via LabView I get this error:
    However, when I manually run the script from the DIAdem script tab it works as expected with no errors.
    This is the code:
    'Begin email send function
    Dim oOutlookApp
    Dim oOutlookMail
    Dim cnByValue : cnByValue = 1
    Dim cnMailItem : cnMailItem = 0
    ' Get Outlook Application Object
    Set oOutlookApp = CreateObject("Outlook.Application")
    ' Create Mail Item
    Set oOutlookMail = oOutlookApp.CreateItem(cnMailItem)
    ' Set Mail Values
    With oOutlookMail
    .To = "[email protected]"
    .Subject = "Report: " & Data.Root.ActiveChannelGroup.Name & " for " & CurrDate
    .Body = "test automatic report emailing with VB Script."
    ' Add Attachement
    Call .Attachments.Add(strLocFileName, cnByValue, 1 )
    ' Send Mail
    Call .Send()
    End With
     (Original code includes Option Explicit and all variables are properly included/declared, I just took the snippet of what's causing the error).
    I have looked at the following threads for info already:
    http://forums.ni.com/t5/DIAdem/Some-errors-when-calling-LabVIEW-VIs-Interactively-from-DIAdem/td-p/2...
    http://forums.ni.com/t5/DIAdem/Active-X-component-cannot-create-object-Diadem-8-1/m-p/71212/highligh...
    -I tried running the script via Windows explorer (per Brad's suggestion) by itself without the DIAdem specific functions and it runs fine.
    http://forums.ni.com/t5/DIAdem/Error-while-runing-diadem-asynchronous-script-from-labview-on/m-p/111...
    -I am not running the scripts asynchronously
    Using Windows 7 (64bit), DIAdem 11.2 and LabView 7.1.1
    Thank you.

    Hey techerdone -
    I'm afraid I personally can't be of much help - I tested your code both from DIAdem and from LabVIEW and each worked without issues in both cases (Outlook closed, Outlook open).  I'm using DIAdem 2011 SP1, LabVIEW 2011, and Outlook 2007...
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Invalid Object when Calling Stored Procedure from JDBC Adapter

    JDBC Outbound adapter in XI 2.0 connected to SQL Server.  I've coded my mapping to format the XSL mapping properly but the Adapter appears to not be able to find the Stored Procedure.  Error message returned is "Invalid Object spStoredProcedureName".
    Does anybody have any clue as to what I'm missing???

    I know this is trivial, but did you use the "full" name of the SP as <schema>.<procname>???
    HTH

  • Run-time error '429': ActiveX component can't create object

    HI,
    I am having the following error in my Excel VBA Run-time error '429': ActiveX component can't create object  when running the following code:
    Dim objDistiller As New ACRODISTXLib.PdfDistiller6
    objDistiller.FileToPDF2 filePath & ".PS", filePath & ".PDF", "T:\Templates\PDFSettings\Standard.joboptions", 1
    This code has been working for years on all our systems, but due to recent security issues our administrator changed all user accounts to not have local administrator rights and now when we run this code we get the above error message.
    I have had a look at DComcnfg.exe to try and get it to work by setting the default property permissions to allow access by Everyone but I am still getting the error.
    Any help would be greatly appreciated.
    Regards.
    Shane Chapman.

    Hi Shane,
    Here is another way to create PDF with Macro using another API than Distiller. This API is faster too.
    Probably this post is not of interest anymore but here is how I have done it:
    1. Download PDFCreator: http://sourceforge.net/projects/pdfcreator/
    2. Use the following Macro:
    Option Explicit
    Sub printPDFmacro()
    'Author : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Print to PDF file using PDFCreator
    ' (Download from http://sourceforge.net/projects/pdfcreator/)
    ' Designed for early bind, set reference to PDFCreator
    Dim pdfjob As PDFCreator.clsPDFCreator
    Dim sPDFName As String
    Dim sPDFPath As String
    '/// Change the output file name here! ///
    sPDFName = "Facture-" & nclient2 & " le " & Format(Date, "yyyy-mm-dd") & ".pdf"
    sPDFPath = "E:\Partenaire Scolaire\Comptabilite\Factures"
    PDFFileName2 = sPDFPath & "\" & sPDFName
    Set pdfjob = New PDFCreator.clsPDFCreator
    With pdfjob
    If .cStart("/NoProcessingAtStartup") = False Then
    MsgBox "Can't initialize PDFCreator.", vbCritical + _
    vbOKOnly, "PrtPDFCreator"
    Exit Sub
    End If
    .cOption("UseAutosave") = 1
    .cOption("UseAutosaveDirectory") = 1
    .cOption("AutosaveDirectory") = sPDFPath
    .cOption("AutosaveFilename") = sPDFName
    .cOption("AutosaveFormat") = 0 ' 0 = PDF
    .cClearCache
    End With
    'Print the document to PDF
    ActiveSheet.PrintOut copies:=1, ActivePrinter:="PDFCreator"
    'Wait until the print job has entered the print queue
    Do Until pdfjob.cCountOfPrintjobs = 1
    DoEvents
    Loop
    pdfjob.cPrinterStop = False
    'Wait until PDF creator is finished then release the objects
    Do Until pdfjob.cCountOfPrintjobs = 0
    DoEvents
    Loop
    pdfjob.cClose
    Set pdfjob = Nothing
    end sub
    Have any questions, just have to poke me.
    Michael

  • Run time error '429' Active X Componenet can't create object

    Hi,
    We are getting this error "Run time error '429' Active X Componenet can't create object" when we open the Input templates.
    No drop down of the Dimension members is  appearing.
    Please help.
    Reagrds,
    Anita

    Hi Anita,
    Please try imeplenting SAP Note: 1508168. Hope this helps.
    Rgds,
    Poonam

  • Visual Basic 6 application moved to new server - activex component can't create object

    I have to move a VB6 application that was running on a Windows 2003 machine to a new Windows 2008 machine.
    This EXE application was using classes defined in a DLL using the Createobject method.
    Now, after the class instance has been created by Createobject, when the program calls the methods error 429 "activex component can't create object" is issued.
    The DLL has been registered on the new server using the command :
    regsvr32 c:\folderx\dllname.dll
    Which is the right forum to get help on this ?
    Thanks.

    Hello,
    As Dave says, VB 6 is no longer supported by Microsoft.
    I’d suggest asking in one of the following third-party forums which support Visual Basic 6.
    VB forums
    VB City
    For further information, see:
    Where to post your VB 6 questions
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Maybe you are looking for

  • OS 9 computers won't connect to OS X Server 10.3.9

    Hi, I just installed Panther server on our network. I've got shares running and all of our OS X computers are connecting nicely. For some reason the few 9.2.2 computers we have won't connect to the server. The server shows up in the chooser, but when

  • Order By on toplink queries.. how to?

    Greetings I use jdev 10.1.3 to create my apps. I also use toplink. I have the default findAll methods that I use to read an entire table into a list. I can then write a comparator and sort the list. My question is there a way to do effectively an ord

  • OracleCommandBuilder create InsertComman with wrong parameters

    I have a simple table: CREATE TABLE test_b (a NUMBER); Then I create command for inserting data to this: DbProviderFactory factory = DbProviderFactories.GetFactory("Oracle.DataAccess.Client"); using (DbConnection connection = factory.CreateConnection

  • Buffer size

    My system is composed of : Dell Dimension 4600 with 512 Mb RAM, NI PCI 6250 serie M, LabVIEW 7.1., NiDaq 7.4., ApplicationBuilder 7.1. I am acquiring at 10000 samples per second with with a buffer size of 40000 samples and 200 samples average and the

  • ARD Login Script Problem

    Hey there. I have a Mac lab that I am controlling with ARD. I know you can use the following UNIX script to login.. osascript <<EndOfMyScript           tell application "System Events"                     keystroke "USERNAME"                     keys