Weird behaviour with inlined SubVI's

Every now and then I've ran into some serious weird behaviour where I've eventually traced it down to some inlined subVI. It has seemed as if the values used inside the inlined subVI don't match what the calling VI is feeding into its inputs. I haven't been able to consistently reproduce this issue so I apologize for the vague description, but since I felt I should finally address this and I couldn't really find anything similar by searching, I'll do my best to describe it and we'll see what turns up.
As I mentioned, the issue certainly doesn't occur consistently. I use inlined subVI here and there and most of the time there are no problems whatsoever. I ran into the issues randomly I think four times now, first three of them were on LV2013 and this last time on LV2014. In all cases I have been using AF and I think the first times were actually with an actor class. At the time I thought it might have been related to the AF, and it still might, but now the last time it wasn't the actor class itself but a data member of one. So far all of the problems have occured with class methods, and I think the "corrupt values" have been the object private data, but I can't confirm this.
This time the inlined subVI was a static dispatch method with contents shown below on the left and the calling on the right.
I'm showing the calling just to point out that when I was investigating the problem and I probed the object wires before and after the inlined subVI the values (Calibration.X Step and Calibration.Y Step) were OK, but the result of the VI (Point out) was some insane value as if the actual division inside was performed by corrupt data. I think that the output value wasn't Inf, though, so the divider might not have been a default value such as 0.
Other notes:
I checked that the wires are connected to the inputs and outputs
As I mentioned, the projects have always been relatively large AF setups, the problematic method has been an actor method or a method called by an actor somewhere down the chain. I have no reason to assume AF is the culprit, I'm just pointing this out, just in case
The problem seems to occur quite randomly but once it "starts" it doesn't go away until I find which inlined subVI it was and change it to a normal VI call
The problem might not even be specifically inlined subVI related but for example pre-allocated VI related instead
I don't know whether the problem would occur in a built executable as well, so far I've only ran into them while testing while developing and fixed them there
Looking at the "Known Issues" related to inlined subVI's I don't know if this related to them. The other one deals with execution systems, which I haven't touched to my knowledge, and the other one says "An Inline public methodVI calling a private-scope method VI, inlined into a non-class caller may give a runtime error when trying to call the private method from the inlined code in the non-class caller."
LabVIEW version is 14.0.1 (2014 SP1 32bit) on Windows 8.1
Yep, reading through this post I gotta say I'm not expecting much, what a mess, but it would be great to find out if anyone else has ever ran into similar problems or has a clue what's going here.

Just for the sake of your sanity, I've seen "funky" behaviour with inlined VIs also, but on Real-Time targets.
I've never been able to narrow down the exact problem but it seems to be related to changed made to inlined VIs not being reflected in the compiled code od VIs which call them.
I've reported it but without code which can actually reproduce it, it cannot be fixed.
Say hello to my little friend.
RFC 2323 FHE-Compliant

