spring mvc - org.codehaus.jackson.map.JsonMappingException: Direct self-reference leading to cycle -
i working on angularjs java web app, , refactoring existing parent pom use java 8.
towards end changed spring references use spring bill of materials 4.1.2.release, , our jetty application server 9.2.5.v20141112, java 8 compatability.
almost working fine until call url initial blast of data. url getting called, , delegated (via springmvc) correct code, returns json.
for debugging purposes calling testapp.do returning simple json string [{"system":"test"}]"
that method getting called, , returning expected string.
however somewhere along way (not sure if spring, or jetty, or jackson, seeing following exception in stack, , return value never assigned.
any advice appreciated
2014-11-19 09:57:04.371:warn:oejs.servlethandler:qtp1601800698-18: /mycontext/testapp.do @ org.codehaus.jackson.map.ser.beanpropertywriter._reportselfreference(beanpropertywriter.java:491) @ org.codehaus.jackson.map.ser.beanpropertywriter.serializeasfield(beanpropertywriter.java:429) ... @ org.codehaus.jackson.map.objectmapper.writevalue(objectmapper.java:1604) @ org.springframework.web.servlet.view.json.mappingjacksonjsonview.writecontent(mappingjacksonjsonview.java:303) ... @ org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:852) @ javax.servlet.http.httpservlet.service(httpservlet.java:687) @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:837) @ javax.servlet.http.httpservlet.service(httpservlet.java:790) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:800) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1669) @ org.springframework.security.web.filterchainproxy$virtualfilterchain.dofilter(filterchainproxy.java:330) @ org.springframework.security.web.access.intercept.filtersecurityinterceptor.invoke(filtersecurityinterceptor.java:118) ... @ org.springframework.security.web.filterchainproxy.dofilter(filterchainproxy.java:160) @ org.springframework.web.filter.delegatingfilterproxy.invokedelegate(delegatingfilterproxy.java:344) @ org.springframework.web.filter.delegatingfilterproxy.dofilter(delegatingfilterproxy.java:261) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ com.opensymphony.sitemesh.webapp.sitemeshfilter.obtaincontent(sitemeshfilter.java:125) @ com.opensymphony.sitemesh.webapp.sitemeshfilter.dofilter(sitemeshfilter.java:76) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) ... @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:540) @ java.lang.thread.run(thread.java:745)
Comments
Post a Comment