AArhin / orika

Automatically exported from code.google.com/p/orika
0 stars 0 forks source link

mapping error for String array #194

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 steves...@gmail.com on 5 Mar 2015 at 10:02

Attachments:

GoogleCodeExporter commented 8 years ago
Hello, I tried add customMapper and that works for me. Thanks,

Steve

Original comment by steves...@gmail.com on 6 Mar 2015 at 1:05