Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.0_b82_EE7MS7
    • Fix Version/s: None
    • Component/s: OSGi
    • Labels:
      None

      Description

      This looks to me like felix gogo is configured somewhere in OSGi to intercept all exceptions being printed??

      Because my code certainly does not reference gogo in any way...

      This only seems to happen when exception messages are over a certain length..

      My code at HttpProducer.java:57 is as follows:

      ...
              } catch ( final Exception e ) {
                  // TODO
                  e.printStackTrace();
              }
      ...
      

      So if gogo is configured to intercept all exceptions being printed, the gogo bundle is missing an import or dependency or something?

      Stack trace:

      22:21:32.557 ERROR [Camel (383-camel-2) thread #10 - smq://CAMEL_MT] org.apache.camel.processor.DefaultErrorHandler - Failed delivery for (MessageId: ID-prod-msggw1-m-qube-com-52912-1364853908325-0-53 on ExchangeId: ID-prod-msggw1-m-qube-com-52912-1364853908325-0-54). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: {client.request.pdu.esm_class=3, message.subscriber.carrier=Metro PCS, Inc., client.request.pdu.tlv.0x1607=[B@7b7d6777, client.request.pdu.registered_delivery=0, client.request.pdu.sequence_number=1, message.ipc=CELLI_31310_BSKNRBN_000_D, message.originator.country=null, event.timestamp=1364854892553, client.request.pdu.scheduled_delivery_time=, client.request.pdu.data_coding=0, message.type=text, message.originator=31310, event.source=CARRIER, client.request.pdu.command_id=4, event.carrier.id=999, client.request.pdu.command_status=0, client.request.pdu.short_message=[B@6230e984, client.request.pdu.source_address.npi=0, event.carrier.reference=44af7b4c-a2d6-4751-b558-61b7427b6f3f, client.request.pdu.tlv.0x1583=[B@6363172, client.request.pdu.tlv.0x1581=[B@16558bf7, client.request.pdu.tlv.0x1400=[B@4fe8368d, client.request.pdu.tlv.0x1402=[B@4a581095, event.message_id=1hep3982470ivr287r46s4q1iq21, client.request.pdu.tlv.0x1404=[B@5ba8cc54, client.request.pdu.tlv.0x1550=[B@55abb321, client... [Body clipped after 1000 chars, total length is 2094]]
      org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: {client.request.pdu.esm_class=3, message.subscriber.carrier=Metro PCS, Inc., client.request.pdu.tlv.0x1607=[B@7b7d6777, client.request.pdu.registered_delivery=0, client.request.pdu.sequence_number=1, message.ipc=CELLI_31310_BSKNRBN_000_D, message.originator.country=null, event.timestamp=1364854892553, client.request.pdu.scheduled_delivery_time=, client.request.pdu.data_coding=0, message.type=text, message.originator=31310, event.source=CARRIER, client.request.pdu.command_id=4, event.carrier.id=999, client.request.pdu.command_status=0, client.request.pdu.short_message=[B@6230e984, client.request.pdu.source_address.npi=0, event.carrier.reference=44af7b4c-a2d6-4751-b558-61b7427b6f3f, client.request.pdu.tlv.0x1583=[B@6363172, client.request.pdu.tlv.0x1581=[B@16558bf7, client.request.pdu.tlv.0x1400=[B@4fe8368d, client.request.pdu.tlv.0x1402=[B@4a581095, event.message_id=1hep3982470ivr287r46s4q1iq21, client.request.pdu.tlv.0x1404=[B@5ba8cc54, client.request.pdu.tlv.0x1550=[B@55abb321, client... [Body clipped after 1000 chars, total length is 2094]]
      	at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1354) ~[camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:272) ~[camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64) ~[camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:390) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:335) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:60) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:390) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:335) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:117) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at com.mm.camel.component.smq.SmqConsumer.doProcess(SmqConsumer.java:190) [smq-component-1.2-20130401.205506-1.jar:1.2-SNAPSHOT]
      	at com.mm.camel.component.smq.SmqConsumer.processBatch(SmqConsumer.java:178) [smq-component-1.2-20130401.205506-1.jar:1.2-SNAPSHOT]
      	at com.mm.camel.component.smq.SmqConsumer.poll(SmqConsumer.java:155) [smq-component-1.2-20130401.205506-1.jar:1.2-SNAPSHOT]
      	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:141) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:91) [camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_15]
      	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [na:1.7.0_15]
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [na:1.7.0_15]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_15]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_15]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_15]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_15]
      	at java.lang.Thread.run(Thread.java:722) [na:1.7.0_15]
      Caused by: java.lang.NoClassDefFoundError: com/sun/common/util/logging/LoggingOutputStream$StackTraceObjects
      	at com.sun.common.util.logging.LoggingOutputStream$LoggingPrintStream.println(LoggingOutputStream.java:233) ~[na:na]
      	at org.apache.felix.gogo.runtime.threadio.ThreadPrintStream.println(ThreadPrintStream.java:205) ~[na:na]
      	at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:747) ~[na:1.7.0_15]
      	at java.lang.Throwable.printStackTrace(Throwable.java:654) ~[na:1.7.0_15]
      	at java.lang.Throwable.printStackTrace(Throwable.java:642) ~[na:1.7.0_15]
      	at java.lang.Throwable.printStackTrace(Throwable.java:633) ~[na:1.7.0_15]
      	at com.mm.camel.component.http.HttpProducer.process(HttpProducer.java:57) ~[na:na]
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.11-20130401.024207-422.jar:2.11-SNAPSHOT]
      	... 81 common frames omitted
      

        Activity

        Hide
        aaronjwhiteside added a comment -

        Ok, so after a little more investigation it looks like felix gogo is overwriting the default System.err PrintStream.

        So that means that whatever gogo bundle has done this does not have the right imports..

        Show
        aaronjwhiteside added a comment - Ok, so after a little more investigation it looks like felix gogo is overwriting the default System.err PrintStream. So that means that whatever gogo bundle has done this does not have the right imports..
        Hide
        Sanjeeb Sahoo added a comment - - edited

        DO you mind giving steps to reproduce? From what I can tell from the exception is that it's a a very weird error. The exception says:

        Caused by: java.lang.NoClassDefFoundError: com/sun/common/util/logging/LoggingOutputStream$StackTraceObjects
        at com.sun.common.util.logging.LoggingOutputStream$LoggingPrintStream.println(LoggingOutputStream.java:233)

        How come LoggingOutputStream$LoggingPrintStream which belongs to the same package as LoggingOutputStream$StackTraceObjects not able to load that class. There is no reflection going on here as it's a NoClassDefFoundError occurring from the following line in source code:

        StackTraceObjects sTO = new StackTraceObjects((Throwable) x);

        Show
        Sanjeeb Sahoo added a comment - - edited DO you mind giving steps to reproduce? From what I can tell from the exception is that it's a a very weird error. The exception says: Caused by: java.lang.NoClassDefFoundError: com/sun/common/util/logging/LoggingOutputStream$StackTraceObjects at com.sun.common.util.logging.LoggingOutputStream$LoggingPrintStream.println(LoggingOutputStream.java:233) How come LoggingOutputStream$LoggingPrintStream which belongs to the same package as LoggingOutputStream$StackTraceObjects not able to load that class. There is no reflection going on here as it's a NoClassDefFoundError occurring from the following line in source code: StackTraceObjects sTO = new StackTraceObjects((Throwable) x);

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            aaronjwhiteside
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: