Databinding issue

Hi,
when I explicitely use databing in my development, I often encounter the following issue :
I link an ArrayCollection with a view component, in order to provide the data to display, using the {} syntax in the skin mxml class.
In the .as skinnable component class, I define a getter/setter bindable methods which store data, set a changing flag to false and call the invalidateDisplayList() method. In the updateDisplayList() method, I iterate through the ArrayCollection and I add visual items to the component display list.
protected var _data:ArrayCollection;
protected var _dataChanged:Boolean;
[Bindable]
public function get data():ArrayCollection
   return _data;
public function set data( p_value:ArrayCollection ):void
   _data = p_value;
   _dataChanged = true;
   invalidateDisplayList();
override protected function updateDisplayList( p_unscaledWidth:Number, p_unscaledHeight:Number ):void
   super.updateDisplayList( p_unscaledWidth, p_unscaledHeight );
   if( _dataChanged )
      // create and add items
This mechanism works fine.
But if I modify the original ArrayCollection using addItem() or removeItem() methods, which is supposed to be binded with the component, the setter is not called and nothing happens.
I have to explicitely call the setter method and re-create an ArrayCollection for the component to update the display list.
Is it the regular mechanism or do I miss something?
Thanks.
Vincent.

Flex harUI is correct,you can solve your problem by using ObjectProxy class.Below is the link how to use objectproxy.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/utils/ObjectProxy.ht ml

