JAXB binding for Boolean

Hi,
I'm using xml and JMS to query a remote system.
One of the values in the remote system that I am interested in is a boolean value. I do not know this field is defaulted in the remote system so I want to use a Boolean object to represent it. I.e I want it to be null is no value is available in the remote system.
Could any of you give me a quick run down on how to go abount doing this or point me to a tutorial.
Is there another way of doing what I am trying to do?
Appreciate any help.
Cheers,
Nim

Hi James,
Yup, I'm trying to process the xml returned by the remote system.
The Boolean is an element and not an attribute:
The schema i am using is shown below:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="accounts" type="AccountsType"/>
<xsd:complexType name="AccountsType">
<xsd:sequence>
<xsd:element name="account" type="Account" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Account">
<xsd:sequence>
<xsd:element name="accountId" type="xsd:string"/>
<xsd:element name="customerId" type="xsd:string"/>
<xsd:element name="totalAmountOwing" type="xsd:decimal"/>
<xsd:element name="amountOwing" type="xsd:decimal"/>
<xsd:element name="totalArrears" type="xsd:decimal"/>
<xsd:element name="paymentExtensionCount" type="xsd:integer"/>
<xsd:element name="paymentHistoryIndicator" type="xsd:string"/>
<xsd:element name="payDate" type="xsd:date"/>
<xsd:element name="directDebitSchedule" type="xsd:boolean"/>
<xsd:element name="easyPaySchedule" type="xsd:boolean"/>
<xsd:element name="billIssueDate" type="xsd:date"/>
<xsd:element name="arrearsDebtAge" type="xsd:integer"/>
<xsd:element name="sourceSystemId" type="xsd:string"/>
<xsd:element name="readFrequency" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
I have access to change the schema. I tried making the boolean an attribute as shown below:
<xsd:element name="easyPaySchedule">
<xsd:complexType>
<xsd:sequence/>
<xsd:attribute name="value" type="xs:boolean"/>
</xsd:complexType>
</xsd:element>
but I could not see the isSetMethod in the jaxb account implementation file.
I changed it back and added minOccurs="0":
<xsd:element name="easyPaySchedule" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
and started seeing the isSetMethod in the jaxb account implementation class but not the generated account interface.
Next, I used the xjb file below:
<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<jxb:bindings schemaLocation="accounts.xsd" node="/xsd:schema">
<jxb:bindings node="//xsd:complexType[@name='Account']">
<jxb:bindings node=".//xsd:element[@name='easyPaySchedule']">
<jxb:property generateIsSetMethod="true"/>
</jxb:bindings>
</jxb:bindings> <!-- node="//xsd:complexType[@name='Account'] -->
</jxb:bindings> <!-- schemaLocation="accounts.xsd" node="/xsd:schema" -->
</jxb:bindings>
and I started seeing the isSet methods in the generated Account interface.
I thought I was in the clear but when I try and run it with the xml below:
<account>
<accountId>11111111111</accountId>
<customerId>2222222</customerId>
<totalAmountOwing>123</totalAmountOwing>
<amountOwing>12</amountOwing>
<totalArrears>0</totalArrears>
<paymentExtensionCount>1</paymentExtensionCount>
<paymentHistoryIndicator>110111001111</paymentHistoryIndicator>
<payDate>2004-10-08+10:00</payDate>
<directDebitSchedule>false</directDebitSchedule>
<easyPaySchedule></easyPaySchedule> <<<<<<------ blank instead of false/true
<billIssueDate>2003-10-08+10:00</billIssueDate>
<arrearsDebtAge>0</arrearsDebtAge>
<sourceSystemId>cise</sourceSystemId>
<readFrequency>Q</readFrequency>
</account>
I start to get the following exception:
javax.xml.bind.UnmarshalException: Unexpected text ""
- with linked exception:
[java.lang.NullPointerException]
Any ideas as to whats going on?
Cheers,
Nim

