Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapping error for String array #194

Open
GoogleCodeExporter opened this issue Jan 1, 2016 · 1 comment
Open

mapping error for String array #194

GoogleCodeExporter opened this issue Jan 1, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What version of Orika are you using?

1.4.2
JDK 160_29

Please mind that it is required to provide a test of the issue with all
relevant comments. Thank you

Hello all,

We are working on the mapping between array of a class and the array of String. 
The classMap registered as following:

        this.mapperFactory.classMap(
                PersonFrom.class, 
                PersonTo.class)
        .field("names{first}", "firstnames{}")
        .register();

When mapperFacade.map() was called we received following error:

Exception in thread "main" java.lang.NoClassDefFoundError: [Ljava/lang/String;
    at javassist.runtime.DotClass.fail(DotClass.java:26)
    at ma.glasnost.orika.generated.Orika_PersonTo_PersonFrom_Mapper1493521574698360$0.mapAtoB(Orika_PersonTo_PersonFrom_Mapper1493521574698360$0.java)
    at ma.glasnost.orika.impl.mapping.strategy.UseCustomMapperStrategy.map(UseCustomMapperStrategy.java:67)
    at ma.glasnost.orika.impl.MapperFacadeImpl.map(MapperFacadeImpl.java:735)
    at ma.glasnost.orika.impl.MapperFacadeImpl.map(MapperFacadeImpl.java:714)
    at com.comcast.fulfillment.saleschannelmanagement.service.orika.NameMapper.main(NameMapper.java:65)


Any suggestion how to map these two fields?

I have attached the code.

Thanks,

Steve

Original issue reported on code.google.com by [email protected] on 5 Mar 2015 at 10:02

Attachments:

@GoogleCodeExporter
Copy link
Author

Hello, I tried add customMapper and that works for me. Thanks,

Steve

Original comment by [email protected] on 6 Mar 2015 at 1:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant