Hi, I cant run set Method of bindings on my class with  ADF BC

Hi I made a private definition, as follow.
private BindingContainer bindings;
get and set method
public void setBindings(BindingContainer bindings) {
this.bindings = bindings;
public BindingContainer getBindings() {
return this.bindings;
How can I run set method when the Page loading.
Onur...............

Thanks, I wrote your code it worked.But there is another problem.I'am sending my code and the place of error.
I wrote this code for reading column of the table. Can you help me please?
Here is the code:
public Vector getNid(){
Vector vNid = new Vector();
CoreTable table = this.getMasterDetail1();
Set rowSet = table.getSelectionState().getKeySet();
Iterator rowSetIter = (Iterator)rowSet.iterator();
BindingContainer bindings = getBindings();
DCIteratorBinding pr_dcib=null;
try {
pr_dcib = (DCIteratorBinding) bindings.get("EgitimTalepHareketiIViewSorgu1Iterator");
catch (Exception e) {
System.out.println(e.toString());
while (rowSetIter.hasNext()){        
//set the current row in the ADF binding to the same row
pr_dcib.setCurrentRowIndexInRange(((Integer)rowSetIter.next()).intValue());//in this place Iam taking error
ViewRowImpl prRow = (ViewRowImpl) pr_dcib.getCurrentRow();
String rid="0";
try {
rid = (String)prRow.getAttribute("HareketId").toString();
catch (Exception e) {
System.out.println(e.toString());
System.out.println("Hareket ID : "+rid);
vNid.add(rid);
return vNid;
The eror is like this
javax.faces.FacesException: #{backing_GenelEgitimListesi.commandButton1_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.jbo.Key     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)

Similar Messages

  • I cant run one of my programs it comes up with "You can't open the application VL Spanish Installer because PowerPC applications are no longer supported."

    How do i fix this? I spent a lot of money on this program and now i cant even use it because i got a new laptop? (Lion)

    You can't fix it.  PowerPC programs do not run on Lion.  extended support for PPC apps was dropped after 5 years.  You need 10.6 or prior to run that program.

  • I want to manuel set "bind varaiable" when page on load with ADF BC

    hi,
    I am opening a page from other page, opening page is query page that it must take its bind varaiable from main jspx page on ADF,
    how can I set bind varaiable for query when the page on load.
    or how can I qeury according to main page variable.

    Hi,
    you can write data to teh session and then reference this from teh bind variables on the opened page using EL
    e.g. #{sessionScope.departmentId}
    To set data to the session, you can use an ActionListener in ADF Faces
    from: #{row.departmentId.inputValue)
    to: #{sessionScope.deptId}
    The above copies the value of a selected table row to the session
    Frank

  • Multiple setter methods

    Hi i have a jsp page that sets the value of a bean which has two setter methods for the same property but with different signatures the jsp code is
    <jsp:useBean id="version" scope="session" class="data.PeriodVersion"/>
    <jsp:setProperty name="version" property="version"/>
    <jsp:useBean id="dbSelector"  scope="session" class="configuration.DatabaseSelector"/>
    <jsp:setProperty name="dbSelector" property="version" value="<%= version %>"/>the java code is
        public void setVersion(int version){
            this.version = new PeriodVersion(version);
        public void setVersion (PeriodVersion version){
            this.version = version;
        }when run using tomcat this code gives an "argument mismatch" error
    however when i remove one of the setter methods it works
    does this mean that beans should only have one setter method. this seems very inflexible. or i am doing something wrong
    thx in advance

    Well, I guess I could have explained this upfront and saved a few people some headaches, but I was more concerned with why the code didn't work. Mostly, because I wasn't sure if I was going to implement that kind of system.
    Basically, it's a game using cards (not standard cards) and each one does a specific action. Really though, it's just increasing and decreasing values and setting flags. So, certain cards set flags that prevent you from doing anything until you play another specific card which counters that action and resets that boolean value, allowing you to continue on your merry way. There are specific cards that set specific flags and other cards that counter those. However (and this is the part that has me troubled), there is a card that can counter any of those previous actions and reset any flag back to false.
    I am not sure, other than an if or case statement how to implement this behavior. Once you play it, the human can choose which target to counter (flag to reset), and I am unsure of how to make a method that accepts the user's choice and carry on that action on the required variable. I mean, I do, and it wouldn't be the worst thing in the world to use an if-else if statement since there's only about 4 or 5 choices. I am just still learning and not totally content to one way of doing things.
    I don't care if I need to make them private with their own get and set methods, or if I just need to make them public and have the methods alter them directly. It's the one wildcard option that gets me confused.
    And, by best, I just meant I was looking for alternatives, and that I'll find out that will suit my needs best.
    I think, from now on, I should just explain what I'm trying to do in the first place, but I like to first test everything by taking code snippets and creating sub-experiments on the side to see if I can figure it out myself first.
    Edited by: mhoribe on Apr 27, 2009 3:44 PM

  • Change the properties of a field dynamically using Getter/Setter methods

    Thanks
    Raj
    Edited by: RajICWeb on Aug 12, 2009 4:31 AM

    Hi Harshit
    Thanks for the reply. Like you suggested, I redefined the get_i_zfield( ) method. But the program is not going through this method.
    FYI.....I created the getter/setter methods manually for my zfield. Plz let me know if I am missing anything. Your help will be greatly appreciated.
    Below is my requirement:
    I need to add an additional column (zfield) to a tree view. The name of the component is BTRESTREE. (there is only one view in this component- this view is having only one context node).
    I tried adding my zfield to the attributes (of the context node) through the wizard by right clicking on the 'Attributes'. But I am not getting the 'Create' Option.
    I posted a thread few days back regarding the same problem. One of the experts (Vikash Krishna) suggested me to add some my zfield by redefining the 'GET_TABLE_LINE_SAMPLE' method. As per his suggestion, I was finally able to see my zfield in
    the configuation tab.
    Now, I have to change the properties of my zfield (make this column editable) in the tree view. For that, the only option that I can see is to change the get_i_zfield( ) method (here we have 'rv_disabled') for my zfield. For this, first I need to add my zfield to the Attributes. To achieve this, I added getter/setter methods manually in the Proxy class.
    Thanks
    Raj

  • Setter method in CustomException

    Is it advisable to have a setter method in my custom Exception class?

    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;
    }

  • Set Methods are not running

    I am writing my first jsp. I have a bean that I am wanting to use and my understanding is that if I put the following commands in, that all the set methods for my properties will run in the bean automatically as long as the names of the properties are the same as those on the form.
    <jsp:useBean id="MedicalBean" class="Project5.MedicalReimbursementRecord" scope="session"/>
    <jsp:setProperty name="MedicalBean" property="*"/>
    The form has a number of textboxes, each text box has a name of one of the properties in my bean. I put display in my bean and I know that it is never running any of the "set" methods for any of the properties. I know that it is indeed getting into my bean, as I have displayed which indicate that methods that I request are indeed running.
    I have not "ACTION" parameter on the FORM, but I have looked at the examples in Tomcat and they have forms which do not have an "Action". I don't think this is a problem, but maybe I am wrong about that. If I put in the statement of:
    <jsp:setProperty name="MedicalBean" property="GrpAcctNbr"/>
    Then I get the error "Cannot find any information on property 'GrpAcctMbr' in a bean of type 'Project5.MedicalReimbursementRecord'"
    So there must be something wrong with my setProperty statement, but what is it?
    Thanks in advance for your assistance.

    Can you show the relevant JSP code and set/get methods in the bean?
    Sometimes this error is caused by capitalization. e.g. a request param of "myName" calls setMyName(). Also, your bean must have a no arguments constructor.
    Also, if you don't specify an action,the form submits to the current URL so you should be ok. Are you sure that the JSP runs when the user submits the form?

  • Getter/setter methods -- how do I use the return values

    I'm just learning Java, and I haven't been to this site since the end of July, I think. I have a question regarding getter and setter methods. I switched to the book Head First Java after a poster here recommended it. I'm only about a hundred pages into the book, so the code I'm submitting here reflects that. It's the beginnings of a program I'd eventually like to complete that will take the entered information of my CD's and alphabetize them according to whatever criteria I (or any user for that matter) choose. I realize that this is just the very beginning, and I don't expect to have the complete program completed any time soon -- it's my long term goal, but I thought I could take what I'm learning in the book and put it to practical use as I go along (or at lest try to).
    Yes I could have this already done it Excel, but where's the fun and challenge in that? :) Here's the code:
    // This program allows the user to enter CD information - Artist name, album title, and year of release -- and then organizes it according the the user's choice according to the user's criteria -- either by artist name, then title, then year of release, or by any other order according to the user's choice.
    //First, the class CDList is created, along with the necessary variables.
    class CDList{
         private String artistName;//only one string for the artist name -- including spaces.
         private String albumTitle;//only one string the title name -- including spaces.
         private int yearOfRelease;
         private String recordLabel;
         public void setArtistName(String artist){
         artistName = artist;
         public void setAlbumTitle(String album){
         albumTitle = album;
         public void setYearOfRelease(int yor){
         yearOfRelease = yor;
         public void setLabel(String label){
         recordLabel = label;
         public String getArtistName(){
         return artistName;
         public String getAlbumTitle(){
         return albumTitle;
         public int getYearOfRelease(){
         return yearOfRelease;
        public String getLabel(){
        return recordLabel;
    void printout () {
           System.out.println ("Artist Name: " + getArtistName());
           System.out.println ("Album Title: " + getAlbumTitle());
           System.out.println ("Year of Release: " + getYearOfRelease());
           System.out.println ("Record Label: " + getLabel());
           System.out.println ();
    import static java.lang.System.out;
    import java.util.Scanner;
    class CDListTestDrive {
         public static void main( String[] args ) {
              Scanner s=new Scanner(System.in);
              CDList[] Record = new CDList[4];
              int x=0;     
              while (x<4) {
              Record[x]=new CDList();
              out.println ("Artist Name: ");
              String artist = s.nextLine();
              Record[x].setArtistName(artist);
              out.println ("Album Title: ");
              String album = s.nextLine();
              Record[x].setAlbumTitle(album);
              out.println ("Year of Release: ");
              int yor= s.nextInt();
                    s.nextLine();
              Record[x].setYearOfRelease(yor);
              out.println ("Record Label: ");
              String label = s.nextLine();
              Record[x].setLabel(label);
              System.out.println();
              x=x+1;//moves to next CDList object;
              x=0;
              while (x<4) {
              Record[x].getArtistName();
              Record[x].getAlbumTitle();
              Record[x].getYearOfRelease();
              Record[x].getLabel();
              Record[x].printout();
              x=x+1;
                   out.println("Enter a Record Number: ");
                   x=s.nextInt();
                   x=x-1;
                   Record[x].getArtistName();
                Record[x].getAlbumTitle();
                Record[x].getYearOfRelease();
                Record[x].getLabel();
                Record[x].printout();
         }//end main
    }//end class          First, I'd like to ask anyone out there to see if I could have written this any more efficiently, with the understanding that I'm only one hundred pages into the book, and I've only gotten as far as getter and setter methods, instance variables, objects and methods. The scanner feature I got from another book, but I abandoned it in favor of HFJ.
    Secondly --
    I'm confused about getter and setter methods -- I'd like someone to explain to me what they are used for exactly and the difference between the two. I have a general idea, that getters get a result from the method and setters set or maybe assign a value to variable. I submitted this code on another site, and one of the responders told me I wasn't using the returned values from the getter methods (he also told me about using a constructor method, but I haven't got that far in the book yet.). The program compiles and runs fine, but I can't seem to figure out how I'm not using the returned values from the getter methods. Please help and if you can explain in 'beginners terms,' with any code examples you think are appropriate. It will be greatly appreciated.
    By the way, I'm not a professional programmer -- I'm learning Java because of the intellectual exercise and the fun of it. So please keep that in mind as well.
    Edited by: Straitsfan on Sep 29, 2009 2:03 PM

    Straitsfan wrote:
    First, I'd like to ask anyone out there to see if I could have written this any more efficiently, with the understanding that I'm only one hundred pages into the book, and I've only gotten as far as getter and setter methods, instance variables, objects and methods. The scanner feature I got from another book, but I abandoned it in favor of HFJ.Yes, there is tons you could have done more efficiently. But this is something every new programmer goes through, and I will not spoil the fun. You see, in 3 to 6 months when you have learned much more Java, assuming you stick with it, you will look back at this and be like "what the hell was I thinking" and then realize just haw far you have come. So enjoy that moment and don't spoil it now by asking for what could have been better/ more efficient. If it works it works, just be happy it works.
    Straitsfan wrote:
    Secondly --
    I'm confused about getter and setter methods -- I'd like someone to explain to me what they are used for exactly and the difference between the two. I have a general idea, that getters get a result from the method and setters set or maybe assign a value to variable. I submitted this code on another site, and one of the responders told me I wasn't using the returned values from the getter methods (he also told me about using a constructor method, but I haven't got that far in the book yet.). The program compiles and runs fine, but I can't seem to figure out how I'm not using the returned values from the getter methods. Please help and if you can explain in 'beginners terms,' with any code examples you think are appropriate. It will be greatly appreciated.
    By the way, I'm not a professional programmer -- I'm learning Java because of the intellectual exercise and the fun of it. So please keep that in mind as well.First, if you posted this somewhere else you should link to that post, it is good you at least said you did, but doubleposting is considered very rude because what inevitably happens in many cases is the responses are weighed against each other. So you are basically setting anyone up who responds to the post for a trap that could make them look bad when you double post.
    You are setting you getters and setters up right as far as I can tell. Which tells me that I think you grasp that a getter lets another class get the variables data, and a setter lets another class set the data. One thing, be sure to use the full variable name so you should have setRecordLabel() and getRecodLabel() as opposed to setLabel() and getLabel(). Think about what happens if you go back and add a label field to the CDList class, bad things the way you have it currently. Sometimes shortcuts are not your friend.
    And yes, you are using the getters all wrong since you are not saving off what they return, frankly I am suprised it compiles. It works because you don't really need to use the getters where you have them since the CDList Record (should be lowercase R by the way) object already knows the data and uses it in the printout() method. Basically what you are doing in lines like:
    Record[x].getArtistName();is asking for the ArtistName in Record[x] and then getting the name and just dropping it on the floor. You need to store it in something if you want to keep it, like:
    String artistName = Record[x].getArtistName();See how that works?
    Hope this helped, keep up the good learning and good luck.
    JSG

  • 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.

  • Should "rv_value = 'submit'." force processing of the Setter method?.

    When new values are entered into the field 'Country' for the Account screen the code associated with this field does not seem to be run unless I press ENTER after the field is populated from the list of values.
    I have a method with the appropriate code to force it to process:
    method GET_P_COUNTRY.
    case iv_property.
    when if_bsp_wd_model_setter_getter=>fp_server_event.
      rv_value = 'submit'.
    endcase.
    endmethod
    I was under the illusion that this should force the Setter code to be executed, as though I had manually hit ENTER within the field.
    I have just placed a break point in the GET_P_COUNTRY method and can see that the rv_value field is never being set. The iv_property is never matching the value from  if_bsp_wd_model_setter_getter=>fp_server_event.
    The method is being called multiple times with the iv_property being equal to:
    'fieldType'
    'onclick'
    'tooltip'
    'DetailLink'
    'focus'
    'disableSVH'
    and if_bsp_wd_model_setter_getter=>fp_server_event having a value of 'ServerEvent'.
    What might be the best way of detecting that a value has been chosen from the pull-down list and then trigger the SET_COUNTRY method?.
    Jason

    Ah, It's not a manual input and is indeed a drop-down. The Country field is one of the SAP standard fields which, via config, displays a drop-down list of values to choose from. Once chosen it then updates the Country description.
    Within the SET_COUNTRY method I detect if the country value has been changed, and if so set a boolean variable called ZCountry_flag to 'X'. This attribite is created against the class for the context node of the Country attribute.
    Then, within the controller impl class I have entered code against the do_prepare_output method to detect whether the ZCountry_flag field is set, and then if so get data from ERP and post it into a Z-field, which is actually in a different context node, but for the same controller class. The ZCountry_flag attribute is then cleared.
    This process works fine after I have selected a country code from the drop-down and then hit ENTER, but I need a way to emulate hitting ENTER after a value is selected from the list.
    I hope that makes sense.
    I could just moved the code from the do_prepare_output of the controller class to one of the Save related methods, but then this will only update the other fields when saving.

  • 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

  • [svn:fx-trunk] 12432: Added Capabilities. hasAccessibility check before calling Accessibility.updateProperties() in setter methods.

    Revision: 12432
    Revision: 12432
    Author:   [email protected]
    Date:     2009-12-03 06:59:10 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Added Capabilities.hasAccessibility check before calling Accessibility.updateProperties() in setter methods.  This prevents an error on systems that do not support accessibility.
    QE notes: none
    Doc notes: none
    Bugs: (24454
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

  • 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

  • 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) ?

  • Unable to find setter method

    Hi,
    Can anyone tell me how to overcome the error
    /tags/DBConnectionTest.jsp(8,0) Unable to find setter method for attribute: connection
    I get this error when i try to test a custom tag through a jsp. My jsp for testing the custom tag(s) is like this
    DBConnectionTest.jsp
    <%@ taglib uri="http://www.bidla.com/db-taglib" prefix="db" %>
    <db:connection id="conn" url="jdbc:odbc:bidla2">
         <db:userId>apj100</db:userId>
         <db:password>amithpj</db:password>
    </db:connection>
    <db:query id="getAllRows" connection="conn">Select name from events</db:query>
    I think there is some problem with the query tag because the jsp runs fine if i remove the line containing query tag. The query tag represents QueryTagHandler.java. Is there anything extra that i need to add to it.
    Waiting for reply,
    Thank You !

    I am having the same problem.
    In my jsp I have:
    <db:query id="eventsForDay" connection="conn">
    SELECT name, description, start_date FROM Events
    WHERE EXTRACT(MONTH FROM start_date) = <%= month%>
    AND EXTRACT(YEAR FROM start_date) = <%= year%>
    AND EXTRACT(DAY FROM start_date) = <%= day%>
    ORDER BY EXTRACT(HOUR FROM start_date), EXTRACT(MINUTE FROM start_date)
    </db:query>
    My .tld file contains:
    <tag>
    <name>query</name>
    <tagclass>station.auction.db.taglib.QueryTagHandler</tagclass>
    <teiclass>station.auction.db.taglib.QueryTagExtraInfo</teiclass>
    <bodycontent>JSP</bodycontent>
    <info>Specifies a SQL query</info>
    <attribute>
    <name>id</name>
    <required>true</required>
    </attribute>
    <attribute>
    <name>connection</name>
    <required>true</required>
    </attribute>
    </tag>
    And the handler is :
    public class QueryTagHandler extends BodyTagSupport {
         private Connection con=null;
    private String id=null;
    private String test=null;
    public int doAfterBody() throws JspException {
         try {
              String query = getBodyContent().getString();
              System.out.println("[QueryTagHandler] doAfterBody, Query Body-> " + getBodyContent().getString());
              Statement stmt = getConnection().createStatement();
              ResultSet rs = stmt.executeQuery(query);
              this.pageContext.setAttribute(getId(), rs, pageContext.PAGE_SCOPE);
         } catch (Exception exc) {
              throw new JspException(exc.getMessage());
         return SKIP_BODY;
    public Connection getConnection() {
         return this.con;
    public void setConnection(String connection)
         this.con = (Connection)pageContext.findAttribute(connection);
    //System.out.println("[QueryTagHandler] setConnection, Attribute-> " + connection);
         //System.out.println("[QueryTagHandler] Connection : " + con);
    The error is : Unable to find setter method for attribute : connection
    What could be the problem ?????!!!!!!! I've googled for 2 days continuously and - no answer ... Can anyone help ?

Maybe you are looking for

  • How do I add a movie theater to the Siri database?

    How do I add a movie theater to the Siri database?

  • Who can I talk to about getting hung up on 4 times today?

    Trying to get help ALL day today. I have waited on hold for 30 -45 minutes 4 times today, three times I was disconnected while on hold and once while talking to a support person who DID NOT CALL ME BACK! I am going on 8 hrs of this and need to resolv

  • Dynamic reports

    Hi, I want to create reports wirh a dynamic where clause. e.g. select * from CUSTOMER where IDCUSTOMER = ... my questions: (I am Using the Oracle Report Builder) how to write a parameter? &country_id? how to call this report and parse the parameter?

  • Which printers are used by apple for printing photo books

    I was wondering how I had to sharpen my images for photobook printing using aperture. Can I download there printerprofiles anywhere?

  • Adobe Intractive Forms error

    Dears, I have installed Netweaver 2004s on Windows 2003 server. Now my users are getting error while they are using adobe service of SAP. Error is:    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: ADS Rend