Why am I getting child count update has encountered a p‌r‌o‌b‌l‌e‌m on JBoss Dev Studio?

eclipse debugging apache-camel redhat jboss-developer-studio

464 观看

1回复

1 作者的声誉

When I try to debug and check the variables I get this error.

An internal error occurred during: "child count update". org.eclipse.jdt.internal.debug.core.logicalstructures.JavaStructureErrorValue cannot be cast to org.eclipse.jdt.debug.core.IJavaObject

enter image description here

package com.optum.propel.service;

import org.apache.camel.Exchange;

import com.optum.propel.commons.handler.BaseHandler;

public class Kafka_Consumer extends BaseHandler {

    @Override
    public void process(Exchange exchange) throws Exception {
        // TODO Auto-generated method stub
//      String temp = exchange.getIn().getBody(String.class);

    System.out.println(exchange.getIn().getBody().toString());
    System.out.println("From Kafka_Consumer:");
 }

}
作者: Sarah Isaiah 的来源 发布者: 2017 年 12 月 27 日

回应 1


0

642 作者的声誉

Why not break the command [1] into 4 commands, assigning each call to a variable, and try/catch for exceptions to see what's going wrong?

[1] System.out.println(exchange.getIn().getBody().toString())

作者: nickboldt 发布者: 2017 年 12 月 29 日
32x32