Server problems with a counter

My clients are given jobs by a server thread, the clients create a thread to work on the problem, once the client is finished it makes a call to the giveResult(String result,int resultIndex) method. This method will put the results(there are 100 hundred of them) into an array that size at the given index (that was passed into the method), it will then increment (resultIndex++). This works fine when it`s getting a reasonable amount of requests, but if i test it with request every .001secs it sometimes forgets to increment the counter. This causes it to hang (while resultIndex <100). This i would have put down to synchronisation but when i tried to implement it with a vector array and made the break condition (array.size() < 100),
it works fine, and it is putting all the client reults in the right place, it just seems that sometimes it forgets to increment...any ideas?
a simplified version.....
void giveResult(String result, int ResultIndex)
boolean writing = True;
resultArray[resultIndex] = result;
System.out.println("successfully outputted: "+result+" at array index:"+resultIndex);
resultIndex=resultIndex+1;
writing = false;

You probably have a synchronization problem in incrementing the index. My best guess is that
process a grabs the index value - say 0.
process b grabs the index value - also zero
process a completes the increment - 1
process b completes the increment - 1 // No fun - should be 2!
Synchronize the whole upfdate method.

Similar Messages

  • Problem with message count

    hello ,
    I have problem with message count, in my inbox there are more than 0 messages but i got result of
    Folder inbox = store.getFolder("Inbox")
    int c =inbox.getMessageCount()
    of c is 0
    i.e i got c as zero rather than 5.

    I am seeing the same thing and I agree with MathiasF's observation.  My count seems to increase when I do a search for mail on the server.  This has happened previously (iOS 5.x) but ending the Mail app always fixed it.  The only way I can correct the count now is if I turn off sync for Mail on the Exchange account and re-enable.  This clears my mail and causes my phone to go out and redownload.  Rebooting and resetting the iPhone has not helped.
    I'm on Sprint - 32GB White iPhone 4S running iOS 6.0 (10A403)

  • DNS Server problems with ASA 5505

    Hi guys,
    we setup a new ASA 5505 which is mainly used as our VPN gateway. The ASA is configured and controlled by our ISP (and this is where the problem starts )) and they somehow cannot manage to get the VPN settings really working.
    So, here is our problem.
    our machines(Windows 7) are configured to get the network settings through DHCP (Windows 2012 Server).
    Before I connect with AnyConnect to our VPN gateway, the DNS Server setting in the network settings for the adapters(IPv4) are set to 'dynamic'
    When I now connect, this setting is changes to a statc entry (which is our DNS server).
    When disconnecting, it is not reverted back, which means I have to do this always manually.
    What I do not understand is the fact, that the DNS server is set for all the adapters, shouldtn't it be only set to the anyconnect adapter?.
    The interesting thing is, that when I connect to a different ASA, this does not happen. The ISP is now saying, that the machines are configured exactly the same and that they cannot reproduce, but I can't believe this.
    This issue shows up at every machine which connects to our vpn, so it is not only a single machine which might be misconfigured.
    Do you have any idea what might cause this issue?
    btw, the second ASA (which works) is from our partner company, so we cannot simply copy the config
    THanks in advance
    Patrick

    Nice to see someone from BT has addressed your issue 
    I have this exact same problem, seems completely bizarre, I'm pretty sure I had the same problem with the original home hub (i have the latest one now). Can you confirm whether the problem does affect anyone with a bt home hub and not just the one that the dyndns is pointing at? I'll try and confirm by hitting your domain from my home connection.

  • Problem with record count...

    Hi,
    I try to solve one problem with count. This problem occurs when I getting multi records that I need to count. Take a look on the following query:
    SELECT INVOICE,COUNT(INVOICE)
    FROM TABLE WHERE ADDR =
    (SELECT ADDR FROM TABLE
    WHERE DELEVERY = 'DD'
    GROUP BY ADDR||POSTDT
    HAVING COUNT(DISTINCT ADDR||POSTDT) > 1)
    GROUP BY INVOICE;
    I expected to see each invoice with total count invoices that have been delivered to the same address and date. But it's give me only invoice and count 1(itself), regardless if two or more invoices have been delivered to the same address and the same date. I think, that I just lost myself in this query. Hopefully I gave enough information.
    Thanks in advance,
    Alex

    Hi Alex,
    there are a couple ways to code this. Just two of them:
    SELECT t1.INVOICE,
           t2.total
    FROM   TABLE t1,
           (SELECT   ADDR,
                     POSTDT,
                     count(*) total
            FROM     TABLE t2
            WHERE    DELEVERY = 'DD'
            GROUP BY ADDR,
                     POSTDT
            HAVING   COUNT(*) > 1
    WHERE  t1.ADDR   = t2.ADDR
    AND    t1.POSTDT = t2.POSTDT
    SELECT t1.INVOICE,
           (SELECT   count(*)
            FROM     TABLE t2
            WHERE    DELEVERY = 'DD'
                     t2.ADDR   = t1.ADDR
                     t2.POSTDT = t1.POSTDT
            GROUP BY ADDR,
                     POSTDT
            HAVING   COUNT(*) > 1
           )  total
    FROM   TABLE t1

  • Mac OS X 10.5.7 Server - Problem with SMB-Share

    Hi@all,
    i've following problem with my Mac OS X Server.
    I want to disable the virtual share points of SMB with Server-Admin.
    After disabling the virtual share point and saving, the virtual share points are autmotically enabled again. I don't know why and how i can solve this problem.
    Does anybody know, what is going wrong?

    Try the Server Products forums.

  • RG54GS print server problem with hp 1200se

    I tried to install the print server on win 2000. I followed the instructions in the manual and the installation finished successfully, but when I was trying  to print a document nothing happened. 
    Are there some problem with the printer hp LaserJet 1200 series.
    thanks for any hints
    markus

    what print server are you trying to install? how is your Laserjet 1200 connected to your network? (through a JetDirect card?)

  • Problem Mail program & Outgoing Mail Server - Problem with Earthlink

    I had Earthlink POP / SMTP ( In/Out ) Mail server and mac Mail set up when I pulled the power plug on PMG4 due to freeze up !
    Now have no contents in mac Mail program In/Out/Sent/Draft on the PMG4 hardrive or the external Lacie brick back-up hardrive. I am told by Earthlink this is because I had the " don't save email copy on server " box checked in the Mail/Add account/Advanced section.
    Any idea how I can retieve my email folders ?
    Also cannot get rid of 6 account names listed erroneously under Mail/Preferences/Account/Accounts Information/outgoing mail server ! And yet there is only one account listed when the accounts button is pushed. This is making it impossible to connect to the earthlink server ! Earthlink says everythings fine on their end and I have the correct Server Port number entered ! Earthlink says it's a problem with macMail !
    Help !

    This is no longer an issue

  • WWI server problem with report shipping order

    Hi everybody,
    we have a problem with the WWI server and report shipping orders for Inbound documents (PDF):
    after we created an entry in CVD1 and using buttons "Accept" and "Ship immediately" we run the report RCVDEVEN. First time we did it the WWI server started working and ended with error but assigned the correct PDF. After that, the WWI server didt start anyway.
    First error message:
    The description for Event ID ( 91 ) in Source ( PRD ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: PRD.
    Second error message after second attempt:
    The description for Event ID ( 95 ) in Source ( PRD ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:   09/14/09 17:59:49 Start Function 'WWI_SERVER_INFO'
      Initializing parameters
      Initializing Tables
      Receiving data from client
      Sending data to client
    Elapsed time : 0.1 sec.
    OSS note 1058521 has already been found - but nothing described here is relevant for us: the RFC connection is working, the WWI monitor shows the server up and running.
    Any ideas?
    Thank you very much in advance and best regards,
    Christoph

    Hi folks,
    fixed the problem myself. There have been some documents with error in the printer queue of the WWI server.
    Best regards,
    Christoph

  • DNS Server problem with AX

    my network only consists of the AX, my macbook, and my PC (which is rarely used anymore). At least once a week, sometimes more often, my AX reports a DNS server problem. I've plugged it in to the ethernet and the settings are they same and there is no other router involved. The AX is connected directly from the cable modem. I confirmed with my ISP that the DNS server numbers are correct and they show up in the proper fields as well. What may cause this and how can I fix it?

    Welcome to the discussion area!
    Since the Express can only use the information that it receives from the ISP,
    you might want to try the Open DNS settings to see if that will help. Just be sure to make note of your current settings in case you need to revert to them.
    208.67.222.222 and 208.67.220.220
    http://www.opendns.com/

  • Problem with multiple counter plan containing running hrs and no of months

    Hey gurus,
    In my project the preventive maintenance of compressor is such that it is performed after 500 hrs or 6 months whichever comes first. Now i ve created a cycle set cosisting of 500 hrs and 6 months. In the multiple counter plan i ve assigned a counter to the plan for calculating 500 hrs and chosen the link as OR. I scheduled the plan and given the start date as 01.05.09. Now I am facing the following problem:
    Suppose my counter value reaches the 500 mark on 01.08.09. Now a maintenance order is generated. My client now wants that the next order should be generated after the counter reading reaches 1000 or the date reaches 01.02.10, ie, the order should be generated for next 500hrs or NEXT 6 MONTHS from
    the date of completion of first cycle, whichever comes first.
    Pls help....
    Regards,
    Abhishek

    Hi
    If u have scheduled ur plan according to cycle set. It will take the Point of contact as 6 months.
    OK
    Ex : Cycle set : 500 hrs and 6 months, maintained OR functions
    i have entered the measurement reading as 500.. thats why, it gives the call for todays date...
    see the next date will be after 6 months... If u update the measuring point only, it will open a order... otherwise.. once u have scheduled it for 6 months.. once in 6 months it will give a order...
    1     11.05.2009               0     New start  Save to call
    2     07.11.2009     07.11.2009          0     Scheduled  Hold
    3     06.05.2010     06.05.2010          0     Scheduled  Hold
    4     02.11.2010     02.11.2010          0     Scheduled  Hold
    5     01.05.2011     01.05.2011          0     Scheduled  Hold
    6     28.10.2011     28.10.2011          0     Scheduled  Hold
    7     25.04.2012     25.04.2012          0     Scheduled  Hold
    Schedule for a long period.. u will be able to understand the scenario...
    - Pithan

  • Problem with syncing count of plays with itunes

    Hi everybody,
    Recently I lost my laptop (it has been stolen). Also i lost all data on harddrive including itunes libary. Thing is, all my music was on iPhone. Some of albums I bought in iTunes store, some of them imported from cd's. There was lots of stuff. When I bought another laptop, and connected my iPhone it says all data will be deleted from iPhone and replaced with data from itunes library. So I didn't want to do this, because i don't want to loose my count of plays, my playlists, etc, btw it would take ages to import all this music again, not mentioned about albums from itunes store!
    So i found this program - SHAREPOD - it helped me to copy all this data back to the computer, I copied that to iTunes Media folder and everything is in iTunes, so that's fine (apart from couple missing album artworks). But now, when I try to sync my iPhone with iTunes, it says the same message - all your data will be repleaced with itunes library. But I don't want it to repleace that, I just want to sync iPhone with that library. I really want to keep my count of plays for every song.
    Btw. the same problem is with programs, it wants to repleace that with itunes library, I've got more than 100 apps, most of them paid and i don't want to loose them, but I want it to work exactly the same as it worked previously.
    For me it's a really huge issue, that basically sync works only one way...
    Please help.

    You will have to sync and with any luck it won't try to re-sync all your music. In iTunes if you right click on your phone under the devices list you can select "transfer purchases" and that will move all your apps to iTunes.
    TuneUp companion is a great program that runs along side of iTunes that will fix all your track info and put the album artwork in the info.

  • Using a site in iWeb to publish to an external server - problems with RSS

    Hi!
    I have a rather odd problem. I have a .Mac account, but I also work for a non-profit organization that has asked me to handle their website. I would like to use iWeb to do that and am attempting to publish the site to an external server. However, I also want to use iWeb to publish my own personal account pages to .Mac.
    I have the site up and running, and most everything works on it except the RSS feed. I typed the url into the Publish to Server dialogue, but it has been to no avail. I wonder if it has to do with the fact that I am not publishing ALL of my sites to this server, just one of the sites. (When I invoke the Publish to Server command, it creates a master index and folders for each of the sites. Then, I have been discarding all of them except for the folder of the site I want to publish, which I have to name "public_html" to conform with our domain provider's requirements. This works great, except the RSS feed is broken when I do this.
    I know I can use a seperate log-in account and re-make the entire webpage there, but I consider that to be a last resort and I am looking for a better method than this.
    Any suggestions? The site is http://www.oatag.org
    Thanks,
    Steve
    MacBook 2gHz Core Duo   Mac OS X (10.4.2)   1 GB RAM, Superdrive, 100 Gig HD

    Then, I have been
    discarding all of them except for the folder of the
    site I want to publish, which I have to name
    "public_html" to conform with our domain provider's
    requirements. This works great, except the RSS feed
    is broken when I do this.
    When you break the site structure by changing names of folders you also break the link for the RSS feed.
    I find it hard to believe you are really required to change the name of the folder like that. Instead you should be inserting into the folder called public_html the following two things: the folder published by iWeb which has the same name as your site does inside iWeb, plus the index html file published alongside it. To make sure that this index.html file actually points to the site you are uploading, make sure this site is at the top of the list inside iWeb before publishing.

  • Problem with read count

    I am trying to receive 2500bytes via serial port and plot it on a chart, after sending character "S" to the sender device.
    I have set the "read count" to 2500 so it is supposed to receive 2500 byte then wait for another "S" but it just receives 101 bytes and then goes to next program iteration. how can i solve this problem?
    The VI have been attached.
    Attachments:
    2500.vi ‏21 KB

    First, you've posted to the wrong board. Your question has nothing to do with NI digital I/O devices.
    You seem to not understand how a VISA Read works. A read will terminate when the byte count is reached, or the timeout is reached, or the termination character is detected. Disable the termination character or set up multiple reads in order to get multi-line strings. For example, keep reading until the available bytes is zero. With a loop, shift register, and a concatenate string, this is easy to do.

  • J2ee server problem with details

    I 'm working on Win 2000 machine.
    While starting the j2ee server from command line
    with the command
    j2ee -verbose
    I am getting error message as follows
    J2EE server listen port: 1050
    Naming service started:1050
    Exception in thread "main" java.lang.NoSuchMethodError
    at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImp
    l.java:1256)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(Sh
    utdownUtilDelegate.java:223)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(Shutdown
    UtilDelegate.java:178)
    at javax.rmi.CORBA.Util.writeAny(Util.java:80)
    at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.re
    bind(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202
    at javax.naming.InitialContext.rebind(InitialContext.java:370)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:192)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:149)
    at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
    at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.ja
    va:473)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Please help

    J2EE server listen port: 1050
    org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
    at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:
    256)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205
    at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:1
    40)
    at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:49
    2)
    at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:156
    at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:114)
    at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:114)
    at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:132)
    at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
    at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:
    2488)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2423)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: Unable to create ORB. Possible causes
    include TCP/IP ports in use by another process
    Error executing J2EE server ...
    C:\Apps\J2SDKE~1.1\bin>j2ee.bat
    J2EE server listen port: 1050
    org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
    at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:
    256)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205
    at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:1
    40)
    at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:49
    2)
    at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:156
    at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:114)
    at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:114)
    at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:132)
    at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
    at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:
    2488)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2423)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: Unable to create ORB. Possible causes
    include TCP/IP ports in use by another process
    Error executing J2EE server ...
    C:\Apps\J2SDKE~1.1\bin>j2ee.bat -verbose
    J2EE server listen port: 1050
    org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
    at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:
    256)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205
    at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:1
    40)
    at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:49
    2)
    at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:156
    at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:114)
    at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:114)
    at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:132)
    at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
    at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:
    2488)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2423)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: Unable to create ORB. Possible causes
    include TCP/IP ports in use by another process
    Error executing J2EE server ...
    C:\Apps\J2SDKE~1.1\bin>j2ee.bat -verbose
    J2EE server listen port: 1050
    org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
    at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:
    256)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205
    at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:1
    40)
    at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:49
    2)
    at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:156
    at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:114)
    at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:114)
    at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:132)
    at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
    at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:
    2488)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2423)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:206)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP
    ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: Unable to create ORB. Possible causes
    include TCP/IP ports in use by another process
    Error executing J2EE server ...
    how bout this problem?

  • PXI 6220 - problems with the counter

    Hello all,
    I try to make a buffered counting with counter0 of my PXI card 6220, to count the speed of a motor through a photocell and a sticker over the pulley of the motor.
    I have wired my photocell at PFI8 (source) and I generate a pulse train that I have wired in PFI9.
    The input to the counter is a pulse train 5V high level - 0V low level.
    The problem is that the counter counts sometimes more than 1 pulse for every turn of the motor. However, apparently the pulse train looks ok.
    I don´t know what´s the problem.
    The rising slope of the pulses looks very nice so, I think I could discard it.
    I can suppose that in between pulses there are some glitches at a very high frequency that I cannot see (I have sampled this signal only at 800kHz and at this frequency there are no glitches), but maybe the counter yes, because it works at 20MHz.
    Somebody has experienced this problem. Sometimes ago, using a PCI6221, I solved a similar problem by activating the digital filtering, but it seems it is not possible to activate for this cards. Could somebody confirm it?
    Any ideas will be appreciated.
    Thank you very much in advance!!

    Pete;
    I agree that is a little strange.We don't have such problem reported on our Data Bases.
    A workaround you can try is to make a sinle pulse goes to the source, before start the buffered acquisition, and see if that makes the counter keeps reporting a 1 value.
    You can also try the same thing on another counter of the board to see if that problem is related to the counter you are using.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

Maybe you are looking for