Similar Messages

  • Can't create a JAXB binding for ejb-jar.xml using xjc

    Hi all,
    I have been trying to build a JAXB binding for EJB deployment descriptors, mainly because I have to update a hand-cranked ejb-jar.xml file on the fly with some additions that have come from a code generator.
    I have tried to use
    xjc ejb-jar_2_1.xsd j2ee_1_4.xsd ejb-jar_2_1.xsd
    xjc on the schema definitions I found at http://java.sun.com/xml/ns/j2ee/ but I can't get it to work. It produces reams of errors, see below for a short extract.
    Of course, someone could put me out of my misery and tell me where to find a binding that someone else has done. I can't be the first chimp on the planet that has wanted to do this!
    Any help much appreciated.
    errors:
    [WARNING] warning: "blockDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: "finalDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 117 of j2ee_web_services_client_1_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 115 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 129 of ejb-jar_2_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 145 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 159 of ejb-jar_2_1.xsd

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • Error in Jaxb binding for wsdl document

    Hello
    below is my wsdl and binding.xjb that I am using. I want to rename the " <element name="getRelatedAssets">" name from 'getRelatedAssets' to 'getRelatedAssetsX'.
    But when I run it i got the following error
    [ERROR] compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.
    [ERROR] (the above customization is attached to the following location in the schema)
    line 16 of file:/C:/Users/syedf/Documents/Checkers/4842/sample.wsdl
    Here is my wsdl:
    <wsdl:definitions targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexType name="WsaaAuthToken">
    <sequence>
    <element name="authToken" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <element name="getRelatedAssets">
    <complexType>
    <sequence>
    <element name="token" nillable="true" type="impl:WsaaAuthToken"/>
    <element name="anchorAsset" nillable="true" type="impl:WsaaAssetKey"/>
    <element name="relationshipName" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    </wsdl:definitions>
    and here is my binding file:
    <jaxws:bindings
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    wsdlLocation="C:\Users\syedf\Documents\Checkers\4842\sample.wsdl">
         <jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema">
              <jaxb:bindings node="//xsd:element[@name='getRelatedAssets']">
    <jaxb:property name="getRelatedAssetsX"/>
    </jaxb:bindings>               
    </jaxws:bindings>
    </jaxws:bindings>
    Can anyone help me out in finding what wrong I am doing.
    I appreciate.

    Well, As I mentioned There is an element named 'getRelatedAssets' and I want to rename it to some other name like 'getRelatedAssetsXXXXX' which would not be in Schema using jax binding.
    Note. When I manually change the name to 'getRelatedAssetsXXXXX' in WSDL, it works. but I want to make it using jaxbinding.
    Anyways,Thanks for the reply.

  • JAXB Default behaviour for Boolean

    Is there any way to modify JAXB default behaviour for boolean types when marshalling?
    The default behaviour for this type is to output "true" or "false", is there anyway of outputting "1" or "0"
    Thanks in advance

    29-Aug-2006
    01:43 AM
    steve_p wrote:
    Hi Edward,
    I've not suffered this issue myself but I have read on other forums that some people are also having the same problem as you.
    http://www.allaboutsymbian.com/forum/showthread.php?t=50226
    S.
    Thanks for the feedback - I'm not 100% sure, but I think it happened once I did a PC Suite backup as well - oh well ... not too much of a show stopper - I guess they'll hopefully fix this in the next release of the firmware
    Regards,
    Edward

  • Javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package ...

    I want to marshall a java content tree (generated with jaxb api) in xml stream
    in an EJB.
    Generated classes are archived in a jar file containing its jaxb.properties, when
    I test it
    in a classic java process it runs well.
    When I try to do it in an EJB with weblogic 8.1 I get the following error:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package
    I've checked:
    - jaxb.properties is in the archive file
    I've tried to put the jar file in the classpath of the server in the starter script.
    I've tried to put reference classpath in the manifest of the ejb jar and of application
    ear.
    I've tried to put both reference in server classpath and ear/jar manifest.
    I still doesn't run.
    Any idea?
    Thanks a lot
    Franck

    Add the directory of the generated classes in the classpath.
    "franck" <[email protected]> wrote:
    >
    I want to marshall a java content tree (generated with jaxb api) in xml
    stream
    in an EJB.
    Generated classes are archived in a jar file containing its jaxb.properties,
    when
    I test it
    in a classic java process it runs well.
    When I try to do it in an EJB with weblogic 8.1 I get the following error:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package
    I've checked:
    - jaxb.properties is in the archive file
    I've tried to put the jar file in the classpath of the server in the
    starter script.
    I've tried to put reference classpath in the manifest of the ejb jar
    and of application
    ear.
    I've tried to put both reference in server classpath and ear/jar manifest.
    I still doesn't run.
    Any idea?
    Thanks a lot
    Franck

  • Binding a boolean value to a Checkbox in Dashcode

    I can't seem to bind a boolean value in my JSON model to a checkbox in Dashcode. I can create the binding, and it shows up properly in the datasource and in the bindings inspector for the checkbox part, but if I launch the application through the simulator, or if I save the project, the binding disappears.
    To reproduce:
    1. create an empty (custom) web application project.
    2. Drag a checkbox part onto the canvas.
    3. Create a datasource with the JSON model:
    doit: "false"
    4. Load the datasource, and drag a binding from the doit boolean field to the checkbox. The binding is created. Save the project. The binding is gone.
    Anyone else seen this? What am I doing wrong?

    happybuddha wrote:
    The question really is, if my pojo has lets say 10 setter methods which will set a boolean to variables in the class. Is there a way I can pass a boolean parameter to 9 out of 10 setters (since the 10th one will be true)?
    Or to all setters is also fine I can then set the one I am interested to true. In case the properties of your PoJOs are <tt>boolean</tt> (and not <tt>Boolean</tt>) they get initialized to false on Object creation.
    bye
    TPD

  • JaxB binding

    Is it possible to bind a method declartion to an xml schema using JAXB. For instance, want to inforce the command pattern execute method in the JAXB generated clasess.

    Hi,
    Please post your DTD also.
    With out DTD we won't be knowing the Structure of the Document..
    For Ex. we don't know how many times element list1 can occur..
    -Sateesh

  • Err "Couldn't retrieve binding for the given channelId" in receiver SOAP CC

    Hello.
    We have increase the support package level of our XI 3.0 system from level 17 to 23. After this "upgrade" all interfaces using a receiver SOAP channel communication are getting the next error:
    SOAP: response message contains an error XIServer/UNKNOWN/ADAPTER.JAVA_EXCEPTION - com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldnt retrieve binding for the given channelId: Binding:CID=8cb6335a548730ea9ca27aaa78034109; at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId(AbstractLookupManager.java:361) at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:421) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    We have done the next steps:
    - Run SXI_CACHE and start a complete cache refresh,
    - http://<Host>:<portNo.>/CPACache/refresh?mode=full
    - Restart J2EE server.
    The problem isn't solved.
    any idea?

    Probably you need to ask your BASIS team if they have done it or not.
    Secondly you can just see if something has been done under SWCV SAP BASIS --- http://sap.com/xi/XI/System --- Adapter Metadata, just by oping any adapter and then by looking at Properties or Hisotry from menu "Adapter Metadata". Here you can see the date under "Changed on", so if this matches with your upgrade date then something has been done. But this check will not help you know about the SP level. So better to ask with BASIS.

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • How to set persistent binding for QLA2300 (Sun branded -uses qlc driver)

    How to set persistent binding for QLA2300 (Sun branded ) HBA using qlc driver from Sun?
    Are there any CLI's for it?
    Is it done automatically?
    Is there any way by which we can infer that persistent binding is done?
    Platform: Solaris 9 on SPARC

    Persistent binding is effectively provided by STMS (MPxIO) - is there anything in particular you're wanting to do that STMS doesn't provide?

  • Problem with Action binding for a command button in a Managed Bean

    Hi
    Thank you for reading my post
    I am trying to use a backing bean for a button action binding.
    I followed all steps as they seems to be correct. i did not made any changes directly by hand , all of changes are introduced by oracle
    Jdeveloper wizards. but now i get this exception
    Managed bean is defined in faces-config.xml (it shows in preview mode) , the method is there in managed bean (Jdeveloper itself create the method i just enter its name)
    can you please take a look and tell me what can be wrong?
    thanks
    here is method and its body in managed bean
    public String userAccept_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }here is the exception that i recive
    javax.faces.FacesException: #{ButtonActions.userAccept_action}: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adf.share.security.authentication.AuthenticationFilter.handleAuthentication(AuthenticationFilter.java:177)
         at oracle.adf.share.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:112)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at webui.common.CharacterEncoding.doFilter(CharacterEncoding.java:26)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:167)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:415)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:143)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 34 more
    Caused by: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:292)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
         at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:79)
         at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 37 more
    Caused by: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.config.ManagedBeanFactory.evaluateValueBindingGet(ManagedBeanFactory.java:911)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:567)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         ... 43 more

    Thank you for reply , but it does not helps or maybe i did not apply it correctly
    here is faces-config.xml code snippet :
    <managed-bean>
        <managed-bean-name>ButtonActions</managed-bean-name>
        <managed-bean-class>webui.common.actionListener.ButtonAction</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{bindings}</value>
        </managed-property>
      </managed-bean>here is binding for the button in jsp file :
    <af:commandButton
                                    text="#{res['button.accept']}"
                                    disabled="#{!bindings.Commit.enabled}"
                                    action="#{ButtonActions.userAccept_action}"/>and here is some code portion of ButtonAction class
    package webui.common.actionListener;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class ButtonAction {
        private BindingContainer bindings;
        public ButtonAction() {
        public BindingContainer getBindings() {
            return this.bindings;
        public void setBindings(BindingContainer bindings) {
            this.bindings = bindings;
        public String userAccept_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
    }and i still get the same error.

  • Dynamic binding for table column

    Hi,
    I am using standard application and in a table (not ALV) i want to chnage the name of a column. Already a OTR is placed in it so am planning to do a dynamic bind for the text in the header. Kindly suggest ways.
    Thanks,
    Koushik

    DATA:
            l_caption          TYPE string,
            l_title            TYPE string.
      data lr_caption type ref to cl_wd_caption.
    *---Get OTR Text for Value Description
      CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
        EXPORTING
          alias      = 'ZPERF_MGMT_DEV/RATING'
      language   =
        RECEIVING
          alias_text = l_title.
    lr_caption ?= view->get_element( 'TBL_VAL_HELP_DESCRIPTION_HEADER' ).
    lr_caption->set_text( value = l_title ).

  • How to assign values for boolean array in LabVIEW?

    I want assign values for boolean array.Iam not able to do that.For each boolen i want to assign each value.Plz help me......
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Solved!
    Go to Solution.

    Hi agar,
    values in an array are "assigned" by building an array (using BuildArray) or by replacing values in an existing array (ReplaceArraySubset)!
    Good starting point could be this...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Error in Event Binding for Table UI element

    Hi,
    I had created a table UI element in my web dynpro component and it worked fine. After a few weeks, while I was making some other changes in the same module and did a syntax check on the component, I got this error "The event binding for element "TBL_ABC" contains errors". There is a "Correct errors" button given along with this error message, which removes the error. But I just wanted to know what is the reason for this error.
    Regards,
    Akshatha.

    Hi,
    Please check for the cardinality of the node which you are using to bind for the TABLE UI element.
    I think the cardinality should be either 1:N or 0:N.
    Give it a try.
    Regards,
    Lekha

  • Error in context binding for text property

    Hello experts,
    I receive this error in my WD4A application:
    The following error text was processed in the system XXX : Context binding for property TEXT of "T_MONTHTO"
    cannot be resolved: Node MAINVIEW.1.TEMPVAL2 does not contain any elements
    The error occurred on the application server sapxxxxx_XXX_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE_FOR of program CX_WDR_ADAPTER_EXCEPTION======CP
    Method: RAISE_BINDING_EXCEPTION of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    TEMPVAL2 has cardinality 0..1, selection 0..1, Inizialization Lead Selection false and the ST22 dump says:
    33
    34   if l_adapter->m_view_element is bound.
    35     l_component ?= l_adapter->m_view_element->view->if_wd_controller~get_component( ).
    36     l_view_name = l_adapter->m_view_element->view->name.
    37     l_view_element_id = l_adapter->m_view_element->id.
    38     l_component_name = l_component->component_name.
    39   endif.
    40
    41   if l_adapter->m_context_element is bound.
    42     l_path = l_adapter->m_context_element->get_path( ).
    43   endif.
    44
    >>   raise exception type cx_wdr_adapter_exception
    46     exporting
    47         textid          = textid
    48         previous        = previous
    49         component_name  = l_component_name
    50         view_name       = l_view_name
    51         view_element_id = l_view_element_id
    52         adapter_stack   = l_adapter_stack
    53         path            = l_path
    54         p1              = l_p1
    55         p2              = l_p2
    56         p3              = l_p3
    57         p4              = l_p4
    58         reason          = reason.
    59 endmethod.
    Could anybody please tell me why exactly this error is occuring?
    Many regards,
    Martin

    Hi Martin,
    I am getting the same error. can you please help me resolve this error.
    Error:
    Note
    The following error text was processed in the system RS2 : Adapter error in &VIEW_ELEMENT_TYPE& "VBELN" of view "Z_MYFIRST_WEBDYNPRO.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.NODE_VBAK does not contain any elements
    My Code is in the Method for the action is created for a button on MAIN VIEW
    METHOD onactionaction_find .
    wd_this->fire_to_alv_table_plg(  ).
      DATA: node_node_vbak TYPE REF TO if_wd_context_node,
            elem_node_vbak TYPE REF TO if_wd_context_element,
           stru_node_vbak TYPE if_main=>element_node_vbak .
    stru_node_vbak type wd_this->element_node_vbak.
    navigate from <CONTEXT> to <NODE_VBAK> via lead selection
    break dasarikb.
      node_node_vbak = wd_context->get_child_node( name =
    wd_this->wdctx_node_vbak ).
    get element via lead selection
      elem_node_vbak = wd_context->get_element(  ).
    get all declared attributes
      elem_node_vbak->get_attribute(
      exporting
      name = 'VBELN'
        IMPORTING
          value = stru_node_vbak ).
      DATA: ls_where(72) TYPE c,
            lt_where     LIKE TABLE OF ls_where,
            lt_vbak      TYPE STANDARD TABLE OF vbak.
    create where condition
      IF NOT stru_node_vbak-vbeln EQ ''.
        CONCATENATE 'VBELN = ''' stru_node_vbak-vbeln '''' INTO ls_where.
        APPEND ls_where TO lt_where.
      ENDIF.
      IF NOT stru_node_vbak-erdat EQ '00000000'.
        CONCATENATE 'ERDAT = ''' stru_node_vbak-erdat '''' INTO ls_where.
        IF stru_node_vbak-vbeln NE ''.
          CONCATENATE 'AND' ls_where INTO ls_where SEPARATED BY space.
        ENDIF.
        APPEND ls_where TO lt_where.
      ENDIF.
      SELECT *
             FROM vbak
             INTO TABLE lt_vbak
            WHERE (lt_where).
      DATA: node_node_alv TYPE REF TO if_wd_context_node,
            stru_node_alv TYPE if_main=>element_node_alv.
    navigate from <CONTEXT> to <NODE_ALV> via lead selection
      node_node_alv = wd_context->get_child_node( name =
    if_main=>wdctx_node_alv ).
    get all declared attributes
      node_node_alv->bind_table( lt_vbak ).
    ENDMETHOD.
    Thanks,
    Kiran

Maybe you are looking for

  • Installing the Tutorial SmartSyncApp

    I installed/configured the MI tutorial as described in "Tutorial: Developing a simple Smart Sync Application". When I try to replicate the data, MEREP_EX_REPLIC complains: "SyncBO ZAGE_CNTCT does not exist". - SyncBOs based on the BAPI wrappers MEREP

  • Help - 20 pages gone missing in my thesis!!

    I'm writing my thesis and have been working on it on and off. Last time I worked on it, I did some cut and paste and proof-reading. When I came back to my paper days later, it was 20 pages shorter! Most likely I have forgotten to paste what I cut, ot

  • Twitter and Weibo integration & Wifi problem

    1.I've been trying to login to twitter and weibo for more than a dozen time.. but keep telling me unable to verify account name and password.. 2. The wifi connection became very unstable after upgrading to Mountain Lion.. It shows connected, but can'

  • HT1766 after the restore i can't see the pictures

    I manage to restore all the apps i had and all the music but somehow not the picture taken by the phone.. Relly need help!!! Please advices

  • ServletContextListener

    Hi all, In our application (environment -- Apache 1.3 , Apache Jserv 1.1.2, JDK 1.3, JSDK 2.0 and Oracle 8i) .We are useing our own databse pooling.I want to implement ServletContext Listener with Apache Jserv. Can any one give us the details for the