Run ActiveX object through gateway

I have a HTML page embedding ActiveX control which I want to run it through gateway, but it is unsuccessful.
The following is the original code in HTML. It works fine independently.
<OBJECT id="ACGMCtl" classid="clsid:F5D98C43-DB16-11cf-8ECA-0000C0FD59C7"
codebase="../../setupControl/acgm.cab#version=7,0,5,0" border="0" WIDTH="998" HEIGHT="638">
<param name=FileName value="http://128.128.100.20/cache/{D19728D0-3335-4CDD-AAE0-4424D8288A9E}.cgm">
<embed name="ACGMCtl" type="image/cgm" PLUGINSPAGE="../../setupControl/InLineSetup.exe" src="http://128.128.100.20/cache/{D19728D0-3335-4CDD-AAE0-4424D8288A9E}.cgm" border="0" WIDTH="998" HEIGHT="638">
</OBJECT>
The following code is rewritten by gateway, but it cannot run properly through gateway:
<OBJECT id="ACGMCtl" classid="clsid:F5D98C43-DB16-11cf-8ECA-0000C0FD59C7"
codebase="https://abc.com/http://128.128.100.20/gis/setupControl/acgm.cab#version=7,0,5,0" border="0" WIDTH="998" HEIGHT="638">
<param name=FileName value="https://abc.com.hk/http://128.128.100.20/cache/{391ED47F-E425-428B-88EE-3DE4BE23673F}.cgm">
<embed name="ACGMCtl" type="image/cgm" PLUGINSPAGE="https://abc.com/http://128.128.100.20/gis/setupControl/InLineSetup.exe" src="https://abc.com/http://128.128.100.20/cache/{391ED47F-E425-428B-88EE-3DE4BE23673F}.cgm" border="0" WIDTH="998" HEIGHT="638">
</OBJECT>
I try to put the URL https://abc.com/http://128.128.100.20/gis/setupControl/InLineSetup.exe in the browser. An error pop up which state "Internet Explorer cannot download InLineSetUp.exe from abc.com......
After removing the gateway, I can download it properly.
I'm not sure whether this is the reason that I cannot run that ActiveX control through gateway properly. Is there any configuration I can set in gateway profile server to solve that??
Any hints will be greatly appreciated. Thanks!!

Currently we don't support active x objects through the gateway. So there is no configuration to do this.

