529 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
99
views
dozer : java.lang.reflect.InaccessibleObjectException
I use the lib doze-core (7.0.0) to map classes that have some fields of type javax.xml.datatype.XMLGregorianCalendar.
the map from my entity to class1 --> the type of filed in my object is com.sun....
0
votes
0
answers
91
views
Dozer error detected when validating the file beanmapping.xsd
I'm working on a old project with java 8 and spring boot 1.5.10.RELEASE.
I have spent all day configuring it on my device, I successfully managed over 100 errors detected by Spring Tool Suite 4 (...
1
vote
1
answer
63
views
java.lang.NoClassDefFoundError: org.dozer.factory.DestBeanCreator
I'm getting this below error in one of the flows of my application running in WAS.
Caused by: org.apache.cxf.binding.soap.SoapFault: java.lang.NoClassDefFoundError: org.dozer.factory.DestBeanCreator (...
0
votes
0
answers
80
views
Quarkus native image init dto
Dozer mapper can't find the constructor of some dtos in native image quarkus
org.dozer.MappingException: java.lang.NoSuchMethodException: fr.usu.server.dto.instance.server.ServerPhysicalDto.()
at org....
1
vote
1
answer
271
views
Why ZonedDateTime.now() throws NoSuchMethodException while running test cases(using mockito)
Lately I am writing junit test cases and I came across ZonedDateTime.now() works partially expected where the method which we try to write test case uses DozerBeanMapper for copying common fields. ...
0
votes
1
answer
491
views
org.dozer.MappingException: java.lang.NoSuchMethodException: org.hibernate.internal.SessionImpl.<init>()
@Override
public List<Order> findByOrderId(final Long orderId)
{
Criteria c = this.getHibernateSession().createCriteria(Order.class);
c.createCriteria("context"...
0
votes
1
answer
213
views
Java bean mapper expected capture but is provided object
Please note: even though I mention Dozer in this question, I do believe its really just a pure Java generics question at heart. There may be a Dozer-specific solution out there, but I think anyone ...
0
votes
1
answer
507
views
How to avoid dozer mapping blank strings in spring boot java app?
Consider the following xml dozer bean mapping below:
<mapping map-null="false" map-empty-string="false">
<class-a>com.example.howtodoinjava.dozer.models....
2
votes
2
answers
2k
views
One way mapping in Dozer using custom converter
Please note: while I would accept an XML-based solution if that's truly the only way to accomplish what I'm looking for, I would greatly prefer a solution using Dozer's Java API.
I am new to Dozer ...
0
votes
1
answer
166
views
Dozer map to a library class which does not have a default constructor
I'm trying to use Dozer to map to a target library class which has a field defined as an interface and I get an error :-
Caused by: java.lang.NoSuchMethodException:
.<init>()
at java.base/java....
0
votes
1
answer
799
views
Dozer convert for String to date mapping but with optional date pattern? (i.e. yyyy-MM-dd[ HH:mm:ss] )
I have a Java spring app using Dozer allows for specifying the Date format in the custom .xml configuration file for mapping your fields as such:
<field>
<a date-format="MM/dd/yyyy HH:...
1
vote
1
answer
1k
views
using "Dozer" in Java to map String of date/time to java.sql.Timestamp and save in DB is writing time as 00:00:00.000000
I have a Spring Batch application (https://spring.io/projects/spring-batch) that reads comma delimited data from a .csv file and then maps each column to specific Java class beans, the saves it to a ...
0
votes
1
answer
498
views
Dozer seeks xml configs instead of Java confiigs
I am working on a Spring Boot project with Spring Data Rest, Gradle and Oracle Express DB in which I use DozerBeanMapper to map entities to DTOs and vice versa, I use no xml configurations for Dozer, ...
0
votes
1
answer
318
views
Use interface as source in Dozer mappings
Is it possible to use Interface as source in Dozer mappings?
I have interface as source
public interface Data {
@Mapping("sourceId")
@Value("#source_id}")
Long getSourceID(); }
...
4
votes
1
answer
897
views
How to turn off Dozer logging entries in log4j2?
How to turn off Dozer logging entries in log4j2 ?
Using Java 1.8, Dozer version: 6.4.1, Logger version 2.11.2 on Windows 7
pom.xml config :
<groupId>com.github.dozermapper</groupId>
...