ViClose session not called after Read operation Timeout in an IVI COM driver

Hi everybody
I have a small VI sample that is initializaing an IVI COM driver for an OPM instrument, set some parameters into the instrument then is doing a single Read power measurement. My Read operation receives a single parameter called MaxTimeout that user could change depending on his own interest. Inside the Read function I change temporarily the VISA query timeout to user timeout but at the end of Read operation the original VISA session timeout is reverted to its original value before Read operation was called. If the Read operation timeout is long enough for the Read operation to complete ( 100 ms or more) the VI is doing its job and when finished the viClose is called twice for DefaultHandler and for OpenHandler.
If the Read operation timeout value decrease ( 50 ms) then Read operation could not be completed and a Read Operation Timeout error is thrown from inside this method. This error is then propagated trough Error path until the VI end in a Simple Error Handler. Now on my VI I close all open references to my driver interfaces but I don't know why VISA itself is not calling viClose on the DefaultHandler and OpenHandler as in the case when was no VI error. I could see all these diferences in my NI Spy window and I could post this if that could be of any help. Bear with me cause I am more a C, C++, VB programmer and much less of a LabVIEW programmer. BTW the Error Handling from LabVIEW looks a a little weird and the only sure thing is that I wired in Error In and Error Out path in all my VI calls. What kind of error handling should I perform on the Read method in order for VISA to close properly both OpenHandlers even if there is an error in my VI?
Thansk
sorinvalea

So viClose is not called by VISA after an error takes place in a VI that is calling some operations on an IVI COM driver.
I discovered that all VI sessions opened trough VI that encountered a timeout error in Read operation and that were not properly closed after VI completed are in fact viClose by the LabView itself when I am closing LabVIEW application.
So these left over open vi sessions are kept aside by LabVIEW until it closes itself and then clean them one by one by calling viClose on them....

