Selector bug?

Hello.
I've written sample socket server on Java using java.nio.* and expirienced problem that seemed to be solved here: [http://bugs.sun.com/view_bug.do?bug_id=6403933]. Behaviour is like described in bug report: after some connections Selector doesn't wait a timeout, it executes ten times a millisecond.
According to bug database this should be fixed in 6u4(b02), we have 6u16(b01) and Linux 2.6.28. How come that 6u16 doesn't contain fix added in 6u4? is that possible?
Code goes here:
public void work(long timeout) {
        int retval = 0;
        try {
            retval = m_selector.select(timeout);
        catch (Exception e) {
            System.out.println(e.getMessage());
        if (retval == 0)
            return;
        Iterator it = m_selector.selectedKeys().iterator();
        while (it.hasNext()) {
            SelectionKey key = (SelectionKey)it.next();
            it.remove();
            if (!key.isAcceptable())
                continue;
            try {
                Socket socket = m_sockl.accept();
                  System.out.println("socket accepted");
                m_workerPool.add(socket);
            catch (IOException e) {
            catch (PoolFullException e) {
                System.err.println("pool is full");
    }The function is executed in loop:
while (m_running) {
    serverFacade.work(100);
}

ejp wrote:
in real life clients will disconnect when they want and how they want, so I can't rely on closing channels on server side.That doesn't make sense to me. In real life, both the client and the server have to close their channels. If you're decermenting the client count you should be closing the channel. Alternatively maybe you shouldn'ty be decrementing the client count?They have to, but they often don't ((: For example, what happens with your software when connection broke?
I should write a production code, not a laboratorial one, so I want to be shure that my software will work as expected under any circumstances.
Okay, current code (which still causes immediate select exits):    public void run() {
        Selector selector;
        try {
            selector = Selector.open();
        catch (IOException e) {
            System.err.println("ServerWorker: cannot open selector");
            return;
        System.out.println("worker running, have " + m_commandHandlers.size() + " command handlers");
        while (!m_stopped) {
            int n;
            addNewClients(selector);
            if (m_clients <= 0)
                continue;
            try {
                n = selector.select(m_timeout);
            catch (IOException e) {
                System.err.println("selector.select error" + e.getMessage());
                return;
            if (this.interrupted())
                continue;
            if (n == 0) {
                System.out.println("continue " + System.currentTimeMillis());
                continue;
            System.out.println("select exited");
            Iterator it = selector.selectedKeys().iterator();
            while (it.hasNext()) {
                SelectionKey key = (SelectionKey)it.next();
                it.remove();
                if (!key.isReadable())
                    continue;
                System.out.println("got some message from client");
                if (!proceedInput(key)) {
                    System.out.println("closing client channel");
                    try {
                        key.channel().close();
                    catch (IOException e) {
                        System.err.println("channel close failed: " + e.getMessage());
                    key.cancel();
                    m_clients--;
    }Is this right?

Similar Messages

  • E17 language selector bug

    Hey, so I've made a switch to E17 (community/e-svn from), and found that a long known bug doesn't let me use the keyboard layout switcher tool. Google gives nothing, the ticket is open. I just wanted to ask, has anyone here stumbled upon this problem and solved it?

    Thanks anyway.
    This is a very stupid question and maybe for another post, but I couldn't try the class you posted here
    http://forum.java.sun.com/thread.jspa?threadID=5203492
    because I couldn't compile it because I downloaded the library and got the folder in for example here:
    C:\Documents and Settings\Mis documentos\softsmithy-v20070520\softsmithy-v20070520\src\org\softsmithy\lib
    From there I added them one by one to my own folder (the one where I have my Java projets and where I downloaded the class you posted) and then I started recompiling each class I was asked for when started compiling the class you posted, but there are so many classes in the library, each one needed to compile the other and I don't know how to compile all at once or include the whole library as a package..
    Message was edited by:
    drholiday

  • Machine selector bug??

    Hi
    Webtools 6 sp1
    Em I right in thinking that the way the system works at the moment, a part can NOT be a component of a product line and a selected component of machine selector?
    And why?
    Thanks
    Charles

    Thanks Bryce,
    Here's the sql statement that gets generated by NetPoint business object responsible for handling Machine selector requests. It gets generated on the IndexChange event of the Year pull-down menu.
    SELECT DISTINCT TOP 200
    pm.PartNo, ISNULL(pcs.PartName, pm.PartName),
    ISNULL(pcs.PartDescription, pm.PartDescription),
    pm.BasePrice, pm.MMImage, pm.StaticThumbnail,
    pm.ProductLineFlag, ISNULL(pcs.PartType, pm.PartType)
    FROM PartsMaster pm
    INNER JOIN PartsCategory pc
    ON pm.PartNo = pc.PartNo
    INNER JOIN CatalogsCategory cc
    ON pc.CategoryID = cc.CategoryID
    INNER JOIN Catalogs c
    ON cc.CatalogID = c.CatalogID
    LEFT OUTER JOIN PartsCatalogStrings pcs
    ON c.CatalogCode = pcs.CatalogCode AND pm.PartNo = pcs.PartNo
    WHERE pc.CategoryID = 16
    AND pm.PartNo IN (SELECT PartNo FROM PartsMachine WHERE MachineCode = 'Honda')
    AND getdate() >= pm.AvailableDate
    AND (getdate() <= pm.ExpireDate OR pm.ExpireDate IS NULL)
    AND pm.AvailableFlag = 'Y'
    AND pm.ProductLinePartNo = ''
    AND pm.VariantMasterFlag = 'N'
    AND cc.CatalogID = 3
    ORDER BY pm.PartNo
    Note the 4th line from bottom: AND pm.ProductLinePartNo = ''
    In the case of my database, this field is populated with value of the ProductLine Part number for every part included in this product line.
    For instance, given ProductLine A containing parts A1 A2 A3. These 3 parts (in my database) have value 'A' in the column ProductLinePartNo, which means that the aforedescribed sql script will NOT retrieve them.
    Of course, I have no control on how this sql statement gets generated. And also, if I remove the 4th line, then the SQL server can pull off the missing records successfully, which leads me to think that the system can not support parts that belong to a ProductLine and MachineSelector in the same time. It seems to be one OR the other.
    Regards,
    Charles

  • [svn] 4756: Bug fix for universal Advanced CSS selectors.

    Revision: 4756
    Author: [email protected]
    Date: 2009-01-30 07:58:55 -0800 (Fri, 30 Jan 2009)
    Log Message:
    Bug fix for universal Advanced CSS selectors.
    1. In CSS, the universal selector * matches any element. It is often implied in selectors, such as the .foo class selector would formally be written *.foo { }. So, what we were previously calling "global selectors" will now be referred to as universal selectors. Flex retains its own special top level "global" selector to function as the root of the inheriting style prototype chain, but other universal selectors will not be associated with this special subject.
    2. When looking for universal selectors, we now match against all possible selectors that have * as the subject rather than trying to pick out specific styleName (class), id or pseudo conditions. This is needed as there may arbitrary advanced conditions in the selector chain, for example, descendant selectors that have a universal subject. Note this was the actual cause of the bug - but the other fixes were needed to separate "global" from "*".
    3. In the compiler, we'll still use the generated _globalStyles.as (i.e. from the "global" StyleDef collection of style declarations) as the place holder for universal selectors (as _*Styles.as would be an invalid ActionScript class name), though these universal selectors will report their subject as "*".
    4. When representing a selector in full as a String, we'll continue to omit "*" as the subject and substitute the empty string, so "*.foo" will be printed as ".foo".
    QA: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Paul
    Bugs:
    SDK-18196 - [Advanced CSS] Descendant selectors with class selectors like VBox .greenBox are not working correctly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18196
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

    Change this:
    <div class="mainnav">
    <li id="width-HealthWellness"><a href="#">Health/Wellness</a></li>
    <ul>
    <li>Flu Section</li>
    <li> Infection Control</li>
    <li> Nutrition</li>
    <li> Physical Fitness</li>
    <li>NIH Newsletters</li>
    </ul>
    to this:
    <div class="mainnav">
    <li id="width-HealthWellness"><a href="#">Health/Wellness</a>
         <ul>
         <li>Flu Section</li>
         <li> Infection Control</li>
         <li> Nutrition</li>
         <li> Physical Fitness</li>
         <li>NIH Newsletters</li>
         </ul>
    </li>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • [svn] 4533: Bug: BLZ-301 - Selector expressions are not being cleaned up properly on unsubscribe

    Revision: 4533
    Author: [email protected]
    Date: 2009-01-14 15:55:31 -0800 (Wed, 14 Jan 2009)
    Log Message:
    Bug: BLZ-301 - Selector expressions are not being cleaned up properly on unsubscribe
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-301
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/services/messaging/SubscriptionManager.java

    Revision: 4533
    Author: [email protected]
    Date: 2009-01-14 15:55:31 -0800 (Wed, 14 Jan 2009)
    Log Message:
    Bug: BLZ-301 - Selector expressions are not being cleaned up properly on unsubscribe
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-301
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/services/messaging/SubscriptionManager.java

  • Bug with keyref with "." as selector

    Seems like there may be a bug in the instance validation XMLBeans 1.0.
    If I have an element that looks like the following, the instance validator always
    fails saying it cannot find the key. If I move the keyref statement outside the
    element into the parent element (and changing the keyref selector accordingly),
    then all is well.
    Any ideas?
    Here's a sample of what doesn't work:
         <element name="fooBar">
              <complexType>
                   <sequence>
                        <element name="foo" type="string" minOccurs="0" maxOccurs="unbounded"/>
                   </sequence>
                   <attribute name="bar" type="string" use="required"/>
              </complexType>
              <keyref name="barRef" refer="barKey">
                   <!-- problem here - XML Beans doesn't like "." -->
                   <selector xpath="."/>
                   <field xpath="@bar"/>
              </keyref>
         </element>

    This is actually the correct behaviour. It's a subtle point in the original spec
    that was cleared up in the errata[1]. Because key values only propagate up the
    tree, the keyref must be at the same level as the key, or an ancestor of the key.
    [1] http://www.w3.org/2001/05/xmlschema-errata.html#e1-19
    Tim Hanson
    "Brian Dueck" <[email protected]> wrote:
    >
    >
    >
    After some more testing and fiddling, it looks like the problem is more
    serious
    than this.
    XML Beans seems to have problems validating keyrefs that refer to a key
    declared
    outside the scope of where the keyref is declared. In other words, if
    the parent
    declares a key, child elements can't use it in a keyref.
    I've attached a sample schema that reproduces a problem with XML Beans
    1.0.
    XML Beans incorrectly fails schema validation of instance documents that
    are actually
    correct according to this schema.
    The following errors are reported from XML Beans validate.cmd when the
    associated
    test document
    is processed. The only correct error below is the one with "I DO NOT
    EXIST".
    C:\temp\test.xml:18: error: Key 'Mary Jones' not found (keyRef keyRefNestedTeamMember@test)
    C:\temp\test.xml:20: error: Key 'Billy Lee' not found (keyRef keyRefNestedTeamMember@test)
    C:\temp\test.xml:21: error: Key 'I DO NOT EXIST' not found (keyRef keyRefNestedTeamMember@test)
    C:\temp\test.xml:21: error: Key 'Sara Washington' not found (keyRef keyRefNestedTeamMember@test)
    C:\temp\test.xml:21: error: Key 'Mary Jones' not found (keyRef keyRefSecondLevelNestedTeamMember@test)
    Seems like there may be a bug in the instance validation XMLBeans 1.0.
    If I have an element that looks like the following, the instance validator
    always
    fails saying it cannot find the key. If I move the keyref statementoutside
    the
    element into the parent element (and changing the keyref selector accordingly),
    then all is well.

  • Bug? chained jQuery Selector in Dynamic Action doesn't work

    Just found out, that this jQuery Selector jQuery("#ABOTYPE_REPORT").find("#f01_0001") doesn't work as triggering Element of type "jQuery Selector" in a Dynamic Action.
    But this one jQuery("#ABOTYPE_REPORT").find("#f01_0001")[0] worked with type "DOM Element" as triggering Element in a Dynamic Action.
    To my knowledge even the first one is a real and valid jQuery Selector and should work.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

    Hi Patrick,
    It would be really nice if you could support a less strict definition of the jQuery Selector (as i understand DOM Object and jQuery Selector to be the advanced and more powerful options).
    In my example i could directly use #f01_0001 if my page wouldn't have more than one TabForm on it (and therefore multiple elements with id f01_0001) ;-)
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • NIO bug? selector doesn't return

    Hello,
    I have a strange problem with my server. When a number of concurrent connections became more than 1000 the server hangs up.
    I use NIO API to manage connections. The server logic is IRC-style, it broadcasts a large number of small messages. In one moment it may disconnect all the users and doesn't accept anymore incoming connections in spite of the java runtime continue working. I wrote a daemon that periodically makes thread dump to log file. When the server works normally the selector thread looks like this:
    IOManager:
        sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
        sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
        sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
        sun.nio.ch.SelectorImpl.select(Unknown Source)
        ioserver.IOManager.run(IOManager.java:143)But when it doesn't respond appear two new "hepler" threads and the dump looks like:
    IOManager:
        java.lang.Object.wait(Native Method)
        java.lang.Object.wait(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$FinishLock.waitForHelperThreads(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$FinishLock.access$600(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
        sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
        sun.nio.ch.SelectorImpl.select(Unknown Source)
        ioserver.IOManager.run(IOManager.java:143)
    Thread-600:
        java.lang.Object.wait(Native Method)
        java.lang.Object.wait(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$StartLock.waitForStart(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$StartLock.access$2400(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$SelectThread.run(Unknown Source)
    Thread-599:
        java.lang.Object.wait(Native Method)
        java.lang.Object.wait(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$StartLock.waitForStart(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$StartLock.access$2400(Unknown Source)
        sun.nio.ch.WindowsSelectorImpl$SelectThread.run(Unknown Source)The selector thread never returns from select operation. I don't know what is the cause of this behavior but I think that a problem is not in my java code. What can I do to solve the problem?
    P.S.
    The hardware isn't so powerful (2 CPUs Pentium III 500) thus it always has 50%-80% of load. Operating system is Windows 2003 Server for Small Business Server (without SPs). JRE: 1.5.0_09 Server VM. Socket receive buffer size: 1024, send buffer size: 4096.
    Ant�n

    Now having looked at the code and where the helper threads are and the main selector thread it seems that they are in a deadlock. From the code it seems very unlikely, since the timing has to be just right.
    As an example,
    Assumptions:
    1) we do a select and because of the number of keys we select on, we need to create 3 helper threads. (so we have the main thread and 3 helpers = 4 total)
    2) The system is quite busy and we are doing 100's of selects / minute and we also wakup the selector for adding and removing keys (cancelling keys etc.)
    Event sequence:
    1) We call select which calls the WindowsSelectorImpl
    2) It creates 3 helper thread (also sets threadsToFinish = 3)
    3) First thread gets created and waits on startLock
    4) Other 2 helper threads get pre-empted out before they can wait on startLock
    5) main thread wakes up everyone waiting on startLock (so one gets started, the other 2 don't)
    6) Main thread enters poll and exits pol
    7) 1st helperThread that was started goes into poll and finishes, calls wakeup on other threads (but they are not waiting yet)
    8) 2 remaining helper threads now get to wait on startLock (not sure if this part can take that long)
    9) main thread now checks threadsToFinish and sees 1 thread is finished and doesn't call wakeup, goes to code where it waits for the helper threads, but they are waiting and missed all the wakeup calls because they took "long" to start.
    So there is a couple of things that need to fall in place for this to happen:
    1) lots of calls into doSelect
    2) relatively busy system (so some of the helpers take long to start)
    3) a key in the main thread and a key in the 1st started helper triggers almost immediately
    Seems that there is a need in the main thread to check if there are any helpers that might have missed the notification to start on startLock, if so, it might need to call it again ??
    Reinier
    PS: The funny thing though is that at the time I only had 1023 keys in the selector, yet there are 2 helper threads that suggest 1024 (main) + 1024 (helper 1) + 1024 (helper 2) = 3072 channels / keys ?
    Edited by: rbezuide on Apr 2, 2008 11:09 AM

  • Please Respond - IE or CSS Bug  in Selector Class

    I have a table 22px high with an 11px high icon and some
    text.
    When I apply the Selector Class with
    Spry.Utils.addClassName('P91','Pselected')
    the selector class "Shrinkwraps" the image and leaves a space
    above and below the
    icon that also jumps to the top of the table cell in IE.
    Here's the Class;
    .Pselected {
    background-color: #CAF4FF;
    height: 22px;
    line-height: 22px}
    I have tried putting the image nested in a table 22px high
    but then I could not control the overall table height as it got
    bigger even though the other class for the text has no vertical
    sizes, padding or margins.
    I tried making a Class with the icon but when I add the class
    it goes over the icon. I use the class for other areas on the page.
    (This is only a Problem with IE of course, Mozilla is fine)
    Not sure what to do at this point. It's only an icon with a
    text label in a table cell. Does anybody know why this happens?
    Thank you in advanced...
    Bisser.

    Well, I revisited this issue and found a way to overcome the
    problem is to use a class in a div and float it left. That solved
    the problem.

  • Apex 4.0 Region Display Selector export bug?

    Dear reader
    As we were very delighted to use the region display selector on a few pages, we noticed when taking an export of the application from development to test that the region display selector dropped one of the two selected regions. So we only saw "Show All"-"Region 2". Region 1 disappeared suddenly. Clicking one of the remaining options did not invoke something.
    When going into the region attributes of region 1 and turn on "region display selector" back to yes made everything up and running again.
    Has anyone been in the same situation?
    It's pretty annoying when going from test to production as we can't modify the code in there once it's installed.
    Kind regards
    Xnni

    Hi xnni,
    Thanks for posting this. Unfortunately I have been unable to reproduce this. I created a page with 2 regions, set both their 'Region Display Selector' attributes to 'Yes', created a separate 'Region Display Selector' region, exported from 1 4.0.1 instance into a different 4.0.1 instance and all worked fine. Can I ask...
    1) What version of APEX are you using for both development and test?
    2) What theme are you using? I tested with theme 1 and theme 20 and hit no issues.
    3) What type of region are your regions (HTML, Report, etc.) and what template are they using?
    4) Can you verify that the application export contains a "p_include_in_reg_disp_sel_yn=> 'Y'," for the appropriate wwv_flow_api.create_page_plug call where your 'Region 1' is created?
    Regards,
    Anthony

  • Bug !? Date selector picks up the wrong Date

    Hi
    I developed a Web Dynpro application which also have a imput field. The context that is mapped to it is a Date type. Sofar everything is ok. If I either select a date or enter it manually the date is shown right in the Inputfield. But as I want to get the Context like:
    pStartDateOrig = wdContext.currentContextElement().getCtx_startDate();
    , the Value is wrong. When I entered i.e. 07/25/2005, the debug mode shows me a value of 07-24-2005. That value is than stored wrong during the further processing. That bug does not appear permanently. Have anyone an idea? Is that a known bug. Any comments are welcome.

    Hi Nagarajan
    Thanks for your help. Yes I know it should pick up the right  context, instead of counting one day of. The thing is there must be a bug in the get(Context). Because if you select a date, doesn't matter what, it is definately not the old context, but the new with one day earlier. I found a workaround what is not the right way to do, but for me it works. I now do not get the context, no, I get the value from the gui element, like:
    startDateField = (IWDInputField) view.getElement("input_PStart");
      String startDateValue = startDateField.getValue();
    That Value as String is the value that you see when selecting a date.
    i.E I select 11/30/2005
    the input field shows 11/30/2005
    the value of the IWDInputField is : 11/30/2005
    but the context that is mapped is : 11/29/2005
    - And I don't do any process with the context, just mapped ! -
    Anyway I hat a lot of struggles with that sql.date format that SAP use. IGS (Gantchart) wants the date in the form yyyyMMdd, instead MM/dd/yyyy. toString makes dd/MM/yyyy out of it so it is all mixed up within the wed dynpro framework.
    My workaround works now and costs me nearly a day. Thanks a thousand times for your help, I really appreciate that. I will raise a OSS note and hope SAP will fix it. I will keep you informed and send you the Note number soon.
    Regards, Normen

  • Muse 4.0 Bug with Google Translation: MuseJSAssert:Error Calling Selector Function

    This message comes up everytime I  convert this page to french. Just click the French flag and see the issue
    The Accordion Menu is distorted and the page is unusable. This is the url:
    http://mtelng.vivovecompany.com/our-partners.html
    All pages are actually affected

    Hey topelovely,
    I see the issue you are hitting. This acutally has to do with a combination of how Muse works with pinned menu items, and how Google translate is doing the translation. To do the translation, Google pulls down the code for your page beforehand, translates the content, and then passes it off to your browser using its server instead of yours. Because of this, your page is being served from a different server. Now, your web browser, for security reasons, prevents one server from accessing content on another server, but since Google only serves up your text content and not the styles nor JavaScript from their server, your website is now coming from two different places, and certain pieces can't talk to one another. On your page, you have a pinned menu item, for which we use JavaScript to access the styles from it so that we can read in certain values. When we try to access the style, your browser thinks that our code is trying to access items from a different server, and it prevents it from doing so. This is the error you are seeing. Unfortunately, there won't really be a way for us to fix this problem at the moment.
    Sorry for the inconvenience,
    Andrew

  • OBIEE 11g (11.1.1.5...)Column Selectors and Action Links

    All,
    I think we have bug - we have a column selector for 3 columns. One of them is configured to navigate to another analyses page (we have only one action link configured) . we have checked the option - "Do not display in a popup if only one action link is available at runtime". The issue is the pop-up still shows up even if there is only one action link. The issue is only for a column group.
    Please let us know if anyone has figured out a work around.
    Thanks
    Edited by: user709926 (Kottresh Kogali) on Sep 13, 2011 2:00 PM

    Hi,
    Yes, we do face this issue.There is no workaround for this issue as of now.
    Rgds,
    Dpka

  • Duplex Printing Bug with HP OfficeJet Pro L7680

    Well - Duplex printing works but the back page will only print with binding on the top, Binding on the side does not work! Minor bug but still a bug at least with the HP!!

    Kev,
    A couple of points - assuming your using the HP OfficeJet Printer - I am assuming your connecting it via the Ethernet point which means it is communicating via IP. That being said - here is what I ran into.
    When I first added the HP Printer - Leopard wanted to configure the printer via BONJOUR. I went ahead and let it do that - however printing was terrible!!!! I could send jobs to the printq, but the only way they would print was if I turned the printer on/off again - and the the would magically start printing. Then the printer would go "offline" and I was forced to do this same on/off routine.
    So - I went back into add printers - and let the dialog box sit there for a little while and all of the sudden the list updated with an HP2A7180 - Kind - IP. I selected this printer and then told it to use the HP driver via the Print Using - drop down selector and my HP has been working fine since (minus the duplex).
    Additionally it installed an configuration utility which allows me to monitor inks, settings and such.
    Hope this helps - Bill

  • Bug in LV8 : 'Save for previous version' and 'Write to Binary File' VI

    Hello
    I am using LabVIEW 8's revamped 'Write to Binary File' VI with a 'TRUE' boolean constant wired to the optional 'prepend array or string size?' to write non-trivial structures to a binary file. I then read the file with the 'Read from Binary File' VI and everything is fine. I don't wire anything to the 'file (use dialog)' input (don't know if this can help).
    However, after saving my VI for LabVIEW 7.1, I cannot read the binary files created with the LV7 version of the VI anymore. After examining the LV7 converted version of the VI, there is a 'FALSE' boolean constant that is wired to the equivalent of the 'prepend array or string size' input, which breaks the binary format that is expected.
    The attached files are LV8 and 'saved for LV7' versions of a dummy VI that writes an array of 5 integers into a binary file. To test the bug, start LV8, open the LV8 version, run it and create a 'test-lv8.bin' file, then open the LV7 version, run it and create a 'test-lv7.bin' file. Check the content of the two files : the size of the array is indeed missing from the 'test-lv7.bin' file, which can be assimilated as a bug in my opinion.
    I think I found another one too : if in LV8 I wire the 'cancelled' boolean output of the 'Open/Create/Replace file' to the selector of a case structure, the 'converted to LV7' version VI will have an error, saying the Case Structure selector is not wired.
    Could someone please confirm these are indeed bugs ?
    Thanks in advance and have a nice day.
    Eric Batut
    Attachments:
    Test Binary File v7-v8 LV7.vi ‏15 KB
    Test Binary File v7-v8 LV8.vi ‏7 KB

    I'm using LV8.6 and need to read a .bin file created in MATLAB. This file obviously does not contain the 4 byte header that LabVIEW prepends .bin files with. So when I use Read from Binary File, I get no data (I'm trying to read an array of doubles). I've tried making my .bin file both in native and big-endian format and changing the representation (double, int64, float64) but none of this works. I noted that if I create the same array in a .bin file in LabVIEW and wire a FALSE to the "prepend array or string size?", my VI for reading .bin files can't read this file either.
    Any work-arounds here?
    (I'll try attaching my write & read VI's)
    Attachments:
    ReadWriteBinFile.zip ‏19 KB

Maybe you are looking for

  • How to display the data of a structure in a report

    i want to display the data of a structure resbd. i know it does not have data. but it contains data at runtime plz help thanx

  • Help needed for 8i limitation

    Hi, The target is 8i and won't be upgrate to 9i in near future. This let me feel painful when using OWB generated scripts of mapping. The main issue of 8i is that PL/SQL not allow me using nor CASE WHEN neither decode() so most of the mapping scripts

  • War application in weblogic6.0

    i have a war application with the following directory structure.(for jsp tag libraries) .jsp file WEB-INF/.jsp file, .tld file, web.xml. WEB-INF/classes/tagclass. i am able to deploy this file in weblogic 6.0, but what extra settings are required to

  • AFTER SYNC IN SETTINGS SONGS SHOWS "LOADING"

    After sync in settings songs just shows as loading, just started after upgrading to IOS 8.1.3

  • Please help - trying to complete Lightroom download

    I have purchased Lightroom directly from Adobe as a download.  I have literally spent hours trying to get this program downloaded to my macbook.  My computer is new.  I have tried to download to Safari, Firefox and Chrome.  It seems to work best with