Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    First find where the source for the method is. Without the source you will not be able to change it.

    If it is in a class with generic definitions, you might be able to define the class with a...
  2. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    The error posted in post #1 is a compiler error. The compiler says this line is not correctly coded:

    List<Donors> resultList = query.getResultList();

    The getResultList() is not defined to...
  3. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    If that we true you would code:

    String aString = query.getResultList();

    Can you ask some help from the person that wrote the code you are working with?
  4. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    Look at the definition for the getResultList() method. What is it defined to return?
    For example this method is defined to return a String:

    public String getActionCommand() {
  5. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    What data type is the object returned by the getResultList() method?
    The variable to the left of the = should be the same data type.
  6. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    What does the getResultList() method return?
    Is it a List<Donors> object?
    Or just a List?

    The compiler wants a List<Donors> object (the required: item).
  7. Replies
    14
    Views
    1,990

    Re: Need help with error message!!

    Please post the source code for the lines where the compiler is saying there is an error.
Results 1 to 7 of 7