Hi,

My problem looks like this
http://mail-archives.apache.org/mod_mbox/cxf-users/201307.mbox/%[email protected]%3E

I am using cxf 3.0.0 so I believe the thread does not apply and I am not sure what I should do or try based on that thread.

My problem is that I am trying to call

    @POST
    @Path("existing-entity")
    @Consumes("application/x-www-form-urlencoded")
    public Entity getExistingEntity(
            @FormParam("entity") Entity entity)
            throws SQLException;

with an entity and the service is instantiating the Entity based on String constructor which looks like a fallback CXF strategy around
./rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java:393

The jackson provider is not called to do the deserialization. I don't know why. Similarly as the link I provide above if I pass the json payload that the client is sending to objectMapper.getValue(json, Entity.class) everything works correctly.

So the question is why jackson is not involved during deserialization?. It works fine for serialization.

My guess the fail is in somewhere around  InjectionUtils.java:358

Object result = createFromParameterHandler(value, pClass, paramAnns, message);
        if (result != null) {
            return pClass.cast(result);
        }

but I don't know enough to debug this.

    Vassilis

--

__________________________________

Vassilis Virvilis Ph.D.
Head of IT
Biovista Inc.

US Offices
2421 Ivy Road
Charlottesville, VA 22903
USA
T: +1.434.971.1141
F: +1.434.971.1144

European Offices
34 Rodopoleos Street
Ellinikon, Athens 16777
GREECE
T: +30.210.9629848
F: +30.210.9647606

www.biovista.com

Biovista is a privately held biotechnology company that finds novel uses for existing drugs, and profiles their side effects using their mechanism of action. Biovista develops its own pipeline of drugs in CNS, oncology, auto-immune and rare diseases. Biovista is collaborating with biopharmaceutical companies on indication expansion and de-risking of their portfolios and with the FDA on adverse event prediction.


Reply via email to