Similar Messages

  • ActiveX Objects Don't Run Code When Clicked after installing SP3 for 2007

    I have an application that I built using Excel 2013 for a client who uses Excel 2007. Up until mid-December of last year, the application ran fine on the client's machines.    Today we found that their version does not work - specifically,
    clicking an ActiveX command button does not result in code running.  Of course, we double-checked to make sure macros were enabled etc.  We tested other files and got the same result. We tried running them off of thumb drives, to no avail. We
    then learned from their IT guy that a MS security patch, 2984942, was installed on 12/12.  Has anyone experienced any issues running VBA code in either 2007 or 2013 after installing that patch? What am I missing?
    Thanks in Advance.
    Bugless

    I have an application that I built using Excel 2013 for a client who uses Excel 2007. Up until mid-December of last year, the application ran fine on the client's machines.    Today we found that their version does not work - specifically,
    clicking an ActiveX command button does not result in code running.  Of course, we double-checked to make sure macros were enabled etc.  We tested other files and got the same result. We tried running them off of thumb drives, to no avail. We
    then learned from their IT guy that a MS security patch, 2984942, was installed on 12/12.  Has anyone experienced any issues running VBA code in either 2007 or 2013 after installing that patch? What am I missing?
    Thanks in Advance.
    Bugless
    Yes, recent update in December broke ActiveX objects in Office. Solution is simple. Close all instances of Excel and other Office products. Do a wild card search for "exd" files (not exe !).  Delete all the exd files.

  • Run Applet through gateway

    Hi all;
    We have a Web application behind gateway and portal6.0. Web application has applet embedded HTML pages.
    After user logged into portal, the applet is downloaded with correct params and codebase. One of the params is httpServerName, which becomes https://gatewayURL/http://serverName per rewriter as configured.
    But the applet has problem talking to the server through gateway and we don't know why. It works fine without gateway.
    Could the double URL's in the httpServerName be a problem when applet uses it? The applet class is from vendor and we can not modify it. Any input is greatly appreciated. Thanks.
    Joe

    If the applet hasn't been designed to work with SSL, I don't think you can do this.
    A workaround may be to use the Netlet for your applet. Ie. specify a Netlet rule for your applet and set its httpServerName to localhost.
    --Stephen                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ActiveX object

    Is it possible to use an activeX object in aw rather than an
    activeX control
    I am trying to integrate a report writer into an aw program,
    but the
    suppliers have just informed me that it is NOT an activeX
    control, rather an
    activeX object.
    Unfortunately not something I am familiar with.
    Thanks for any help

    I don't know VB script but do know that it is similar to
    Authorware in
    the way it can load ActiveX controls and the like. Often, the
    folks I
    work with, if asked to make something usually web-based work
    locally
    (commonly a Flash project), they'll embed it in VB to allow
    the same
    sort of local filesystem access I could achieve by doing the
    same thing
    in Authorware.
    So, perhaps the VB example they have would shed some light on
    the
    approach? Of course, if VB has a way to load these mysterious
    activeX
    objects which Authorware does not, well, there you go...
    Or, similarly, the 'online sample' on their site? If nothing
    else,
    perhaps that would show how to use this object in IE, which
    you could
    then embed into A'ware?
    I was under the same impression as the others. I don't
    understand what
    an ActiveX object is compared to a control. Simply a data
    file that some
    applications know how to run without the, um, .ocx wrapper?
    In that case, wouldn't it essentially be a .dll?
    Erik
    dave wrote:
    > This was also my understanding, that it meant the same
    thing, but there
    > seems to be no activeX (ocx) file.
    >
    > It's from a company called process academy
    > (
    http://www.processacademy.ca/default.aspx),
    they have report writing
    > software that you can embed in different technologies.
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware
    *The Blankenship Caveat: Note that direct linking to http
    content
    through any Authorware icon will likely fail if a proxy
    server is present!*

  • Recent loss of embedded QT movies on many page for IE7 using ActiveX object

    I have many pages that allow you to select from 4 video formats including QT .mov. An example is at http://www.cwdjr.net/video4/cancanL.php . The QT object uses ActiveX when on IE only(I use Windows conditional comments) and an ordinary object for most other browsers. Until sometime very recently all of these pages worked when you select the QT file. Now QT works on none of them. I suspected the problem might be due to a very recent Windows XP update which is a large one including .NET updates and other things(K8951847) X 86. I was able to restore to a day before this update, but this did not solve the problem. Of course some portions of some updates can not be removed be restoring to an earlier time, so the result does not prove the update was not at fault.
    The involved pages are mostly written in php on the server, so you will not be able to see very much by viewing the source code. To make the problem more simple to view, I made a test page for QT only and with the ActiveX object only. Thus this test page can not be viewed on most browsers that do not support ActiveX. The test page is at http://www.cwdjr.info/broadbandMedia/formatsAX/qtmovtest2.php . Since I serve pages as valid xhtml 1.1 using the correct mime type application xhtml+xml, no IE browser can view the page, since no IE browser can support xhtml served properly. Thus I have a php include at the very top for header exchange between the browser and server. If this says the page does not support the mime type for xhtml, then php using regular expressions, etc is used to rewrite the page as html 4.01 strict for the outmoded browser. Thus don't be surprised if you find some pages in xhtml and others in html when you check properties.
    The ActiveX object used for QT on the test page is below:
    QT MOV
    (CLICK ABOVE LINK IF NO PLAYER)
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="400" height="295" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="autoplay" value="true" />
    <param name="controller" value="true" />
    <param name="kioskmode" value="true" />
    <param name="src" value="http://www.cwdjr.info/movie/cancan.mov" />
    </object>
    Once the page comes up on IE7, it is rather slow to respond. Then it gives:
    "Web site wants to install the following ActiveX control: 'Quick Time' from 'Apple Inc'".
    If you do try to install, nothing happens. In contrast to my regular pages, I added the code show above just before the start of the object. Clicking this on will bring up the QT video, but of course it is not embedded on the desired page. This may work as a temporary fix for IE. I likely can hide it from other browsers by enclosing it in Microsoft conditional comments.
    I would be interested if anyone else has had such a problem recently or any ideas concerning this strange response on IE7. I am talking about viewing the page on the server. Since this is a php page it can be viewed locally only if you have a server installed on your computer and I do not. The pages with the first url example given above have operated well on IE7, Firefox, Opera, Safari for Windows, Flock, K-Meleon, Google Chrome and SeaMonkey. There are a few players that have some issues with some of the formats, but this and the fact that some players may not be installed is the reason for offering the video in 4 formats. I sometimes offer high broadband versions as well as low broadband versions.
    It seems I spend more time correcting IE issues than for all of the other mentioned browsers combined.

    Thanks for the reference. I use nearly no JS anymore, since it often causes problems with true xhtml served properly even when you use external script files. Often one can use php script on the server and avoid these problems. When one serves as true xhtml using the correct mime type of application/xhtml+xml, the page is parsed with a very strict xml parser rather than a loose-as-a-goose html parser. (If one serves a page written in xhtml code as mime text/html, as is incorrectly done perhaps 99% of the time, you are using only html, not xhtml, and are fooling only yourself. The page is parsed as html instead of xhtml.) The xml parser has to be very strict to account for any possible xml content. Even a single, or even several, errors often will not prevent a html page from showing, but even a single error on an xhtml page served properly will often get an error report from the xml parser rather than a view of the page. One of the most laughable examples of misunderstanding of this issue is the home page of Microsoft. It claims to be xhtml. However it is served as text/html and thus would be better written in html 4.01 in the first place. Moreover, if you validate the page as xhtml at w3c, you find hundreds of xhtml errors. If Microsoft served their home page properly as application/xhtml+xml it of course would not work on any IE browser, at least through IE7, since none of these IE browsers can handle true xhtml. In addition the page likely would not show up on any browser if served as true xhtml until all of the hundreds of xml and other errors on the page were corrected. Instead, one likely would get a very long error report rather than a view of the page.
    Back to JS, document.write will not work in properly served xhtml, because it easily could produce code with XML errors. For instance it might produce code that contains an unclosed tag, which is a major xml error that can cause an xml device to malfunction. The xml parser thus rightly finds document.write as an error and prevents viewing of the page. However one often can generate the same code as document.write would produce on a browser with php on the server. The finished code is what gets downloaded to the browser, so the xml parser can check everything in the finished code rather than quess what a JS document.write might produce. And don't think you can sweep document.write under the rug by using an external JS file. The very strict xml parser finds it.
    Of course embed has never been a w3c tag, but rather is a bad hangover from the browser war era, a gift of Netscape. No page that includes embed can validate as w3c xhtml or xml of any flavor, at least through xhtml 1.1. However the page may work, despite the error, if server as text/html.
    All I know is that something has happened recently that has caused my problem to surface. It likely has to do with some change in the XP OS or IE browser. I have tried viewing several pages written by others that use many types of code for .mov, and all of them I have viewed that use an ActiveX embed for the benefit of IE now have the problem I mentioned. If anyone else with XP and nearly all updates, including the very recent one I mentioned, and the most recent version of QT has had this problem, I could be more confident that the problem comes from an external source. If not, it is still possible the sudden change could be something concerning a specific issue that has developed in my computer.
    Again, thanks for the JS reference. Some of this likely can translate into php so I can compare how the JS and php server script I am using relate.

  • What's wrong with a "regular" global in this case? AND WIl ActiveX objects stored in functional globals remain valid (when used in an executable)?

    I've written a plugin layer for a LV executable.  When this layer makes a call to the plugins' initialization functions, I want each plugin library to be able to initialize and maintain its own global memory (where things like VISA resource names or ActiveX objects are stored).  However, I've found that I can't manage to keep my global VIs "alive."  I'm inclined to switch to functional globals, but I suspect that this will be a problem for things like ActiveX objects (that in this particular case reference a CAN interface).  I believe that the functional global will indeed store the object from run to run, it's just that I'm somehow disinclined to think that the object will remain valid.  I think you'll have to re-initialize it.  Can anyone speak for or against this hunch?  (If you can't tell, I'm trying to avoid building a whole little test executable just to debug this problem.)
    I suppose the more profound question is "Why don't the globals stay in memory?"  I'm attaching an image of what the application layer that calls the plugins' intializations looks like.  Next I'm attaching an example of an actual initialization routine.  You'll notice that I've even gone so far as to explicitly open the ref to the global VI that I want to keep in memory.  Then I just leave it there dangling - but it still gets dropped!  In my mind I shouldn't even have to do this, since the dynamically-called subVI "MC_CMO Init.vi" actually initializes the globals and runs with AutoDisposeRef = False. 
    Lastly, this is my first-ever attempt at writting plugin software.  So if you look at my code and have any criticisms/pointers, I'll greatly appreciate them.
    Thanks in advance,
    Nick
    "You keep using that word. I do not think it means what you think it means." - Inigo Montoya
    Attachments:
    AppLayer.JPG ‏60 KB
    InitPlugin.JPG ‏103 KB

    I am not sure if I follow you completely on your work-around.
    Everything I have to say on this topic is based on obesrvations and threads I have read on Info-LabVIEW. Therefore it is subject to corecttion by those who know better.
    LV is smart enough to know when "something" that had been opened, can be closed. It is not perfect.
    If for instance you open a VISA refnum and pass the refnum  to a LV2 AS A REFNUM the refnum in the LV2 stay alive as long as the VI's are running.
    If you start another VI that uses the LV2 to fetch the refnum, it should get a valid ref as long as it starts before the first goes idle.
    You then be able to work with refnum usign the VI launched second as long as stays active.
    I often create action engine that can be invoked where required throughout an application. If the action engines get a ref in one state (like init) and use it another, I will generally write a "tester" that calls the action engine action to test the engine. In this case, my "tester" stays live and it keeps the ref's fresh.
    I suspect if you tried to trick LV you could. If you type cast the ref nums to I32 and stored those in a LV2, I could see how LV could loose track of the resource sharing, but that is something I would avoid.
    So I encourage you to do some experimenting with keeping track of who's running when to see if your work-around will work.
    If you think you understand it better than I explained it, please post.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Error with executable using ActiveX object in ver 7

    I have a top-level VI (version 7 in WindowsXP) that contains an ActiveX control. This ActiveX object further calls several DLL’s, one of which controls the serial port. SubVIs in the top-level VI call this ActiveX object via Invoke Node and Property Node. Everything works in the LabVIEW development environment. The ActiveX object is registered using the “regsvr32” command and is made with Visual C++.
    When I try to build an application of the top-level VI, the executable doesn’t work (giving the error “The server threw an exception.” Error -2147417851). I’ve narrowed the problem down to the ActiveX calls. I’ve tried embedding the ActiveX object and the DLL’s in the executable as support files. I’ve also tried changing the Execution property of the top-level VI from “same as caller” (default) to “standard” (no change) and “user interface” (crashes executable). The application setting “Enable ActiveX server” is checked. I still get the error. Any suggestions?

    I'm not exactly sure what is going wrong, but I have some information that might help. As has been mentioned in some of the referenced posts, Windows has completely different ways of finding DLLs depending on the technology being used.
    When dealing with a COM library, LabVIEW calls CoCreateInstance - a COM method provided by Microsoft to create the object. This method looks in the registery to find the absolute path to the ActiveX DLL. Thus it doesn't matter where your DLL (versus your LV application) is located.
    HOWEVER - If that ActiveX DLL then uses other DLLs via a normal C interface, the rules change. If the ActiveX DLL just links normally (using a .LIB) with these dependent DLLs, then that ActiveX DLL relies on the PATH environment variable to find the DLLs (which typically includes the current directory - and is probably how Chris' app started working). The ActiveX DLL can also call LoadLibrary() directly, and thus can provide an absolute or relative path - raising all sorts of possibilities.
    ACTION ITEM
    Here is my suggestion. Go to www.sysinternals.com and download the File Monitor (http://www.sysinternals.com/Utilities/Filemon.html). Set the filter on the monitor to the name of the EXE (either LabVIEW.exe or your built application). Then run the app. You'll see a lot of entries, but you can then search for the various DLLs in question. Don't be surprised to see FILE_NOT_FOUND errors, you'll get that as Windows probes around the various directories trying to find the DLLs.
    You can do this in both LV and your built app and see the difference in how it searches. That should give you some idea as to what is going wrong. Please feel free to post a follow-up with more questions once you've done this.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Is LabVIEW able to create ActiveX Object for other sw to use?

    I would like to create some ActiveX object from LabVIEW that VB could use it. How do I do it? I only find info about labVIEW use ActiveX created by other SW. Please let me know if LabVIEW has such ability. Thanks.

    You cannot create a new kind of ActiveX object in LabVIEW, but you can use ActiveX to control LabVIEW (or a LabVIEW-built EXE) and run your VIs programmatically from other development environments.
    Below is a modified excerpt from an example provided by NI on running a LabVIEW VI from Visual Basic:
    Dim lvapp As Object
    Dim vi As Object
    Dim paramNames(4), paramVals(4)
    Set lvapp = CreateObject("LabVIEW.Application")
    viPath = lvapp.AppDir + "\examples\apps\freqresp.llb\Frequency Response.vi"
    Set vi = lvapp.GetVIReference(viPath)
    vi.FPWinOpen = True
    paramNames(0) = "Amplitude"
    paramNames(1) = "Number of Steps"
    paramNames(2) = "Low Frequency"
    paramNames(
    3) = "High Frequency"
    paramNames(4) = "Response Graph"
    paramVals(0) = cwnAmplitude
    paramVals(1) = cwnNumSteps
    paramVals(2) = cwnLowFreq
    paramVals(3) = cwnHighFreq
    ' paramVals(4) will contain the value of Response Graph after running the vi.
    Call vi.Call(paramNames, paramVals)

  • Getting "Connect Timedout or auth error" when usging UltraVNC ActiveX object in LV 2010

    Hi all,
     I am trying to use a VNC viewer activeX object (from: UltraVNC ActiveX Viewer) in Labview to start a remote desktop / VNC session. The example supplied along with the control is a HTML page with javascript invoking the object.
     Initially, I tried using the object by directly inserting it into an ActiveX container, but it never worked. So, I altered the design and inserted a WebBrowser object in the ActiveX container and used the Navigate2 method to open the local .htm file (that contains the exact same code as shown in example, but with altered Server address to match my local condition). Yet, even this method fails. As soon as the control passes to the Browser:Navigate2 method, I get an error stating  "Connect method failed as it timed out or authentication failure". Just to make sure there is no error with the html file itself, I opened the file in Internet Explorer and it works without issues, after first allowing the ActiveX to run (throws up a banner on top of the page saying "it is unsafe to run the activeX" (IE's security measure).
    Did anyone use this before? I just want the VNC Viewer functionality in Labview, so any alternate suggestions are welcome too.
    Regards,
    Sri Ved

    Tested the solution, but did not work. Attached is the screen shot of the error, if it helps. Also, I ensured all the variables under ActiveX and Scripting are set to "Enable" in IE Security Settings (listed below) in both the Internet and Intranet categories. Is there something obvious that I am missing?
    Regards,
    Sri
    Enabled:
      Allow previously unused ActiveX controls to run without prompt
      Allow Scriptlets
      Automatic prompting for ActiveX controls
      Binary and script behavior
      Display video and animation on a webpage that does not use external media player
      Download signed ActiveX controls (not secure)
      Download unsigned ActiveX controls
      Initialize and script ActiveX contrtols not marked as safe for scripting
      Only allow approved domains to use ActiveX without prompt
      Run ActiveX controls and plug-ins
      Script ActiveX controls marked safe for scripting*
      Scripting:
      Allow programmatic clipboard access
      Allow status bar updates via script
     Allow websites to prompt for information using scripted windows
     Enable XSS Filter
     Scripting of java applets
    Attachments:
    ActiveX_VNC_Error.jpg ‏134 KB

  • Cannot send and read objects through sockets

    I have these 4 classes to send objects through sockets. Message and Respond classes are just for
    trials. I use their objects to send &#305;ver the network. I do not get any compile time error or runtime error but
    the code just does not send the objects. I used object input and output streams to send and read objects
    in server (SOTServer) and in the client (SOTC) classes. When I execevute the server and client I can see
    that the clients can connect to the server but they cannot send any objects allthough I wrote them inside the main method of client class. This code stops in the run() method but I could not find out why it
    does do that. Run the program by creating 4 four classes.
    Message.java
    Respond.java
    SOTC.java
    SOTServer.java
    Then execute server and then one or more clients to see what is going on.
    Any ideas will be appreciated
    thanks.
    ASAP pls
    //***********************************Message class**********************
    import java.io.Serializable;
    public class Message implements Serializable
    private String chat;
    private int client;
    public Message(String s,int c)
    client=c;
    chat=s;
    public Message()
    client=0;
    chat="aaaaa";
    public int getClient()
    return client;
    public String getChat()
    return chat;
    //*******************************respond class*****************************
    import java.io.Serializable;
    public class Respond implements Serializable
    private int toClient;
    private String s;
    public Respond()
    public Respond(String s)
    this.s=s;
    public int gettoClient()
    return toClient;
    public String getMessage()
    return s;
    //***********************************SOTServer*********************
    import java.io.*;
    import java.net.*;
    import java.util.Vector;
    //private class
    class ClientWorker extends Thread
    private Socket client;
    private ObjectInputStream objectinputstream;
    private ObjectOutputStream objectoutputstream;
    private SOTServer server;
    ClientWorker(Socket socket, SOTServer ser)
    client = socket;
    server = ser;
    System.out.println ("new client connected");
    try
    objectinputstream=new ObjectInputStream(client.getInputStream());
    objectoutputstream=new ObjectOutputStream(client.getOutputStream());
    catch(Exception e){}
    public void sendToClient(Respond s)
    try
    objectoutputstream.writeObject(s);
    objectoutputstream.flush();
    catch(IOException e)
    e.printStackTrace();
    public void run()
    do
    Message fromClient;
    try
    fromClient =(Message) objectinputstream.readObject();
    System.out.println (fromClient.getChat());
    Respond r=new Respond();
    server.sendMessageToAllClients(r);
    System.out.println ("send all completed");
    catch(ClassNotFoundException e){e.printStackTrace();}
    catch(IOException ioexception1)
    ioexception1.printStackTrace();
    break;
    Respond k=new Respond();
    sendToClient(k);
    }while(true);
    public class SOTServer
    ServerSocket server;
    Vector clients;
    public static void main(String args[]) throws IOException
    SOTServer sotserver = new SOTServer();
    sotserver.listenSocket();
    SOTServer()
    clients = new Vector();
    System.out.println ("Server created");
    public void sendMessageToAllClients(Respond str)
    System.out.println ("sendToallclient");
    ClientWorker client;
    for (int i = 0; i < clients.size(); i++)
    client = (ClientWorker) (clients.elementAt(i));
    client.sendToClient(str);
    public void listenSocket()
    try
    System.out.println ("listening socket");
    server = new ServerSocket(4444, 6);
    catch(IOException ioexception)
    ioexception.printStackTrace();
    do
    try
    ClientWorker clientworker=new ClientWorker(server.accept(), this);
    clients.add(clientworker);
    clientworker.start();
    catch(IOException ioexception1)
    ioexception1.printStackTrace();
    while(true);
    protected void finalize()
    try
    server.close();
    catch(IOException ioexception)
    ioexception.printStackTrace();
    //*************************SOTC***(client class)*********************
    import java.io.*;
    import java.net.Socket;
    import java.net.UnknownHostException;
    class SOTC implements Runnable
    private Socket socket;
    private ObjectOutputStream output;
    private ObjectInputStream input;
    public void start()
    try
    socket= new Socket("127.0.0.1",4444);
    input= new ObjectInputStream(socket.getInputStream());
    output= new ObjectOutputStream(socket.getOutputStream());
    catch(IOException e){e.printStackTrace();}
    Thread outputThread= new Thread(this);
    outputThread.start();
    public void run()
    try
    do
    Message m=new Message("sadfsa",0);
    output.writeObject(m);
    Respond fromServer=null;
    fromServer=(Respond)input.readObject();
    }while(true);
    catch(NullPointerException e){run();}
    catch(Exception e){e.printStackTrace();}
    public SOTC()
    start();
    public void sendMessage(Message re)
    try
    Message k=new Message("sdasd",0);
    output.writeObject(k);
    output.flush();
    catch(Exception ioexception)
    ioexception.printStackTrace();
    System.exit(-1);
    public static void main(String args[])
    SOTC sotclient = new SOTC();
    try
    System.out.println("client obje sonrasi main");
    Message re=new Message("client &#305;m ben mesaj bu da iste",0);
    sotclient.sendMessage(re);
    System.out.println ("client gonderdi mesaji");
    catch(Exception e) {e.printStackTrace();}

    ObjectStreams send a few bytes at construct time. The OutputStream writes a header and the InputStram reads them. The InputStream constrcutor will not return until oit reads that header. Your code is probably hanging in the InputStream constrcutor. (try and verify that by getting a thread dump)
    If that is your problem, tolution is easy, construct the OutputStreams first.

  • How to Properly Destroy Quicktime ActiveX Object?

    Hi,
    Does anyone have experience with Quicktime ActiveX objects?  I'm having an issue about destroying/unloading the objects.  When my compiled executable is closed (either programtically through 'Quit Labview' or by selecting 'File-->Exit'), Windows 7 detects a crash and displays:
    So I'm guessing that Quicktime is the culprit because of the 'Fault Module Name'.
    When I shutdown the Quicktime portion of the program (a subvi that gets called several different times), I perform:
    QTOLibrary.IQTMovie.Stop
    QTOLibrary.IQTMovie.Disconnect
    Set QTOControlLib.IQTControl.URL = [blank]
    QTOControlLib.IQTControl.QuickTimeTerminate
    Destroy QTOControlLib.IQTControl reference
    Destroy QTOLibrary.IQTMovie reference
    Destory QuickTime ActiveX container reference
    Any other properties/methods/combinations/order I should try?  Thanks.
    -Joe

    Hi Joe, 
    Quit LabVIEW shuts down LabVIEW, but does not affect other applications. You need to ensure that your ActiveX references are being closed properly, even if you are quitting LabVIEW.
    A good way to ensure that your references are being closed even when you forcibly exit LabVIEW is to use an event structure. Add a new event to the event structure by right clicking on the default "Timeout" label at the top and selecting "Add Event Case...". Then, under the Event Source, "<Application>", select the event, "Application Instance Close". This event will only execute when you attempt to close your application. Add another "Close Reference" function to the block diagram and wire the reference out output of the Invoke node to the reference input of the Close Reference function. Does this fix your error? 
    Julianne K
    Systems Engineer, Embedded Systems
    Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
    National Instruments

  • Inserting ActiveX Objects

    I have installed Labview 64 bit onto my computer and downloaded the full 4Gb driver compilation. I am trying to use labview to run a motor control for my TPZ001 Thorlabs piezo controller. When I go to "Insert ActiveX Object", in the list of controls MG17Motor is no where to be found. This is the control I need for my motor and from what I gathered from my colleages this control should appear after having installed the Thorlabs ATP config/user CD application. I have also plugged the piezo controller into my computer's USB and got the successfully installed drivers message. Even after the 4Gb driver installation the motor control in activeX cannot be found. Am I overlooking something simple? The driver set installed in \Program Files (x86)\ even though everything is 64 bit, when I tried to change the install directory it said that my choice of \Program Files\ was invalid.
    Where awareness goes, energy flows.

    nathand wrote:
    There's more than one way to use an ActiveX object in LabVIEW.  I may not use the correct ActiveX terminology, but there's a difference between an ActiveX control versus an ActiveX class.  Only ActiveX controls can be inserted on the front panel.  You can get access to an ActiveX class by using the "Automation Open" primitive found in the Connectivity->ActiveX palette.  Create a constant for the Automation Refnum input, then right-click on the constant and choose "Select ActiveX Class..."  See if you can then open your component there.
    Hi nathand, can you explain a bit further what you mean?  I have attached my code if you weant to have a look at what it is supposed to do.
    Attachments:
    READERxp.vi ‏39 KB

  • How to Run SSIS Package through SQL AGENT Job

    I am good with SSIS, I created a package which will load the excel files to SQL SERVER  tables. To Implement this I wrote the C# code to extract the first sheet name only, and then
    package will load the data present the first sheet only. The package working fine when i run this through BIDS. But the same package throwing error at C# code step when i am running this package through SQL AGENT JOB. When i searched for this, i have seen
    many posts saying that, this is happening becoz of using Microsoft.interop.excel references inside the c# code. Please help me with this. Is there any alternate way in c# to extract the first sheet name(not based on ascending order) of an excel file with out
    using interop. Or
    How to configure SQL AGENT job to run suceessfully when using interop inside the code.
    My UAT server is of 64 bit. And i have to run this in the same server.
    I tried creating  "Desktop" folder in "C:\Windows\System32\config\systemprofile\"
    Error:Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at ST_ecfa668f250a45e18c95639c9ffd64d4.csproj.ScriptMain.Main()
        --- End of inner exception stack trace ---     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)    
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
    Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at
    System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at System.Type.InvokeMember(String name, BindingFlags
    invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()  End Error  Error: 2015-02-27 11:24:00.23     Code: 0x00000001
        Source: User Mail      Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error
    occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could
    not open a connection to SQL Server)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
        at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
        at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)     at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
    host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)     at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString
    connectionOptions, String newPassword, Boolean redirectedUserInstance)     at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword,
    SqlConnection owningObject, Boolean redirectedUserInstance)     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)  
      at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)     at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owning...
     The package execution fa...  The step failed
    using System;
    using System.Data;
    using System.Diagnostics;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using System.Data.OleDb;
    using Microsoft.Office.Interop;
    using System.Runtime.InteropServices;
    namespace ST_ecfa668f250a45e18c95639c9ffd64d4.csproj
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region VSTA generated code
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    public void Main()
    { /*Passing the file path via User::File_Name Variable*/
    string FileName = Dts.Variables["User::File_Name"].Value.ToString();
    Microsoft.Office.Interop.Excel.Application xlApp = null;
    Microsoft.Office.Interop.Excel.Workbook excelBook = null;
    try
    xlApp = new Microsoft.Office.Interop.Excel.Application();
    excelBook = xlApp.Workbooks.Open(FileName, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing);
    string[] excelSheets = new string[excelBook.Worksheets.Count];
    int i = 0;
    foreach (Microsoft.Office.Interop.Excel.Worksheet wSheet in excelBook.Worksheets)
    excelSheets[i] = wSheet.Name;
    i++;
    Dts.Variables["User::WorkSheetName"].Value = excelSheets[0] + "$";
    catch (Exception ex)
    excelBook.Close(false, FileName, null);
    Marshal.ReleaseComObject(excelBook);
    string error = ex.Message;
    finally
    excelBook.Close(false, FileName, null);
    Marshal.ReleaseComObject(excelBook);
    Dts.TaskResult = (int)ScriptResults.Success;

    I installed office in my machine...but this doesn't solved my problem...
    Finally i figured out the solution for this and it is working now, Here is the solution...!
    Create the folder with name "Desktop" inside the below mentioned path
    C:\Windows\SysWOW64\config\systemprofile\   
    But i really don't understand the logic behind this. Can someone explain it pls....

  • OSoftResSvrAdm.Handle Creat ActiveX Object Error at Admin Server

    Hi,
    We are working on BPC 7.0NW. Recently we encountered the below error while we login to BPC for Admin. Earlier it was working fine. We didnt do any major configuration or changes to the system. Not sure why we are getting this error suddenly. Please suggest how we can resolve this error.
    Error popup- 'OSoftResSvrAdm.Handle Creat ActiveX Object Error at Admin Server'
    thanks/regards,
    Lokesh Nandula

    Hi Lokesh,
    Please try out the following option. Not sure whether it will work or not.
    Go to Server manager on the app box.
    delete the encryption key. (backup first if you like)
    re-create the encryption key
    register msolap90.dll on both servers
    I don't have the text for this handy. I think it's: regsvr32 "C:\xxx\xxx\xxxx\xxx\msolap90.dll"
    Note: you must use the quotes!
    reboot the DB box
    reboot the App box
    or
    To register the DLL Follow the below steps:
    1) From the Application server go to the run option in the start menu and enter the below command
    2) regsvr32 "c:\program files\common files\system\ole db\msolap90.dll"
    3) Hit Enter
    4) You should get a confirmation that the Dll was registered
    Hope this helps.

  • Upload fails through gateway - but succeeds without it!

    Hi all,
    we are using an upload application that we developped... it worked just fine uploading any file.. .but when we tried running it through the gateway (https), it timed out and was not able to upload large files...like 40- 50Mb... but before it worked (without the gateway)...
    any ideas?

    Not sure if this has anything to do with it, but in our environment rewriter proxy was using more and more cpu during upload of files through gateway, about 2% per MB filesize. We never really tried what would happen with 50 MB files, failure to upload seems reasonable.
    This issue was resolved with a portal patch, I think 118950-29(?). Please check your patch level and the online description of the patch.
    hth Chris

