Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7700885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:51:03+00:00 2026-05-31T22:51:03+00:00

For anyone familiar with lambdaj (not I) you will have seen this stacktrace, or

  • 0

For anyone familiar with lambdaj (not I) you will have seen this stacktrace, or some variation, before:

ch.lambdaj.function.argument.ArgumentConversionException: Unable to
convert the placeholder org.dom4j.tree.AbstractAttribute in a valid
argument at
ch.lambdaj.function.argument.ArgumentsFactory.actualArgument(ArgumentsFactory.java:92)
at
ch.lambdaj.function.matcher.HasArgumentWithValue.havingValue(HasArgumentWithValue.java:70)
at ch.lambdaj.Lambda.having(Lambda.java:1204)

My understadning is that this happens through a limitation of lambdaj with final classes.

I get the above when testing the following code:

import static ch.lambdaj.Lambda.having;
import static ch.lambdaj.Lambda.selectFirst;
import static org.hamcrest.CoreMatchers.equalTo;

import java.util.List;

import org.dom4j.tree.AbstractAttribute;
public class DocumentUtils {

    public static String getAttributeValueFromListByName(
            List<AbstractAttribute> list, String name) {

        AbstractAttribute requiredAttribute = selectFirst(list,
                having((AbstractAttribute.class).getName(), equalTo(name)));

        String value = requiredAttribute.getValue();

        return value;

    }

}

I had been using dom4j’s Attribute interface, getting the same problem, then thought maybe lambdaj doesn’t like interfaces.. so I switched to the AbstractAttribute abstract class.

Is there an issue with lambdaj and abstract classes? Or is my method just pants? Any ideas how to solve this?

FYI: I’m using lambdaj 2.4 and dom4j 1.6

Thanks a lot in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:51:04+00:00Added an answer on May 31, 2026 at 10:51 pm

    Issue 92 has been raised with lambdaj, as requested by Mario Fusco (LambdaJ Developer)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is anyone familiar with the problem. I have read this post however its hard
Question: Is anyone out there familiar enough with Komodo Edit to shed some light
Is anyone familiar with a tutorial out there that will let me create a
Anyone familiar with the emulator will know that during the loading phase the 'screen'
Is anyone familiar with this term? Can't find much about it on the interwebs.
:) This question is for anyone familiar with the Tankauth plugin. I edited tankauth
Is anyone familiar with this issue, I seem to get it every now and
Anyone familiar with specific security issues in the current version of DotNetNuke? (I've already
Anyone familiar with error below? When I run my webapp to generate a dynamic
Anyone familiar with a way how can I can i write something to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.