Announcement Announcement Module
No announcement yet.
Issue using @Transactional and @Context in a CXF REST Endpoint with spring-data-neo4j Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue using @Transactional and @Context in a CXF REST Endpoint with spring-data-neo4j

    I'm mixing spring-data and CXF to create a RESTful endpoint that creates neo4j nodes. My structure is a set Interfaces which define the public facing methods, and my implementations which have several private methods under that are called by my public methods.

    When I do create a public method, I get a proxy casting issue:

        Caused by: java.lang.IllegalArgumentException: Can not set field com.neuralsandbox.service.PublicCallsPublic.httpHeaders to $Proxy37
    	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(
    	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(
    	at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(
    	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(
    	at java.lang.reflect.Field.set(
    	at org.apache.cxf.jaxrs.utils.InjectionUtils.injectFieldValue(
    	at org.apache.cxf.jaxrs.utils.InjectionUtils.injectContextProxiesAndApplication(
    	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.injectContexts(
    	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.updateClassResourceProviders(
    	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(
    	... 29 more
    I have update my GitHub project below:

    What is wrong with my code?
    Last edited by nicholasastuart; Jan 28th, 2013, 11:53 PM.