Trouble with supposedly strictly-typed reference...

I'm having some issues with supposedly strictly-typed references.
Can anyone look at the code attached (LV2010) and tell me why the top example doesn't work and the bottom does. More over, what's the general way to make the top example work?
The discussion of strict and weak typed is rather short in the documentation in the help. Any pointers to relevant documentation would be appreciated.
Thanks!
Solved!
Go to Solution.
Attachments:
Test.zip ‏46 KB

I swear I read that help page like ten times and now I finally see the caveat in documentation. It would be nice if they mentioned this in the Enum Property page or in the table for Strings[] in the documentation instead of hiding it in the documentation.
That said, now that you say it, it's obvious why. I wish the error I received (1082, I believe) could also be a bit more specific as I don't explicitly make the enum a strict type def, it simply is implicitly.

Similar Messages

  • Trouble with wlappc -- unresolved library references

    I'm trying to pre-compile my Portal webapp projects JSPs using the wlappc Ant task. This is the relevent piece of my Ant script:
         <path id="wls.classpath">
              <path refid="java.classpath" />
              <dirset dir="${.java.src.output}" />
         </path>
         <property name="wls.classpath.prop" refid="wls.classpath"/>
         <echo level="debug">Classpath for wlappc (JSP compilation) is ${wls.classpath.prop}</echo>
         <wlappc deprecation="true" source="WebContent" forceGeneration="true" lineNumbers="true">
              <classpath refid="wls.classpath"/>
         </wlappc>
    And this is the error I am getting:
    [java] There are 1 nested errors:
    [java]
    [java] weblogic.utils.compiler.ToolFailureException: Error: Unresolved WebApp library references defined in weblogic.xml, of module 'C:\h\project\po
    rtal\projectportal\WebContent' [Extension-Name: wls-commonslogging-bridge-war, Specification-Version: 1, Implementation-Version: 1.0, exact-match: false]
    , [Extension-Name: wlp-groupspace-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-tools-
    visitor-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-collab-portlets-web-lib, Specifi
    cation-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-commonui-web-lib, Specification-Version: 9.2, Implementa
    tion-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-services-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-matc
    h: false], [Extension-Name: wlp-framework-full-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Nam
    e: p13n-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: beehive-controls-1.0-war, Specificat
    ion-Version: 1, Implementation-Version: 1.0, exact-match: false], [Extension-Name: jstl, Specification-Version: 1.1, Implementation-Version: 1.1.2, ex
    act-match: false], [Extension-Name: wlp-lookandfeel-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extensio
    n-Name: wlp-light-web-lib, Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-wsrp-producer-web-lib,
    Specification-Version: 9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-framework-common-web-lib, Specification-Version:
    9.2, Implementation-Version: 9.2.1, exact-match: false], [Extension-Name: wlp-framework-struts-1.2-web-lib, Specification-Version: 9.2, Implementatio
    n-Version: 9.2.1, exact-match: false], [Extension-Name: struts-1.2, Specification-Version: 1.2, Implementation-Version: 1.0, exact-match: false], [Ext
    ension-Name: beehive-netui-resources-1.0, Specification-Version: 1, Implementation-Version: 1.0, exact-match: false], [Extension-Name: beehive-netui-1
    .0, Specification-Version: 1, Implementation-Version: 1.0, exact-match: false], [Extension-Name: weblogic-controls-1.0-war, Specification-Version: 1,
    Implementation-Version: 1.0, exact-match: false]
    [java] at weblogic.servlet.utils.WebAppLibraryUtils.initWebAppLibraryManager(WebAppLibraryUtils.java:90)
    Thanks in advance for any help!

    hi...even i am facing the same problem...can you plsssssss tell me what have you done to resolve the issue...

  • App Builder produces "Not Executable" error with Strictly Typed VI Refs

    There is a very frustrating problem with the app builder in LV 8.0.1.  Certain VIs compile and run fine in labview, but the app builder
    refuses to make them into applications.
    The error message is very long and ends with something like "The VI is not
    executable".  Standard advice for this problem is to force LV to recompile
    everything you're building by either mass compiling or ctrl-shift clicking the
    run arrow, but this hasn't worked for me in two separate cases (completely
    different projects).
    It seems that this problem is caused by wiring a strictly typed VI reference to
    an invoke node with the FP.open method selected.  In both cases I resolved
    the issue by changing the Static VI Reference to be weakly typed (right-click
    the static vi reference and make sure "Strictly Typed VI Reference"
    is unchecked). After that, the project build successfully.
    This is very hard for a user to track down for several reasons:
     - The error message in the application builder does not give any
    indication as to what the real problem is
     - The app builder reports that the top-level VI is broken, even when the
    strictly typed reference and invoke node may occur in a sub VI
     - Nothing (that I can
    find at least) in the documentation suggests that strictly typed references
    won't work with the Open.FP method. 
    There is a page that says "some of the properties and methods do
    not work when you configure this function to output a strictly typed VI
    reference," but no indication is given of which methods fail
    Note that in one case I was also able to make the project
    build by deleting an instance of "IMAQ Create.vi" from the top-level
    VI.  I 
    have no explanation for this.
    Hopefully this post will save some other users the trouble
    of tracking this down and maybe even get NI to correct the issue for future
    versions.
    Adam Brewster

    Hello Adam,
    Thank you for sharing your experience and insight.  Your post was well thought-out and offered a
    good description of the problem as well as some possible workarounds.  I believe that the issue has been filed and
    is under investigation (3TU8T8V9).  Feel
    free to post back after the next LabVIEW release and inquire as to its status.
    Thanks again,  
    Travis M
    LabVIEW R&D
    National Instruments

  • How do I get a strictly typed VI reference of a particular clone that is idle?

    I need several clones of a VI that store different state informations. I considered passing data to and from these clones by the 'Call By Reference Node', and therefore used strictly typed references to call the clones. My problem is that each time the calling VI turns idle the references turn invalid. How can I access a particular clone to read out its state information in such a situation?
    Thank you, Uli 

    Thank you everybody for so much expert support!
    This was my first appearance in this forum, and it was a good experience.
    Ravens Fan, thank you for the wrong browser advice. Obviously Mozilla does a better Job here.
    Mike, I added another VI named '1_CallCloneByNameString.vi' to show that the clone name seems to be simply ignored (so, if you say 'open any.vi:1' it creates any.vi:2 or higher...)
    I think the only way out is to keep the VI from finishing, as Pnt suggested.
    It's just weird that when all VIs have finished the front panel of a clone might still be visible, but there's no way of accessing the data of its controls anymore...
    Uli
    Attachments:
    0_CallCloneByStrictTypeRef.vi ‏16 KB
    1_CallCloneByNameString.vi ‏17 KB
    StateOfClone.vi ‏13 KB

  • Reference behaviour of strictly typed controls

    I have a question regarding the bahaviour of a user-made cluster which I have set to strictly typed.
    I am using a reference to this cluster (Which in turn contains other clusters) to automatically read an ini file. I also have an array within one of these sub-clusters (Main Cluster - Sub-Cluster - Array). I want to set the values within this array (The elements of which are also clusters) using only the reference to the control. This works fine, except for the fact that I cannot programatically set the index of the array if my control is strictly typed. If I change the control to type-def, it works.
    Is this normal behaviour, and if so, can someone please tell me why? Does it have to do with altering the appearan
    ce of the control?
    Thanks in advance
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

    I assume you mean "strict" type-def.
    Go to www.ni.com
    Search for "Application Note 159" (including quotes)
    Look at http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/a9fbcaa7a3d7922186256a3000652b56?OpenDocument#10
    Look at http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/1b04fd6a11e6f17286256c6300588bfa?OpenDocument
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • I am having trouble with my iPad, i can start it, but the iPad does not work. i tried to use the power and home button at the same time, the apple logo appears, but the iPad does not work. What am I suppose to do?

    I am having trouble with my iPad, i can start it, but the iPad does not work. i tried to use the power and home button at the same time, the apple logo appears, but the iPad does not work. What am I suppose to do?

    After the Apple logo appears, what happens then? Can you hear any sounds or if you tap on the screen, does it seem like apps can open or are you just seeing a black screen? You might have a hardware problem, but you can try restoring the software and see what happens.
    Read this in its entirety before you do anything. Make sure you read the sections at the end about using recovery mode.
    iTunes: Restoring iOS software - Support - Apple

  • How to read the "Strictly Typed VI Reference" of a VI file on disk

    Hi
    I have a .vi file on disk. (e.g., C:\temp\my.vi)
    How do I programmable read the connector pane "Strictly Typed VI Reference" ?
    Br Per

    Please explain what you are trying to do.  Why do you need the Strictly Typed VI Reference?
    If you want a strict type reference to a VI, get a "Static VI Reference" from the application palette.  Right-click and choose "Browse for path...", select the VI ond disk, then right-click on the static reference again and choose "Strictly Typed VI Reference."
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    reference.PNG ‏7 KB

  • Having trouble with momentary delays while scrolling and typing, new problem that seems to be getting worse every day. Mouse?

    Having trouble with momentary delays while scrolling and typing.  It's a new problem that seems to be getting worse every day. Mouse? Internet connection? It's driving me nuts!

    Hi
    Did you find a solution ?
    I have the same problem on my iPhone 4

  • Trouble with Cross-References

    FM11 / DITA 1.2
    What could cause a particular cross reference to consistently NOT work? I know that's vague. I'll try to give a more specific example:
    Let's say I have a collection of xrefs across several XML files in a DITA map. Some xrefs might even point to the same item (usually a <title> tag with an ID attribute). On output to a book with FM components, particular xrefs just will not work (they output as "unresolved"). I can fix it manually in the FM file, but I'd rather it work correctly in the first place, especially since I deal with translation in to several languages, and if I can't get an xref to just work, I have to fix it many, many times.
    I've tried deleting the xref and starting again; I've tried changing the ID attribute in case there was some kind of conflict...I still have trouble with that particular xref (and this happens with more than one xref). What else can I try?
    Again, I know this is vague. I'd be happy to elaborate on relevant points. I just don't currently have time to write a massive description and I want to get this question out.
    Thanks in advance.

    Hi ohnehosen...
    Are you up to date on your FM11 patches? It's hard to say what could be causing this problem .. does sound strange.
    While this shouldn't be the problem, you might try linking your xref to the container "topic" element (topic, concept, task, whatever is the immediate parent of the title you're pointing at). While in theory you should be able to xref to a title, that's not really the intent, your cross-ref is referencing a "topic" not the title within the topic. The same goes for a figure or table, you reference the fig or table element not the title within those elements.
    I'd assume that the code in the FM-DITA plugin was designed to work by referencing the container ,it probably wasn't tested the way you're doing it, and there may be some flakiness that would cause this to not always work.
    Give it a try .. let us know how it goes.
    …scott

  • HT1550 I'm having trouble with importing them into iTunes and converting them at the same time. when i hold down option over the files i can't find where its supposed to say create new version. is this if you're in iTunes?

    I'm having trouble with importing them into iTunes and converting them at the same time. when i hold down option over the files i can't find where its supposed to say create new version. is this if you're in iTunes?

    You can't do it in one step. Add to iTunes first, Once the tracks are in iTunes you may convert to a different format.
    tt2

  • Actor framework strictly typed message queues?

    I'm just getting to grasps with the Actor framework.  I have implemented "similar" stuff in the past but I've approached it differently.
    One thing I noticed was how easy it is to send a message to an incompatible actor core which results in a nasty run-time "to more specific class" error.
    In the example project included with LV 2012, if I make the change shown below (OK, I am purposely senidng a wrong message on the given queue) I get no feedback from the IDE that an incompatible message is being sent ont he queue.  I think this has to do with the Message queues being for the base actor class.
    Is there no way to have the actual queues more strictly typed so that we can say that Launching Actor Beta will result in a Queue reference which is only compatible with Beta (or children) objects or does this ruin the entire concept?  If possible, it would prevent the ability oto send incompatible messages completely which IMHO would be an enormous benefit.
    The presentations on the Actor framework have shown huge benefits in strict typing of state machines (I'm referring to a couple of videos I've seen ont he NI website) but this element of things seems to be just a pokey as a string flatten and unflatten.  Send the wrong message to the wrong receiver and >bang< run-time error.
    Just thinking out loud.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

    So two days and no reply...
    I'm referring in essense to this part of the actor framework white paper as included with the template in LV 2012.
    Messages from Callee to Caller
    When a caller wants to send a message to the callee, the caller knows the type of the actor that it launched, so caller can easily choose the right type of message to send. But when an actor wants to send a message to its caller, the actor does not necessarily know what type of caller it has, so it does not know what type of message to send. Ideally, actors should be usable by many different callers. That maximizes code reuse. But making the actor truly independent of the caller requires more effort than is warranted for the situation. There are three techniques for defining messages that an actor sends to its caller
    The High Coupling Solution—In this solution, the callee actor is written specifically for one type of caller, and can never be used with any other type of caller. In this case, the callee knows details about the caller's interface, so it may simply call the Send Message VI of the appropriate message. The message type is thus hardcoded into the actor.
    The Low Coupling Solution—This solution works best when you have a known inheritance hierarchy of callers. In this solution, you create a matching hierarchy of callee actors. So suppose you have callers Hard Drive, Air Conditioner, and Fire Suppression, each of which needs to launch a Fan actor. You would create the Fan class, and then inherit from it Fan For Hard Drive, Fan For Air Conditioner, and Fan For Fire Suppression. Each caller launches its specific callee actor. All of the main Fan class' code is shared, but when it comes time to send messages, the Fan class has a dynamic dispatch method for doing the sending, and each of the children overrides that method to send the message appropriate for its caller. Each callee is still coupled to a specific caller, but the system as a whole is flexible to accommodate new caller types.
    The Zero Coupling Solution—In order to make the callee actor independent from the caller, the caller must tell the callee what types of messages to send so the callee avoids picking a type itself. The best implementation of this solution has the caller record a message into the callee at the time the callee is launched. The callee provides a Set <Type> Message.vi method, where <Type> is the particular event that will trigger the message to be sent. The caller sets the exact message it wants to receive when this event occurs. When the event happens, the callee sends the chosen message, without any knowledge of what kind of caller is receiving that message.
    Often the callee will define an abstract Message class that it uses as the input type for Set <Type> Message.vi. Callers create their own specific child of this abstract class. This setup gives the callee a way to set data into the message through the API defined by the abstract class, and gives the message a way to deliver that data in a form the caller can consume through the various overload and extension VIs.
    Would it be possible to get some examples of the three different approaches to typing of the messages?  I'm aiming for the high coupling solution (with the option of slipping to option 2 through common ancestors) in order to provide the ability to detect wrong messages on wrong queues at edit time.
    Shane
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • How to create a strictly typed refnum control using LabVIEW scripting

    I wish to use LabVIEW scripting to create a strictly-typed refnum control that is bound to my custom control (a type-defined cluster), but I'm unfamiliar with scripting and can't see how to do it.
    If I create a New VI Object, using Control Refnum as the Style, how do I provide my custom control to the VI Object Class terminal? When I try using a reference to my custom control.ctl file (using Open VI reference) I get an error: "Error 1057 occurred... Type mismatch: Object cannot be cast to the specified type."
    Or, if I create a new Control Refnum as above, using a standard Cluster as the VI Object Class, how do I then convert this refnum control to a strictly typed refnum that is bound to my custom cluster control type?
    Thanks in advance for any advice,
    Thoric (CLA, CLED, CTD and LabVIEW Champion)
    Solved!
    Go to Solution.

    Here we go...
    You have to create a new Control VI and then specify the VI Type as Typedef.
    Regards,
    Da Helmut
    Attachments:
    example.vi ‏22 KB

  • Trouble with Sun One 7 and JAAS

    Guys,
    I've been having a trouble with JAAS and Sun One 7:
    - An user1 logins at application and then, open an authorized page;
    - After x minutes (expressed in session-config web.xml tag), login page is automatically loaded;
    - At this time, an user2 (with another profile) logins in the same app, after expired session from user1.
    So, what's happening? User2 can access the same page User1 had accessed, but User2 is more restrictive than User1, so, he couldn't access the resource.
    Please, help me, I don't know what to do.
    Thank u,
    Evandro.

    Hi
    If you want to send messages around an application using the embedded S1MQ message broker, the trick is that -- in general -- you must create the message destinations on the broker as a separate step from configuring the appserver. Then you tell the appserver how to bind a JNDI name to the destination on the broker. To create the destination on the broker, you can use the imqadmin tool (which is part of the message broker, and not the appserver). You can create both queues and topics this way. Let's suppose you created a queue called `fred'. Then you need to bind a JNDI name to this queue on the appserver.:
    asadmin create-jms-resource user admin password somepassword resourcetype javax.jms.Queue property imqDestinationName=fred jms/fred
    Then in the application server code you can get to the message queue by looking up `jms/fred' (strictly speaking, you should look up a java:comp/env name which you bind to jms/fred in your deployment descriptor, but that's another matter).
    You'll need to do the same thing for the queue connection factory: create it using imqadmin, then bind it using asadmin.
    You can do the asadmin stuff instead using the web-based admin console, but you can't (so far as I know) create the actual destinations on the broker this way.
    I hope this helps. If it doesn't, copies of the relevant error message -- in full -- would help me.
    Best wishes
    Kevin

  • In mail, I am having trouble with my cursor.  It doesn't "land" where I think I'm putting it.  It usually "lands" somewhere below where I "click" it to be.

    In Mail, I am having trouble with my cursor.  When making revisions to what I have already typed, the cursor doesn't "land" where I "click" it to be.  It seems to land somewhere below the spot I click on. It seems to have a mind of its own. 

    Cool handyandy42!
    I'm happy I could be helpful, with solving your problem!
    Also, I notice that you have marked your question as answered, but have not utilized the Helpful or Solved options. That may be intentional, but, if you are not aware of the benefits, of using that function, here is some information.
    When you mark the appropriate posts as Helpful (5 pts) 2 available, or Solved (10 pts) 1 available, you are Thanking the contributors, by awarding them points.
    In threads with multiple replies, it also alerts other readers, to which answers may have been helpful, or solved the issue.
    This info, and more, can be viewed by clicking on
    ? Help & Terms of Use, located under your login name, on all "Discussions" pages.
    Specifically What are question answers?.
    ali b

  • TS1646 I am having a lot of trouble with trying to use my debit card to purchase on itunes it always tells me that my card number is invalid. But i know it isn't because i just got the account the only thing i havent done yet is called my bank to see if i

    I am having a lot of trouble with trying to use my debit card on purchase of itune apps or music. Whenever i put my card information in it tells me that this card is invalid. But there is no way that my card is invalid because i just got it last week. So the only thing i haven't done yet is call my bank to check and see if all my bank statements match but if they do then have no idea what to do to get this to work with my computer, ipad mini, or ipod    HELP! PLEASE!

    I am having this same problem and I have even contacted my bank. The address they have is EXACTLY the way I am typing it.  It does match.  I do not understand.

Maybe you are looking for

  • TV:s and projectors for a new Mac Mini 2,0

    I intend to buy a Mac Mini to use as a media center with my TV and projector. Scaning some discusion forums, I understand it is not likely to be plug and play. The intention is to feed a Optoma HD-70 with a DVI-D to HDMI cable. Will this work? Anyone

  • Cloning 11.1.0.6 and attach in 11.1.0.7

    hi, we have two environments, 11.1.0.6 and 11.1.0.7 in windows 2003 in separate machines we are planning to move 11.1.0.6 databases to 11.1.0.7. is it possible to clone 11.1.0.6 database by using the method, backup control file to trace/cold backup a

  • 2LIS_02_S896 issue : Records are not updated into BW

    Hi ->We use 2LIS _ 02 _ SCL extractor to pass PO's to BW with delta. ->Works fine until the last week , ->But on a particular date ( 15.05.2007) some of the records are not updated in BW.They are even not found at PSA level itself ->For eg for a mate

  • Best practice for constructing an editable, saveable form?

    We're entirely new to LiveCycle here, but we're looking to create a document for one purpose: To allow a user to edit their details into the form, email/send ourselves the completed form, and (for legal reasons), leave a fully saved copy of the form

  • Another Printing Question

    I have a customer that using Loftware for label printing.  The software uses and RFC listener to receive print requests initiated by SAP.  The documentation states "Similar to receiving IDocs, the [RFC] Listener will register with SAP.  This will tak