Maybe you are looking for

  • Select is not working with date range .

    In my program doing a simple select from cdhdr table based on date range i have created but it fails . here is the code I am using. SELECT SINGLE *   FROM tvarv  INTO  wa_tvarv WHERE name EQ 'Z_SERVICE_CHANGE_DATE' . move wa_tvarv-low to v_date . mov

  • ERROR Message no. AU265 :While closing asset accounting year ------ URGENT

    Hi All, THE ISSUE IS URGENT . Please help in resolving it. One of our users have missed to do the repeat depreciation run for Asset 4464 (Co. code 0006)in 12th period as she has raised a credit memo for this Asset after she did normal depreciation ru

  • Posting date for MB52 and MB58

    Hi,   I want to add posting date on the selection screen of standard transaction MB52 and MB58 for selecting the stocks within the posting period. I want the table name and the field name for the posting date.                  <b>Helpful answers will

  • Requirement date In PO

    1. If you require clearing between the customer and vendor, the following requirements must be met: u2022     The customer number must have been entered in the corresponding vendor master record. u2022     The vendor number must have been entered in

  • Podcast only displays in single category

    Hi, So I did some searching about this, but didn't really see any definitive answer. I just uploaded and got approved for the first episode of a new podcast. We're going ot be talking about a range of topics, mostly geeky stuff like games and comics.