OK, I added a defaultOperation to the consumer endpoints and I got farther.
Here is a short-term summary. I can give more detail later once I figure out
how to improve logging in glassfish (it sucks btw).
I get a NPE when the HTTP BC receives a Request (gut feeling though).

Here is the stack trace:
java.lang.NullPointerException
        at com.sun.jbi.messaging.MessageImpl.toString(MessageImpl.java:179)
        at
com.sun.jbi.messaging.MessageExchangeImpl.toString(MessageExchangeImpl.java:478)
        at
com.sun.jbi.messaging.MessageExchangeProxy.toString(MessageExchangeProxy.java:829)
        at java.lang.String.valueOf(String.java:2615)
        at java.lang.StringBuffer.append(StringBuffer.java:220)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:345)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:250)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

This gives the appearance that OpenESB is the root cause, but it isn't. Its
throwing the NPE after the ServiceMix class AsyncBaseLifeCycle receives an
error and attempts to log the MessageExchange. At which the openesb
toString() throws the NPE.

This is where the root Exception is being thrown (from
AsyncBaseLifeCycle.processExchangeInTx()):
 protected void processExchangeInTx(MessageExchange exchange, Transaction
tx) {
        try {
            if (tx != null) {
                transactionManager.resume(tx);
            }
            processExchange(exchange); // root cause
        } catch (Exception e) {
            logger.error("Error processing exchange " + exchange, e); //
causes NPE

My guess is processExchange is throwing an Exception and the NPE is coming
from the log.error in the catch clause.

Let me know what you think. Like I said I plan on getting a better log to
dig deeper.

-- 
View this message in context: 
http://www.nabble.com/ServiceMix-HTTP-BC-not-working-in-OpenESB-tf2947046s12049.html#a8267501
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to