net.sf.dozer.util.mapping.MappingException: java.lang.reflect.InvocationTargetException

Apache's JIRA Issue Tracker | Franck HUGOT | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I get this exception when calling getProjectGroupWithProjects method (it seems a mapping is incorrect) : 45721 [SocketListener0-0] INFO net.sf.dozer.util.mapping.util.CustomMappingsLoader - Successfully loaded custom xml mappings from URL: [jar :file:/home/sudd/continuum-1.1/apps/continuum/webapp/WEB-INF/lib/continuum-xmlrpc-server-1.1.jar!/dozerBeanMapping.xml] 46634 [SocketListener0-0] ERROR net.sf.dozer.util.mapping.MappingProcessor - Field mapping error --> MapId: null Type: bi-directional Source parent class: org.apache.maven.continuum.model.project.ProjectGroup Source field name: notifiers Source field type: generic Source field value: null Dest parent class: org.apache.maven.continuum.xmlrpc.project.ProjectGroup Dest field name: notifiers Dest field type: java.util.List net.sf.dozer.util.mapping.MappingException: java.lang.reflect.InvocationTargetException at net.sf.dozer.util.mapping.util.MappingUtils.throwMappingException(MappingUtils.java:91) at net.sf.dozer.util.mapping.util.ReflectionUtils.invoke(ReflectionUtils.java:220) at net.sf.dozer.util.mapping.propertydescriptor.GetterSetterPropertyDescriptor.invokeReadMethod(GetterSetterPropertyDescriptor.java:2 11) at net.sf.dozer.util.mapping.propertydescriptor.GetterSetterPropertyDescriptor.getPropertyValue(GetterSetterPropertyDescriptor.java:6 4) at net.sf.dozer.util.mapping.fieldmap.FieldMap.getSrcFieldValue(FieldMap.java:71) at net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:108) at net.sf.dozer.util.mapping.DozerBeanMapper.map(DozerBeanMapper.java:93) at org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl.populateProjectGroupWithAllDetails(ContinuumServiceImpl.java:876) at org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl.getProjectGroupWithProjects(ContinuumServiceImpl.java:278) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcMetaDataHandler.invoke(ContinuumXmlRpcMetaDataHandler.java:145) at org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcMetaDataHandler.execute(ContinuumXmlRpcMetaDataHandler.java:133) at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43) at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83) at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:182) at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:103) at org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcServlet.doPost(ContinuumXmlRpcServlet.java:193) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Caused by: javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field "notifiers" yet this field was not detached whe n you detached the object. Either dont access this field, or detach the field when detaching the object. at org.apache.maven.continuum.model.project.ProjectGroup.jdoGetnotifiers(ProjectGroup.java) at org.apache.maven.continuum.model.project.ProjectGroup.getNotifiers(ProjectGroup.java:222) ... 49 more

    Apache's JIRA Issue Tracker | 9 years ago | Franck HUGOT
    net.sf.dozer.util.mapping.MappingException: java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. javax.jdo.JDODetachedFieldAccessException

      You have just attempted to access field "notifiers" yet this field was not detached whe n you detached the object. Either dont access this field, or detach the field when detaching the object.

      at org.apache.maven.continuum.model.project.ProjectGroup.jdoGetnotifiers()
    2. org.apache.maven
      ProjectGroup.getNotifiers
      1. org.apache.maven.continuum.model.project.ProjectGroup.jdoGetnotifiers(ProjectGroup.java)
      2. org.apache.maven.continuum.model.project.ProjectGroup.getNotifiers(ProjectGroup.java:222)
      2 frames
    3. net.sf.dozer
      DozerBeanMapper.map
      1. net.sf.dozer.util.mapping.util.MappingUtils.throwMappingException(MappingUtils.java:91)
      2. net.sf.dozer.util.mapping.util.ReflectionUtils.invoke(ReflectionUtils.java:220)
      3. net.sf.dozer.util.mapping.propertydescriptor.GetterSetterPropertyDescriptor.invokeReadMethod(GetterSetterPropertyDescriptor.java:211)
      4. net.sf.dozer.util.mapping.propertydescriptor.GetterSetterPropertyDescriptor.getPropertyValue(GetterSetterPropertyDescriptor.java:64)
      5. net.sf.dozer.util.mapping.fieldmap.FieldMap.getSrcFieldValue(FieldMap.java:71)
      6. net.sf.dozer.util.mapping.MappingProcessor.map(MappingProcessor.java:108)
      7. net.sf.dozer.util.mapping.DozerBeanMapper.map(DozerBeanMapper.java:93)
      7 frames
    4. org.apache.maven
      ContinuumServiceImpl.getProjectGroupWithProjects
      1. org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl.populateProjectGroupWithAllDetails(ContinuumServiceImpl.java:876)
      2. org.apache.maven.continuum.xmlrpc.server.ContinuumServiceImpl.getProjectGroupWithProjects(ContinuumServiceImpl.java:278)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. org.apache.maven
      ContinuumXmlRpcMetaDataHandler.execute
      1. org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcMetaDataHandler.invoke(ContinuumXmlRpcMetaDataHandler.java:145)
      2. org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcMetaDataHandler.execute(ContinuumXmlRpcMetaDataHandler.java:133)
      2 frames
    7. Apache XML-RPC Server Library
      XmlRpcServletServer.execute
      1. org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
      2. org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
      3. org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:182)
      4. org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:103)
      4 frames
    8. org.apache.maven
      ContinuumXmlRpcServlet.doPost
      1. org.apache.maven.continuum.xmlrpc.server.ContinuumXmlRpcServlet.doPost(ContinuumXmlRpcServlet.java:193)
      1 frame
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    10. Jetty Server
      WebApplicationHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
      2. org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
      2 frames
    11. WebWork
      FilterDispatcher.doFilter
      1. com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
      1 frame
    12. Jetty Server
      WebApplicationHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      1 frame
    13. Sitemesh
      PageFilter.doFilter
      1. com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
      2. com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
      2 frames
    14. Jetty Server
      WebApplicationHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      1 frame
    15. WebWork
      ActionContextCleanUp.doFilter
      1. com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
      1 frame
    16. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      2. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
      3. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      3 frames
    17. org.mortbay.http
      HttpContext.handle
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      1 frame
    18. Jetty Server
      WebApplicationContext.handle
      1. org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
      1 frame
    19. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      2. org.mortbay.http.HttpServer.service(HttpServer.java:909)
      3. org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
      4. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
      5. org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
      6. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
      6 frames
    20. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      2 frames