net.sf.dozer.util.mapping.MappingException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


rp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • TopCoder Forums
    via by Unknown author,
  • get called, but set isn't
    via dozer by jamesclinton
    ,
  • According to your documentation, the published book "The Definitive Guide to Grails" and the published book "Groovy In Action" both Groovy and Grails has built- in support for the java.net.URL class. Unfortunately, when I create a simple domain class (inside grails-app/domain): class LinkData { String lnkName String lnkDescrip URL lnkURL } I get the following failure when I attempt to compile: [groovy] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.net.URL]: No default constructor found; nested exception is java.lang.NoSuchMethodException: java.net.URL.<init>() [groovy] org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.net.URL]: No default constructor found; nested exception is java.lang.NoSuchMethodException: java.net.URL.<init>() [groovy] java.lang.NoSuchMethodException: java.net.URL.<init>() [groovy] at java.lang.Class.getConstructor0(Class.java:2647) [groovy] at java.lang.Class.getDeclaredConstructor(Class.java:1953) [groovy] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) [groovy] at org.codehaus.groovy.grails.commons.GrailsClassUtils.getPropertyValueOfNewInstance(GrailsClassUtils.java:233) [groovy] at org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsDomainConfigurationUtil.getAssociationMap(GrailsDomainConfigurationUtil.java:198) [groovy] at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass.establishDomainClassRelationship(DefaultGrailsDomainClass.java:410) [groovy] at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass.establishRelationships(DefaultGrailsDomainClass.java:254) [groovy] at org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass.<init>(DefaultGrailsDomainClass.java:106) [groovy] at org.codehaus.groovy.grails.commons.DefaultGrailsApplication.configureLoadedClasses(DefaultGrailsApplication.java:171) [groovy] at org.codehaus.groovy.grails.commons.DefaultGrailsApplication.<init>(DefaultGrailsApplication.java:154) [groovy] at org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean.afterPropertiesSet(GrailsApplicationFactoryBean.java:57) [groovy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091) [groovy] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396) [groovy] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) [groovy] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) [groovy] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) [groovy] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) [groovy] at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) [groovy] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) [groovy] at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:30) [groovy] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) [groovy] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) [groovy] at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:497) [groovy] at org.mortbay.util.Container.start(Container.java:72) [groovy] at org.mortbay.http.HttpServer.doStart(HttpServer.java:753) [groovy] at org.mortbay.util.Container.start(Container.java:72) [groovy] at gjdk.org.mortbay.jetty.Server_GroovyReflector.invoke(Unknown Source) [groovy] at groovy.lang.MetaMethod.invoke(MetaMethod.java:111) [groovy] at ...Many unnecessary lines omitted for brevity... run-app:watch-context: Apparently, due to the fact that (at least in the JDK 5) there is no default constructor for the URL class, it appears to be impossible to define such a class in Groovy. Unless I am mistaken (and I am a newbie so I very well could be) this means that it is impossible to utilize the URL class from within Groovy or Grails. This is a major inadequacy that must be fixed in the release before too many people run into it... I have tried various ways of initializing the URL class on declaration, but none of these worked. I do not believe too many people will like Grails if they run into this fundamental problem...
    via by RB3,
  • Field mapping error
    via dozer by andremayer
    ,
    • net.sf.dozer.util.mapping.MappingException: java.lang.NoSuchMethodException: net.sf.dozer.util.mapping.vo.collections.UserGroup.<init>() at net.sf.dozer.util.mapping.util.MappingUtils.throwMappingException(MappingUtils.java:91) at net.sf.dozer.util.mapping.util.DestBeanCreator.newInstance(DestBeanCreator.java:142) at net.sf.dozer.util.mapping.util.DestBeanCreator.create(DestBeanCreator.java:85) at net.sf.dozer.util.mapping.MappingProcessor.mapCustomObject(MappingProcessor.java:445) at net.sf.dozer.util.mapping.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:414) at net.sf.dozer.util.mapping.MappingProcessor.mapFromFieldMap(MappingProcessor.java:309) at net.sf.dozer.util.mapping.MappingProcessor.mapField(MappingProcessor.java:255) at net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:224) at net.sf.dozer.util.mapping.MappingProcessor.mapCustomObject(MappingProcessor.java:451) at net.sf.dozer.util.mapping.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:414) at net.sf.dozer.util.mapping.MappingProcessor.addOrUpdateToList(MappingProcessor.java:741) at net.sf.dozer.util.mapping.MappingProcessor.addOrUpdateToList(MappingProcessor.java:774) at net.sf.dozer.util.mapping.MappingProcessor.mapListToList(MappingProcessor.java:643) at net.sf.dozer.util.mapping.MappingProcessor.mapCollection(MappingProcessor.java:516) at net.sf.dozer.util.mapping.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:405) at net.sf.dozer.util.mapping.MappingProcessor.mapFromFieldMap(MappingProcessor.java:309) at net.sf.dozer.util.mapping.MappingProcessor.mapField(MappingProcessor.java:255) at net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:224) at net.sf.dozer.util.mapping.MappingProcessor.processSuperTypeMapping(MappingProcessor.java:938) at net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:208) at net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:136) at net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:110) at net.sf.dozer.util.mapping.DozerBeanMapper.map(DozerBeanMapper.java:94) at net.sf.dozer.util.mapping.collections.TestCumulativeCollectionMapping.testMappingInterface(TestCumulativeCollectionMapping.java:57) Caused by: java.lang.NoSuchMethodException: net.sf.dozer.util.mapping.vo.collections.UserGroup.<init>() at java.lang.Class.getConstructor0(Class.java:2647) at java.lang.Class.getDeclaredConstructor(Class.java:1953) at net.sf.dozer.util.mapping.util.DestBeanCreator.newInstance(DestBeanCreator.java:138) ... 24 more

    Users with the same issue

    Unknown User
    2 times, last one,
    tomthomas
    1 times, last one,
    tvrmsmith
    1 times, last one,
    batwalrus76
    5 times, last one,
    filpgame
    1 times, last one,
    109 more bugmates