Similar Messages

  • Databind method call returns null in WebCenter Content Filter

    Hi,
    I have inherited some code that has an issue and I'm new to WebCenter Content and the Filters that can be added. We have a FileNameFilter class that starts off with the code
    public class CWEFileNameFilter implements FilterImplementor {
        public CWEFileNameFilter() {
            super();
        public int doFilter(Workspace workspace, DataBinder dataBinder,
                            ExecutionContext executionContext) throws DataException {
            String service = dataBinder.getLocal("IdcService");
    However, service sometimes comes back null and then the filter throws a NPE.
    My questions are:
    1) Can anyone explain what dataBinder.getLocal("IdcService"); is doing and why it could come back as null
    2) Can anyone provide any links to documentation that explains Filters and a bit more about the DataBinder object as the JavaDoc isn't much help.
    Thanks
    Marc

    Hi Marc,
    Below code will give service name for which filter is implemented  from LocalData
    String service = dataBinder.getLocal("IdcService");
    for example below
    http://localhost:16200/cs/idcplg?IdcService=DOC_INFO_BY_NAME&dDocName=1111111&IsJava
    This will print entire response data including localdata and results which are created as part of service execution. Below is snippet
    <?hda version="11.1.1.8.0PSU-2015-04-01 00:14:53Z-r126309" jcharset="UTF8" encoding="utf-8"?>
    @Properties LocalData
    DocUrl=https://localhost:16200/cs/weblayout/groups/secure/documents/test/mhdk/mjg1/1111111.pdf
    IdcService=DOC_INFO_BY_NAME
    so String service = dataBinder.getLocal("IdcService"); will be service ="DOC_INFO_BY_NAME".
    Below blog will give some idea about filter but best place to learn or start is "The Definitive Guide to Stellent Content Server Development" by Brian Huff
    http://www.redstonecontentsolutions.com/technical-blog/ucm-service-handlers-and-javafilters
    Also i would recommend reading "WebCenter Content Services Reference Guide"
    http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/toc.htm
    Regards,
    Amol Gavali.

  • Deploying a jdev adf app on standalone weblogic issues

    Dear all,
    Sorry for my post which is very long but i will try to give you all information.
    I am currently developing a full stack ADF application (with BC4J to access the database) using Jdev 11g last release (5407)
    When working in JDev, my application is running perfectly.
    Now i am facing several issues regarding the deployment on a standalone weblogic.
    * 1st problem: deploying from Jdev into a remote weblogic server *
    If i try to deploy on a separate machine from jdeveloper directly using a server connection, then deployment failed with message in jdev console:
    [04:53:47 PM] Weblogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: The source 'C:\Temp\lara_abcf.ear' for the application 'Lara ABCF' could not be loaded to the server 'http://MYSERVER:7001/bea_wls_deployment_internal/DeploymentService'.
    Read channel closed
    [04:53:47 PM] See server logs or server console for more details.
    [04:53:47 PM] weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'D:\jdev-workspace\LaraABCF\deploy\lara_abcf.ear' to 't3://MYSERVER:7001'
    [04:53:47 PM] #### Deployment incomplete. ####
    [04:53:47 PM] Deployment Failed
    I tried to look into weblogic logs and see nothing helping me to found the problem. Any idea?
    I then tried to create a local domain on my workstaion and now deploying from JDeveloper works.
    I created an EAR file from Jdev and deployedthe EAR from the weblogic web console.
    From both method i was facing the same issue:
    * 2nd problem: deploying an application with a datasource access into a standalone weblogic *
    - Using the default configuration, i successfully deployed the application using weblogic console but the application stay on "Prepared" state in the console. Starting it from the console the application failed to start after the deployment. The error message display in the top of the web page is :
    Error weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: No credential mapper entry found for password indirection user=lra_abcf for data source laraABCFConn
    -I found an entry in the forum (What does this message mean? which give an hint to solve this issue:
    Modify the application properties from JDev and uncheck the option: "Auto Generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment", rebuild and deploy the application.
    I try this method and teh application successfully starts but does not work: stacktrace in weblogic console indicates that BC4J does not work properly and i think that database connection are not up. The error Message:
    javax.el.ELException: java.lang.NullPointerException
    at javax.el.BeanELResolver.setValue(BeanELResolver.java:345)
    at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:283)
    at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:100)
    at com.sun.el.parser.AstValue.setValue(AstValue.java:140)
    at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
    Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
    at com.cma.shipping.lara.view.settings.backing.TeuConversionBkB.setServicesSelectList(TeuConversionBkB.java:254)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    Truncated. see log file for complete stacktrace
    The NPE is on a line accessing a view object.
    * Final question:
    Is it possible to develop an application using a local database connection for BC4J in jdev and an external datasource when the application is deployed on a standalone weblogic without modifying the source code?
    The real issue about this is : is there a step by step tutorial explaining how to develop a simple ADF11g application using BC and deploy it successfully on a weblogic server?
    Thanks for your help

    found a workaround:
    * create a datasource on the weblogic side, mapped into the JNDI tree
    * create a new configuration in the appmodule with a new datasource mapped to this jndi reference
    * modify the databinding of my page to use this app module configuration
    * deploy again the application and this works
    but now my application does not work in jdeveloper because it seeks to a datasource in JNDI. I must revert to old settings for development en switch to these new settings to deploy on the server. Very annoying...
    Thanks for you help :)

  • Issue in rendering CustomToolpart to select data source for custom webpart..

    I have a custom webpart in which i have added a tool part.This toolpart should allow me to select any list in the sitecollection which would be displayed on the webpage on doing apply in the webpart properties.The dropdown list with all lists is coming fine.The
    grid is diplaying as well.But in the toolpart,not in the webpart. I cant seem to segregate the two.There is also a textbox in the  toolpart in which the entered text comes in the webpart.But the same approach is failing for the gridview.Please suggest
    what to do.
    Also,i am failing at making a separate category for the toolpart by specifying [category("List settings")]..Any suggestion as to what i'm doing wrong in that are welcome too.
    Here is my webpart class and toolpart class.
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using System.Data;
    using Microsoft.SharePoint.Utilities;
    namespace BB.WorkSpaces.Common.WebParts.CustomList
    [ToolboxItemAttribute(false)]
    public class CustomList : Microsoft.SharePoint.WebPartPages.WebPart
    [Browsable(false),
    Category("List Settings"),
    Description("Text Property")]
    // Visual Studio might automatically update this path when you change the Visual Web Part project item.
    private const string _ascxPath = @"~/_CONTROLTEMPLATES/BB.WorkSpaces.Common.WebParts/CustomList/CustomListUserControl.ascx";
    public string ListName
    get
    return _listName;
    set
    _listName = value;
    string _listName;
    public string ListValue
    get
    return _listValue;
    set
    _listValue = value;
    string _listValue;
    public GridView Gv
    get { return gv; }
    set { gv = value; }
    GridView gv;
    protected override void Render(HtmlTextWriter writer)
    base.Render(writer);
    writer.Write(ListName);
    writer.Write("<br />");
    writer.Write(ListValue);
    writer.Write("<br />");
    writer.Write(Gv);
    public override ToolPart[] GetToolParts()
    ToolPart[] allToolParts = new ToolPart[3];
    WebPartToolPart standardToolParts = new WebPartToolPart();
    CustomPropertyToolPart customToolParts = new CustomPropertyToolPart();
    allToolParts[0] = standardToolParts;
    allToolParts[1] = customToolParts;
    allToolParts[2] = new CustomToolPart();
    return allToolParts;
    public class CustomToolPart : Microsoft.SharePoint.WebPartPages.ToolPart
    DropDownList ddl;
    TextBox tb;
    protected override void CreateChildControls()
    ddl = new DropDownList();
    ddl.ID = "ddl";
    // Simply getting the lists of the current web, and displaying them in the dropdown-list.
    SPListCollection lists = SPContext.Current.Web.Lists;
    foreach (SPList list in lists)
    ddl.Items.Add(list.Title);
    tb = new TextBox();
    tb.ID = "tb";
    Controls.Add(ddl);
    Controls.Add(tb);
    base.CreateChildControls();
    public override void ApplyChanges()
    CustomList wp = (CustomList)this.ParentToolPane.SelectedWebPart;
    wp.ListName = ddl.SelectedValue;
    wp.ListValue = tb.Text;
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.RootWeb;
    SPList list = web.Lists[ddl.SelectedItem.Text];
    //SPListItemCollection slist = list.GetItems();
    GridView GV1 = new GridView();
    DataTable dt = list.Items.GetDataTable();
    GV1.DataSource = dt;
    GV1.DataBind();
    this.Controls.Add(GV1);

    Hi,
    According to your post, my understanding is that you have an issue about the custom web part.
    Per my knowledge, we should customize the EditorPart instead of the
    ToolPart to bind the lists to the dropdown list.
    There is a good article about customizing web part, you can refer to it.
    http://www.concurrency.com/blog/create-a-custom-web-part-for-sharepoint-2010/
    More reference:
    http://www.enjoysharepoint.com/Articles/Details/show-all-list-in-dropdown-list-using-visual-web-part-20676.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Error Null Databinding context encountered -WSDL to Java webservice convert

    HI,
    I have been trying to generate service and client from WSDL using Jdeveloper11 and im unable to progress on this particular WSDL, i was succesfull in creating the client and service for a sample Apache WSDL using the Jdeveloper. If anyone can point out the issue in this WSDL or is there a bug in Jdeveloper when handling complex type? i attach the WSDL that i used, now note that the WSDL calls for another WSDL import witin it, if i comment out the import and its bindings im able to proceed,
    WSDL-1
    <!-- Tigerstripe : Operations relating to Alarm -->
    <wsdl:operation name="getAlarmsByKeys">
    <wsdl:input name="getAlarmsByKeysRequest" message="fmWS-v1-0:getAlarmsByKeysRequest" />
    <wsdl:output name="getAlarmsByKeysResponse" message="fmWS-v1-0:getAlarmsByKeysResponse" />
    <wsdl:fault name="getAlarmsByKeysException" message="fmWS-v1-0:getAlarmsByKeysException" />
    </wsdl:operation>
    <wsdl:operation name="getAlarmsByTemplate">
    <wsdl:input name="getAlarmsByTemplateRequest" message="fmWS-v1-0:getAlarmsByTemplateRequest" />
    <wsdl:output name="getAlarmsByTemplateResponse" message="fmWS-v1-0:getAlarmsByTemplateResponse" />
    <wsdl:fault name="getAlarmsByTemplateException" message="fmWS-v1-0:getAlarmsByTemplateException" />
    </wsdl:operation>
    <wsdl:operation name="queryAlarms">
    <wsdl:input name="queryAlarmsRequest" message="fmWS-v1-0:queryAlarmsRequest" />
    <wsdl:output name="queryAlarmsResponse" message="fmWS-v1-0:queryAlarmsResponse" />
    <wsdl:fault name="queryAlarmsException" message="fmWS-v1-0:queryAlarmsException" />
    </wsdl:operation>
    <!-- Tigerstripe : Operations for Interface artifact methods ( JVTAlarmCreationSession ) -->
    <wsdl:operation name="getAlarmSpecificInfoTypes">
    <wsdl:input
    name="getAlarmSpecificInfoTypesRequest"
    message="fmWS-v1-0:getAlarmSpecificInfoTypesRequest" />
    <wsdl:output
    name="getAlarmSpecificInfoTypesResponse"
    message="fmWS-v1-0:getAlarmSpecificInfoTypesResponse" />
    <wsdl:fault
    name="getAlarmSpecificInfoTypesException"
    message="fmWS-v1-0:getAlarmSpecificInfoTypesException" />
    </wsdl:operation>
    <wsdl:operation name="getVersion">
    <wsdl:input
    name="getVersionRequest"
    message="fmWS-v1-0:getVersionRequest" />
    <wsdl:output
    name="getVersionResponse"
    message="fmWS-v1-0:getVersionResponse" />
    <wsdl:fault
    name="getVersionException"
    message="fmWS-v1-0:getVersionException" />
    </wsdl:operation>
    <wsdl:operation name="createAlarms">
    <wsdl:input
    name="createAlarmsRequest"
    message="fmWS-v1-0:createAlarmsRequest" />
    <wsdl:output
    name="createAlarmsResponse"
    message="fmWS-v1-0:createAlarmsResponse" />
    <wsdl:fault
    name="createAlarmsException"
    message="fmWS-v1-0:createAlarmsException" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="JVTAlarmCreationSessionSoapBinding"
    type="fmWS-v1-0:JVTAlarmCreationSessionWSPort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http" />
    <!-- Tigerstripe : Bindings relating to Alarm -->
    <wsdl:operation name="getAlarmsByKeys">
    <soap:operation soapAction="getAlarmsByKeys" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name="getAlarmsByKeysException">
    <soap:fault name="getAlarmsByKeysException" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getAlarmsByTemplate">
    <soap:operation soapAction="getAlarmsByTemplate" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name="getAlarmsByTemplateException">
    <soap:fault name="getAlarmsByTemplateException" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="queryAlarms">
    <soap:operation soapAction="queryAlarms" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name="queryAlarmsException">
    <soap:fault name="queryAlarmsException" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getAlarmSpecificInfoTypes">
    <soap:operation soapAction="getAlarmSpecificInfoTypes" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name ="getAlarmSpecificInfoTypesException">
    <soap:fault name ="getAlarmSpecificInfoTypesException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getVersion">
    <soap:operation soapAction="getVersion" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name ="getVersionException">
    <soap:fault name ="getVersionException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="createAlarms">
    <soap:operation soapAction="createAlarms" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name ="createAlarmsException">
    <soap:fault name ="createAlarmsException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- Binding for the Notification Producer -->
    <!-- <wsdl:binding name="NotificationProducerSoapBinding" type="wsnt:NotificationProducer">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http" />-->
    <!-- =========== NotificationProducer Specific ============== -->
    <!-- <wsdl:operation name="Subscribe">
    <soap:operation soapAction="Subscribe" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="SubscribeCreationFailedFault">
    <soap:fault name="SubscribeCreationFailedFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="TopicExpressionDialectUnknownFault">
    <soap:fault name="TopicExpressionDialectUnknownFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidFilterFault">
    <soap:fault name="InvalidFilterFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidTopicExpressionFault">
    <soap:fault name="InvalidTopicExpressionFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="TopicNotSupportedFault">
    <soap:fault name="TopicNotSupportedFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidProducerPropertiesExpressionFault">
    <soap:fault name="InvalidProducerPropertiesExpressionFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidMessageContentExpressionFault">
    <soap:fault name="InvalidMessageContentExpressionFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="UnacceptableInitialTerminationTimeFault">
    <soap:fault name="UnacceptableInitialTerminationTimeFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="UnrecognizedPolicyRequestFault">
    <soap:fault name="UnrecognizedPolicyRequestFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="UnsupportedPolicyRequestFault">
    <soap:fault name="UnsupportedPolicyRequestFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="NotifyMessageNotSupportedFault">
    <soap:fault name="NotifyMessageNotSupportedFault" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="GetCurrentMessage">
    <soap:operation soapAction="GetCurrentMessage" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="TopicExpressionDialectUnknownFault">
    <soap:fault name="TopicExpressionDialectUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="InvalidTopicExpressionFault">
    <soap:fault name="InvalidTopicExpressionFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="TopicNotSupportedFault">
    <soap:fault name="TopicNotSupportedFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="NoCurrentMessageOnTopicFault">
    <soap:fault name="NoCurrentMessageOnTopicFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="MultipleTopicsSpecifiedFault">
    <soap:fault name="MultipleTopicsSpecifiedFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>-->
    <!-- Binding for the SubscriptionManager -->
    <!-- <wsdl:binding name="SubscriptionManagerSoapBinding" type="wsnt:PausableSubscriptionManager">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http" />-->
    <!-- ========= SubscriptionManager specific operations ====== -->
    <!-- <wsdl:operation name="PauseSubscription">
    <soap:operation soapAction="PauseSubscription" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="PauseFailedFault">
    <soap:fault name="PauseFailedFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="Renew">
    <soap:operation soapAction="Renew" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="UnacceptableTerminationTimeFault">
    <soap:fault name="UnacceptableTerminationTimeFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="Unsubscribe">
    <soap:operation soapAction="Unsubscribe" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="UnableToDestroySubscriptionFault">
    <soap:fault name="UnableToDestrySubscriptionFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="ResumeSubscription">
    <soap:operation soapAction="ResumeSubscription" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="ResumeFailedFault">
    <soap:fault name="ResumeFailedFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>-->
    <wsdl:service name="JVTAlarmCreationSessionWebService">
    <wsdl:port name="JVTAlarmCreationSessionWSPort"
    binding="fmWS-v1-0:JVTAlarmCreationSessionSoapBinding">
    <soap:address location="http://localhost/JVTAlarmCreationSessionWebService/JVTAlarmCreationSession" />
    </wsdl:port>
    <!--wsdl:port name="NotificationProducerPort" binding="wsnt:NotificationProducerSoapBinding">
    <soap:address location="http://localhost/JVTAlarmCreationSessionWebService/NotificationProducer"/>
    </wsdl:port>
    <wsdl:port name="SubscriptionManagerPort" binding="wsnt:SubscriptionManagerSoapBinding">
    <soap:address location="http://localhost/JVTAlarmCreationSessionWebService/SubscriptionManager"/>
    </wsdl:port-->
    </wsdl:service>
    </wsdl:definitions>
    WSDL-2 imported in the above WSDL
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
    OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
    Copyright (C) OASIS Open (2004-2006). All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
    The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
    This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    -->
    <wsdl:definitions name="WS-BaseNotification"
    targetNamespace="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- ========================== Imports =========================== -->
    <wsdl:import
    namespace="http://docs.oasis-open.org/wsrf/rw-2"
    location="rw-2.wsdl"/>
    <!-- ===================== Types Definitions ====================== -->
    <wsdl:types>
    <xsd:schema elementFormDefault="qualified">
    <xsd:import
    namespace="http://docs.oasis-open.org/wsn/b-2"
    schemaLocation="b-2.xsd"/>
    </xsd:schema>
    </wsdl:types>
    <!-- ================ NotificationConsumer::Notify ================
    Notify(
    NotificationMessage
    (SubscriptionReference, TopicExpression, ProducerReference,
    Message)*
    returns: n/a (one way)
    -->
    <wsdl:message name="Notify">
    <wsdl:part name="Notify" element="wsnt:Notify"/>
    </wsdl:message>
    <!-- ============== NotificationProducer::Subscribe ===============
    Subscribe(
    (ConsumerEndpointReference, [Filter], [SubscriptionPolicy],
    [InitialTerminationTime])
    returns: WS-Resource qualified EPR to a Subscription
    -->
    <wsdl:message name="SubscribeRequest" >
    <wsdl:part name="SubscribeRequest"
    element="wsnt:Subscribe"/>
    </wsdl:message>
    <wsdl:message name="SubscribeResponse">
    <wsdl:part name="SubscribeResponse"
    element="wsnt:SubscribeResponse"/>
    </wsdl:message>
    <wsdl:message name="SubscribeCreationFailedFault">
    <wsdl:part name="SubscribeCreationFailedFault"
    element="wsnt:SubscribeCreationFailedFault" />
    </wsdl:message>
    <wsdl:message name="TopicExpressionDialectUnknownFault">
    <wsdl:part name="TopicExpressionDialectUnknownFault"
    element="wsnt:TopicExpressionDialectUnknownFault" />
    </wsdl:message>
    <wsdl:message name="InvalidFilterFault">
    <wsdl:part name="InvalidFilterFault"
    element="wsnt:InvalidFilterFault" />
    </wsdl:message>
    <wsdl:message name="InvalidProducerPropertiesExpressionFault">
    <wsdl:part name="InvalidProducerPropertiesExpressionFault"
    element="wsnt:InvalidProducerPropertiesExpressionFault" />
    </wsdl:message>
    <wsdl:message name="InvalidMessageContentExpressionFault">
    <wsdl:part name="InvalidMessageContentExpressionFault"
    element="wsnt:InvalidMessageContentExpressionFault" />
    </wsdl:message>
    <wsdl:message name="UnrecognizedPolicyRequestFault">
    <wsdl:part name="UnrecognizedPolicyRequestFault"
    element="wsnt:UnrecognizedPolicyRequestFault" />
    </wsdl:message>
    <wsdl:message name="UnsupportedPolicyRequestFault">
    <wsdl:part name="UnsupportedPolicyRequestFault"
    element="wsnt:UnsupportedPolicyRequestFault" />
    </wsdl:message>
    <wsdl:message name="NotifyMessageNotSupportedFault">
    <wsdl:part name="NotifyMessageNotSupportedFault"
    element="wsnt:NotifyMessageNotSupportedFault" />
    </wsdl:message>
    <wsdl:message name="UnacceptableInitialTerminationTimeFault">
    <wsdl:part name="UnacceptableInitialTerminationTimeFault"
    element="wsnt:UnacceptableInitialTerminationTimeFault"/>
    </wsdl:message>
    <!-- ========== NotificationProducer::GetCurrentMessage ===========
    GetCurrentMessage(topicExpression)
    returns: a NotificationMessage (xsd:any)
    -->
    <wsdl:message name="GetCurrentMessageRequest">
    <wsdl:part name="GetCurrentMessageRequest"
    element="wsnt:GetCurrentMessage"/>
    </wsdl:message>
    <wsdl:message name="GetCurrentMessageResponse">
    <wsdl:part name="GetCurrentMessageResponse"
    element="wsnt:GetCurrentMessageResponse"/>
    </wsdl:message>
    <wsdl:message name="InvalidTopicExpressionFault">
    <wsdl:part name="InvalidTopicExpressionFault"
    element="wsnt:InvalidTopicExpressionFault" />
    </wsdl:message>
    <wsdl:message name="TopicNotSupportedFault">
    <wsdl:part name="TopicNotSupportedFault"
    element="wsnt:TopicNotSupportedFault" />
    </wsdl:message>
    <wsdl:message name="MultipleTopicsSpecifiedFault">
    <wsdl:part name="MultipleTopicsSpecifiedFault"
    element="wsnt:MultipleTopicsSpecifiedFault" />
    </wsdl:message>
    <wsdl:message name="NoCurrentMessageOnTopicFault">
    <wsdl:part name="NoCurrentMessageOnTopicFault"
    element="wsnt:NoCurrentMessageOnTopicFault" />
    </wsdl:message>
    <!-- ========== PullPoint::GetMessages ===========
    GetMessages(MaximumNumber)
    returns: NotificationMessage list
    -->
    <wsdl:message name="GetMessagesRequest">
    <wsdl:part name="GetMessagesRequest"
    element="wsnt:GetMessages"/>
    </wsdl:message>
    <wsdl:message name="GetMessagesResponse">
    <wsdl:part name="GetMessagesResponse"
    element="wsnt:GetMessagesResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToGetMessagesFault">
    <wsdl:part name="UnableToGetMessagesFault"
    element="wsnt:UnableToGetMessagesFault"/>
    </wsdl:message>
    <!-- ========== PullPoint::DestroyPullPoint ===========
    DestroyPullPoint()
    returns: void
    -->
    <wsdl:message name="DestroyPullPointRequest">
    <wsdl:part name="DestroyPullPointRequest"
    element="wsnt:DestroyPullPoint"/>
    </wsdl:message>
    <wsdl:message name="DestroyPullPointResponse">
    <wsdl:part name="DestroyPullPointResponse"
    element="wsnt:DestroyPullPointResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToDestroyPullPointFault">
    <wsdl:part name="UnableToDestroyPullPointFault"
    element="wsnt:UnableToDestroyPullPointFault"/>
    </wsdl:message>
    <!-- ========== PullPoint::CreatePullPoint ===========
    CreatePullPoint()
    returns: PullPoint (wsa:EndpointReference)
    -->
    <wsdl:message name="CreatePullPointRequest">
    <wsdl:part name="CreatePullPointRequest"
    element="wsnt:CreatePullPoint"/>
    </wsdl:message>
    <wsdl:message name="CreatePullPointResponse">
    <wsdl:part name="CreatePullPointResponse"
    element="wsnt:CreatePullPointResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToCreatePullPointFault">
    <wsdl:part name="UnableToCreatePullPointFault"
    element="wsnt:UnableToCreatePullPointFault"/>
    </wsdl:message>
    <!-- ================ SubscriptionManager::Renew ==================
    Renew( Duration | AbsoluteTime)
    returns: (New Termination Time [CurrentTime])
    -->
    <wsdl:message name="RenewRequest">
    <wsdl:part name="RenewRequest"
    element="wsnt:Renew"/>
    </wsdl:message>
    <wsdl:message name="RenewResponse">
    <wsdl:part name="RenewResponse"
    element="wsnt:RenewResponse"/>
    </wsdl:message>
    <wsdl:message name="UnacceptableTerminationTimeFault">
    <wsdl:part name="UnacceptableTerminationTimeFault"
    element="wsnt:UnacceptableTerminationTimeFault" />
    </wsdl:message>
    <!-- ============== SubscriptionManager::Unsubscribe ===============
    Unsubscribe()
    returns: empty
    -->
    <wsdl:message name="UnsubscribeRequest">
    <wsdl:part name="UnsubscribeRequest"
    element="wsnt:Unsubscribe"/>
    </wsdl:message>
    <wsdl:message name="UnsubscribeResponse">
    <wsdl:part name="UnsubscribeResponse"
    element="wsnt:UnsubscribeResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToDestroySubscriptionFault">
    <wsdl:part name="UnableToDestroySubscriptionFault"
    element="wsnt:UnableToDestroySubscriptionFault" />
    </wsdl:message>
    <!-- ========== SubscriptionManager::PauseSubscription ============
    PauseSubscription()
    returns: empty
    -->
    <wsdl:message name="PauseSubscriptionRequest">
    <wsdl:part name="PauseSubscriptionRequest"
    element="wsnt:PauseSubscription"/>
    </wsdl:message>
    <wsdl:message name="PauseSubscriptionResponse">
    <wsdl:part name="PauseSubscriptionResponse"
    element="wsnt:PauseSubscriptionResponse"/>
    </wsdl:message>
    <wsdl:message name="PauseFailedFault">
    <wsdl:part name="PauseFailedFault"
    element="wsnt:PauseFailedFault" />
    </wsdl:message>
    <!-- ========= SubscriptionManager::ResumeSubscription ============
    ResumeSubscription()
    returns: empty
    -->
    <wsdl:message name="ResumeSubscriptionRequest">
    <wsdl:part name="ResumeSubscriptionRequest"
    element="wsnt:ResumeSubscription"/>
    </wsdl:message>
    <wsdl:message name="ResumeSubscriptionResponse">
    <wsdl:part name="ResumeSubscriptionResponse"
    element="wsnt:ResumeSubscriptionResponse"/>
    </wsdl:message>
    <wsdl:message name="ResumeFailedFault">
    <wsdl:part name="ResumeFailedFault"
    element="wsnt:ResumeFailedFault" />
    </wsdl:message>
    <!-- =================== PortType Definitions ===================== -->
    <!-- ========= NotificationConsumer PortType Definition =========== -->
    <wsdl:portType name="NotificationConsumer">
    <wsdl:operation name="Notify">
    <wsdl:input message="wsntw:Notify" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========= NotificationProducer PortType Definition =========== -->
    <wsdl:portType name="NotificationProducer">
    <wsdl:operation name="Subscribe">
    <wsdl:input message="wsntw:SubscribeRequest" />
    <wsdl:output message="wsntw:SubscribeResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="InvalidFilterFault"
    message="wsntw:InvalidFilterFault"/>
    <wsdl:fault name="TopicExpressionDialectUnknownFault"
    message="wsntw:TopicExpressionDialectUnknownFault"/>
    <wsdl:fault name="InvalidTopicExpressionFault"
    message="wsntw:InvalidTopicExpressionFault" />
    <wsdl:fault name="TopicNotSupportedFault"
    message="wsntw:TopicNotSupportedFault" />
    <wsdl:fault name="InvalidProducerPropertiesExpressionFault"
    message="wsntw:InvalidProducerPropertiesExpressionFault"/>
    <wsdl:fault name="InvalidMessageContentExpressionFault"
    message="wsntw:InvalidMessageContentExpressionFault"/>
    <wsdl:fault name="UnacceptableInitialTerminationTimeFault"
    message="wsntw:UnacceptableInitialTerminationTimeFault"/>
    <wsdl:fault name="UnrecognizedPolicyRequestFault"
    message="wsntw:UnrecognizedPolicyRequestFault"/>
    <wsdl:fault name="UnsupportedPolicyRequestFault"
    message="wsntw:UnsupportedPolicyRequestFault"/>
    <wsdl:fault name="NotifyMessageNotSupportedFault"
    message="wsntw:NotifyMessageNotSupportedFault"/>
    <wsdl:fault name="SubscribeCreationFailedFault"
    message="wsntw:SubscribeCreationFailedFault"/>
    </wsdl:operation>
    <wsdl:operation name="GetCurrentMessage">
    <wsdl:input message="wsntw:GetCurrentMessageRequest"/>
    <wsdl:output message="wsntw:GetCurrentMessageResponse"/>
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="TopicExpressionDialectUnknownFault"
    message="wsntw:TopicExpressionDialectUnknownFault"/>
    <wsdl:fault name="InvalidTopicExpressionFault"
    message="wsntw:InvalidTopicExpressionFault" />
    <wsdl:fault name="TopicNotSupportedFault"
    message="wsntw:TopicNotSupportedFault" />
    <wsdl:fault name="NoCurrentMessageOnTopicFault"
    message="wsntw:NoCurrentMessageOnTopicFault" />
    <wsdl:fault name="MultipleTopicsSpecifiedFault"
    message="wsntw:MultipleTopicsSpecifiedFault" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========== PullPoint PortType Definition ===================== -->
    <wsdl:portType name="PullPoint">
    <wsdl:operation name="GetMessages">
    <wsdl:input name="GetMessagesRequest"
    message="wsntw:GetMessagesRequest" />
    <wsdl:output name="GetMessagesResponse"
    message="wsntw:GetMessagesResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnableToGetMessagesFault"
    message="wsntw:UnableToGetMessagesFault" />
    </wsdl:operation>
    <wsdl:operation name="DestroyPullPoint">
    <wsdl:input name="DestroyPullPointRequest"
    message="wsntw:DestroyPullPointRequest" />
    <wsdl:output name="DestroyPullPointResponse"
    message="wsntw:DestroyPullPointResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault"/>
    <wsdl:fault name="UnableToDestroyPullPointFault"
    message="wsntw:UnableToDestroyPullPointFault" />
    </wsdl:operation>
    <wsdl:operation name="Notify">
    <wsdl:input message="wsntw:Notify"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========== CreatePullPoint PortType Definition =============== -->
    <wsdl:portType name="CreatePullPoint">
    <wsdl:operation name="CreatePullPoint">
    <wsdl:input name="CreatePullPointRequest"
    message="wsntw:CreatePullPointRequest" />
    <wsdl:output name="CreatePullPointResponse"
    message="wsntw:CreatePullPointResponse" />
    <wsdl:fault name="UnableToCreatePullPointFault"
    message="wsntw:UnableToCreatePullPointFault" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========== SubscriptionManager PortType Definition =========== -->
    <wsdl:portType name="SubscriptionManager">
    <wsdl:operation name="Renew">
    <wsdl:input name="RenewRequest"
    message="wsntw:RenewRequest" />
    <wsdl:output name="RenewResponse"
    message="wsntw:RenewResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnacceptableTerminationTimeFault"
    message=
    "wsntw:UnacceptableTerminationTimeFault" />
    </wsdl:operation>
    <wsdl:operation name="Unsubscribe">
    <wsdl:input name="UnsubscribeRequest"
    message="wsntw:UnsubscribeRequest" />
    <wsdl:output name="UnsubscribeResponse"
    message="wsntw:UnsubscribeResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnableToDestroySubscriptionFault"
    message=
    "wsntw:UnableToDestroySubscriptionFault" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ====== PausableSubscriptionManager PortType Definition ======= -->
    <wsdl:portType name="PausableSubscriptionManager">
    <!-- ============== Extends: SubscriptionManager ============ -->
    <wsdl:operation name="Renew">
    <wsdl:input name="RenewRequest"
    message="wsntw:RenewRequest" />
    <wsdl:output name="RenewResponse"
    message="wsntw:RenewResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnacceptableTerminationTimeFault"
    message=
    "wsntw:UnacceptableTerminationTimeFault" />
    </wsdl:operation>
    <wsdl:operation name="Unsubscribe">
    <wsdl:input name="UnsubscribeRequest"
    message="wsntw:UnsubscribeRequest" />
    <wsdl:output name="UnsubscribeResponse"
    message="wsntw:UnsubscribeResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnableToDestroySubscriptionFault"
    message=
    "wsntw:UnableToDestroySubscriptionFault" />
    </wsdl:operation>
    <!-- === PausableSubscriptionManager specific operations === -->
    <wsdl:operation name="PauseSubscription">
    <wsdl:input message="wsntw:PauseSubscriptionRequest"/>
    <wsdl:output message="wsntw:PauseSubscriptionResponse"/>
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="PauseFailedFault"
    message="wsntw:PauseFailedFault" />
    </wsdl:operation>
    <wsdl:operation name="ResumeSubscription">
    <wsdl:input message="wsntw:ResumeSubscriptionRequest"/>
    <wsdl:output message="wsntw:ResumeSubscriptionResponse"/>
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="ResumeFailedFault"
    message="wsntw:ResumeFailedFault" />
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    And the error i get is [fatal error] null databinding context encountered when creating service.
    Steps i followed:
    1. Created a new project in Jdev
    2. Right clicked on project to expand Business Tier - Web Services nodes. Selected the Java web Service from WSDL.
    3. Selected WSDL to convert
    ---Says it is Fetching WSDL
    ---then says building model
    --and pops error : [fatal error] null databinding context encountered.
    Any suggestions? I'm unable to get this issue fixed for a long time.

    Hey guys,
    I couldnt get this fixed in jdeveloper, i finally gave up on using Jdeveloper for Web service creation.
    I went back to my eclipse3.2.2 and used the Eclipse WTP 1.5.4 and guess what, it had no issues generating the service and client for my WSDL.
    I am not sure Jdeveloper can compete with Eclipse functionality and ease.

  • UNX issue : Failed to initialize Query Panel (service issue?)

    Hello all,
    For a couple off days now we are trying to use universe(s) in Desing studio with no luck.
    We use the Efashion single source relational universe on which we can run Webi's without a problem . When we add a datasource in DS we see and can select the unx but when we push the "edit query specification" button DS freezes and return the error : Failed to initialize Query Panel
    We just upgrade tot DS1.2 SP01 both on server side as on client side.
    This is the error from the error log : which seems to have a connection problem to a certain service:
    Any of you have an idea how to proceed?
    All servers run fine when we check the CMC and an APS is added for Design studio (analysis) .DS works fine with BEX queries...
    Thanks in advance.
    !ENTRY com.sap.ip.bi.zen.ui 4 0 2014-03-14 12:43:33.876
    !MESSAGE Failed to initialize Query Panel
    !STACK 0
    com.businessobjects.dsl.services.workspace.impl.WorkspaceException: Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
           at com.businessobjects.dsl.services.dataprovider.impl.AbstractDataProviderWithUniverse.createDataSource(AbstractDataProviderWithUniverse.java:437)
           at com.businessobjects.dsl.services.dataprovider.impl.QuerySpecDataProvider.createInitialDataSource(QuerySpecDataProvider.java:609)
           at com.businessobjects.dsl.services.dataprovider.impl.QuerySpecDataProvider.finalizeCreation(QuerySpecDataProvider.java:852)
           at com.businessobjects.dsl.services.workspace.impl.AbstractBuiltInDataProviderBuilder.buildDataProvider(AbstractBuiltInDataProviderBuilder.java:36)
           at com.businessobjects.dsl.services.dataprovider.impl.DataProviderFactory.createDataProviderWithUniverse(DataProviderFactory.java:190)
           at com.businessobjects.dsl.services.dataprovider.impl.DataProviderFactory.createAndAddDataProvider(DataProviderFactory.java:108)
           at com.businessobjects.dsl.services.workspace.impl.WorkspaceServiceImpl.addDataProvider(WorkspaceServiceImpl.java:83)
           at com.businessobjects.dsl.services.workspace.impl.WorkspaceServiceImpl.addDataProvider(WorkspaceServiceImpl.java:45)
           at com.sap.ip.bi.zen.backends.bip.ui.dialogs.QueryPanelDialog.createQueryPanelContext(QueryPanelDialog.java:133)
           at com.sap.ip.bi.zen.backends.bip.ui.dialogs.QueryPanelDialog.createDialogArea(QueryPanelDialog.java:97)
           at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:775)
           at com.sap.ip.bi.zen.ui.internal.dialogs.ZenTrayDialog.createContents(ZenTrayDialog.java:63)
           at org.eclipse.jface.window.Window.create(Window.java:432)
           at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1104)
           at com.sap.ip.bi.zen.ui.internal.dialogs.ZenTrayDialog.open(ZenTrayDialog.java:110)
           at com.sap.ip.bi.zen.ui.internal.dialogs.datasource.DataSourceDialogController.editDataSourceClickedInternal(DataSourceDialogController.java:158)
           at com.sap.ip.bi.zen.ui.internal.dialogs.datasource.DataSourceDialogController$1.run(DataSourceDialogController.java:147)
           at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
           at com.sap.ip.bi.zen.ui.internal.dialogs.datasource.DataSourceDialogController.editDataSourceClicked(DataSourceDialogController.java:144)
           at com.sap.ip.bi.zen.ui.internal.dialogs.datasource.DataSourceSelectionPane.editQueryButtonClicked(DataSourceSelectionPane.java:253)
           at com.sap.ip.bi.zen.ui.internal.dialogs.datasource.DataSourceSelectionPane$6.widgetSelected(DataSourceSelectionPane.java:233)
           at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
           at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
           at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
           at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
           at org.eclipse.jface.window.Window.open(Window.java:802)
           at com.sap.ip.bi.zen.ui.internal.dialogs.ZenTrayDialog.open(ZenTrayDialog.java:112)
           at com.sap.ip.bi.zen.ui.internal.commands.AddDataSourceHandler.execute(AddDataSourceHandler.java:24)
           at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
           at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
           at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
           at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
           at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
           at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
           at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
           at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
           at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
           at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
           at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
           at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
           at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
           at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
           at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
           at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
           at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
           at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
           at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
           at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
           at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
           at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
           at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
           at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
           at com.sap.ip.bi.zen.ui.internal.application.ZenApplication.start(ZenApplication.java:36)
           at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
           at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
           at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
           at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
           at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
    Caused by: com.businessobjects.mds.services.solver.ConnectionSolverException: Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
           at com.businessobjects.mds.services.solver.AbstractConnectionSolver.addCredentialInfo(AbstractConnectionSolver.java:238)
           at com.businessobjects.mds.services.solver.AbstractConnectionSolver.solve(AbstractConnectionSolver.java:136)
           at com.businessobjects.mds.services.solver.AbstractConnectionSolver.solveRelational(AbstractConnectionSolver.java:151)
           at com.businessobjects.mds.services.solver.AbstractConnectionSolver.solveRelational(AbstractConnectionSolver.java:147)
           at com.businessobjects.mds.services.solver.AbstractConnectionSolver.solveRelational(AbstractConnectionSolver.java:143)
           at com.businessobjects.mds.services.helpers.DataFoundationHelper.getConnection(DataFoundationHelper.java:892)
           at com.businessobjects.mds.services.helpers.DataFoundationHelper.isErpDataFoundation(DataFoundationHelper.java:2896)
           at com.businessobjects.mds.services.helpers.UniverseHelper.isErpUniverse(UniverseHelper.java:1554)
           at com.businessobjects.dsl.services.datasource.DataSourceFactory.createQueryCapability(DataSourceFactory.java:286)
           at com.businessobjects.dsl.services.datasource.DataSourceFactory.fillQueryCapability(DataSourceFactory.java:959)
           at com.businessobjects.dsl.services.datasource.DataSourceFactory.getDataSource(DataSourceFactory.java:839)
           at com.businessobjects.dsl.services.dataprovider.impl.AbstractDataProviderWithUniverse.createDataSourceFromUniverse(AbstractDataProviderWithUniverse.java:572)
           at com.businessobjects.dsl.services.dataprovider.impl.AbstractDataProviderWithUniverse.retrieveDataSource(AbstractDataProviderWithUniverse.java:542)
           at com.businessobjects.dsl.services.dataprovider.impl.AbstractDataProviderWithUniverse.buildDataSource(AbstractDataProviderWithUniverse.java:448)
           at com.businessobjects.dsl.services.dataprovider.impl.AbstractDataProviderWithUniverse.createDataSource(AbstractDataProviderWithUniverse.java:432)
           ... 72 more
    Caused by: com.sap.connectivity.cs.core.CSError: Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
           at com.sap.connectivity.cs.remoting.corba.proxy.ConnectionManager.<init>(ConnectionManager.java:81)
           at com.sap.connectivity.cs.remoting.corba.proxy.ConnectionServer.getConnectionManager(ConnectionServer.java:125)
           at com.sap.connectivity.cs.core.Environment.CreateConnectionManager(Environment.java:530)
           at com.sap.connectivity.cs.core.Environment.CreateConnectionManager(Environment.java:504)
           at com.sap.connectivity.cs.api.trace.EnvironmentLogger.CreateConnectionManager(EnvironmentLogger.java:368)
           at com.businessobjects.mds.services.relational.CsService.getAuthenticationMode(CsService.java:180)
           at com.businessobjects.mds.services.relational.CsService.addCredentialInfo(CsService.java:485)
           at com.businessobjects.mds.services.solver.AbstractConnectionSolver.addCredentialInfo(AbstractConnectionSolver.java:235)
           ... 86 more
    Caused by: com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
    cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServicesDown: Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
    detail:Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
           at com.crystaldecisions.sdk.exception.SDKException.map(SDKException.java:140)
           at com.sap.connectivity.cs.remoting.bip.SvcFactoryBase.getManagedService(SvcFactoryBase.java:183)
           at com.sap.connectivity.cs.remoting.bip.SvcFactoryBase.getManagedService(SvcFactoryBase.java:128)
           at com.sap.connectivity.cs.remoting.corba.svchelpers.NetworkLayerSvcFactory.getServiceFromCriteria(NetworkLayerSvcFactory.java:53)
           at com.sap.connectivity.cs.remoting.corba.svchelpers.NetworkLayerLookup.getServiceFromCriteria(NetworkLayerLookup.java:114)
           at com.sap.connectivity.cs.remoting.corba.svchelpers.NetworkLayerLookup.getService(NetworkLayerLookup.java:83)
           at com.sap.connectivity.cs.remoting.corba.proxy.ConnectionManager.<init>(ConnectionManager.java:68)
           ... 93 more
    Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServicesDown: Unable to find servers in CMS vyouboxd01.you.com:6400 and cluster @vyouboxd01.you.com:6400 with kind connectionserver and service CS_CORBA_NetworkLayer. All such servers could be down or disabled by the administrator. (FWM 01014)
           at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:664)
           at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:959)
           at com.crystaldecisions.enterprise.ocaframework.ManagedSession.redirectServer(ManagedSession.java:338)
           at com.crystaldecisions.enterprise.ocaframework.ManagedSession.get(ManagedSession.java:247)
           at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:299)
           at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService_aroundBody4(ServiceMgr.java:520)
           at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService_aroundBody5$advice(ServiceMgr.java:512)
           at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:1)
           at com.sap.connectivity.cs.remoting.bip.SvcFactoryBase.getManagedService(SvcFactoryBase.java:164)
             ... 98 more

    Hi Bram,
    I had a look in your Java-Exception and there a connectionserver is missing.
    I know that there are two kind of connection servers 32 and 64 Bit. Do one of your APS Servers have connectivity and connectivity 32 Bit ???
    I had an issue when i first wanted to use a .unx connection with DS with my splitted APS.
    I had one APS only containing the Analysis service. To get to run my .unx access i had to add the Adaptive connectivity Service to the APS containing the analysis service.
    On top of that i had to add the DSL Bridge (otherwise my adaptive connectivity Service did not start)
    Perhabs this helps you out.
    Good luck
    Manfred

  • [svn] 4690: * Fixed an issue caused by revision 4330.

    Revision: 4690
    Author: [email protected]
    Date: 2009-01-27 13:12:47 -0800 (Tue, 27 Jan 2009)
    Log Message:
    * Fixed an issue caused by revision 4330. Due to leaving the backing
    variables and functions in the public namespace, they were showing
    up in FlexBuilder's code hinting and DataGrid's without specified
    columns. Now they are "hidden" in the mx_internal namespace.
    tests Passed: checkintests, mxunit databinding
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-18853, SDK-18604
    API Change: NO
    Reviewer: Pete F.
    Code-level description of changes:
    frameworks/projects/framework/src/mx/binding/BindingManager.as
    Modified set() to no longer require a userNamespace arg. The
    mx_internal namespace is now assumed.
    modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEvaluator.java
    Renamed makeAttrListPublic() to makeMxInternalAndRemoveOverride(DefinitionNode)
    and updated it to handle IdentifierNodes in the
    AttributeListNode's items.
    Added makeMxInternalAndRemoveOverride(IdentifierNode, Iterator) as
    a helper method for common code in
    makeMxInternalAndRemoveOverride(DefinitionNode).
    modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.java
    Modified AccessorInfo's constructor to create a more unique backingPrefix.
    Modified getQualifiedBackingPropertyName() to always use the
    mx_internal namespace.
    modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm
    Modified BindingManager.set() call to no longer pass in the userNamespace.
    modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java
    Modified evaluate(Context, ClassDefinitionNode) to add an import
    for mx_internal.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18853
    http://bugs.adobe.com/jira/browse/SDK-18604
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/BindingManager.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEval uator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/managed/ManagedProperty.vm

    After days of tweaking and suspecting antivirus behind the problems, I reverted back to MSI's default drivers as listed on the product webpage. It appears to be stable so far. Well at least I can use it now.
    I'm not sure if Killer's drivers are suck or MSI don't allow drivers 'not certified by them'. But its bad news if someone wants to use the latest drivers considering we're talking cutting edge gaming laptops here.

  • Combo Box Selection Issue in SBO 2007

    Hello.
    Here is one issue which I am facing now.
    I have just installed the 2007 Version of SBO in my machine. And using VB.Net.
    When I tried to retrieve the <i>Selected.Value</i> from a ComboBox, it is returning a wrong value.
    The real problem is this.
    Suppose there is two ValidValues in the Combo box
    1. <b>aaa</b>
    2. <b>bbb</b>
    and suppose we manually selected the value '<b>aaa</b>' in it.
    Then the combobox will show '<b>aaa</b>' as selected value.
    When we try to return it using the <i>Selected.Value</i> property, it returns <b>aaa</b>.
    then I tried to select '<b>bbb</b>' using a code which is here
    <i>oCombo.Select("bbb",SAPBouicom.BoSearchKey.psk_ByValue)</i>
    Now the combobox will show '<b>bbb</b>' as selected value. But,
    When we try to return it using <i>Selected.Value</i> property, It still returns <b>aaa</b>.
    If we select <b>bbb</b> manually, it will return <b>bbb</b>.
    IT ALWAYS RETURNS THE LAST MANUALLY SELECTED VALUE.
    here is the original Code which I tried in my application.
    <i>cboCategory.Select(CWRptMaint.ReportCategory, SAPbouiCOM.BoSearchKey.psk_ByValue)
    Dim s As String = cboCategory.Selected.Value
    Dim t As String = cboCategory.Selected.Description
    </i>
    Please Help me to solve this issue.
    Thank you
    Anoop

    HI
    I never had a problem about combobox not using datasource
    But here's the example code about combobox using datasource and not using datasource that i'm taken from one of my friend's project (VB6)
    '================================================================
    Public Type objectReportBA
        oComboBox As SAPbouiCOM.ComboBox
        oComboBox2 As SAPbouiCOM.ComboBox
        oUserDataSource As SAPbouiCOM.UserDataSource
    End Type
    Public oRBA As objectReportBA
    '==================================================================
        '// example Adding a Combo Box item not using user data source
        Set oItem = oFormReportBA.Items.Add("RCB1", it_COMBO_BOX)
        oItem.Left = 70
        oItem.Width = 85
        oItem.Top = 4
        oItem.Height = 18
        oItem.DisplayDesc = True
        Set oRBA.oComboBox = oItem.Specific
        oRBA.oComboBox.ValidValues.Add "1", "aaa"
        oRBA.oComboBox.ValidValues.Add "2", "bbb"
        oRBA.oComboBox.Select "bbb", psk_ByValue
        SBO_Application.MessageBox "Combo1->" & oRBA.oComboBox.Selected.Value       '<<<< will get a value = 2
        SBO_Application.MessageBox "Combo1->" & oRBA.oComboBox.Selected.Description '<<<< will get a description = bbb
    '==================================================================
        '// example Adding another Combo Box item and using datasource
        Set oItem = oFormReportBA.Items.Add("RCB2", it_COMBO_BOX)
        oItem.Left = 157
        oItem.Width = 163
        oItem.Top = 24
        oItem.Height = 14
        oItem.DisplayDesc = True
        Set oRBA.oComboBox2 = oItem.Specific
        oRBA.oComboBox2.ValidValues.Add "1", "aaa"
        oRBA.oComboBox2.ValidValues.Add "2", "bbb"
        oFormReportBA.DataSources.UserDataSources.Add "CombSource", dt_LONG_TEXT, 30
        oRBA.oComboBox2.DataBind.SetBound True, "", "CombSource"
        Set oRBA.oUserDataSource = oFormReportBA.DataSources.UserDataSources.Item("CombSource")
        oRBA.oUserDataSource.Value = "bbb"
        SBO_Application.MessageBox "Combo2->" & oRBA.oUserDataSource.Value  '<<< will get a value = bbb (but u will get diferent value if u click the combobox manually)
    '======================================================================
    'if you click the combobox manually using itemEvent
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
         Select Case pVal.ItemUID      
              Case "RCB1": '//combobox object not using datasource
                        If pVal.EventType = et_COMBO_SELECT Then
                            If pVal.BeforeAction = False Then
                                SBO_Application.MessageBox "combo1->" & oRBA.oComboBox.Selected.Description  '<<<< will get a description = aaa or bbb
                            End If
                        End If
              Case "RCB2": '//Combobox object that using datasource
                        If pVal.EventType = et_COMBO_SELECT Then
                            If pVal.BeforeAction = False Then
                                SBO_Application.MessageBox "combo2->" & oRBA.oUserDataSource.Value            '<<<< will get a descriptian = 1 or 2
                                SBO_Application.MessageBox "combo2->" & oRBA.oComboBox2.Selected.Description '<<<< will get a description = aaa or bbb
                            End If
                        End If
         end select
    end sub
    '===============================================================
    Hopefully this will Help You Anoop
    Regards
    Ancumen

  • Good practice for async databinding, regarding entity-framework.

    I have some issue to find a good pattern to keep my UI responsive using asynch databinding and entity framework which is not thread-safe. It would be a shame if the UI came to totaly freeze with no feedback for a connection lost.
    So, entity framework is not thread-safe. Which mean I won't be able to rely on lazy loading here and involve than if I do async databinding to a collection of object, each object will have to load their navigations properties with their own context to display
    data. Ok, I can handle this. But what if I need more than displaying data and I want to modify a navigation property ?
    I need when I set the navigation property in my viewmodel to attach an entity from the same context than the parent entity is from. So here I have one context for multiple thread. What do I do ? =(
    Does anyone have some experience in it and can help me to clear this mess from my mind ? =D
    All the sample I can find about async databinding don't go any further than make a Thread.Sleep before returning a string, it's not realy helpfull.

    There are reasons people post simple explanations.
    One of those is because they post blog entries when they're learning something rather than when they are expert in it.  The blog post is part of their learning process.
    I sometimes share context. 
    What I do is put the context in Application.Current.Resources and then go get it from there when I need to re-use that particular one.
    xxxDomainContext DBContext = new xxxDomainContext();
    Application.Current.Resources.Add("DBContext", DBContext);
    and using that:
    context = (xxxxDomainContext)Application.Current.Resources["DBContext"];
    You can alternatively share collections in a similar way.  Depends on how many related tables you have, but reading a whole tree of static data is sometimes a good idea rather than just one table at a time.
    One technique I use is to cache slowly changing data on the client and then go get changes since the last run off the server.  For a fair few applications, yesterdays data is good enough for most data sets.  It's just the odd one or two which you really
    need up to date numbers or whatever.
    You can see a collection shared in this sample ( but the sharing is for different reasons ) :
     https://gallery.technet.microsoft.com/Dynamic-XAML-Composed-View-e087f3c1
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Deployment of AM as a web service on the OC4j server raises issues

    Hi,
    I need to create an application with BC4J components. The AM needs to be exposed as a Web Service. Then, some of the VO s and some custom methods would be exposed as Service Methods.
    I have followed these steps:
    1. Created the required application.
    The AM has a VO(say, VO1) and a custom method, say, getSum.
    The signature of getSum is:
    public int getSum(int a, int b)
    2. I have included getSum method and the GetByKey method of VO1 in the Service Interfaces editor.
    3. Created a Business Components Service Interface deployment profile in the project where the service interface is defined .
    4. At the Application level, created a EAR Deployment profile whose "Application Assembly" section includes the "Common" and "MiddleTier" Jars from the Business Components service interface deployment profile above .
    5. Deployed the application using the application-level EAR Deployment profile.
    Deployment completes successfully.
    When I try to access the Service methods, the Invocation comes up fine.
    Two issues crop up after that:
    a) If I invoke getSum, by passing in 2 valid integer values, the following error comes up:
    <env:Fault>
    <faultcode
    xmlns="">env:Server</faultcode>
    <faultstring
    xmlns="">oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: java.lang.NoSuchMethodException: int.<init>(java.lang.String)</faultstring>
    <faultactor
    xmlns=""/>
    </env:Fault>
    b) If I invoke the GetVO1() method, by passing in the valid key values, it throws the following error:
    <ns1:serviceErrorMessage>
    <ns1:code>30003</ns1:code>
    <ns1:message>JBO-30003: The application pool (oracle.apps.model.am.DOOAppModuleService) failed to checkout an application module due to the following exception:</ns1:message>
    <ns1:severity>SEVERITY_ERROR</ns1:severity>
    <ns1:exceptionClassName>oracle.jbo.common.ampool.ApplicationPoolException</ns1:exceptionClassName>
    </ns1:serviceErrorMessage>
    I am using Jdev Drop4. I have already gone through the release notes and set the "Allow Deployed Module access to OC4J internal classes" checkbox to checked, but the issue doesn't get resolved.
    Anybody have any ideas on this? Thanks in advance!

    Hi,
    I'm having the same problem here... anyone know where to look?
    thx in advance,
    Kevin

  • Issue with h:selectManyListBox - java.util.NoSuchElementException

    I facing an issue with <h:selectManyListBoxs in JSF 1.1 with portlets.
    I am using RAD 7.5.3 and server is Web sphere Portal v6.1 Server on WAS 7.
    I have two <h:selectManyListbox moving options from Left to Right which i am doing in Javascript and it is perectly working fine.
    For the right hand side list box i have an additional movement for up and down which i am doing in javascript and it is working fine.
    Now the issue when I move from left to right and click on Save it is working fine. when I try to touch/select the options
    in right hand side list box and click on save i am getting NoSuchElementException in the processValidation phase as shown below.
    (It is not calling the save function at all in this case, it just calling the getLinkedBenchmarks method and failing).
    I added the attribute as immediate= true and the exception is comming now in APPLY_REQUEST phase.
    JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: /jsp/Test.jsp) Exception thrown during phase execution:
    javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@32fc32fc]
    Caused by: javax.portlet.PortletException
         at com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:199)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:77)
         at com.ibm.wps.propertybroker.standard.filter.PropertyBrokerActionFilter.doFilter(PropertyBrokerActionFilter.java:731)
    Caused by: java.util.NoSuchElementException
         at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:128)
         at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:175)
         at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:60)
         at javax.faces.component.UISelectMany.matchValue(UISelectMany.java:497)
         at javax.faces.component.UISelectMany.validateValue(UISelectMany.java:466)
         at javax.faces.component.UIInput.validate(UIInput.java:875)
         at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
         at javax.faces.component.UIInput.processValidators(UIInput.java:672)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1047)
         at javax.faces.component.UIForm.processValidators(UIForm.java:235)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1047)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1047)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:673)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:315)
         at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53)
         at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:329)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:189)
         ... 118 more
      JSP code: I tried to add value for the <h:selectManyList it only allowing to add String not Arrays it displays the following warning
    message "Cannot coerce type String[] to java.lang.String"
    <h:selectManyListbox  size="10" id="availableBMId" converter="com.Converter"
         binding="#{lookup.components.availableBMId}" >
         <f:selectItems
              value="#{themeAttributeBean.availableBMs}" />
    </h:selectManyListbox></td>
    <td style="vertical-align: middle;">
    <div id="benchmark_button1" align="center"><hx:graphicImageEx
         id="Benchmark_AllRight" url="/images/AllRight.gif" height="16"
         hspace="2" style="cursor: hand" width="16" title="All Right"
         onclick="return listbox_moveall('#{lookup.clientIds.availableBMId}', '#{lookup.clientIds.linkedBMId}');">
    </hx:graphicImageEx> <br>
    <br>
    <hx:graphicImageEx id="Benchmark_Right" url="/images/Right.gif"
         height="16" hspace="2" style="cursor: hand" width="16" title="Right"                                                  
         onclick="return listbox_moveacross('#{lookup.clientIds.availableBMId}', '#{lookup.clientIds.linkedBMId}');">
    </hx:graphicImageEx> <br>
    <br>
    <hx:graphicImageEx id="Benchmark_Left" url="/images/Left.gif" title="Left"
         height="16" hspace="2" style="cursor: hand" width="16"                                                  
         onclick="return listbox_moveacross('#{lookup.clientIds.linkedBMId}', '#{lookup.clientIds.availableBMId}');">
    </hx:graphicImageEx> <br>
    <br>
    <hx:graphicImageEx id="Benchmark_AllLeft" title="All Left"
         url="/images/AllLeft.gif" height="16" hspace="2"
         style="cursor: hand" width="16"                                             
         onclick="return listbox_moveall('#{lookup.clientIds.linkedBMd}', '#{lookup.clientIds.availableBMId}');">
    </hx:graphicImageEx></div>
    </td>
    <td valign="top">
    <h:selectManyListbox size="10"
         id="linkedBenchmarksId" converter="com.TAPConverter"
         binding="#{lookup.components.linkedBMId}">
         <f:selectItems value="#{themeAttributeBean.linkedBMs}" />
    </h:selectManyListbox></td>
    <td style="vertical-align: middle;">
    <div id="benchmark_button2" align="center">
    <hx:graphicImageEx id="benchmark_up" url="/images/Up.gif" title="Up"
         height="16" hspace="2" style="cursor: hand" width="16"                                                  
         onclick="movePageUp('#{lookup.clientIds.linkedBMId}');"></hx:graphicImageEx>
    <br>
    <hx:graphicImageEx id="benchmark_down" url="/images/Down.gif" title="Down"
         height="16" hspace="2" style="cursor: hand" width="16"                                                  
         onclick="movePageDown('#{lookup.clientIds.linkedBMId}');"></hx:graphicImageEx>
    <br></div>
    *getting teh javascript values in a hiddend value:*
    <h:inputHidden id="hiddenLinkedBms"
    binding="#{lookup.components.hiddenLinkedBenchmarks}" value="#{bean.hiddenLinkedBms}" />
    *Backing Bean code:*
    public Map<String, Index> getAvailableBenchmarks() {
         availableBM = dao.getAllBM();
         if (themeID.intValue() > 0) {          
              linkedBM = dao.getLinkedBenchmarks(themeID.intValue());
              System.out.println("Linked Bench marks in getAvailableBM.. " + linkedBM);
              removeKeys(availableBM, linkedBM);
         return availableBM;
    public Map<String, Index> getLinkedBM() {
         linkedBenchmarks = dao.getLinkedBM(id);
         return linkedBM;
    Additional info:
         I override the equals and hashcode method in the Object class as suggested on the internet.
         I added the Custom converter by implementing javax.faces.convert.Converter and
         @Override
         public String getAsString(FacesContext arg0, UIComponent arg1, Object obj) {
              if(obj == null){
                   return null;
              } else if(obj instanceof Index){
                   final TAPIndex index = (Index) obj;
                   return index.getIndexName().toString();
              } else if(obj instanceof Objective){     
                   final InvestmentObjective invest = (Objective) obj;
                   return invest.getDescription()+" (" + invest.getCode() + ")".toString();
              return obj.toString();
         @Override
         public Object getAsObject(FacesContext arg0, UIComponent arg1, String value) {
                   return value;
    I have no Idea why it is behaving like this. Please help me.Edited by: Joglekar on Sep 17, 2010 10:17 AM

    Here is the proof - Let me know if am doing any thing wrong! FYI, I used JSF portlets in RAD 7.5.3 and Websphere portal server v6.1.
    I have two SelectManyListBox components and moving the options from left to right using Javascript and then select one of the options in the right hand side list box and click on submit. You will see the NosuchElementException.
    I don't have any logic inside my bean class in any of the methods.
    My Test JSP
    <%-- jsf:pagecode language="java" location="/.apt_generated/com/jsp/TestJSP.java" --%><%-- /jsf:pagecode --%><%@taglib
         uri="http://java.sun.com/portlet" prefix="portlet"%><%@taglib
         uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%><%@taglib
         uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
         uri="http://java.sun.com/jsf/html" prefix="h"%><%@page language="java"
         contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" session="false"%><portlet:defineObjects />
    <f:view>
    <script language="javascript">
    function listbox_moveall(sourceID, destID) {
         var src = document.getElementById(sourceID); var dest = document.getElementById(destID);
         for(var count=0; count < src.length; count++) {
              var option = src[count];
              try {
                   dest.add(new Option(option.text, option.text), null); //Standard
                   src.remove(count, null);
              } catch(error) {
                   dest.add(new Option(option.text, option.text)); // IE only
                   src.remove(count);
              } count--;
         } return true;
    function listbox_moveacross(sourceID, destID) {
         var src = document.getElementById(sourceID); var dest = document.getElementById(destID);
         var selectedIndex = src.selectedIndex;
         if(selectedIndex == -1){
              alert("Please select to move");
         for(var count=0; count < src.length; count++) {
              if(src[count].selected == true) {
                   var option = src[count];
                   try {
                        dest.add(new Option(option.text, option.value), null); //Standard
                        src.remove(count, null);
                   } catch(error) {
                        dest.add(new Option(option.text, option.value)); // IE only
                        src.remove(count);
                   }  count--;               
    </script>
    <hx:scriptCollector id="scriptCollector1">
         <h:form styleClass="form" id="form1" prependId="false">
         <table BORDER="0" CELLPADDING="1" CELLSPACING="0" bgcolor="eeeeee">
              <tbody>
                   <tr> <td colspan="3"><b>TAP Investment Objectives</b></td> </tr>
                   <tr> <td bgcolor="#bfbfbf"><b>Available List</b></td>      <td width="65"></td>
                        <td bgcolor="#bfbfbf"><b>Linked List </b></td> </tr>
                   <tr><td valign="top">
         <h:selectManyListbox size="10" styleClass="selectManyListbox" id="listbox1">
                   <f:selectItems value="#{selectitems.testJSP.availableBMs.availableBMs.toArray}" id="selectItems2" />
         </h:selectManyListbox></td>
         <td style="vertical-align: middle;"> <div id="objective_button" align="center">
         <hx:graphicImageEx url="/images/AllRight.gif" title="All Right" height="16" hspace="2" width="16"
         onclick="return listbox_moveall('listbox1', 'listbox2');"></hx:graphicImageEx>      <br> </div> </td>
         <td valign="top">
              <h:selectManyListbox size="10" styleClass="selectManyListbox" id="listbox2" >
                   <f:selectItems value="#{selectitems.testJSP.linkedBMs.linkedBMs.toArray}" id="selectItems1" />
              </h:selectManyListbox>
         </td>
              </tr>
              </tbody>
         </table>
         <hx:commandExButton type="submit" value="Submit"
              styleClass="commandExButton" id="button1" action="#{testJSP.save}"></hx:commandExButton>
         </h:form>
    </hx:scriptCollector>
    </f:view>My Backing Bean Class
    package com.jpmorganchase.tap.ui.bean;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.UIComponent;
    import javax.faces.event.ActionEvent;
    public class TestUIJSP {
         private List<String> availableBMs;
         private List<String> linkedBMs;
         private UIComponent selectedBindingBMs;
         public UIComponent getSelectedBindingBMs() {
              System.out.println("getSelectedBindingBMs .. " + selectedBindingBMs);
              return selectedBindingBMs;
         public void setSelectedBindingBMs(UIComponent selectedBindingBMs) {
              this.selectedBindingBMs = selectedBindingBMs;
         public TestUIJSP(){
              System.out.println("inside constructor...............");
              availableBMs = new ArrayList<String>();
              availableBMs.add("Venkat");
              availableBMs.add("Narayana");
              availableBMs.add("Joglekar");
              linkedBMs = new ArrayList<String>();
         public List<String> getAvailableBMs() {
              return availableBMs;
         public void setAvailableBMs(List<String> availableBMs) {
              this.availableBMs = availableBMs;
         public List<String> getLinkedBMs() {
              return linkedBMs;
         public void setLinkedBMs(List<String> linkedBMs) {
              this.linkedBMs = linkedBMs;
         public String save(){
              System.out.println("save availableBMs........." + availableBMs);
              System.out.println("save linkedBMs........." + linkedBMs);
              return null;
         public void moveAllLeftToRight(ActionEvent evt){
              System.out.println("availableBMs.." + availableBMs);
              linkedBMs.addAll(availableBMs);
              System.out.println("LinkedBM's");
              availableBMs.clear();
         public void moveLeftToRight(ActionEvent evt){
              System.out.println("availableBMs.." + availableBMs);
    }MyFaces Config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <application>
              <state-manager>com.ibm.faces.application.DevelopmentStateManager</state-manager>
              <property-resolver>com.ibm.faces.databind.SelectItemsPropResolver</property-resolver>
              <variable-resolver>com.ibm.faces.databind.SelectItemsVarResolver</variable-resolver>
              <variable-resolver>com.ibm.faces.portlet.PortletVariableResolver</variable-resolver>
              <locale-config><supported-locale>en</supported-locale></locale-config>
              <message-bundle>com.PortletResource</message-bundle>
         </application>
         <factory><faces-context-factory>com.ibm.faces.context.AjaxFacesContextFactory</faces-context-factory>
              <render-kit-factory>com.ibm.faces.renderkit.AjaxRenderKitFactory</render-kit-factory></factory>
         <managed-bean>
                <managed-bean-name>pc_TestJSP</managed-bean-name><managed-bean-class>com.jsp.TestJSP</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope>
              </managed-bean><managed-bean>
              <managed-bean-name>testJSP</managed-bean-name><managed-bean-class>com.bean.TestUIJSP</managed-bean-class>
                   <managed-bean-scope>session</managed-bean-scope></managed-bean>
         <lifecycle>     <phase-listener>com.ibm.faces.webapp.ValueResourcePhaseListener</phase-listener></lifecycle>
    </faces-config>
    My Protlet.xml<?xml version="1.0" encoding="UTF-8"?>
    <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" id="com.ibm.faces.portlet.FacesPortlet.c8eddc2f92">
         <portlet>
              <portlet-name>TestProject</portlet-name>
              <portlet-class>com.ibm.faces.portlet.FacesPortlet</portlet-class>
              <init-param><name>com.ibm.faces.portlet.page.view</name><value>/jsp/testJSP.jsp</value></init-param>
              <init-param><name>wps.markup</name><value>html</value></init-param>
              <expiration-cache>0</expiration-cache>
              <supports><mime-type>text/html</mime-type><portlet-mode>view</portlet-mode></supports>
              <supported-locale>en</supported-locale><resource-bundle>com.PortletResource</resource-bundle>
         </portlet>
    </portlet-app>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Issue with Data binding in Table with Parameters

    When we bind the table rows with parameter 'select', the data is not displayed in the table. Check the snippix file created for this issue: url: http://veui5infra.dhcp.wdf.sap.corp:8080/snippix/#70874
    But the same parameter works with the odata service:
    http://10.66.186.12:8000/OnlineShoppingAnalysis/Services/Analysis_Date_Range.xsodata/Sales_Periodwise?$select=Product_Name,Quantity
    Credentials:
    user: System
    Password: Abcd1234

    I'm not able to access your service,so I can't test it.
    You could try to do a read operation on your model and add the result to a new JSON model which you can bind on to your table:
    var sServiceUrl ="http://services.odata.org/Northwind/Northwind.svc";   
    var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl); 
    var oModelJson = new sap.ui.model.json.JSONModel(); 
    oModel.read("/Customers", null,  {select: "Product_Name,Quantity"} , true, function(oData, oResponse){
            oModelJson.setData(oData.results); 
      sap.ui.getCore().setModel(oModelJson, "Model"); 
        },function(){
            alert("Read failed");});
    OpenUI5 SDK - Demo Kit
    Documentation/AdvancedTopics/DataBinding/ODataWrite – SAPUI5 Wiki (TIP CORE User Interface)   
    Kind regards,
    Wouter

  • SPGridView - filtering issues

    I have columns with null values, but in filter option I do not have the option (Empty) as standard in SharePoint Environment is.
     protected void Page_Load(object sender, EventArgs e)
                FillGrid();
            private void FillGrid()
                GridViewTest.DataBind();
            public DataTable GetDataTable()
                using (SPWeb sw = SPContext.Current.Web)
                    SPList sl = sw.Lists["CRTracking"];
                    DataTable ResTable = new DataTable();
                    ResTable.Columns.Add(new DataColumn("AppType"));
                    ResTable.Columns.Add(new DataColumn("CR no."));
                    foreach (SPListItem item in sl.Items)
                        DataRow dr = ResTable.NewRow();
                        dr["AppType"] = item["AppType"];
                        dr["CR no."] = item["CR no."];
                        ResTable.Rows.Add(dr);
                    return ResTable;
            static ObjectDataSource odsDataSource = new ObjectDataSource();
            protected void Page_Init(object sender, EventArgs e)
                odsDataSource.ID = "odsDataSource";
                odsDataSource.SelectMethod = "GetDataTable";
                odsDataSource.TypeName = this.GetType().AssemblyQualifiedName;
                odsDataSource.ObjectCreating += new ObjectDataSourceObjectEventHandler(odsDataSource_ObjectCreating);
                odsDataSource.ObjectDisposing += new ObjectDataSourceDisposingEventHandler(odsDataSource_ObjectDisposing);
                //odsDataSource.Filtering += new ObjectDataSourceFilteringEventHandler(GridViewTest_Filtering);
                this.Controls.Add(odsDataSource);
                GridViewTest.PagerTemplate = null;
                GridViewTest.AllowFiltering = true;
                GridViewTest.FilterDataFields = ",AppType,CR no.";
                GridViewTest.FilteredDataSourcePropertyName = "FilterExpression";
                GridViewTest.FilteredDataSourcePropertyFormat = "{1} = '{0}'";
            private void odsDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
                e.ObjectInstance = this;
            protected void odsDataSource_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
                e.Cancel = true;
            protected void GridViewTest_RowDataBound(object sender, GridViewRowEventArgs e)
                if (sender == null || e.Row.RowType != DataControlRowType.Header)
                    return;
                if (e.Row.RowType == DataControlRowType.Header)
                    SPGridView grid = sender as SPGridView;
                    if (String.IsNullOrEmpty(grid.FilterFieldName))
                        return;
                    // Show icon on filtered column
                    for (int i = 0; i < grid.Columns.Count; i++)
                        DataControlField field = grid.Columns[i];
                        if (field.SortExpression == grid.FilterFieldName)
                            Image filterIcon = new Image();
                            filterIcon.ImageUrl = "/_layouts/images/filter.gif";
                            filterIcon.Style[HtmlTextWriterStyle.MarginLeft] = "2px";
                            // If we simply add the image to the header cell it will
                            // be placed in front of the title, which is not how it
                            // looks in standard SharePoint. We fix this by the code
                            // below.
                            Literal headerText = new Literal();
                            headerText.Text = field.HeaderText;
                            PlaceHolder panel = new PlaceHolder();
                            panel.Controls.Add(headerText);
                            panel.Controls.Add(filterIcon);
                            e.Row.Cells[i].Controls.Add(panel);
                            break;
            protected void GridViewTest_Sorting(object sender, GridViewSortEventArgs e)
                if (ViewState["FilterExpression"] != null)
                    odsDataSource.FilterExpression = (string)ViewState["FilterExpression"];
                if (ViewState["SortDirection"] != null && ViewState["SortExpression"] != null)
                    // We have an active sorting, so this need to be preserved
                    odsDataSource.SortParameterName = ViewState["SortExpression"].ToString();
                    //+ " " + ViewState["SortDirection"].ToString();
            protected void GridViewTest_PageIndexChanging(object sender, GridViewPageEventArgs e)
                GridViewTest.PageIndex = e.NewPageIndex;
                GridViewTest.DataBind();
            protected sealed override void LoadViewState(object savedState)
                base.LoadViewState(savedState);
                if (Context.Request.Form["__EVENTARGUMENT"] != null &&
                Context.Request.Form["__EVENTARGUMENT"].EndsWith("__ClearFilter__"))
                    // Clear FilterExpression
                    ViewState["FilterExpression"] = null;
                    ViewState.Clear();
                    //ViewState.Remove("FilterExpression");
    }

    Believe you want to filter the NULL values in the grid.if so, refer to the following post, hope it helps
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/23f6367e-17f1-4128-a2cd-bf946dc31414/spgridview-filtering-issues?forum=sharepointdevelopmentprevious
    --Cheers

  • Sharepoint Server 2010-2 abnormal issues, please help

    Sharepoint Server 2010 Enterprise met 2 abnormal issue these 2 days,
    1. When Site Setttings>Navigation>Add Link>Browse, when Select an asset dialog, show blow error message
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft Sharepoint compatable HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Correlation ID: (guid appears here)
    2. When Site Setttings>Navigation>Add Link>Audience, when Select Audience, cannot find any user.
    Server is normal and did not do any update, don't know why these 2 issue occured, please help.

    For the first issue, I can find the correlation ID in the ULS logs, but I cannot find the root cause and solution.
    07/19/2013 11:16:22.90  w3wp.exe (0x3A30)                        0x3370 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (POST:http://oqm:80/projects/_layouts/AssetPortalBrowser.aspx?List=56885fca%2D13a8%2D47f1%2D90fd%2D5fdce93c2f0f&MDWeb=15d0e0ff%2Db469%2D4236%2Da720%2D198a114cd996&AssetType=Link) 2ef7a5d9-a969-428e-96fe-907c1c787971
    07/19/2013 11:16:22.93  w3wp.exe (0x3A30)                        0x3370 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Site=/ 2ef7a5d9-a969-428e-96fe-907c1c787971
    07/19/2013 11:16:24.07  w3wp.exe (0x3A30)                        0x3370 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: System.NullReferenceException: Object reference
    not set to an instance of an object.     at System.Xml.Xsl.XslCompiledTransform.Load(MethodInfo executeMethod, Byte[] queryData, Type[] earlyBoundTypes)     at Microsoft.Xslt.STransform.GetCompiledTransform()    
    at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean
    bDeferExecuteTransform) 2ef7a5d9-a969-428e-96fe-907c1c787971
    07/19/2013 11:16:24.07  w3wp.exe (0x3A30)                        0x3370 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart ()). Execution Time=1062.06585321011 2ef7a5d9-a969-428e-96fe-907c1c787971
    07/19/2013 11:16:24.09  w3wp.exe (0x3A30)                        0x3370 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://oqm:80/projects/_layouts/AssetPortalBrowser.aspx?List=56885fca%2D13a8%2D47f1%2D90fd%2D5fdce93c2f0f&MDWeb=15d0e0ff%2Db469%2D4236%2Da720%2D198a114cd996&AssetType=Link)).
    Execution Time=1185.79912823934 2ef7a5d9-a969-428e-96fe-907c1c787971

  • Httpservice databinding

    Hi,
    After having resolved a first databinding problem (with some help ), I have another databinding problem.
    I have declared this HttpService :
    <mx:HTTPService id="flightService"
         ...>
            <mx:request>
                <jourDateDepart>{dateDepartInput.selectedDate.getDate()}</jourDateDepart>
             </mx:request>
    </mx:HTTPService>
    dateDepartInput is a DateField component. What I want is initialize this component before sending the request if necessary. So I have written this method
       public function search():void {
                    requestType = "search";
                    if (dateDepartInput.selectedDate == null) {
                        dateDepartInput.selectedDate = new Date()
                     flightService.send();
    When I call this method, the date field is initialized but the first HTTP service call is in error because the databinding isn't right yet. How can I resolve this issue ?
    Thank you
    Regards
    Greg

    I have found this solution :
                   requestType = "search";
                    if (dateDepartInput.selectedDate == null) {
                        dateDepartInput.selectedDate = new Date();
                        dateDepartInput.validateNow();
                    flightService.send();

Maybe you are looking for

  • How to restore factory os after re-install 10.3.1.2243 via sachesi search Canada-Rogers?

    Hello, i have a trouble after re-installed os for my z30 via sachesi search os from Canada-rogers-z30. i re-install following this responding: http://supportforums.blackberry.com/t5/BlackBerry-Z30/Model-Blackberry-z30-charging-upto-60-only/td-... My

  • Best practice for handling errors in EOIO processing on AEX?

    Hi, I'm looing for resources and information describing the best practice on how to handle processing errors of asynchronous integrations with Exactly-Once-In-Order QoS on an AEX (7.31) Java only installation. Most information I've found so far are d

  • How to failed a odi Scenario

    Hi , I have a situation , in one package i have 5 step like step1-----ok----->step2-----ok----->step3-----ok----->step4----ok----->step5 | | | | ko ko | | error_log error_log and like that , here if any error occurred in any step it will insert error

  • Any way to mass locate files?

    Ok, I've reimported my library, but iTunes looked in My Music/iTunes instead of My Music where all the files were. Now all the songs and their data (play count, ratings, etc) are in the library, but can't play because I need to relocate the files. No

  • I can get adobe flash player work on my pc (window 7)

    i can get adobe flash player work on my pc (window 7)... can you help me to fix it