camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Fwd: NPE - Camel UnitOfWork / CDI / CXF
Date Mon, 21 Oct 2013 18:26:53 GMT
Hi,

I'm currently working on a Camel CDI project using CXF/ActiveMQ endpoint
but when CXF endpoint creates the CamelExchange and Camel creates the
UnitOfWork, I get a NPE

https://gist.github.com/7044362
https://gist.github.com/7044297

I suspect that for a reason that I don't know the Exchange is null or
Context is null at line 49

    public static UnitOfWork createUoW(Exchange exchange) {
        UnitOfWork answer;
        if (exchange.getContext().isUseMDCLogging()) {
            answer = new MDCUnitOfWork(exchange);
        } else {
            answer = new DefaultUnitOfWork(exchange);
        }
        return answer;
    }

As until now, I cannot debug, I contact you to get your ideas

Regards,

-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io




-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message