WM_CAP_DRIVER_CONNECT strange behavior on Windows 7

Hi,
I'm sorry if this is not the right place to post my question, but I did not found one, maybe someone could suggest me.
Anyway, I have some code for aquiring cam image using WM_CAP* messages.
While it works perfectly on an XP machine, in Seven I have a lot of strange behavior.
On the first call to
SendMessage(hCapWnd, WM_CAP_DRIVER_CONNECT, DriverIdx, 0&)
The "source Video" window appear, while on XP it return immediately true.
Now I choose the source and I press OK but the SendMessage returns false!
I try again and this time no window appear and the acquisition start normally!
Then, I disconnect the driver and I try to connect again but the windows appear every time and SendMessage returns false!!!
It make me crazy!! Please, could someone have some suggestions?
Regards,
Daniele.

Daniele, I'm fighting the same problem as yours. I gave up at the first call to capDriverConnect. Didn't know it may succeed at the second shot.
GetLastError reports 0 = ok.
But there must be a way to succeed, because I started an app attached to the driver I use, and it works correctly, without the unwanted dialog. Can't check it right now, but it is probably the same app as here (if link does not work, just search for vbvidcap):
http://www.natech-inc.com/names/other_programs/vidcap/index.html
How does it go in your case?
edit1: Sometimes there are problems if a window belongs to a different thread. Are you sure you call capDriverConnect from the thread that created the window with capCreateCaptureWindow?
edit2: Sorry for the wrong hint. vbvidcap has the same problem. The app that works uses directshow, not vfw.
edit3: Maybe the camera is reserved by some other application, or by unknown bug. Appearing of the "choose source" dialog is a sign of the blockage of the device, this works so on XP. In my case I resolved the problem by unplugging the camera and connecting
it again. And the drivers must be ok. So I remain a believer of VFW :) Troublesome and awkward, but works!

