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

  • Home
  • SEARCH
  • 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 8813925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:58:57+00:00 2026-06-14T03:58:57+00:00

What are the possibilities of doing deep object cloning without Java reflection? I have

  • 0

What are the possibilities of doing deep object cloning without Java reflection? I have used Object cloning libraries that use reflection but AppEngine does not allow to do that.

So my existing application that worked with Tomcat not does not work.

Update:

Dozer library seems to be the best bet:

Mapper mapper = new DozerBeanMapper();
DestinationObject destObject =  mapper.map(sourceObject, DestinationObject.class);

Question would be if I don’t need custom mapping can I just do the above as it is?

For example:

Cat cat = new Cat();

Mapper mapper = new DozerBeanMapper();
Cat newCat =  mapper.map(cat, Cat.class);

Update:

When I run my app with Dozer I get this error:

Caused by: java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.contains(Ljava/lang/String;Ljava/lang/String;)Z
    at org.dozer.util.ResourceLoader.getResource(ResourceLoader.java:53)
    at org.dozer.util.DefaultClassLoader.loadResource(DefaultClassLoader.java:44)
    at org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:116)
    at org.dozer.config.GlobalSettings.<init>(GlobalSettings.java:67)
    at org.dozer.config.GlobalSettings.<clinit>(GlobalSettings.java:46)

Looks like I am missing something, although I added Dozer using Maven.

  • 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-06-14T03:58:58+00:00Added an answer on June 14, 2026 at 3:58 am

    Have you considered using Dozer?

    [from their website]

    Dozer is a Java Bean to Java Bean mapper that recursively copies data
    from one object to another. Typically, these Java Beans will be of
    different complex types.

    Dozer supports simple property mapping, complex type mapping,
    bi-directional mapping, implicit-explicit mapping, as well as
    recursive mapping. This includes mapping collection attributes that
    also need mapping at the element level.

    Dozer not only supports mapping between attribute names, but also
    automatically converting between types. Most conversion scenarios are
    supported out of the box, but Dozer also allows you to specify custom
    conversions via XML.

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

Sidebar

Related Questions

i have the search requirement that with doing search option for rental house. city,price
Reading among the list of possibilities of the Java ME platform, its possible for
I am currently looking into a couple of possibilities for a microsite that I
I have a small project I am doing in Python using web.py. It's a
I'm doing some layer drawing on the iPad and have to provide user interaction.
I want to have an element in my preference menu that does the following:
I spent the last 12 hours investigating the possibilities of doing indoor, small distance
I am doing a small app that involves the system randomly generating objects. Here's
I have a mission critical Perl-CGI server-side application that I need to extend or
I need to write some code that uses TcpListener . The object that using

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.