VOIMPL setter method doesn't invoke on clearing text

If we set some value to a text field , invoking VOIMPL setter method for the corresponding text field  works fine , on clearing the text it  doesn't invoke the same setter method (in effect ,previous value is exist behind the scenes)
what could be the reason ??

Hi    Alejandro,Vinay
Thanks for the replay ,  You are correct , it wont update   Please find the details
Jdev verson  : Studio Edition Version 11.1.1.7.0  Build : JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
i used auto submit = true to update the attribute. here is the code
  <af:inputText value="#{bindings.Name.inputValue}"
                              label="#{bindings.Name.hints.label}"
                              required="#{bindings.Name.hints.mandatory}"
                              columns="#{bindings.Name.hints.DISPLAYWIDTH}"
                              maximumLength="#{bindings.Name.hints.precision}"
                              shortDesc="#{bindings.Name.hints.tooltip}"
                              id="it1"
                              autoSubmit="true" showRequired="true"
                              immediate="false" partialTriggers="it1"
                              wrap="hard"
                              readOnly="#{pageFlowScope.pEdit==null}">
                  <f:validator binding="#{bindings.Name.validator}"/>
                </af:inputText>
Thanks
Vipin

Similar Messages

  • How can i invoke the set method before value change listener?

    Hi,
    My code is like this:
    <af:selectManyCheckbox value="#{bean.statusList}"
                                     binding="#{bean.statusCheckBox}"
                                     label=" " autoSumit="true"
                                     valueChangeListener="#{bean.changeStatusList}"
                                     id="dc_smc1" layout="vertical"">
                <f:selectItems value="#{bean.statusBuckets}"
                               id="statusBuckets"/>
              </af:selectManyCheckbox>
    public void changeStatusList(ValueChangeEvent valueChangeEvent)
      //in this method, i want to set the statusList by myself, this is not the same with the ui.
    public void setStatusList(List<String> statusList)
            this.statusList = statusList;
        public List<String> getStatusList()
            return statusList;
    As i set the autoSumit="true", then no matter what i set the statusList in the method changeStatusList, it will be reset the value after invoke the method setStatusList, Therefore, it will always change the checkbox status through ui operation, i cannot change it through code.
    Pl help me!
    Thanks,
    Emma

    Emma, which jdev version do you use?
    As you have set the value property to the list you try to change in the valueChangeListener method this is expected behavior. If the list is bound to the af:selectManyCheckbox values you can't change it with a set method.
    It would help if you tell us what you are trying to do in a broader scope.
    Timo

  • PaintComponent method doesn't display anything on JLabel?

    I am trying to show a histogram for a image in jlabel, but its not working.
    //hist : array containing histogram values
    //wid: width of image
    //ht: height of image
    mylabel.add(new showData(hist,wid,ht));
    The code that I am using to display histogram is:
    class showData extends JLabel{
    int w,h;
    int hist[] = new int[256];
    int max_hist=0;
    public showData(int[] histValue,int w, int h) {
    System.arraycopy(histValue, 0, hist, 0, 256);
    this.w = w;
    this.h = h;
    for (int i = 0; i < 256; i++) {
    if(hist>max_hist)
    max_hist=hist[i];
    @Override
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    int x = (w - 256) / 2;
    int lasty = h - h * hist[0] / max_hist;
    for (int i=0; i<256; i++, x++) {
    int y = h - h * hist[i] / max_hist;
    g.setColor(new Color(i, i, i));
    g.fillRect(x, y, 1, h);
    g.setColor(Color.red);
    g.drawLine(x-1,lasty,x,y);
    lasty = y;
    When debugged, I found that showData() method was getting invoked, but paintComponent() doesn't. Why is it so? The Jlabel 'mylabel' doesn't show anything?

    Check size and location of the JLabel. If size 0 the paintComponent() is not called. Try to set preferred size to the label.

  • Value binding doesn't invoke functions in dataTable

    I have been fighting with this problem for few days now...
    It seems like value="#{bean.items}" isn't invoked. Just because it isn't. I am not getting any errors, exception, nothing.
    Code looks just like that:
    <h:dataTable id="ingredientsTableForPharmacyKind"  value="#{drughandler.drug.ingredientsList}" var="ingredient">
                        <%-- NAME --%>                   
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="ingredientNamePrompt" value="#{msgs.menuDrugFormIngredientNAME}"/>
                            </f:facet>
                            <h:outputText id="ingredientNameOutput" value="#{ingredient.ingredient_name}"/>
                        </h:column>
                        <%-- QUANTITY --%>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="ingredientQuantityPrompt" value="#{msgs.menuDrugFormIngredientQUANTITY}"/>
                            </f:facet>
                            <h:outputText id="ingredientQuantityOutput" value="#{ingredient.quantity}"/>
                        </h:column>
                        <%-- UNIT --%>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="ingredientUnitPrompt" value="#{msgs.menuDrugFormUnit}"/>
                            </f:facet>
                            <h:outputText id="ingredientUnitOutput" value="#{ingredient.unit.name}"/>
                        </h:column>
                        <%-- DESCRIPTION --%>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="ingredientDescriptionPrompt" value="#{msgs.menuDrugFormIngredientDESC}"/>
                            </f:facet>
                            <h:outputText id="ingredientDescriptionOutput" value="#{ingredient.description}"/>
                        </h:column>
                        <%-- EFFECT --%>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="ingredientEffectPrompt" value="#{msgs.menuDrugFormIngredientEFFECT}"/>
                            </f:facet>
                            <h:outputText id="ingredientEffectOutput" value="#{ingredient.effect}"/>
                        </h:column>
                    </h:dataTable>
    drughandler bean contains attribute drug, which is a bean. DrugBean method ingredientsList returns LinkedList of ingredients.
    Problem is that everything is rendered except values from ingredientList ( I have second funciton which returns an Array of ingredients, it doesn't work either). Facets are rendered correctly. There is one but. value="#{drughandler.drug.ingredientsList}" Is never invoked. I have even put System.out.println(); into that function to check if its invoked, nothing was shown on the console...
    What is wrong?? Everything on this specific page works fine....

    My bad, I got a little foggy. Ofcourse each bean has getter and setter methods. DrugBeans getIngredientsList and getIngredientsArray of DrugHandler bean methods aren't invoked in this particular code snippet.
    I have also noticed smoething like this in the AS console
    WARNING: [ComponentRule]{faces-config/component} Merge(com.mycompany.TabLabel)
    2005-12-01 07:48:12 com.sun.faces.config.rules.ComponentRule end
    WARNING: [ComponentRule]{faces-config/component} Merge(com.mycompany.Tree)
    2005-12-01 07:48:12 com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(com.mycompany.jsf.validator.LATER_THAN)
    I think it's present when code regarding dataTable is uncommented.

  • LVOOP "call parent method" doesn't work when used in sibling VI

    It seems to me that the "call parent method" doesn't work properly according to the description given in the LabVIEW help.
    I have two basic OOP functions I am doing examples for. I can get one to work easily and the other one is impossible.
    Background
    There are 3 basic situations in which you could use the "call parent method"
    You are calling the parent VI (or method) of a child VI from within the child VI
    You are calling the parent VI (or method) of a child VI from within a sibling VI
    You are calling the parent VI (or method) of a child VI from a different class/object.
    From the LabVIEW help system for "call parent method":
    Calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI
    From my reading of that it means situation 3 is not supported but 1 & 2 should be.
    Unfortunately only Situation 1 works in LabVIEW 2012.
    Here is what I want
    And this is what I actually get
    What this means is that I can perform a classic "Extend Method" where a child VI will use the parent's implementation to augment it's functions BUT I cannot perform a "Revert Method" where I call the parent method's implementation rather than the one that belongs to the object.
    If you want a picture
    Any time I try and make operation2 the VI with the "call parent method" it shows up for about 1/2 sec and then turns into operation.
    So there are only 3 possibilities I can see
    Bug
    Neither situation 2 or 3 are intended to work (see above) and the help is misleading
    I just don't know what I am doing (and I am willing to accept this if someone can explain it to me)
    The downside is that if situation 2 above doesn't work it does make the "call parent node" much less usefull AND it's usage/application just doesn't make sense. You cannot just drop the "call parent node" on a diagram, it only works if you have an existing VI and you perform a replace. If you can only perform situation 1 (see above) then you should just drop the "call parent node" and it picks up the correct VI as there is only 1 option. Basically if situation 2 is not intended to work then the way you apply "call parent method" doesn't make sense.
    Attachements:
    For the really keen I have included 2 zip files
    One is the "Revert Method labVIEW project" which is of course not working properly because it wants to "call parent method" on operation not operation2
    The other zip file is all pictures with a PIN for both "Revert Method" and "Extend Method" so you can see the subtle but important differences and pictrures of the relavant block diagrams including what NI suggested to me as the original fix for this problem but wasn't (they were suggesting I implement Extend Method).
     If you are wondering where I got the names, concepts and PIN diagrams from see:
    Elemental Design Patterns
    By: Jason McColm Smith
    Publisher: Addison-Wesley Professional
    Pub. Date: March 28, 2012
    Print ISBN-10: 0-321-71192-0
    Print ISBN-13: 978-0-321-71192-2
    Web ISBN-10: 0-321-71255-2
    Web ISBN-13: 978-0-321-71255-4
     All the best
    David
    Attachments:
    Call parent node fault.zip ‏356 KB
    Call parent node fault.zip ‏356 KB

    Hi tst,
    Thankyou for your reply. Can you have a look at my comments below on the points you make.
    1) Have to disagree on that one. The help is unfortunately not clear. The part you quote in your reply only indicates that the VI you are applying "Call Parent Node" to must be dynamic dispatch. There is nowhere in the help it actually states that the call parent node applies to the VI of the block diagram it is placed into. Basically case 2 in my example fulfills all that the help file requires of it. The dynamic dispatch VI's operation are part of a class that inherits from a given ancestor. Operation 2 for Reverted behaviour is a child VI that is dynamic dispatch and has the same name as the ancestor VI (operation2). The help is missing one important piece of information and should be corrected.
    2) True it does work this way. I was trying to build case 2 and had not yet built my ancestor DD for operation so the function dropped but wasn't associated with any VI. I was able to do this via a replace (obviously once the ancestor Vi was built) so this one is just bad operator
    3) Keep in mind this is an example not my end goal. I have a child implementation because this is a case where I am trying to do a "reverse override" if you like.
    3a) The point of the example is to override an objects method (operation2) with it's parent's method NOT it's own. The reason there is a child implementation with specific code is to prove that the parent method is called not the one that relates to the object (child's VI). If I start having to put case structures into the child VI I make the child VI have to determine which code to execute. The point of Revert method is to take this function out of the method that is doing the work. (Single Use Principal and encapsulation)
    3b) The VI I am calling is a Dynamic Dispatch VI. That means if I drop the superclass's VI onto the child's block diagram it will become the child's implementation. Basically I can't use Dynamic Dispatch in this case at all. It would have to be static. That then means I have to put in additional logic unless there is some way to force a VI to use a particular version of a DD VI (which I can't seem to find).
    Additional Background
    One of the uses for "Revert Method" is in versioning.
    I have a parent Version1 implementation of something and a child Version2. The child uses Version2 BUT if it fails the error trapping performs a call to Version1.
    LabVIEW has the possibility of handling the scenario but only if both Case 1 and Case 2 work. It would actually be more useful if all 3 cases worked.
    The advantage of the call parent method moving one up the tree means I don't have the track what my current object is and choose from a possible list, if, for example the hierarchy is maybe 5 levels deep. (so V4 calls V3 with a simple application of "call parent method" rather than doing additional plumbing with case structures that require care and feeding). Basically the sort of thing OOP is meant to help reduce. Anything that doesn't allow case 2 or 3 means you have to work around the limitation from a software design perspective.
    If at the end of the day Case 2 and case 3 don't and won't ever work then the help file entry needs to be fixed.
    All the best
    David

  • How to call a set method from within a constructor

    Hello,
    I want to be able to call a set method from within a Scanner, to be used as the argument to pass to the Scanner (from a source file). Here's what i tried:
    private void openFiles()
            input = new Scanner( setSource );              
        and here is the set method:
    public String setSource( String in )
            source = in;
            return source;
        }obviously there will be more code in this method but i'm trying to tackle one problem at a time. Thanks in advance..

    The "String in" declaration says: "Nobody may ever invoke setSource() without specifying a certain String. The content of the String is known at run-time only."
    In no place in your code you say the compiler: "I want the 'in' variable (actually, parameter) of method setSource() to contain the first arg which is passed to the application".
    This is exactly the same mechanism allowing you to write "new Scanner" with something inside the two parentheses.

  • Getter & Setter Method not getting called for a field enhanced through AET

    Hello,
    I am new to SAP CRM 7.0 and working on a requirement.
    A Z-field was added by our functional guy in CRM 7.0 WebGui through AET in the 'Create Opportunity' transaction (Header data).
    Now the requirement is, as soon as the opportunity is created through the WebGui, I should post a document in R/3 and paste that document number back to the enhanced Z-field in opportunity.
    Work done by me:
    I pressed F2 on the enhanced Z-field in the WebGui screen and took the details of view, component name etc. After this I went to normal SAP CRM system and open tcode "BSP_WD_CMPWB", located the corresponding view "BT111H_OPPT/Details" and right clicked & enhanced the same.
    Then I opened the structure of this view, expanded context node, located context "BTOPPORTH" and inside this, located my Z-attribute. Now right clicked on the Z-attribute & selected the option "Generate SETTER & GETTER Methods" and these were generated successfully.
    Problem:
    The problem is even after putting external break points in these methods, these methods are not getting called while creating, modifying & displaying the Opportunity in WebGui.
    I hope that for the requirements that I have, I have to do the coding in "Getter & Setter" methods. But since these are not getting called, I am unable to proceed.
    Please help/suggest how to achieve this.
    Thanks in anticipation.
    Best Regards,
    Rahul Malani

    Hi,
    If you can see the field in UI and still get_ method is not being triggered then try to regenerate these methods. If it still doesn't work then please look for SAP notes or raise an OSS.
    There should be some note for the issue you faced.
    please refer:
    Help Needed immediately - AET getter setter methods not getting triggered
    Regards,
    BJ

  • SetFireActionForSubmit method cannot be invoked in OAImageBean

    hi,
    I have added an updateicon_enabled image to the seeded page (id:img2), through personlization,
    now i want to add fireAction to the above image programmtically i have usen the below code but it's giving error "setFireActionForSubmit method cannot be invoked in OAImageBean"
    public void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
    super.processFormRequest(pageContext,webBean);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    OAImageBean ib2=(OAImageBean)webBean.findChildRecursive("img2");
    Hashtable param1=new Hashtable(1);
    param1.put("update","update");
    Hashtable paramsWithBinds = new Hashtable(1);
    paramsWithBinds.put ("param2",
    new OADataBoundValueFireActionURL((OAWebBeanData)webBean,
    "{$Sequence}"));
    ib2.setFireActionForSubmit("update1",param1,paramsWithBinds,false,false);
    how can i over come this error...
    Help me out
    Thanks in advance
    Paa.

    Hi,
    I am not sure why this is not working, It works perfectly fine in 12.1.2
    I don't have access to R12.1.3 as of now. I don't think there should be any problem in 12.1.3 also.
    I could find out one more approach. Try this:
    OAImageBean ib2=(OAImageBean)webBean.findChildRecursive("img2");
    FireAction fireAction = OAWebBeanUtils.getFireActionForSubmit(ib2, "update1", params, paramsWithBinds,false, false);
    // make any additional changes to the FireAction object
    // finally set it on your bean
    ib2.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, fireAction);
    Both are same. I just thought you can give it a try.
    Try deleting the image column and image added through personalization, create the image again bounce the server and check it.
    Regards.

  • Reflection and the field.set method

    OK, I've made 2 classes, a ClearParent and ClearChild (which extends ClearParent). I'd like to have a "clear" method on the parent which dynamically sets all the fields to null. I'd like to be able to have any child that inherits from the parent be able to call clear and dynamically have all it's fields set to null.
    Part of the restriction that I'm facing is that the fields are Objects (Integer) but the getter and setter methods take and return types (int). So I can't just loop through the Methods and call the setters with null.
    I'd like to be able to loop through the fields and call set for all the fields with the parent class.
    I'm inserting the code that I have for the parent and child classes at the end. Basically, the problem that I'm seeing is that if I do a
    this.getClass().getName()
    from the parent (when clear is called from the child) it shows me the child name ("ClearChild"). But when I try to do the
    field.set(this, null)
    it tells me this:
    Class ClearParent can not access a member of class
    ClearChild with modifiers "private"
    How come when I get the name it tells me that it's the child but when I pass "this" to the set method, it says that it's the parent?
    Any one know what's going on here? Is there anyway that I can have the parent set all the fields to null?
    Thanks in advance.
    Here's the code:
    ClearParent
    import java.lang.reflect.*;
    public class ClearParent {
        public boolean clear() {
            try {
                System.out.println(this.getClass().getName());
                Field[] fields = this.getClass().getDeclaredFields();
                Field   field;
                for (int i = 0; i < fields.length; i++) {
                    field = fields;
    field.set(this, null);
    } catch (Exception e) {
    e.printStackTrace();
    return true;
    ClearChild
    public class ClearChild extends ClearParent {
    private Float f;
    public ClearChild() {
    super();
    public float getF() {
    if (f == null) {
    return 0;
    return f.floatValue();
    public void setF(float f) {
    this.f = new Float(f);
    public static void main (String[] args) throws Exception {
    ClearChild cc = new ClearChild();
    cc.setF(23);
    cc.clear();
    System.out.println("cc.getF: " + cc.getF());

    It is an instance of ClearChild that is being used so
    that class name is ClearChild. However, the method
    exists in the parent class and thus cannot act upon a
    private field of another class (even if it happens to
    be a subclass).Ahh...makes sense.
    Why don't you just override clear in the child?We were trying to avoid this because we run into problems in the past of people adding fields to the class, but not adding to the clear, and things not being cleared properly.
    I talked it over with the guys here and they have no problem making the fields protected instead of private. If it's protected, then the parent has access to it and my sample code works.
    Thanks for your help KPSeal!
    Jes

  • About  context-root setting method of Web service

    When you generate Web service, please teach me the context-root setting method.
    With JDev9.0.5, Although it sets in webservices.xml.
    With JDev10.1.3, There is no context-root element
    Environment:
    OC4J:Oracle Containers for J2EE 10g (10.1.3) JDev:Oracle JDeveloper 10g (10.1.3)

    Hi,
    can you please describe, how you build this asynchronous HelloWorld service?
    With Jdeveloper 10g building asynchronous java webservices is not supported.
    So how did you build this asynchronous webservice?
    If this HelloWorld service is a bpel project, then the invocation from another BPEL via invoke and receive should work...

  • Get/set methods

    I've been programming in java for a while now, but just recently i started wondering about something. Doesn't get/set methods that contain no other code defeat the point of encapsulation? i.e
    public void getXxx() {
    return xxx;
    But now to the important question. Does the javac compiler inline get/set methods and if yes, how does it work around the private access to the data members?

    yes you are right. first all variables should be private (there are some cases where protected is useful). that being hte case, all access methods do is expose the way this class does its storage. and will break if that changes. for example, a rectange using int for width and height, has corresponding setWidth( int ), getHeight() etc. now the author of the class changes int to a Point. now there should only be get/setPoint and the previous should be removed. this changes the API and breaks code using this class.
    Lets say one keeps the setWidth etc as 'doing no harm', then the question is why does one need this? commonly used in eg
    setWidth( getWidth() + 10 );
    to lenghten the width.
    A better way is to capture this need in the messaging system. therefore have a method:
    widenBy( int w ) {
    width += w;
    notice this way, when changing the private width variable from int, to Point, to Long or any other, does not break code. there is no need to tidy up the access methods either.
    classes that have no behaviour are often created to group variables together and passed along for convenience. These are not strictly classes. Then why not have variables public and save the method calls to access methods. Having access methods does not make it more OO. These 'classes' should be defined as inner classes of the enclosing class.
    I've been programming in java for a while now, but
    just recently i started wondering about something.
    Doesn't get/set methods that contain no other code
    defeat the point of encapsulation? i.e

  • Unable to find setter method for attribute:

    I am using Jboss jboss-4.2.3.GA, JDK 1.6.
    I am trying to deploy our application on Jboss. When loading sources page or whenever we try to load the taglib we are getting the following error.
    org.apache.jasper.JasperException: jspfile.jsp(67,1) Unable to find setter method for attribute: collection
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
    at org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
    at com.ssmb.common.servlets.GenericControllerServlet.service(GenericControllerServlet.java:639)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    The line corresponding in JSP file is ,
    <ssmb:list name="src_" collection="sources" showAll='<%= "" + true %>'>
    Please let me know if you have faced this issue before.

    Have you written this tag in a tld or a tag file?
    How have you declared the attribute "collection"?
    Does the class which implements the custom tag <ssmb:list> have a method in it: public void setCollection(String collection) ?

  • Set methods or typecasting objects with JAXB

    Hi everybody,
    I am working on an example with the JAXB, which in many ways is an extraordinary technology, but I have quite a problem.
    I have compiled my schema with xjc - no problem, but i am missing to setMethods both of which is regarding a List. I've got
    java.util.List getSparepart() and java.util.List getCategory() but am missing the two set methods and I don't understand why.
    I have tried to solve the problem by defining the methods myself, which is allright right until the point where I use the methods.
    Here is a snip of the code:
    spTest.jaxb.CatalogType.VendorType vNowTemp = (spTest.jaxb.CatalogType.VendorType) objFactory.createCatalogTypeVendorType();
    vNowTemp = vNow;
    vNowTemp.setSparePartCategory(categoryResult);
    vNowTemp = vNow;
    result.add(vNowTemp);
    The problem is that there seems to be no difference between vNow or vNowTemp at any point, which there should be.
    I have tried to convert the java.util.List I get when I use getSparePart to a com.sun.xml.bind.util.ListImpl (which is the object type used within the classes JAXB's xjc produced) but this seems to be impossible.
    Could any one help me on this one please
    /Sebastian
    [email protected]

    Hi everybody,
    I am working on an example with the JAXB, which in
    many ways is an extraordinary technology, but I have
    quite a problem.
    I have compiled my schema with xjc - no problem, but i
    am missing to setMethods both of which is regarding a
    List. I've got
    java.util.List getSparepart() and java.util.List
    getCategory() but am missing the two set methods and I
    don't understand why.You don't need the SET methods for that. You can get to the list via the GET methods and then add/remove elements to/from it or empty/clear it. If you want to set an entirely different list, you could always use-
    getSparePart().clear();
    getSparePart().addAll(myNewList);
    Hope this helps.

  • Error : cannot find setter method....

    hi i am using Ant 1.6 and struts framework .....to run a simple program to print a name
    i have followed all the basic steps ....to create a struts application
    now the problem is
    when i am trying to acces the applicatin it is giving
    org.apache.jasper.JasperException: /index.jsp(9,2) Unable to find setter method for attribute: name
    the form tag in index.jsp is
    <html:form action="Name"name="nameForm" type="NameForm">
    the bean is
    package com;
    //import statements
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    public class NameForm extends ActionForm {
    String name = null;
    public String getName() {
        return name;
      public void setName(String name) {
        this.name = name;
      public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.name = null;
    }  the struts-config.xml file...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
        <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
              "http://struts.apache.org/dtds/struts-config_1_3.dtd">
        <struts-config>
         <form-beans>
         <form-bean name="nameForm" type="com.NameForm"/>
         </form-beans>
         <action-mappings>
         <action path="/Name"
                   type="com.NameAction"
                   name="nameForm"
                   input="/index.jsp">
                   <forward name="success" path="/displayname.jsp"/>
                   <forward name="failure" path="/index.jsp"/>
         </action>
         </action-mappings>
        </struts-config>
       thanks....in advance

    Hal-.- wrote:
    I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
    I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
    What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
    But other than that I have no idea. Ask on a Lucene forum.

  • Automated Setter-Method implementation

    Hi all,
    in a currently running project we are implementing a few "entities" with several attributes. So for time saving I developed a short report, that generates the setter methods with parameters.
    But I actually don't have an idea how to automate the implementation of these methods.
    Has someone an idea how to do this??
    Here is my actual implementation of the program (if someone want to test and copy it; actually it writes the statements for the implementation to a list, from witch you can copy and past it to the ABAP-Editor):
    *& Report Z_CREATE_SETTER *
    REPORT z_create_setter .
    TYPE-POOLS:
    seoo, seos.
    DATA:
    s_class TYPE seoclskey,
    s_param TYPE seocmpkey,
    attrib_list TYPE seoo_attributes_r,
    wa_attrib TYPE seoo_attribute_r,
    method TYPE seoo_method_w,
    methods TYPE seoo_methods_w,
    parameters TYPE seos_parameters_w,
    parameter TYPE seos_parameter_w,
    out TYPE string.
    PARAMETERS:
    class TYPE seoclsname OBLIGATORY.
    MOVE class TO s_class-clsname.
    CALL FUNCTION 'SEO_ATTRIBUTE_READ_ALL'
    EXPORTING
    cifkey = s_class
    IMPORTING
    attributes = attrib_list
    EXCEPTIONS
    clif_not_existing = 1
    OTHERS = 2.
    SORT attrib_list.
    LOOP AT attrib_list INTO wa_attrib.
    CLEAR: method, parameter.
    REFRESH: methods, parameters.
    * Methode anlegen
    MOVE s_class TO method-clsname.
    CONCATENATE 'set_' wa_attrib-cmpname INTO method-cmpname.
    TRANSLATE method-cmpname TO UPPER CASE.
    CONCATENATE 'Setter für' wa_attrib-cmpname INTO method-descript
    SEPARATED BY space.
    MOVE sy-langu TO method-langu.
    MOVE '2' TO method-exposure.
    MOVE '1' TO method-state.
    APPEND method TO methods.
    CALL FUNCTION 'SEO_METHOD_CREATE'
    EXPORTING
    cifkey = s_class
    methods = methods.
    * Parameter anlagen
    MOVE s_class TO s_param-clsname.
    MOVE method-cmpname TO s_param-cmpname.
    MOVE s_class TO parameter-clsname.
    MOVE s_param-cmpname TO parameter-cmpname.
    CONCATENATE 'IM_' wa_attrib-cmpname INTO parameter-sconame.
    TRANSLATE parameter-sconame TO UPPER CASE.
    MOVE 0 TO parameter-pardecltyp.
    MOVE 1 TO parameter-parpasstyp.
    MOVE wa_attrib-typtype TO parameter-typtype.
    MOVE wa_attrib-type TO parameter-type.
    MOVE wa_attrib-descript TO parameter-descript.
    MOVE sy-langu TO parameter-langu.
    APPEND parameter TO parameters.
    CALL FUNCTION 'SEO_PARAMETER_CREATE'
    EXPORTING
    cmpkey = s_param
    parameters = parameters.
    ULINE.
    CONCATENATE parameter-cmpname '.' INTO out.
    CONCATENATE 'method' out INTO out SEPARATED BY space.
    WRITE: / out.
    CLEAR out.
    CONCATENATE parameter-sconame '.' INTO out.
    CONCATENATE wa_attrib-cmpname '=' out INTO out SEPARATED BY space.
    WRITE: / out.
    WRITE: / '/aip/if_entity~is_dirty = ''X''.'.
    WRITE: / 'endmethod.'.
    ENDLOOP.

    Let's say I have an object array as a memeber variable for my CustomException class. I also have constructor which will initialize the object array; on top of this I want to add some setter method where in I can set the desired object array.
    Can I have this setter? Is there any guidline to have setter method in an Exception class. I have never seen any setter method in the Exception class. Why is it so? Is there any reson behind this?
    Here is my sample program
    class CustomException extends Exception
         Object objArray[] = null;
         Exception ex;
         public CustomException()
         public CustomException(Exception ex)
              super(ex);
              this.ex = ex;
         public CustomException(Exception ex, Object objArray[])
              super(ex);
              this.ex = ex;
              this.objArray = objArray;
         public Object[] getObjectArray()
              return objArray;
         // Can I have this setter? Is there any guidline to have setter method
         // in an Exception class. I have never seen any setter method in the Exception class
         // Why is it so? Is there any reson behind this?
         public void setObjectArray(Object objArray[])
              this.objArray = objArray;
    }

Maybe you are looking for

  • Installing Adobe Photoshop Elements 10 on two computers running different Operating Systems

    Dear Customer Support Team! I have the following questions and hope to get your soonest response: Can I install Adobe Photoshop Elements, I bought recently, on my two different computers; one is PC running Windows 7 and the other is iMac running Mac

  • Lenovo support - options for recovering Windows 8 on new X230

    Hello, I recently purchased x230 with Windows 8. I installed Ubuntu 12.0 (attempting to dual boot).  Unfortuantely, Windows 8 is no longer accessible(UEFI error comes up on boot), the restore partition is also corrup ("required partition cannot be fo

  • Condition type in pricing

    Dear All,         we have condition types 1.RUB1-Neutr.Accruals(Val.) 2.RUC1-Neutral Accruals/Qty 3.RUE1-Neutral % Accruals In which business scenario these are used and what is the meaning of neutral accurals/ provisions. Thanks, regards

  • Confused... why are my exports smaller than my versions???

    I am having a heck of a time figuring this out. My file size (I've not done a thing to the photo since importing it) is 4.29MB. When I export the photo as a version it's 1.81MB. What's going on here?

  • Contacts/ Gmail & Facebook import error

    I used the rebuild function on my iPhoto library, and tried using Faces in Contacts to update my contacts' photos. there is a ! symbol in Contacts in the left section for All Facebook and All Gmail contacts. if i click on the ! a popup window says th