Error 42 on Create Network Stream Reader Endpoint

I'm trying to use Network Streams.  I had no problem on my Windows 7/LabVIEW 2011 system at work.  However, when I tried the same code on my laptop or home desktop (both Windows 7/LabVIEW 2011), I got an Error 42 on trying to create the Reader Endpoint.
I'm very puzzled!  The code is similar to that in the examples, it works on one PC, but fails on two others.  I figure it's something to do with either the LabVIEW setup or a Windows configuration.  I thought they were all set up similarly, however.
Does anyone have an insight into this error?  This is the code that fails ...
Solved!
Go to Solution.

Well, thanks to some hard work, I now know what is happening, but not yet why it is happening.
From my Home PC (Windows 7 PC/LV 2010 and 2011 system that throws Error 42 when executing the NI Example Target Fullness code) I can Remote Desktop in to my Work PC (similar system, but this one can execute the Example code without errors).  Some observations:
1) Viewing all the TCP connections when the system is idle, the Work PC shows four connections to lkads.exe, one of which is marked "Listening", while the Home PC shows none.  I think this is precisely the problem ...
2) There does not seem to be an explicit Firewall rule for lkads on the Work PC.  I made such a rule for the Home PC, but it had no effect (and there still is no active TCP/UDP port associated with it).
3) The Work PC is in a more "active" LabVIEW environment.  For example, there's a camera on the Network and NI Vision routines are installed (IMAQdx), but I don't recall "actively" doing anything special to enable ports or services.
4) This problem seems to only affect my home Windows 7 system(s).  If I try to run the Network Stream examples on these home PCs, but in a Windows XP VM, they run fine (so it's not the hardware, per se).
5) Something that would be "interesting" to try (but I'm not sure I want to waste any more time blundering around in the dark, trying to fix this problem) would be to see what would happen to a Windows 7 in a VM on both the Home and Work PCs.
Here's a question whose answer I do not know, but which I think is at the heart of this difficulty.  When setting up LabVIEW 2010 or LabVIEW 2011 on a Windows 7 PC, what steps need to be taken so that lkads is automatically started at a service.
I should say that when I set (all of) these systems up, I did a "standard" Install of LabVIEW 2010/2011, also installing LabVIEW RealTime.  In the Options, I enabled TCP/IP in VI Server, and accepted the default 3363 port.  I installed the OpenG software, which needs to have TCP established, and have also been able to use VI Server on both Home and Work machines.

Similar Messages

  • Can't create Network Stream connections between Win and RT

    In the attached example, why can't I get all four links to connect without errors? Here's a representative example of the result I'm getting:
    Attachments:
    network_stream_test.zip ‏18 KB

    Hi Bob -
    Yes, one pair of the streams failed to connect. That's what I'm asking about. The timeout is more than enough for them to connect if they will, as evidenced by the pair that did successfully make a connection. (I've also used Network Streams in a couple of applications already, and even across subnets they normally connect within 1 second, so a 10 second timeout isn't an issue here.)
    Yep, I'm aware of the Context Name. But as the Network Streams whitepaper says, and as you reiterated, the default context is assumed when it's ommitted from the URL. That's why one pair of the stream was able to connect in my screenshot. And I'm running my example  in the dev environment anyway, so contexts shouldn't be necessary in the URL at all.
    If you like, you can grab the example I attached and run it yourself to help me investigate. Do all the endpoints connect successfully on your Win/RT setup?
    On a side note, can anyone tell me how to query the current VI's context? I'm certain there's a Server or Scripting node somewhere that does it, but I can't find it at the moment...

  • Oracle Blob using Java help (Error: JVM_recv in socket input stream read )

    I am trying to insert a record with Blob column (size of image 'mg.jpg' about 15KB) and I get the runtime error:
    [java] java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
    [java]      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    [java]      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    [java]      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    [java]      at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2061)
    [java]      at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
    [java]      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
    [java]      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
    [java]      at test.ProvisioningParser.TestBlob.main(Unknown Source)
    This is what code looks like: I am not sure what's wrong, any help appreciated. Thanks!
         try{
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   con = DriverManager.getConnection("jdbc:oracle:thin:@VALUED-20606295:1521:dbbook","jvending","jvending");
                   java.util.zip.ZipInputStream zip = new java.util.zip.ZipInputStream(new java.io.FileInputStream(new java.io.File("D:\\work\\mywork\\source\\test\\ProvisioningParser\\test.par"))) ;
                   int len = 0 ;
                   java.util.zip.ZipEntry entry = null;
                   do{
                        entry = zip.getNextEntry();
                        if (entry != null){
                             if (entry.getName().equalsIgnoreCase("mg.jpg")){
                                  len = (int)entry.getSize();
                                  break;
                   }while(entry!=null) ;
                   stmt = con.prepareStatement( "Insert into icon (parid, clientbundleid, id, iconfile ) values ( ?,?,?,?)"
                         stmt.setString(1,"101");
                         stmt.setString(2,"101");
                         stmt.setInt(3,1);                    
                         stmt.setBinaryStream( 4, zip, len);
                   stmt.setQueryTimeout(0);
                   stmt.executeUpdate();
                   con.close();               
              catch(Exception e){
                   e.printStackTrace();
              }Thanks,
    Rashmi

    As a guess what you are doing with that zip stuff is very odd.
    You do realize that it is just going to put some binary data into the blob right? And the methods that is going to use will not necessarily create a 'complete' zip file?
    If you want a zip file then just load the file, dont use the zip classes.
    And if you want part of a zip file, (and want to store the parts as a zip) then extract it from the file and create another zip entity using a byte stream rather than a file.
    Finally I suspect your error with the blob occurs because you do not close the statement. But at any rate you should figure out how to do the blob code independent of the zip stuff.
    And what oracle driver version are you using? Some of the older ones need oracle specific handling for blobs.

  • Network Streams child's play ?

    Hi all
    after a day of playing with network streams I am afraid network streams are not a child's play or rather they are!
    I tried to re-enact a rather akward, but yet working communication between one server and several clients, that I did some time ago.
    Background is, we want to have instances of the same exe  reporting to one UI.
    The idea is that the UI does not know beforehand how many exes are beeing started and where they are originating from.
    So like before I had a listener that would only recognize a connection request and then spawn a re-entrant handler  to do the rest.
    What I found is here and maybe someone can comment that is
    - When a "Create Network Stream Reader Endpoint" is answered it is not possible to get the URL of your partner.
    - I tried to get the get the URL of myself beforehand to send it over to the new partner. To get a fully qualified URL with host and application seems awkward.
    - I tried to have an executable start up a connection to a partner under labview, but it would not work at all or give an error like "duplicate connection". How specific must the URL be that you use when setting up connections. The whole concept of "default enviroment" seems a bit quick and very dirty
    Knowing that shared variables sometimes give problems when the processor is running at high load and network streams is using the same protocol
    I am considering to review my old STM scheme although the port juggling might also be difficult on a single PC.....
    We'll see tomorrow (CEST).
    Gabi 
    7.1 -- 2013
    CLA

    I'll suggest an often over-lokked but valid option going back to LV 6i.
    VI Server.
    Action engines served via VI Server allow multiple connections and bring with them all of the capabilities of TCP/IP. They handlt all of the data conversions and adaptation as data types morph over time.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Network streams avoid LabVIEW executables to close properly

    If I build an application that contains network streams operations, the application process will not be closed after the application stops. This happens even if I use the Quit LabVIEW call !
    To examine this I used a simple add function with and without a sequenced  'Create network stream reader endpoint' call. The executable with a network stream call, stays in the process list after stopping the application.
    It doesn't matter that the pure create stream call is incomplete to create a stream and is in this way without any functionality. Due to a timeout error no stream will be created, but it ends as described. So this scenario is only to show the behaviour of the executable.
    Any ideas ?
    Thanks in advance
    Christian
    Solved!
    Go to Solution.

    For anyone who is interested I attached a sample project. I think this is a bug without workaround.
    Attachments:
    BugScenarioNetworkStreams.zip ‏13 KB

  • How can a dangling network stream endpoint be destroyed

    I have a cRIO application that creates a network stream writer endpoint that communicates with a windows hosted app that creates a matching network stream reader endpoint.  I have found that on occasion an error in my software occurs and the rt vi that created the writer endpoint stops and the windows app also stops without destroying the endpoint.  The problem is that the rt vi that creates the stream endpoint is called with vi server and exists in the rt startup hierarchy and thus the endpoint name is preserved in memory.  When the process is repeated and the stream is created again the create endpoint vi errors out saying that the stream already exists.  Since the original stream refum is lost, my question is how can one deal with this kind of situation.  Unfortunately the create network stream vi's do not have a option to overwrite any existing endpoints.  I will agree that this sort of thing should not happen in a working application but during debug it is quite frustrating.

    Hey Sachsm,
    You will want to set up your program such that in the event of an error your application does not exit immediately so that you can still close your network stream references.  You can do this by wiring the error wire through your program and when you detect an error on it stop your loop, close all references, and then pass the error to an error handler. If you don't close your references before the program exits (either by an error or the Abort button) then you will probably have to close LabVIEW to get the references to close.  Post back if you have any questions on this.
    Regards,
    Kevin
    Product Support Engineer
    National Instruments

  • Why do I get Network Streams Error -314351 (xFFFB3411​)?

    I've had network streams working great (love them!!) for a while with a type def cluster of some numerics and strings.  I've changed the type def numerous times and haven't had a problem.  The last time I changed it, however, I started getting this error from the "Write Single Element to Stream" primitive.
    "LabVIEW: Unable to read or write the stream endpoint with the specified data type.  The data type isn't compatible with the data type used to create the stream."
    I don't get an error when I initialize the stream with "Create Network Stream Writer Endpoint".  Yes, the same datatype is being passed to both primitives.  It's the same code that has worked hundreds of times until now.
    My best guess is that the Network Streams Engine is somehow caching the old datatype.  I've restarted both the local and remote (LV RT) computers multiple times, to no avail.
    Maybe this is a red herring, but I'm using LV 2010 SP1 with LV RT 2010 (no SP1).  The computer is in another state and not easily upgraded, but I'm working on that as a possible solution.  I doubt that's the problem, however, since it has worked up till now.
    What would cause me to get this error even though I'm using the same type def for both the initialize and write?
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit
    Solved!
    Go to Solution.

    Hi Robert,
    It very well might be that the Network Stream is somehow still registering the old data type. If this is the case, try deleting the Create Network Stream, the Write Single Element, and one of the type defs. Then, place down a new Create Network Stream and Write Single Element, and ensure that it's a copy of the type def. that you're wiring for both the initialization and the write. If replacing the Network Stream VIs fails to do the trick, I'd like to see if I can't replicate the error your getting on my end. To replicate your setup, can you tell me the data type of your type def.?
    On a final note, I searched through the 'Known Issues' for LabVIEW 2010 and 2010 SP1, and found that there is a known issue which might help explain the error you're receiving:
    233205
    Network Streams do not support enums, data types w/ units, substrings, subarrays, & fixed-size array...
    Sanjay C.
    Embedded Software Product Manager| National Instruments

  • Network stream Two network adaptor cards in PC comms with crio

    Hi all,
    I have two network adaptor cards in my pc which i think is causing my problems when collecting data over the tcp. 
    I'm seeing an error message -314340 from the create network stream write/read my address match up and i'm using a template crio vibration data logger. 
    I have two network cards in my pc. I think the error is a tcp one and I’m wondering if this is causing the problem. I’ve given the crio a static ip address 10.0.0.2 with mask 255.255.0.0
    You can see the network adaptor below and it’s ip address 10.0.0.1 so I’m connected directly to this via ethernet cable. However from the Routes print cmd I don’t see the 10.0.0.2. Also the gateway for the crio is default at 0.0.0.0
    Do I need to add the route to the list ? I found the cmd for that which I don’t think I’m using right… route ADD 10.0.0.2 MASK 255.255.0.0 10.0.0.1
    Cheers
    Solved!
    Go to Solution.

    Hi i'm using the crio data logger template from the create project list:
    I'll post my code and some pretty pictures to help explain myself
    I'm using a different crio, so i created a new project and configured the FPGA vi for my hardware, then added the host side. I can run the code see the waveforms after 10 seconds it outright crashes and i've been searching through all the error messages tracking it back to some unfound reason. The irony is sometimes the program creates a tdms file and makes a deposit in the crio folder/deposit (this is defined from an xml file)
    I do notice within a few seconds the cpu on the waveform panel increases to 70+% before crash, so i'm also thinking the FIFO read is at fault, but it could be another red heiring (just installing the real time exection package so i can trace this better).
    I've changed the number of channels from the default 4 to 2 please look in the VibConfig.xml file to see the change as the [Host] Create Config XML.vi doesn't like to changing the channel from 4 for some reason. 
    My set up is [SENSORS] ==> [cRIO] ==ETHERNET==> [PC] Please help 
    Attachments:
    LOG3.zip ‏1584 KB
    error63036.png ‏18 KB

  • JVM_recv in socket input stream read

    I have Oracle 8.0.5.0 and can connect if I use SQL-Worksheet etc..
    When I try to connect using java I get an error:
    JVM_rec in socket input stream read...
    I'm usind JDK1.2.2 and classes111.zip...
    Strange thing is that on another box with the same setup, everything works....
    Any ideas???

    I don't see any know reproducable bugs on this, but does this reproduce with 9.0.5.2 of JDeveloper? The error simply means that the connection between the database and the jdbc driver got cut before the driver thought it should end.
    Rob
    Team JDev

  • Network Stream Error -314340 due to buffer size on the writer endpoint

    Hello everyone,
    I just wanted to share a somewhat odd experience we had with the network stream VIs.  We found this problem in LV2014 but aren't aware if it is new or not.  I searched for a while on the network stream endpoint creation error -314340 and couldn't come up with any useful links to our problem.  The good news is that we have fixed our problem but I wanted to explain it a little more in case anyone else has a similar problem.
    The specific network stream error -314340 should seemingly occur if you are attempting to connect to a network stream endpoint that is already connected to another endpoint or in which the URL points to a different endpoint than the one trying to connect. 
    We ran into this issue on attempting to connect to a remote PXI chassis (PXIe-8135) running LabVIEW real-time from an HMI machine, both of which have three NICs and access different networks.  We have a class that wraps the network stream VIs and we have deployed this class across four machines (Windows and RT) to establish over 30 network streams between these machines.  The class can distinguish between messaging streams that handle clusters of control and status information and also data streams that contain a cluster with a timestamp and 24 I16s.  It was on the data network streams that we ran into the issue. 
    The symptoms of the problem were that we if would attempt to use the HMI computer with a reader endpoint specifying the URL of the writer endpoint on the real-time PXI, the reader endpoint would return with an error of -314340, indicating the writer endpoint was pointing to a third location.  Leaving the URL blank on the writer endpoint blank and running in real-time interactive or startup VI made no difference.   However, the writer endpoint would return without error and eventually catch a remote endpoint destroyed.  To make things more interesting, if you specified the URL on the writer endpoint instead of the reader endpoint, the connection would be made as expected. 
    Ultimately through experimenting with it, we found that the buffer size of the create writer endpoint  for the data stream was causing the problem and that we had fat fingered the constants for this buffer size.   Also, pre-allocating or allocating the buffer on the fly made no difference.  We imagine that it may be due to the fact we are using a complex data type with a cluster with an array inside of it and it can be difficult to allocate a buffer for this data type.  We guess that the issue may be that by the reader endpoint establishing the connection to a writer with a large buffer size specified, the writer endpoint ultimately times out somewhere in the handshaking routine that is hidden below the surface. 
    I just wanted to post this so others would have a reference if they run into a similar situation and again for reference we found this in LV2014 but are not aware if it is a problem in earlier versions.
    Thanks,
    Curtiss

    Hi Curtiss!
    Thank you for your post!  Would it be possible for you to add some steps that others can use to reproduce/resolve the issue?
    Regards,
    Kelly B.
    Applications Engineering
    National Instruments

  • Error -1950678945 (Network Streams)

    I coded up a local network streams example where a reader enpoint waits on the writer and got error -1950678945.  My firewall is turned off, so this article wasn't much help.  Since I plan on supporting multiple endpoints across multiple applications on multiple targers, I'm trying to make the wrapper API flexible.  So, I'm using the full URL to designate endpoints.  I discovered that if you're wiring to the "reader name" terminal of a Create Reader Endpoint node with a URL, that URL cannot contain the local IP address.
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Solved!
    Go to Solution.

    Dear Luis,
    1.You post the link is this article.
    2.I already use TCP/IP for one server multiple clients as attached images. My application is server query data from clients and server broadcast data to clients. Clients always generate data and sometime when user press the button, it will send addition data to server. However, my server use state machine to query clients. So in most situation server will not reveive clients data. How can I resolve this problem? Thank you.
    B/R
    Ancle
    Attachments:
    server.PNG ‏42 KB
    client.PNG ‏38 KB

  • Error: iTunes Library.itl cannot be read because it was created by a newer version of iTunes" Please please help?

    error: iTunes Library.itl cannot be read because it was created by a newer version of iTunes"  Seriously?? This is the closest I have come in 4 days to reinstalling itunes and now this?? please help. and the Apple solutions? Forget it - done them ALL over and over, to a T. I have thousands of songs. If they are lost You will hear my screams around the globe!

    Try the following user tip:
    Empty/corrupt iTunes library after upgrade/crash

  • Network is Read-Only....Error

    Hi!
    I am using the NetworkManager.writeNetwork() method to store my paths
    in my path table and I receive the following error
    Network: XXXX is read-only
    How can I overcome this?
    Thank u
    K

    K,
    Did you open the network as read-only? For example:
    SDO_NET_MEM.network_manager.read_network (net_mem => 'A_NETWORK', allow_updates => 'FALSE');
    instead of
    SDO_NET_MEM.network_manager.read_network (net_mem => 'A_NETWORK', allow_updates => 'TRUE');

  • Visa Resource Name in cluster passed to Network Stream writer causes error 42.

    If I try and pass this "motor data" cluster with an embedded VISA resource name:
    to a Network Stream Writer in this manner:
    Then I get this error from the "Write Single Element to Stream" VI
    If I change the motor data cluster TypDef so that a string control is used instead of the VISA reference, the error disappears and the data passes over the Network Stream without problem.
    Is this expected behavior? 
    I thought that the "data in" (type = "POLY"?) like the one found on the "Write Single Element to Stream" VI was supposed to accept pretty much anything...
    Solved!
    Go to Solution.

    Doug
    I would consider this a bug, as the memory location (more precisely the VISA refnum or session) of a VISA resource means nothing on a potentially remote system. Also I was under the impression that most streaming methods like binary file IO, but also the network streams would use the LabVIEW flattened format for data clusters and for that the VISA resource name would be the only logical choice instead of the underlaying VISA refnum, but I might be wrong in this specific case and the default behaviour for flattening VISA resources might always have been to the VISA refnum.
    Considering that the VISA control can resurect the VISA session from a VISA resource name if it is already opened, flattening to the VISA resource name instead would be more logical, but using a string control in the cluster type definition is a reasonable work around of course.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • ISE Failed to Create Network Device Error

    I am trying to add new network device to a new out of the box ISE 3315 appliance under the Administration > Network Resources section.  I was able to do this the other day but now when I try I get an error that says "Failed to create network device.  System Error!
    Any ideas?  I tried a reboot, and Iam pretty certain I was able to do this a few days ago.  Its a lab device so only I have touch it.  Only other thing I can think to add is that I am running on an eval license until my regular licenses arrive.  From what I see I have 81 days left on my base and advance package eval licenses.

    Is there a certain amount of AAA client for that eval license?
    Thanks,
    Scott Fella
    Sent from my iPhone

Maybe you are looking for