Similar Messages

  • Urgent Please.. ejbStore is not called after ejbCreate..

    Hi all,
    In one of the beanmanaged entity bean, the ejbStore is not called after ejbCreate. I am using wblogic 6.1 server. I've also coded similar types of entity bean and those are working perfectly.
    I am getting the following exception message when I call the create method from the client.
    java.lang.NullPointerException
    at weblogic.ejb20.locks.ExclusiveLockManager.unlock(ExclusiveLockManager.java:222)
    at weblogic.ejb20.manager.ExclusiveEntityManager.afterCompletion(ExclusiveEntityManager.java:466)
    at weblogic.ejb20.internal.TxManager$TxListener.afterCompletion(TxManager.java:421)
    at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:466)
    at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2105)
    at weblogic.transaction.internal.ServerTransactionImpl.setCommitted(ServerTransactionImpl.java:2077)
    at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:1938)
    at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:1882)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:219)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:188)
    at weblogic.ejb20.internal.BaseEJBHome.postHomeInvoke(BaseEJBHome.java:373)
    at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:210)
    at com.emirates.dacs.logical.datamanagement.misc.customer.CCustomerBean_g1748h_HomeImpl.create(CCustomerBean_g1748h_HomeImpl.java:86)
    at com.emirates.dacs.logical.datamanagement.misc.customer.CCustomerBean_g1748h_HomeImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:288)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:257)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Thanks in advance

    To answer your question partly -- as per the EJB specification, the ejbStore is called after the invokation of the business method and not ejbCreate method.

  • My mac mini does not boot, after backing the enire system onto an external drive with Carbon Copy Clone

    My Mac Mini does not boot, after backing the enire system onto an external drive with Carbon Copy Clone. I had switched the start-up disk back to the original of course. Now all I see is the Apple logo. What should I do? Thanks in advance.

    Try disconnecting any external devices, especially hard drives
    and try rebooting.
    If that doesn't help, then :
    If you are running Lion, boot to the Recovery HD and run a
    Repair Disk on the OSX partition.
    If Snow Leopard, boot to the installl DVD and run Repair Disk.
    Also, you may want to bookmark this:
    http://reviews.cnet.com/8301-13727_7-57345273-263/troubleshooting-the-boot-proce ss-for-intel-macs/?tag=txt;title
    for future reference.  It is a pretty good explanation of the
    Mac boot process and how to identify where problems may be.

  • DefaultTableCellRenderer is not called after fireTableStructureChanged()

    I have a simple JTable application, the data model gets changed and fireTableStructureChanged() is called which repaints the table and I see the modifications.... However the DefaultTableCellRenderer is not called for each row in the modler. So, if I have any colors, or text size differences from the default, this all goes away as the renderer process is not called when the jtable is repainted. Is there anything Im missing? I have tried calling repaint and varous other "repaint" things on the table etc... Note initially when the JTable is displayed all works fine, the DefaultCellRenderer routine is called on each row.... Its only after fireTableStuctureChanged is called it doesn't happen... Thanks for your response.., Jay Schrock

    I had the same problem and the following solved it to some extent.
    Before creating the table I created a DefaultTableColumnModel and added TableColumns to it using
    the TableColumn(int index, int width, TableCellRenderer renderer, TableCellEditor editor) constructor.
    Then I created the JTable with the JTable(TableModel, TableColumnModel) constructor. This works fine and does not lose the renderer and editor when the model data is changed.
    Please let me know if you find anything wrong with the above way.

  • ADF VO Row Fetch Range Issue: Action is not called after 10th row

    Hi People!
    I am working with an Application here in which one page has a table based on a view object. This table has range navigation, and the VO configuration for Tuning is to fetch rows in batches of 1000, all in one fetch. Now, i have a single selection configured in this table, and also a button on the <tableActions> facet which calls a method on the backing bean.
    The problem is, for the first 10 rows of this table, the method is called (seen through the debugger), but when we move the selection to the 11th row or further, the page only refreshes but does not call the method.
    This is not a problem with the data, because we tried two other approaches:
    1) removed the range navigation and shown all the records in the same page: the error persists for the 11th row ahead
    2) changed the VO query to return only the 11th row from the previous test using its ID: the action is called, now that the row is the first on the rowset.
    Have you experienced similar behavior? Why the Action is not executed when the selected row comes after the tenth row?
    Any help is greatly appreciated!
    Regards
    Thiago Souza

    Hi Frank, thanks for the reply.
    I have assembled a step-by-step based on the HR schema. For this example, i have created an EmployeesVO based on the EMPLOYEES table, and an App Module to provide a data control. From then on:
    1) Create a JSF JSP to list the Employees VO
    1.1) Bind the JSF Page to a Backing bean
    1.2) Create an af:page element on the page
    2) Drag the EmployeesVO from the Data Control Palette to the af:page
    2.1) Read-Only Table, Selection Enabled
    2.2) Do not include table navigation.
    3) Double-Click the automatically created submit button on the TableSelectOne section
    3.1) Bind it to a method on the Backing Bean
    3.2) Add some code to it, in my case i tested:
         FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Teste"));
    4) Run the example and try two approaches:
    4.1) select one of the first ten rows and click on the button: The action is fired.
    4.2) select the eleventh row and click on the button: The action is not fired.
    4.3) select one of the first ten rows again and click on the button: The action is fired.
    This example didn't even include range navigation, but if you want to test you will see the result is the same.
    Please let me know if you want further info.
    Thanks a lot!
    Thiago Souza

  • Pgms "not responding" after Reader search

    Downloaded Reader 9.4.0 recently. Ever since, I've had problems with programs failing to start up when called via PowerDesk or Explorer. The Task Manager tells me that PowerDesk, or the called program, are "not responding". After maybe 30-40 seconds, they respond and run OK. Testing, I have found that this behavior begins after I run a Reader search of multiple PDF files. Once I've done such a search, the problem remains, until I reboot. Upon attempting to shut down, XP finds two Acrobat processes running, and those have to be manually closed to permit the reboot. I speculate that those processes are somehow interfering with the startup of other programs via the file manager. But I don't know that, and I don't know what to do about this. What I do know is that using the multiple-file Search function in Reader precipitates this troubling, "not responding" behavior.

    Found the answer:
    http://support.apple.com/kb/HT3964
    It now works.  Keep checking the system profile under USB.

  • ADF - ReturnListener not called after many clicks in dialog window

    Hi all,
    I´m using ADF dialog framework to implement a re-usable pop-up search window. Everything works fine except when the user performs serveral (more than 8) searches in the pop-up window.
    When this happens the returnListener is not called and the selection is not made.
    I´m using ADF with MyFaces.
    JSP # 1:
    <af:commandLink id="btn_buscar" styleClass="lin1" partialSubmit="true" useWindow="true" windowHeight="400" windowWidth="400"
    action="#{bean1.buscarAction}" returnListener="#{bean1.cargarAL}" immediate="true" text="#{bundle.abm_general_buscar}">
    </af:commandLink>
    Bean1:
    public String buscarAction() {
    return "dialog:busqueda";
    public void cargarAL(ReturnEvent evento) {
    long idSeleccion = (Long) evento.getReturnValue();
    try{
    if (idSeleccion!=0){
    getFormulario().setId(idSeleccion);
    getFormulario().cargarRegistro(FacesUtils.getUsuarioBean().getUsuario(),true);
    }else {
    inicializar();
    catch (IExcepcion e) {
    FacesUtils.addErrorMessage(e,true);
    inicializar();
    refrescarFormulario();
    JSP # 2 (Dialog):
    <af:commandLink actionListener="#{bean2.elegirAL}" text="#{bundle.abm_general_elegir}"/>
    Bean2:
    public void elegirAL(ActionEvent e){
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.returnFromDialog(getValorElegido(),null);
    afContext.getProcessScope().clear();
    I read lots of tutorials about ADF dialog framework with no luck.
    Any help will be apreciated,
    Thanks in advance.
    Gabriel

    Please see post [SOLVED] Re: ADFFaces: returnFromDialog fails to invoke return listener aft for resolution.

  • Sessions not closing after timeout

    I'm having trouble where my sessions aren't closing after the
    60 minute timeout. I'm checking to see how long the sessions are
    staying open, and they are staying open past the 60 minute timeout
    I have defined. Is there somewhere else I need to modify something
    to get them to end?

    Did you try changing that 60 to something like 10 minutes
    just to rule that out as a bug?
    Here's an small Application.cfc that works using cflogin with
    a timeout if this is of any use to you
    <cfcomponent>
    <cfset This.name = "yourappname">
    <cfset This.Sessionmanagement="True">
    <cfset This.loginstorage="session">
    <cffunction name="OnRequestStart">
    <cfargument name = "request" required="true"/>
    <cflogin idletimeout="5">
    <cfif NOT IsDefined("cflogin")>
    <cfinclude template="loginform.cfm">
    <cfabort>
    <cfelse>
    <cfif cflogin.name IS "" OR cflogin.password IS "">
    <cfoutput>
    <h2>You must enter both the User Name and Password
    fields.
    </h2>
    </cfoutput>
    <cfinclude template="loginform.cfm">
    <cfabort>
    <cfelse>
    yourldap lookup
    <cfif loginIsGood>
    <cfloginuser name="#cflogin.name#"
    Password="#cflogin.password#" roles="">
    <cfelse>
    <cfoutput>
    <H2>Your login information is not
    valid.<br>Please Try again</H2>
    </cfoutput>
    <cfinclude template="loginform.cfm">
    <cfabort>
    </cfif>
    </cfif>
    </cfif>
    </cflogin>
    </cffunction>
    </cfcomponent>
    loginform.cfm
    <H2>Please Log In</H2>
    <cfoutput>
    <form action="#CGI.script_name#?#CGI.query_string#"
    method="Post">
    <table>
    <tr>
    <td>user name:</td>
    <td><input type="text"
    name="j_username"></td>
    </tr>
    <tr>
    <td>password:</td>
    <td><input type="password"
    name="j_password"></td>
    </tr>
    </table>
    <br>
    <input type="submit" value="Log In">
    </form>
    </cfoutput>

  • Sessions Not Closed After 'Execute Unix/Linux SSH Script' Activity

    Hello,
    Wondering if anyone out there has some experience with running "Execute Unix/Linux SSH Script" activities against a "Unix/Linux System" target and able to help?
    We have a process that runs an ssh script on a Unix/Linux target and in the 'Target' tab we specify to open a new session on the target we want.  It was our assumption that once the script is executed successfully that the session would be closed, however, that does not appear to be the case.  It seems the target receives a "disconnect" from CPO but if we run "who -a" on the host, the session still exists.  We are trying to run our activity/script in a while loop with a 60 second pause in between, and after 30 loops (30 minutes) the next call fails.
    What appears to be happening is, the session opens on the Linux target and every occurrence of the "Execute Unix/Linux SSH Script" activity is merely connecting and disconnecting using the same session that was originally opened.  But after the 30 minute idle timeout on the Linux host, the session is closed and the next occurrence of the SSH Script activity fails with the following error:
    This activity xyz did not return within the expected time period and was abandoned.
    Is there a setting in the target properties or activity properties that we're missing here??
    Thank you for any feedback or suggestions that may be out there!
    Neil

    Neil,
    I will discuss with you through email to find what exactly happened in your case.
    Thanks,
    James

  • Web does not work after downloading Opera Mobile

    For two months now, my phone has been working perfectly, but three days ago, after I'd downloaded Opera Mobile, I'm not able to use the Web app on my phone. In fact, I can't open the Nokia Store or the Ovi Music Store using my home Wi-Fi connection. As a result, I can't even check for updates on my phone by going to Settings>Applications>Manage Applications. Opera Mobile works perfectly using the same connection though. Can anybody help?
    Solved!
    Go to Solution.

    have you tried to delete Opera Mobile to see if it reverses everything?

  • Session not destroyed after restart

    Hi all,
    On my Application server 8.1_02 EE as well as 8.2 PE i have an application.
    The session is destroyed on log out... but after a successful restart of the application server, the session is kept active..
    Is this a normal behavior, or is there something that i must be aware of?
    Thanks,
    Scotty

    Hi Ronald,
      I once encountered a similar problem when calling a BSP application in a GUI HTML control. I used a copy of session_single_frame in my BSP application and it worked fine when I called the BSP application from SE80 or by entering the URL in the browser directly but I couldn' t get it to work in the HTML control.
    The solution then was to use an additional URL Parameter called sap-syscmd=NOCOOKIE. This tells the request handler on the Web AS to retrieve the session ID from the URL and not to use a cookie.
    Hope this helps,
    Andy

  • Inbox messages not visible after reading since Yosemite conversion

    Since I upgraded to Yosemite on January 3rd, my Apple mail app is misbehaving. When I get new messages from gmail, they show up in the Inbox, Unread and Today mail folders but not in the overall Inbox folder. After they are read, they disappear from Inbox and Unread (of course) and are lost in the ether. If I search mail for a specific message, it finds it and indicates its either in an Important folder or  in Inbox-Gmail but it is in neither. Otherwise the message doesn't show up in Mail at all. Also the mail remains on the gmail server when I access it directly on the web.
    I've tried to synchronize the mail accounts but nothing changes.
    I also turned on iCloud and iDrive at the same time.
    A commentator responding to my question reports
         Apple Mail is not displaying the Exchange or G-mail inbox properly. I tested this with 2 systems: 1 on Mavericks and 1 on Yosemite.           The Mavericks mail worked correctly and the Yosemite would stop displaying the inbox. I was able to perform operations (read, flag, delete, move) messages on the Mavericks system and the actions would correctly show on the Yosemite system once I re-synced the mail application. Furthermore, I only needed to click on my iCloud-based account and then go back to my Exchange account for the inbox to be displayed properly. However, after about 30-45 seconds it would again stop displaying.    I how this helps and that Apple can fix this annoying bug soon."

    I can only see messages for my Exchange account if I'm looking at the "all Inboxes" in the left column. Otherwise all folders (and not just the Inbox) for my Exchange account has the problem. Once stuff is read, everything vanishes a few moments later.
    It looks like Gmail and iCloud accounts also set up in Mail seem to be okay. It seems to be only my Exchange account.
    I've been having to do email stuff on my iOS devices.

  • EWA session not created after refresh_session in SDCCN

    Hi All,
    I have configured EWA in our SolMan 7.1 for our managed system SAP BW 7.0, and to test it, I've been trying to create an adhoc EWA report manually. However, after the completion of refresh_session tasks in the managed system's SDCCN, no EWA session is being created.
    I have already followed instructions in SAP Note 1769513 - EWA not generated - session data is overdue (red flag status), but I'm still stuck with this error.
    Please advise.
    Thanks.

    Hi,
    You are using solution manager 7.1, so here are couple on KBAs which can help you to get the EWAs.
    1907383 - How to setup and troubleshoot EarlyWatch Alert reports in SAP Solution Manager 7.1
    1924199 - EarlyWatch Alert Management SP10+
    Also follow the recommendations of RTCCTOOL.
    To generate an Ad-hoc EWA, yo can look into this wiki.
    How to create an Ad Hoc EWA report in Solution Manager 7.1 - Solution Manager - SCN Wiki
    Further, to understand and troubleshoot, please read the EWA workflow
    The EWA workflow - a closer look - Solution Manager - SCN Wiki
    I hope, all this should help you in fixing your issue.
    Regards

  • Session not closing after redirecting from BSP View

    Hi All,
    I am trying to redirect to a new application (WD ABAP) from an existing BSP View by using
    CALL METHOD runtime->server->response->redirect( url = lv_url1 ).
    The session still exists in SM04 after redirecting but I want the BSP session be closed.
    Any pointers to how this can be done??
    "navigation" global object is not recognized in the View it seems because I was thinking of using
    navigation->exit (url).
    navigation->response_complete().
    but it gave complie errors.
    Awaiting your suggestions..
    Thanks and Regards
    Avinash

    Please have a look at the BSP application SYSTEM => page => sessionexit.htm

  • User does not respond-after reading countless post i still don't understand

    hi. i have been reading post on the 'user does not respond' and i still do not understand. i don't know how to check my ports and how to change them. all of them have been pretty technical. please, is there anyone that can explain it in layman's term?
    2006-09-17 07:57:14 -0400: sentosa225 did not respond.
    Tried to send UDP SIP "invite" to the following IP addresses and ports:
    218.111.157.122:5060, 169.254.186.77:5060, 192.168.1.8:5060
    that is what i get. i read and saw that 5060 is the correct port, is it?
    can anyone please help me. there seem to be no end to this.

    Hi Mark,I think I'll have to brush up my english first of all.Or think about how to put it,so that you can understand my abstract question.I tried to find a site of Adobe support in Dutch because that may be easier for me and for others to understand,because everything computer related is so new to me,that my questions are not very clear most of the time.But I can't find support in my language,so I will try and think a bit more how to answer your questions to my question.Bye.Marion

Maybe you are looking for