Similar Messages

  • Strange behavior of Windows Azure Compute Emulator (SDK 2.3)

    Today, after an update of the Azure SDK from 2.2 to 2.3, I noticed that only one of the two instances of my web role is started in
    the Azure Compute Emulator, the output of the Start-AzureEmulator is this:
    VERBOSE: Starting Emulator...
    VERBOSE: Role is running at http://127.0.0.1:81/
    Role is running at tcp://127.0.0.1:3389/
    Role is running at tcp://127.0.0.1:3389/
    VERBOSE: Started
    and only one instance is started in the Azure Compute Emulator.
    But in the past was something similar to this one:
    VERBOSE: Starting Emulator...
    VERBOSE: Role is running at http://127.0.0.1:81/
    http://127.0.0.1:82/
    Role is running at tcp://127.0.0.1:3389/
    Role is running at tcp://127.0.0.1:338/
    VERBOSE: Started
    and two instances were started.
    I already found this thread:
    http://stackoverflow.com/questions/13946634/strange-behavior-of-windows-azure-compute-emulator-sdk-1-8-with-multiple-role
    but it was not useful in my case (Microsoft.WindowsAzure.Common.WorkArounds.BindToAllIpsWorkAroundEnabled is False).
    Thanks in advance for any help.
    OS: Windows 8.1
    Azure SDK: 2.3
    Azure Compute Emulator: 2.3.0.0

    Hi,
    As far as I know, powershell didn't have a parameter to start azure emulator with full express, please try to use Command-line to test, refer to
    http://msdn.microsoft.com/en-us/library/gg433130.aspx for more details, if this didn't give you help, please feel free to let me know.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • BluetoothSelectDevices strange behavior on Windows 7 and 8

    Hi,
    I have strange problem with BluetoothSelectDevices function from Windows Bluetooth API. I am developing an application containing mixed managed and unmanaged C++ code. One of its
    required functions is to open a bluetooth devices selection dialog in order to give possibility to a user select previously remembered device or to pair and select a new device. First my problem appears when I call BluetoothSelectDevices with fAddNewDeviceWizard
    field of BLUETOOTH_SELECT_DEVICE_PARAMS set to FALSE. In this case I wand a user simply will select his device from a list without possibility to add and pair a new device. This is my function:
    static uint64 dialappBluetoothSelectDevice (HWND hwnd)
    BLUETOOTH_SELECT_DEVICE_PARAMS btsdp = { sizeof(btsdp) };
    btsdp.cNumOfClasses = 0; // search for all devices
    btsdp.prgClassOfDevices = 0;
    btsdp.pszInfo = L"Select Device..";
    btsdp.hwndParent = hwnd;
    btsdp.fForceAuthentication = FALSE;
    btsdp.fShowAuthenticated = TRUE;
    btsdp.fShowRemembered = TRUE;
    btsdp.fShowUnknown = TRUE;
    btsdp.fAddNewDeviceWizard = FALSE;
    btsdp.fSkipServicesPage = TRUE;
    btsdp.pfnDeviceCallback = 0; // no callback
    btsdp.pvParam = 0;
    btsdp.cNumDevices = 0; // no limit
    btsdp.pDevices = 0;
    if (BluetoothSelectDevices(&btsdp))
    LogMsg ("BluetoothSelectDevices returned TRUE");
    uint64 addr;
    BLUETOOTH_DEVICE_INFO * pbtdi = btsdp.pDevices;
    for (unsigned cDevice = 0; cDevice < btsdp.cNumDevices; cDevice ++)
    if (pbtdi->fRemembered) {
    addr = pbtdi->Address.ullLong;
    break;
    pbtdi = (BLUETOOTH_DEVICE_INFO*) ((BYTE*)pbtdi + pbtdi->dwSize);
    BluetoothSelectDevicesFree(&btsdp);
    return addr;
    LogMsg ("BluetoothSelectDevices returned FALSE, GetLastError = %d", GetLastError());
    return 0;
    So, after calling this function the “Select Bluetooth Device” window is opened, but it is absolutely clean: there is only my text "Select
    Device.." shown on the gray background and “Search Again” button at left-bottom window’s corner.  I have not overcome this problem for now.
    The next problem appears on Windows 8 systems only when I set fAddNewDeviceWizard = TRUE. In this case the dialog is really shown (white background) and a user can select and pair a new
    device. But when he completes device pairing, the function returns FALSE! Why? (On Windows 7 it works correctly). The GetLastError returns ERROR_CANCELLED (1223).
    This problem is my real showstopper. What am I doing not correctly?
    Thanks in advance.
    Sergey

    Hi RedSoftk,
    Welcome back!
    Problem1: I wonder if you really get one or more selected device.
    Problem2:  Maybe you could test if the Bluetooth is still connected after your app gives you a FALSE. if the FALSE is given you when you press the complete button, so it is possible that the Bluetooth has failed to paired and added to PC.
    Regards!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Zenworks Agent 10.3.3 - Windows 7 32 -Strange behavior

    Hi,
    Here's my problem :
    I have a SYSPREP fully functionnal that install the Novell Client IR9a on a Windows 7 SP1 32Bits and at the end i have a VBS File that download the latest version of Zenworks Agent installer to the local harddrive. After it installs it... Then a strange behavior happen after the required reboot by the installer.
    You can't ping any DNS names until until you have rebooted your machine 3 times.
    -> You can ping ip addresses but not their names.
    I tried to do a flush dns realse or renew and same behavior... can't ping any DNS names.
    This problem is not there if i do not install the Adaptive agent and leave the Novell Client Alone...
    The Windows 7 was originally a home premium that was upgraded to a oem pro license if that can ring any bell.
    Thank you.

    There was an issue a LONG time ago that I have not heard reported
    since..........
    http://www.novell.com/support/viewCo...rnalId=7004310
    Maybe the old work-around will help you...........
    On 1/16/2012 2:46 PM, anto28 wrote:
    >
    > Hi,
    >
    > Here's my problem :
    >
    > I have a SYSPREP fully functionnal that install the Novell Client IR9a
    > on a Windows 7 SP1 32Bits and at the end i have a VBS File that download
    > the latest version of Zenworks Agent installer to the local harddrive.
    > After it installs it... Then a strange behavior happen after the
    > required reboot by the installer.
    >
    > You can't ping any DNS names until until you have rebooted your machine
    > 3 times.
    >
    > -> You can ping ip addresses but not their names.
    >
    > I tried to do a flush dns realse or renew and same behavior... can't
    > ping any DNS names.
    >
    > This problem is not there if i do not install the Adaptive agent and
    > leave the Novell Client Alone...
    >
    > The Windows 7 was originally a home premium that was upgraded to a oem
    > pro license if that can ring any bell.
    >
    > Thank you.
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • Strange Behavior with gMSA in Server 2012 R2

    Greetings,
    I have been doing some testing with gMSA Accounts in a Server 2012 R2 environment (two separate environments, actually), and I have noticed something very strange that occurred in both environments, which does not appear to be occurring in one of our customer's
    self-managed environments.
    We created a Group Managed Service Account using the following article:
    http://blogs.technet.com/b/askpfeplat/archive/2012/12/17/windows-server-2012-group-managed-service-accounts.aspx
    Everything went smoothly, and the account installs/tests successfully on both of the hosts that we are testing on. I am able to set my services to run under the account, and most of them appear to work fine. I am having some issues with a few of my services,
    and I believe that the strange behavior I am seeing may have something to do with this - described below: 
    As soon as I set the service's Log On Account (via the Log On Tab under the Service's Properties), the entirety of the "Log On" tab changes to "greyed out," and I am unable to change the Log On account back via the GUI (Screenshot
    attached).
    I found that I am able to successfully change the account via Command Line using sc.exe, but the Log On tab remains greyed out! So far, I have found nothing to remedy this, but confirmed that it happens for any service I set to use the gMSA as the Logon
    Account, and that it happens in 2 separate test environments, but not in a Customer's production environment - very strange.
    All servers in this environment are running Server 2012 R2, and domain Functional Level is currently Server 2012.
    I have been unable to find any information online about this behavior, so I am hoping someone has seen this before, and can explain why this is happening.
    Nick

    VIvian,
    Yes, we used the Install-AdServiceAccount gMSA command on each host using the gMSA account, and then ran Test-AdServiceAccount gMSA, which returned "True."
    However, one thing I noticed is that if I run Test-ADServiceAccount gMSA as a Local Administrator, it fails with the following:
    PS C:\Users\Administrator> Test-AdServiceAccount gMSA$
    Test-AdServiceAccount : The server has rejected the client credentials.
    At line:1 char:1
    + Test-AdServiceAccount gMSA$
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : SecurityError: (:) [Test-ADServiceAccount], AuthenticationException
        + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.Security.Authentication.AuthenticationException,Microsoft.A
       ctiveDirectory.Management.Commands.TestADServiceAccount
    If I run Test-ADServiceAccount gMSA as Domain Administrator, it returns true:
    PS C:\Users\Administrator.<domainname>> Test-AdServiceAccount gMSA$
    True
    Is this normal?
    Overall, I think the issue I am running into is at the Application Level, and not a problem with the gMSA, as it appears to be working. (Can Start/Stop services without any issues). I will be investigating my issue further with 3rd-party vendors, unless
    you think there is something wrong with my gMSA accounts based on the information I have provided.
    Nick

  • Strange behavior in report Output

    Hi,
    Strange behavior in report output , please some one help me out of this problem.
    I am using Oracle order capture rdf file ASOPQTEL.rdf.
    My working environment:
    Windows,apps instance .Now this rdf file is working fine in my work Environment.
    when this same file is deployed in client environment (UNIX and different apps instance from my working environment apps instance)
    for some cases it is giving output.
    for some cases it's throughing error.
    Thanks,
    Mithun

    Please specify what kind of error you are getting and what is command you are firing on Unix.

  • Strange behavior of the Macbook pro display

    Hi to all
    I'm using my MacBook pro, and notice some strange behavior after open several windows or applications, I don't know how to explain, so here is a photo:
    http://www.flickr.com/photos/86155326@N00/
    I have tried: go back to 10.4.6 / create a new account / Hardware test... and Nothing.
    Any suggestions?
    Pedro

    I am having the exact same problem(and no one is replying to my post either), I read in another post of someone who had a somewhat similar issue and someone commented that it was bad VRAM and warranted the logic board to be replaced. I'm hoping this is not the case, or at least hoping the problem does not get worse because I am in school and can't be without this computer for 2 weeks while it gets repaired..I'm hoping I can last til the holidays...
    pictures of my problem:
    http://www.rpi.edu/~neala/pics/display/Messed%20up%20desktop.png
    http://www.rpi.edu/~neala/pics/display/Picture%204.png
    Sometimes I can make it go away by moving windows, and sometimes that makes it worse... this computer is only 100 days old...come on apple..help us out!

  • Strange Behavior connecting to Oracle

    Hi to All,
    On Server Windows 2003 I have installed Oracle 10g R2. On this Server run Toad for Oracle.
    If I run Oracle console, all work fine; running Toad the ORA-12154 error is displayed.
    I have tried to connect to DB with Toad from a client and all works.
    Have someone an idea on this strange behavior ?
    Thank You and Best Regards
    Gaetano

    This may be a problem?NO!
    12154, 00000, "TNS:could not resolve the connect identifier specified"
    // *Cause:  A connection to a database or other service was requested using
    // a connect identifier, and the connect identifier specified could not
    // be resolved into a connect descriptor using one of the naming methods
    // configured. For example, if the type of connect identifier used was a
    // net service name then the net service name could not be found in a
    // naming method repository, or the repository could not be
    // located or reached.
    // *Action:
    //   - If you are using local naming (TNSNAMES.ORA file):
    //      - Make sure that "TNSNAMES" is listed as one of the values of the
    //        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA)
    //      - Verify that a TNSNAMES.ORA file exists and is in the proper
    //        directory and is accessible.
    //      - Check that the net service name used as the connect identifier
    //        exists in the TNSNAMES.ORA file.
    //      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    //        file.  Look for unmatched parentheses or stray characters. Errors
    //        in a TNSNAMES.ORA file may make it unusable.
    //   - If you are using directory naming:
    //      - Verify that "LDAP" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Verify that the LDAP directory server is up and that it is
    //        accessible.
    //      - Verify that the net service name or database name used as the
    //        connect identifier is configured in the directory.
    //      - Verify that the default context being used is correct by
    //        specifying a fully qualified net service name or a full LDAP DN
    //        as the connect identifier
    //   - If you are using easy connect naming:
    //      - Verify that "EZCONNECT" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Make sure the host, port and service name specified
    //        are correct.
    //      - Try enclosing the connect identifier in quote marks.
    //   See the Oracle Net Services Administrators Guide or the Oracle
    //   operating system specific guide for more information on naming.This error is clear.
    SQL*Net is being asked to resolved TNS_ALIAS & it reports that it can not find the requested name.
    EITHER
    1) the requested name is not correct
    or
    2) SQL*Net is looking in the wrong tnsnames.ora file & still not finding the requested name.
    Good Luck solving your mystery

  • Strange Behavior in iMovie 08

    I recently purchased a MacPro, installed Leopard and moved all my files, applications, and settings from my MacBook Pro notebook by way of a Time Machine backup. Everything went without a hitch except for iMovie 08. When I open it it appears to start up but the application window never opens and almost all the menu items are grayed out. I can quit the application and start it again, but still get the same strange behavior. I have repaired permissions, verified my disk, deleted preferences and reinstalled iLife, then updated in software update, all with no effect. However iMovie 08 runs just fine on my MacBook Pro which should be identical to my Mac Pro. What gives? Ironic since a primary reason for purchasing this computer was for its enhance performance capabilities

    1) load and install the update for iM08, vers 7.1.
    2) then, in System Preferences/Monitor/Color Profile choose 'any other' than the actual one (e.g. AdobeRGB).. launch iM08.. now, set the Color Profile to your wanted one..

  • Strange behavior  in entity bean : get Timestamp

    Hello:
    I'm working with SUNONE 7 AppServer , over SunOS 5.9
    I've a strange behavior with entity's get methods which return Timestamp value.
    For example, I've got
    Timestamp date;
    If I do
    entity.setF(date) , ( date is a Timestamp with value "12/12/2005 12:30:00" )
    all works right, and in database is wrote right ( "12/12/2005 12:30:00" )
    But , if I do
    date = entity.getF()
    the, date variable has the value "12/12/2005 00:00:00"
    So, in get method is lost the time value of a Timestamp data
    Could be a code bug in my source , but if I use Jboss AS over Windows XP , all work right ( set and get methods ). The database is the same one ( Oracle 9i )

    Well, I found the solution.
    The problem was the ojdbc14.jar driver, which made wrong schema files.
    Exactly, with the bad ojdbc14.jar, generated this entry
    <_type>91</_type>
    when the right one for date types ( Timestamp ) is
    <_type>93</_type>
    I dont know why the new ojdbc14.jar works fine, but I paste its size
    good ojdbc14.jar : 1181679 bytes

  • Strange behavior in a table with dropTarget and delete action

    I am having a strange behavior in a table with drag and drop and action component to delete row.
    Steps:
    Drag the first row to the table and appears in the destination table (works well)
    Select and change the value by 156, appears an error (works fine)
    delete the row, the row disappears (works well)
    Add the first row again and the value is 156 instead of 158 (why ????)
    I guess the error is the deletion that is not correct, but do not know how?
    Can anyone help?
    I add the source code if you see where I'm wrong
    Java class:
    +public class BeanExample {+
    private ArrayList<RowExample> starttValues;
    private ArrayList<RowExample> endValues;
    +public BeanExample() {+
    super();
    +}+
    +public void setStarttValues(ArrayList<BeanExample.RowExample> starttValues) {+
    this.starttValues = starttValues;
    +}+
    +public ArrayList<BeanExample.RowExample> getStarttValues() {+
    +if (starttValues == null) {+
    starttValues = new ArrayList<BeanExample.RowExample>();
    starttValues.add(new RowExample("1", new Number(158)));
    starttValues.add(new RowExample("21", new Number(12565464)));
    +}+
    return starttValues;
    +}+
    +public void setEndValues(ArrayList<BeanExample.RowExample> endValues) {+
    this.endValues = endValues;
    +}+
    +public ArrayList<BeanExample.RowExample> getEndValues() {+
    +if (endValues == null) {+
    endValues = new ArrayList<BeanExample.RowExample>();
    +}+
    return endValues;
    +}+
    +public void validatorExample(FacesContext facesContext, UIComponent uIComponent, Object object) {+
    Number number = (Number)object;
    +if ((number.longValue() % 2) == 0) {+
    FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, "ES PAR", "ES PAR");
    throw new ValidatorException(message);
    +}+
    +}+
    +public DnDAction handleDrop(DropEvent dropEvent) {+
    Transferable transferable = dropEvent.getTransferable();
    DataFlavor<RowKeySet> rowKeySetFlavor = DataFlavor.getDataFlavor(RowKeySet.class, "loteDrag");
    RowKeySet rowKeySet = transferable.getData(rowKeySetFlavor);
    +if (rowKeySet != null) {+
    CollectionModel dragModel = transferable.getData(CollectionModel.class);
    +if (dragModel != null) {+
    Object currKey = rowKeySet.iterator().next();
    dragModel.setRowKey(currKey);
    RowExample table = (RowExample)dragModel.getRowData();
    getEndValues().add(new RowExample(table.getId(), table.getValue()));
    return dropEvent.getProposedAction();
    +}+
    +}+
    return DnDAction.NONE;
    +}+
    +public void borrarFila(ActionEvent actionEvent) {+
    endValues.remove(0);            RequestContext.getCurrentInstance().addPartialTarget(FacesContext.getCurrentInstance().getViewRoot().findComponent("pc1:t2"));
    +}+
    +public static class RowExample {+
    private String id;
    private Number value;
    +public RowExample(String id, Number value) {+
    super();
    this.id = id;
    this.value = value;
    +}+
    +public void setId(String id) {+
    this.id = id;
    +}+
    +public String getId() {+
    return id;
    +}+
    +public void setValue(Number value) {+
    this.value = value;
    +}+
    +public Number getValue() {+
    return value;
    +}+
    +}+
    +}+JSF
    +<?xml version='1.0' encoding='windows-1252'?>+
    +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"+
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    +<jsp:directive.page contentType="text/html;charset=windows-1252"/>+
    +<f:view>+
    +<af:document id="d1">+
    +<af:form id="f1">+
    +<af:panelGroupLayout id="pgl1">+
    +<af:table value="#{beanExample.starttValues}" var="row"+
    rowBandingInterval="0" id="t1" rowSelection="single"
    displayRow="selected" contentDelivery="immediate">
    +<af:column sortable="false" headerText="Id" align="start" id="c2">+
    +<af:outputText value="#{row.id}" id="ot1"/>+
    +</af:column>+
    +<af:column sortable="false" headerText="Value" align="start" id="c1">+
    +<af:outputText value="#{row.value}" id="ot2"/>+
    +</af:column>+
    +<af:collectionDragSource actions="COPY" modelName="loteDrag"/>+
    +</af:table>+
    +<af:panelCollection id="pc1">+
    +<f:facet name="toolbar" >+
    +<af:toolbar id="dc_t2" >+
    +<af:commandToolbarButton shortDesc="Delete"+
    icon="/imagesDemo/delete_ena.png"
    id="dc_ctb3" immediate="true"
    +actionListener="#{beanExample.borrarFila}"/>+
    +</af:toolbar>+
    +</f:facet>+
    +<af:table value="#{beanExample.endValues}" var="row"+
    +rowBandingInterval="0" id="t2">+
    +<af:column sortable="false" headerText="Id" align="start" id="c3">+
    +<af:outputText value="#{row.id}" id="ot3"/>+
    +</af:column>+
    +<af:column sortable="false" headerText="Value" align="start" id="c4" >+
    +<af:inputText value="#{row.value}" autoSubmit="true" id="it1" validator="#{beanExample.validatorExample}"/>+
    +</af:column>+
    +<af:collectionDropTarget actions="COPY" modelName="loteDrag"+
    +dropListener="#{beanExample.handleDrop}"/>+
    +</af:table>+
    +</af:panelCollection>+
    +</af:panelGroupLayout>+
    +</af:form>+
    +</af:document>+
    +</f:view>+
    +</jsp:root>+

    I think the problem is the validator
    I changed the practical case, I added an InputText to enter new values in the first row.
    +<af:inputText immediate="true" label="new value" id="it2"+
    +valueChangeListener="#{beanExample.newvalue}" autoSubmit="true"/>+
    +public void newvalue (ValueChangeEvent valueChangeEvent) {+
    +String valor = (String)valueChangeEvent.getNewValue();+
    +Number valorNumber=null;+
    +try {+
    +valorNumber = new Number (valor);+
    +} catch (SQLException e) {+
    +}+
    +RowExample example = (RowExample) endValues.get(0);+
    +example.setValue(valorNumber);+
    +example.setId(valorNumber.toString());+
    +RichTable table = (RichTable)FacesContext.getCurrentInstance().getViewRoot().findComponent(id);+
    +RequestContext.getCurrentInstance().addPartialTarget(table);+
    +}+
    Case 1
    I drag the first row to the target table (ok)
    The new row appears (ok)
    Enter the value 77 in the InputText (ok)
    id content and value change (ok)
    Case2
    I drag the first row to the destination table
    The new row appears (ok)
    Change the value of the first row by 80 (ok)
    errors appears (by validator) (ok)
    Enter the value 77 in the InputText (ok)
    the id is changed but the value NO (*KO*)
    I do not understand the behavior
    Edited by: josefuente on 27-oct-2010 16:03

  • Adding custom navigation rules results in strange behavior

    Hello,
    We'd like to add navigation rules to our application. To avoid post-JHeadstart-generation-steps we created an extra faces-config-custom.xml file which contains the navigation rules. When adding this file to the web.xml and run the aplication we encounter strange behavior
    - Errors are shown in duplicate
    - 'Transaction completed' messages are not shown
    Try adding the underneath faces-config-custom.xml to a standard HR demo project and you will get the same behavior.
    (1) What is the reason of this strange behavior?
    (2) How can we add custom navigation rules, without having to do post creation steps?
    Regards Leon
    [faces-config-custom.xml]
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>BezwaarVerzoeken</from-outcome>
    <to-view-id>/pages/inboeken/BezwaarVerzoeken.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>LosseOpdrachten</from-outcome>
    <to-view-id>/pages/inboeken/LosseOpdrachten.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    [Add faces-config-custom.xml to web.xml]
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config-custom.xml,...

    Leon,
    When you perform a drag and drop operation, JDeveloper adds the following lines to the faces-config.xml:
    <lifecycle>
    <phase-listener>
    Oracle.adf.controller.faces.lifecycle.ADFPhaselistener
    </phase-listener>
    </lifecycle>
    However, JHeadstart uses its own subclass of ADFPhaselistener, and defines the lifecycle element in JhsCommon-beans.xml. Due to a bug in ADF, ADF does not look for the lifecycle element in other files than faces-config, and adds its own element in faces-config.xml If you remove these lines, everything works fine again.
    To prevent this from happening again, you can move the following entry from JhsCommon-beans.xml to faces-config.xml:
    <lifecycle> <phase-listener>oracle.jheadstart.controller.jsf.lifecycle.JhsADFPhaseListener</phase-listener>
    </lifecycle>
    And then make a custom template for JhsCommon-beans.vm where you remove this entry.
    Steven Davelaar,
    JHeadstart team.

  • 802.1x "MachineorUser" Auth Mode strange behavior in 2950 & 3750 Switches

    Good Day Support Team around the world,
    Having started recently  tests with 802.1x in a lab environment, I noticed  a strange behavior related to authentication. First let me provide you with the network components I used.
    supplicant:                    domain-joined laptop with Windows XP SP3 802.1x embedded client
    authenticator1:              Cisco 2950-24   
    authenticator2:              Cisco 3750-24
    authentication server:     MS NPS Windows Server 2008
    1.     In the first scenario with 3750 switch when I connect the laptop to relevant port the machine authentication is successful. Then I try to login with a domain account and again the authentication is completed without any problem. Then I log off and user authentication is revoked and the machine authentication is used again without any issue. When I try to login again as local user the authentication fails as expected but the port remains disabled (port blinking amber) regardless the fact that port is configured for Auth-Fail Vlan. When I log off then the machine authentication is used again and the access is granted.
    2.     In the second scenario with 2950 switch as authenticator, I follow the same steps as before and when I try to login as local user the authentication is failed and the port is assigned the Auth-Fail Vlan (as expected based on configuration). However when I log off it seems that the 2950 switch still use the Auth-Fail Vlan for that port and never authenticates again for machine authentication.
    Could you please let me someone know if this is normal ( I suppose no). Please find attached the relevant debug output from the second scenario.
    Thank you!!!

    Hi,
    basically what happens is that the maximum EAP packet size for communication between client and RADIUS server is negotiated. Therefore, in your case the switch notifies NPS that the client is capable of handling packets up to 9000 bytes in size.
    EAP messages, especially those containing the server certificate, are usually bigger than 1500 bytes and arrive at the switch in multiple fragments:
    Mar  6 15:50:11.881: RADIUS(0000002C): Received from id 1645/41
    Mar  6 15:50:11.881: RADIUS/DECODE: EAP-Message fragments, 253+253+253+253+253+253+253+253+20, total 2044 bytes
    Having learned that 2044 bytes is acceptable for the client, the switch forwards the full message in one chunk, but since your client is likely to have set the interface MTU to 1500, the packet is oversized and never reaches its destination.
    And yes, I think changing the System Jumbo MTU to 1500 bytes would lead to the same result. If my memory serves me right, a new setting takes effect only after a reboot, so I'd suggest giving it a go in your lab first.
    Best regards,
    Josef

  • Strange behavior of WindowsIntune / Win8.1 : Repetitively launch C:\Program Files\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe

    Hi,
    After moving from Win8 to Win8.1 (using WindowsStore update),
    I observed sometimes that some command prompt Windows (ugly black MSDOS Windows) opens / closes Repetitively in my desktop.
    At a moment where the computer was really busy, I was abble to see the title of this black window :
    It was : C:\Program Files\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe
    Can someone tell me how to prevent this strange behavior ?
    Thanks in advance.
    AC Soft.

    I have also openned a case at WindowsIntune support, and up to now, they replyed me this :
    We have been able to reproduce this issue ourselves. We are currently working with our engineers to identify if there is a way to prevent these command prompts from launching.
    So, while waiting, I Tried your solution.
    On the Win8.1 computer that had the problem, i found an AccoundID value, with { }, and all letters in Uppercase, as described in your solution. So, the problem for me is not that AccountID is not populated...
    When I looked at another Win8.1 computer that had not the problem, i found an AccountID value
    without { }, and with all letters
    in lowercase.
    So I looked at a Win7 Virtual machine that was enroled into intune too, and that obviously didn't had the problem, and I found there an AccountID value without { }, and with all letters in lowercase, same as on the working computer.
    So on the computer that had the problem, I removed the { }, put all letters in lowercase, then run
    %ProgramFiles%\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe /agentupdatenow
    I rebooted the computer, and now, I wait to see if the problem is solved...
    I will tell you what happened in some days...
    AC Soft.
    That process will not fix this issue.  We have a fix coming in an upcoming service release.  
    Thanks,
    Jon L. - MSFT - This posting is provided "AS IS" with no warranties and confers no rights.

  • Strange behavior of JTable..Help plz

    Hi,
    Assume i have 5 rows in my JTable. I wrote a function on right click i get a popup window with an option delete row, which deletes the row successfully,
    The problem is when i sort the data in JTable. on column click JTable is getting sorted, in which assume 2nd row got replaced with 4th row and vice versa.
    Now when i try to delete the 4th row, it is delete the 2nd row data, which was there at the place of 4th row before sorting. In this regard i am trying to print the row number before deleting. It is displaying as 4th, but deleting 2nd row.
    Hope i am clear. Please suggest me in solving this strange behavior of JTable sorting problem.
    Regards,
    Ravi

    MyTableModel tablemodel = new MyTableModel(colnames,values);
    TableSorter sorter = new TableSorter(tablemodel);
    JTable table = new JTable(sorter)
    tablemodel.removeRow(row); // last line is the code where i am deleting the row, it's deleting the wrong row.
    do i need to remove the last line code and make respective changes in TableSorter.java class.
    ore
    here itself do i need to do some changes. ?
    There is a method that will convert the view row to the model row private Row[] getViewToModel()
    my question is how TableSorter.java class comes to know that i am deleting the perticular row.

Maybe you are looking for

  • Blogs and discussion in weblogic portal 10.3

    Hi, I want to enable blogs and dicussion in weblogic portal 10.3, can anyone guide me how to proceed?? Regards, Anshul Edited by: Anshul on Oct 16, 2012 1:52 AM

  • DB13 Error in backup

    Hi All, I have one problem maybe somebody can help. After my SAP server crash then I have install Oracle 8.1.7.2 and also SAP R3 4.6C. Everything seems like OK until I found problem when backup redo log thru DB13. The error is like as follow: Job sta

  • 1st generations AppleTv won't show iTunes purchases

    I recently got a 1st generation apple tv. I hooked it up and all, signes in with my apple ID but it doenst show any of my iTunes purchases that i bought on my mac book air...any advise?

  • HT1848 Transfer library from different ipod to new itunes?

    I just need help on explaining how to get my purchased songs from my phone, which that library is on an old computer.

  • Export Black & White TIFF sequence

    When exporting a TIFF sequence, I don't see any way to specify the compression or bit depth.  Is this possible?  I would like to export a black and white (2 bit) TIFF sequence containing subtitles with alpha channel.  Also - using LZW compression mig