Similar Messages

  • [Solved] Firefox 3 betas give me some weird behaviour with images

    I understand that there will be problems with beta software, however I seem to have memory issues with the firefox 2 series, so I thought I'd give the beta packages a try. I'm using the firefox-nightly package from AUR (firefox3b4), and I'm getting some weird behaviour. The same behaviour can be seen in all firefox 3 beta builds, however. It's hard to explain the problem, so here's a screenshot:
    Notice that the image appears twice, once in the tab, and once in the tab toolbar next to the title of the tab. It looks like an attempted preview gone terribly wrong. Upon closing the tab, the tab toolbar shrinks down to the normal size and all is well. This happens with most images up to a certain size. Any one else experiencing this problem? Any suggestions? This is very annoying and I would like anyone's input on the problem.
    Last edited by valnour (2008-02-24 07:41:05)

    Wow! This issue was solved in #archlinux by Nuked. Apparently I had some funky bits in my .mozilla directory. Removing it solved the problem. Remember kids, IRC is your friend. Anyone else experiencing weird stuff with their Firefox install should give this solution a try.

  • Weird behaviour with dragImage in DragManager & NativeDragManager

    I'm getting some unexpected (to me anyway) behaviour when I set the "dragImage" property for DragManager and NativeDragManager when I call "doDrag".
    DragManager.doDrag(dragInitiator:IUIComponent, dragSource:DragSource, mouseEvent:MouseEvent, dragImage:IFlexDisplayObject = null, xOffset:Number = 0, yOffset:Number = 0, imageAlpha:Number = 0.5, allowMove:Boolean = true):void
    So I'm setting the "dragImage" property to a 30x30 pixel PNG that I've embedded, and when I run my app and click to drag I do see the image, but it's weirdly greyed out.  I experimented with setting the "imageAlpha" property to 1.0 and the greyness dissapears, and the image is still semi-transparent.  I think what's happening is that the image gets laid over the default skin, which is a grey box, at 0.5 transparency, and then the whole thing is set to another transparency amount.  If that's true.. then.. what's the point in having the imageAlpha set to 0.5 by default?  Who wants their drag image to be greyed out like that?  And how do you adjust the transparency if imageAlpha doesn't do that for you?
    NativeDragManager.doDrag(dragInitiator:InteractiveObject, clipboard:Clipboard, dragImage:BitmapData = null, offset:Point = null, allowedActions:NativeDragOptions = null):void
    For NativeDragManager I've tried setting the "dragImage" property to the bitmap data of the same PNG that I embedded (Why BitmapData?  Why not an IFlexDisplayObject like DragManager uses?) and it renders it in much the same way as DragManager does, once I'd set the "imageAlpha" to 1.0.  But when I drag the image outside of the application it pixel shifts it, chopping aproximately two pixels off of the left edge, and sticking them on the right edge.  I've no clue why it's doing this...

    As to the first question, yes, the default is set to 0.5 as the documentation states.  Many UI systems make icons semitransparent when dragging (e.g. Win 7 & OSX).

  • Weird behaviour with Xerox Colorqube 8570

    I have recently run into problems printing a document 178mm x 254mm on to a greetings card of the same size via the manual feed tray.
    The whole document get shrunk by about 10%. So a box that is 120mm x 160mm prints 112mm x 150mm Weird!
    I am using InDesign CC on an MBP 17" - loads of space and Ram. I have done all the checking on the settings to make sure page size matches the printer etc. Scaling is off and everything should be fine but no joy.
    What is annoying is that if I feed an A4 sheet manually (having set the printer page size to A4) the images appear at the correct size.
    I have been on the phone with Xerox today, unistalled, drivers, tried new drivers (for Mavericks) to no avail.
    I have read all the usual answers about checking page sizes, turning scaling off so need a fresh answer please!
    Thanks!

    Thanks to you. I spent two hours on the phone with Xerox on Monday. The Level 2 tech took over my computer and uninstalled drivers for both my 8570 and my 8560 (having the same problem on both). He said just deleting the printers wouldn't do the trick, that he had to go deeper in the operating system to remove some files. He then reinstalled drivers for both printers. This actually fixed some of the trouble, as Microsoft word documents seem to be printing normally again. After all that, he told me that it seems Mavericks is over-riding the settings of InDesign and Illustrator, and that I needed to call Adobe to sort through the problem.

  • Weird behaviour with active/passivate ApplicationModule

    Hi,
    I am running into a problem with ADF Faces - ADF BC application. Application is build with JDeveloper 10.1.3.1 and uses ADF BC 10.1.3.39.84.
    I have been able to narrow down the problem to the following piece of code:
        public String testActive() {
            String amDef = "mypackage.services.MyService";
            String config = "MyServiceLocalTest";
            FLITSServiceImpl flits =
                (FLITSServiceImpl)Configuration.createRootApplicationModule(amDef,
                                                                            config);
            System.out.println("flits: " + flits);
            SessionData sess =
                new SessionData(flits.getSession().getEnvironment(), flits.getSession().getUserData());
            flits.activateState(7866, sess, 0);
            ViewObject vo = flits.getKalenderView();
            vo.executeQuery();
            System.out.println("2.Vo rowcount = " + vo.getEstimatedRowCount());
            Configuration.releaseRootApplicationModule(flits, true);
            return null;
      public static void main(String[] args) {
          TestBean tb = new TestBean();
          tb.testActive();
      }I have added this code in a backing bean that I use in a JSF page.
    Now when I run this main() method directly in JDeveloper it works fine. But when I execute the code by clicking a button in the JSF page I get the following exception:
    javax.faces.FacesException: #{testBean.testActive}: javax.faces.el.EvaluationException: oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:null
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:231)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at nl.logicacmg.filter.ExceptionFilter.doFilter(ExceptionFilter.java:67)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at nl.logicacmg.filter.ExceptionFilter.doFilter(ExceptionFilter.java:67)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:null
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 31 more
    Caused by: oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:null
         at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:771)
         at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:90)
         at oracle.jbo.common.VariableImpl.convertToJava(VariableImpl.java:546)
         at oracle.jbo.common.VariableValueManagerImpl.doSetVariableValue(VariableValueManagerImpl.java:182)
         at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:223)
         at oracle.jbo.server.ViewRowSetImpl.setNamedWhereClauseParam(ViewRowSetImpl.java:3465)
         at oracle.jbo.server.RowSetStateHolder.activateWhereClauseParams(RowSetStateHolder.java:89)
         at oracle.jbo.server.RowSetStateHolder.activateRowSet(RowSetStateHolder.java:44)
         at oracle.jbo.server.ViewObjectImpl.doActivateSettings(ViewObjectImpl.java:13439)
         at oracle.jbo.server.ViewObjectImpl.doActivateSettings(ViewObjectImpl.java:13216)
         at oracle.jbo.server.ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:7167)
         at oracle.jbo.server.ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:6990)
         at oracle.jbo.server.ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:6955)
         at oracle.jbo.server.Serializer.activate(Serializer.java:274)
         at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:330)
         at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5547)
         at nl.logicacmg.adf.bc.services.CommonApplicationModuleImpl.activateState(CommonApplicationModuleImpl.java:307)
         at nl.vrom.flits.model.FlitsApplicationModuleImpl.activateState(FlitsApplicationModuleImpl.java:31)
         at nl.vrom.flits.view.backing.TestBean.testActive(TestBean.java:30)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 32 more
    And this error message is also what the users are getting sometimes in the production environment. Unfortunately, I haven't been able to create a clean testcase for this one but I hope that someone can give me a hint about what can cause this behaviour and then especialy the difference between running this code by the main method and running it from the embedded OC4J in JDev.
    By the way, the id '7866' points to an existing record in the PS_TXN table. It contains the following data for the KalenderView:
          <VO sig="1213361479920" It="1" Sz="1" St="2" im="1" ac="0" Ex="1" Def="nl.vrom.flits.model.dataaccess.KalenderView" Name="KalenderView">
             <exArgs ct="2">
                <arg n="calenderMonth" t="oracle.jbo.domain.Date">2008-06-01</arg>
                <arg n="provincie" t="oracle.jbo.domain.NullValue">null</arg>
             </exArgs>
             <args ct="2">
                <arg n="calenderMonth" t="oracle.jbo.domain.Date">2008-06-01</arg>
                <arg n="provincie" t="oracle.jbo.domain.NullValue">null</arg>
             </args>
          </VO>the kalenderView has 2 named bind variables defined: one Date and one of the type Number.
    Pascal
    Message was edited by:
    PALMA-IT

    Hi John,
    Thx for your quick response.
    About your suggestion for using the AMTester: I don't know if and how you can force to passivate and active the AM with it. I have disabled the pooling but I don't see anything written to the PS_TXN table.
    About the patches: I have also deployed the application to OC4J 10.1.3.3 and unfortunately I see the same results there.
    I would guess it has something to do with the bindParameter that is defined in the ViewObject as a Number but gets passed the value 'Null'.
    One thing I noticed when I did a quick test to reproduce the problem is that in that application the data in the PS_TXN Blob were written like:
          <VO sig="1213857751593" It="1" Sz="10" ac="0" Ex="1" Def="net.pascalalma.model.dataaccess.CalendarView" Name="CalendarView">
             <exArgs ct="2">
                <arg n="calendarMonth">
                   <![CDATA[%null%]]>
                </arg>
                <arg n="state">
                   <![CDATA[%null%]]>
                </arg>
             </exArgs>
             <args ct="2">
                <arg n="calendarMonth">
                   <![CDATA[%null%]]>
                </arg>
                <arg n="state">
                   <![CDATA[%null%]]>
                </arg>
             </args>
          </VO>
       </VO>So I focus on that for now. until someone comes with a better suggestion :-)

  • Weird behaviour with jsp:forward and jsp:param

    I'm running Orion 1.5.3
    Wanted to ask if anyone has insight into the following.
    I'm trying to do a forward with a parameter. The parameter is something like a message string.
    The following does not work.
    <%
    String result = "unsucessful"; // retrieved from external source... hardcoded for example's sake
    %>
    <jsp:forward page="<%=nextPage%>">
    <jsp:param name="message" value="The result was <%=result%>"/>
    </jsp:forward>
    I've managed to deduce that the error is in the param value. Apparently, we cannot mix variables with static values inside the value parameter.
    I've managed to get it working by doing this...
    <%
    String result = "unsucessful"; // retrieved from external source... hardcoded for example's sake
    String message = "The result was " + result;
    %>
    <jsp:forward page="<%=nextPage%>">
    <jsp:param name="message" value="<%=message%>"/>
    </jsp:forward>
    My question is, is this a bug or is it supposed to be this way ? Can we mix the value parameters ?

    Hi Bernard,
    Take a note of the following syntax -
    <jsp:forward page={"relativeURL" | "<%= expression %>"} >
    <jsp:param name="parameterName"
    value="{parameterValue | <%= expression %>}" />+
    </jsp:forward>
    It is evident that either the value attribute can have an expression or simple text.
    I have tried your example and I am also encountering the same kind of problem, but I have found a way out.
    You can try the following in your code -
    <%
    String result = "unsucessful"; // retrieved from external source... hardcoded for example's sake
    %>
    <jsp:forward page="<%=nextPage%>">
    <jsp:param name="message" value=' <%= "The result was" + result%>'/>
    </jsp:forward>
    Instead of using
    value= "The result was <%=result%>" you can use
    value= '<%= "The result was" + result%>'.
    Hope this helps

  • Weird behaviour with Mail and iPhone

    I have recently noticed that not all my mail is coming through to my MBP mail account. Some emails that I have sent have been replied to and they show up on my iPhone but some are missing in my mail inbox. I have also recently noticed that if I read an email on my iPhone it is marked as read when I look whilst in my Mail application (it has only recently started doing this too)
    Any ideas what could be going on, is this a syncing problem with mobileme because the problems have been with a .mac email address.
    Thanks

    However, it successfully goes
    into the method and there is nothing wrong until the
    page got forward and everything is lost from thatThe actionListener method is invoked just fine, however returning the outcome String from it does not make any difference. Only outcomes returned from actions are taken into account. If your navigation works, then it's due to something else.
    forum that actually the bean would not persist after
    I transfer to a new page. Only through hidden fields
    (?) that I can achieve that, is that correct? If you have the bean in request scope then it will be re-instantiated for every request. Consider:
    - Put the bean to session scope
    - Pass the stuff around using f:param or f:attribute
    - Use tomahawk's t:savestate
    - Start using framework that offers converstation/process scope, e.g. Spring WebFlows, Jboss Seam, Trinidad/ADF faces etc.
    Quite confuse with the request and session scope.
    Anybody can help me with that?Request scope lasts for the duration of single http request, session scope generally for the whole duration of users visit. Principle problem with request scope is that it's often too short (as you'v noticed when stuff gets losts) and with session scope that it's too long (using multiple browser windows interfare with each other and things linger in session too long unless manually cleared).
    -Henri

  • Weird behaviour with Variables of a Stored Procedure

    Hello All,
       I'm writing following stored procedure and it is failing with following error
    "Conversion failed when converting from a character string to uniqueidentifier"
     What's Happening?
      I've created
    Create Procedure usp_Sample
    AS
    Declare @Var Int
    Select @Var = Key From MyKeyTable Where Name = 'XYZ'
    Select * From BaseTable A
    LEFT JOIN JoinTable B
    ON A.UniqueIdentifierField = CONVERT(UNIQUEIDENTIFIER,B.VarcharField)
    AND B.Key = @Var
    GO
    Procedure got created and when you execute it you see the above error...
    If I remove the Variable and HardCode it with any value then it runs fine...
    Could someone tell me what is wrong with the variable here? (I Can't hardcode the Variable Value In the Proc).
    "BaseTable" has a field that is UniqueIdentifier and "JoinTable" has a NVARCHAR (1020) Field. But JoinTable has proper UniqueIdentifier data. 
    Let me know if you need anymore info...
    --Roger
    Unknown

    Could someone tell me what is wrong with the variable here? (I Can't hardcode the Variable Value In the Proc).
    You are making the mistake to assume that just because is no error message, nothing is wrong.
    Apparently there are values in the varchar column which are not GUIDs, so saying
       CONVERT(UNIQUEIDENTIFIER,B.VarcharField)
    is an accident waiting to happen. But it does not have to blow up, just like you don't have to crash when you drive on the wrong side of the road. If you are lucky, there are no cars there in that moment.
    There is no defined order in which operands are evaluated in SQL Server, and using a variable or a constant is very likely to give you diffeent query plan.
    If you are on SQL 2012, use try_convert instead which will return NULL if the value does not convert. But Naomi is probably right when she suggest that you should convert the GUID to string, given the structure of the query.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Weird behaviour with Runtime.getRuntime.exec() attempting to start IE

    I have developed a sample scheduler that it a web page the user fill in and then create a process schedule by the Timer class. The process starts IE in order to automate data entry normally done by a user. The Java code run well but IE when start from the p = Runtime.getRuntime().exec() class freeze. Is anyone can tell if IE require special setting to run in background?
    Here the Java code but once again it work well but IE freeze and cause the forked process to hang.
    // The schedule task
    public void scheduleTask(Object o) throws ApplicationException {
    ScheduleBean sb = (ScheduleBean)o;
    try {
    Timer timer = new Timer(true);
    RunReslotting rr = new RunReslotting();
    timer.schedule(rr, sb.getSchedulingDate());
    catch(IllegalArgumentException iae) {
    throw new ApplicationException(iae.getMessage());
    catch(IllegalStateException ise) {
    throw new ApplicationException(ise.getMessage());
    public class RunReslotting extends TimerTask {
    protected RunReslotting() {
    public void run() {
    String[] cmdLineParam = transportProfile(2);
    cmdLineParam[0] = "location=" + wr.getLocation();
    cmdLineParam[1] = "loc_class=" + wr.getNewStrategy();
    forkProcess("runie.bat", cmdLineParam);
    private String[] transportProfile(int startAt) {
    envProf = System.getenv();
    profCmd = new String[envProf.size() + startAt];
    itr = envProf.entrySet().iterator();
    int i = startAt;
    while (itr.hasNext()) {
    entry = (Map.Entry)itr.next();
    profCmd[i] = (String)entry.getKey() + "=" + (String)entry.getValue();
    i++;
    return profCmd;
    private void forkProcess(String processName, String[] osParam) throws ApplicationException {
    // Lance un nouveau process
    p = null;
    int i=0;
    try {
    p = Runtime.getRuntime().exec(processName, osParam);
    // Vide les buffers du process pour eviter de geler
    mcError = new MessageCatcher(p.getErrorStream());
    mcOutput = new MessageCatcher(p.getInputStream());
    mcError.start();
    mcOutput.start();
    i = p.waitFor();
    if ( (i != 0) || (mcError.getMessage() != null) || (mcOutput.getMessage() != null) ) {
    System.err.println("*** Process failed RC:" + i + " *** ");
    if (mcOutput.getMessage() != null) {
    System.err.println("Output messages: " + mcOutput.getMessage());
    if (mcError.getMessage() != null) {
    System.err.println("Error messages: " + mcError.getMessage());
    throw new ApplicationException("*** Process failed *** ");
    catch(IOException ioe) {
    throw new ApplicationException(ioe.getMessage());
    catch(InterruptedException ie) {
    throw new ApplicationException(ie.getMessage());
    Any suggestion will be appreciate. I�m working on that scheduler for a while and i'm desperate
    Thanks
    Francis

    This starts IE for me, no problem
    String[] cmd = {"C:\\Program Files\\Internet Explorer\\iexplore.exe"};
    Runtime.getRuntime().exec(cmd);

  • HTML Link -AS2 fine, AS3 weird behaviour

    Hi Guys, I'm working on a project at the moment, and am
    seeing weird behaviour with the way my swf handles html links
    inside dynamic textboxes. When rendered as a AS2 file, the link
    works on a release as expected. When its inside a AS3 file the link
    will only work if the user right click and chooses 'open in new
    window' was there a change in behaviour how AS3 handles these
    links, or is there now an declaration needed to be made to allow
    these link to have the old behaviour?
    The project calls for xml data and embedded in that is a html
    link. Originally I thought it might have been the way I'd formed
    the xml so I tried with a hardcoded version instead (dynamic
    textbox, add text -> highlight -> add link through properties
    tab). But I still see the same behaviour between the as2 and as3
    versions.
    Any help would be greatly appreciated.
    Cheers.

    Actually, the ''href'' attribute is supposed to direct the browser to a new URL, etc., not run a script. Instead, use the ''onclick'' event attribute:
    ''<a onclick = “$('.div-feedback').fadeIn();”></a>''.
    Happy coding!

  • Weird behaviour in RMIClient

    hi all,
    i am experiencing a weird behaviour with my RMI Client....
    my RMIClient has two methods
    init()
    callRemoteMethod()
    ideally in the init() i should locate the RMIServer, and in the callRemoteMethod() i should call one of hte methods of the RMIServer
    the problem is that it does not work!!
    my RMIClient code works ONLY if i put the initialization of the RMIServer and the call of one of its method in the SAME method
    is it normal that it happens like htis????
    can anyone give me some hints??
    thanx in advance and regards
    marco

    hi all,
    i solved the problem...i was initializing hte RMI server twice.....
    sorry for bothering
    regards
    marco

  • SQL MP - SPN Status monitor weird behaviour

    Hi all,
    I have a strange behaviour with the monitor that checks SQL 2008 SPN status. More precisely I have a weird behaviour with the script used by the monitor. The script is GetSQL2008SPNState.vbs. I configured the SQL monitoring profile (which is used by the
    script) with a domain account with necessary rights.
    Let's say I have a SQL Server called SQL1. SQL1 is in domain AD1. I have a forest called contoso.com with two child domains AD1 and AD2.
    On SQL1 I sometimes see events 4001 generated by this script that mentions a problem to connect to WMI namespace (which is healthy, I checked with wbemtest). The event says that it couldn't connect to
    \\SQL1.AD1.contoso.com.AD2.contoso.com\root\blabla. I have no idea why it is using that broken FQDN.
    I made some research into the script and understood the following:
    The script has the SQL server FQDN as parameter (here SQL1.AD1.contoso.com)
    It searches the defaultnamingcontext by doing
     Set oRootDse = GetObject("GC://RootDSE)
     sRootnamingContext = oRootDse.Get("defaultNamingContext")
    It converts the defaultnamingcontext variable from "DC=a,DC=b,DC,c" to ".a.b.c"
    It checks if the defaultnamingcontext is in the fqdn and if not it appends it at the end of the fqdn. Dunno if I'm clear here so here are examples of good and bad behaviours:
    GOOD:
    FQDN is SQL1.AD1.contoso.com, defaultnamingcontext gives AD1.contoso.com, AD1.contoso.com is in SQL1.AD1.contoso.com so the script go on using SQL1.AD1.contoso.com and it's ok...
    BAD:
    FQDN is SQL1.AD1.contoso.com, defaultnamingcontext gives AD2.contoso.com, AD2.contoso.com is not in SQL1.AD1.contoso.com so the script go on using SQL1.AD1.contoso.com.AD2.contoso.com and it's broken...
    I didn't mention earlier but the runas account I use is from domain AD1. It's called AD1\svc_scom_mp
    My question is how comes sometimes (sometimes means during 6 hours, a whole day, nothing reccurent :( ) The defaultnamingcontext gives me the fqdn of the other domain ??
    I'm wondering if this can be due to the fact that I also have an account called svc_scom_mp in AD2 but I'm 100% sure it's not used here as it's not targeted nor distributed to any AD1 computers.
    I guess it's more an AD problem than anything else.
    Any ideas ?
    <a href="http://myitforum.com/cs2/blogs/fdufour/default.aspx">Supervize Me ©</a>

    Hi François
    I tested GetSQL2008SPNState.vbs on my POC with a similar configuration (one root and two child domains) and i have got the same issue. I think the root cause is the Server less binding (GC://RootDSE) used to search defaultNamingContext.
    With Server less binding, GC name relies on
    DNS round robin to find a GC, if a GC from another domain is returned the defaultNamingContext will be the other domain.
    You can check GC resolution with nslookup:
    nslookup gc._msdcs.contoso.com  (the root domain)
    repeat the command to see the round robin result.
    I wrote a vbscript to test it:
    This script search all GC and search defaultNamingContext with GC provider server less and server name binding. With LDAP Provider the right domain name is always returned.
    =============================
    ldapFilter = "(&(objectClass=nTDSDSA)(options:1.2.840.113556.1.4.803:=1))"
    Set rootDSE = GetObject("LDAP://rootDSE")
    configDN =   rootDSE.Get("configurationNamingContext")
    Set ado = CreateObject("ADODB.Connection")
    ado.Provider = "ADSDSOObject"
    ado.Open "ADSearch"
    Set objectList =   ado.Execute("<LDAP://" &configDN& ">;" & ldapFilter & ";distinguishedName;subtree")
    ' GC Server less binding LDAP
          Set oRootDse = GetObject("LDAP://RootDSE")
          If Not (oRootDse Is Nothing) Then
                sDefaultNamingContext = oRootDse.Get("defaultNamingContext")
                wscript.echo "Server less binding:
    LDAP://RootDSE"
                wscript.echo "   DefaultNamingContext found: " & sDefaultNamingContext
                 wscript.echo " "
          Else
                wscript.echo "   NOT found: "
          End If
    ' GC Server less binding  GC
          Set oRootDse = GetObject("GC://RootDSE")
          If Not (oRootDse Is Nothing) Then
                sDefaultNamingContext = oRootDse.Get("defaultNamingContext")
                wscript.echo "Server less binding: GC://RootDSE"
                wscript.echo "   DefaultNamingContext found: " & sDefaultNamingContext
                 wscript.echo " "
          Else
                wscript.echo "   NOT found: "
          End If
    wscript.echo "Server Name binding: GC://<ServerName>/RootDSE"
    While Not objectList.EOF
        nTSDSA = objectList.Fields("distinguishedName")
        serverDN = Mid(nTSDSA, 18)                                        
        Set serverObj = GetObject("LDAP://" & serverDN )
        WScript.Echo " GC name:" & serverObj.dNSHostName
        ' GC Server Binding
        Set oRootDse = GetObject("GC://" & serverObj.dNSHostName & "/RootDSE")
          If Not (oRootDse Is Nothing) Then
                sDefaultNamingContext = oRootDse.Get("defaultNamingContext")
                wscript.echo "   DefaultNamingContext found: " & sDefaultNamingContext
          Else
                wscript.echo "   NOT found: "
          End If
        wscript.echo " "
        objectList.MoveNext
    Wend
    ======================================================
    Cordialement

  • [SOLVED] Weird behaviour after formatting USB installation media

    Hi, I have noticed this weird behaviour with USB drives I used to install Arch linux with.  I format them using fdisk and mkntfs but after replugging them in, the udevil daemon mounts them again as ARCH_2013...[something] and even the directory tree exists!  This happens also when I use mkntfs without the -f flag (initializing with zeros).  I also checked the other files in /dev/sd* in order to make sure that my drive does not appear twice, but there is only sda (my HD) and sdd (or sometimes sdb, sdc,...) which must be the USB drive, also according to dmesg.
    Any ideas?
    EDIT: I wrote something about not seeing any files when manually mounting but that was my bad, I only tried mounting /dev/sdb1 but mounting /dev/sdb brought me the same files as devmon showed.
    Last edited by ysetdng (2014-07-12 22:36:46)

    I am assuming you used dd to write the image to the disk. You can use it to remove the contents of the disk as well.
    You should make use of the arch wiki, it is quite helpful.
    https://wiki.archlinux.org/index.php/US … tion_Media
    You can use this to zero out the entire device:
    # dd if=/dev/zero of=/dev/sdx bs=8M // x is the letter assigned to the usb drive. Be careful, The dd command is destructive.
    It may take a while to zero out the entire disk, depending on the size. After that use fdisk/cfdisk or gdisk/cgdisk to create the partition table and partition.
    To create the filesystem type, this one, ext4:
    # mkfs.ext4 /dev/sdx // or create a vfat
    then create the label:
    # e2label /dev/sdx1 USB_STICK_LABEL
    Use my suggestion as a last resort. Read the wiki, most of what I have said is in there anyway.
    Last edited by rgb-one (2014-07-12 18:21:18)

  • Weird behaviour in report filter with Presentation variables

    Hi All,
    I'm facing a weird behaviour on filtering the report using presentation variables
    Prompt:
    1. Start Date assigned to PV_ST_DT
    2. End Date assigned to PV_END_DT
    Report
    In the filter section given the "between" condition with these two presentation variable
    Fiscal Date between {@PV_ST_DT}{01/01/1990} AND {@PV_END_DT}{01/01/1990}
    this given filter condition results in the report like
    Fiscal Date is equal to ({@PV_END_DT} value)
    the filter criteria is not applied as I given, I have tried by changing the conditions like greater than or equal to , less than or equal to. The filter applied only the last presentation variable value with the prompt condition, It is not taking the condition specified in the report.
    Can anyone provide a solution on this?

    Below format: works perfectly fine
    Fiscal Date BETWEEN '@{PV_ST_DT}{01/01/2007}' AND '@{PV_END_DT}{01/03/2007}'

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

Maybe you are looking for