I created a route that look like this:
from("cxfrs:bean:server?bindingStyle=SimpleConsumer")
.setExchangePattern(ExchangePattern.InOnly)
.streamCaching()
.onCompletion()
.modeBeforeConsumer() // <-- Problem
.to(CommonRoutes.ENDPOINT_DIRECT_LOGGING)
.process(createResponse)
.end()
.split().body().stopOnException()
.process(domainWrapProcessor)
.to(OutAmq.OUT_PLUG)
;
The Logging route is this:
from(ENDPOINT_DIRECT_LOGGING)
.routeId(routeId_direct_logging)
.doTry()
.process(createAuditMessageProcessor)
.marshal().json(JsonLibrary.Jackson)
.to(ENDPOINT_VM_LOG_DELIVERY) //mocked out in Test
.doCatch(Throwable.class)
.process(e -> {
log.warn("Failed to send audit message", e);
})
.end()
.end();
Because i only want to send an empty body with status back to caller i added .process(createResponse) together with .modeBeforeConsumer(). For logging it is not relevant if this happens before or after consumer.
The Problem is by adding .modeBeforeConsumer() camel produces a StackoverflowError.
onCompletion is triggered some hundred times but the exchange is always fed back after .to(CommonRoutes.ENDPOINT_DIRECT_LOGGING) - createResponse is never reached. But the mock:ENDPOINT_VM_LOG_DELIVERY registers some hundred exchanges.
I found 2 workarounds (but both destroy the desired semantic):
"mock and skip" ENDPOINT_DIRECT_LOGGING (log route is not called)
delete/comment .modeBeforeConsumer()
So what is going on here? What could cause this?
Here is the camel error log (repeats many times):
[immobilenserviceIn] [to3 ] [direct:logging ] [ 769]
[routeId_directLogg] [doTry1 ] [doTry ] [ 12]
[routeId_directLogg] [process1 ] [Processor#0x11f0a5a1 ] [ 0]
[routeId_directLogg] [marshal1 ] [marshal[org.apache.camel.model.dataformat.JsonDataFormat#20435c40] ] [ 12]
[routeId_directLogg] [to1 ] [vm:log-delivery ] [ 0]
[immobilenserviceIn] [process3 ] [Processor#0x142269f2 ] [ 0]
[immobilenserviceIn] [to3 ] [direct:logging ] [ 757]
[routeId_directLogg] [doTry1 ] [doTry ] [ 12]
And this is a part of the stack trace (until first repetition):
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-D624342-61550-1491998476554-0-2]
at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1706)
at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:348)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:160)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)
at org.apache.camel.processor.OnCompletionProcessor.doProcess(OnCompletionProcessor.java:151)
at org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationBeforeConsumer.onAfterRoute(OnCompletionProcessor.java:350)
at org.apache.camel.util.UnitOfWorkHelper.afterRouteSynchronizations(UnitOfWorkHelper.java:154)
at org.apache.camel.impl.DefaultUnitOfWork.afterRoute(DefaultUnitOfWork.java:273)
at org.apache.camel.processor.CamelInternalProcessor$RouteLifecycleAdvice.after(CamelInternalProcessor.java:316)
at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:245)
at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:256)
at org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:86)
at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:101)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
Related
I installed Azure Kinect SDK successfully and it looks normal in Device Manager. But the Kinect Viewer cannot start the device. My machine is HP Elitedesk. OS version is Windows 10 (build version:18363). I tried on a Lenovo laptop and the Kinect Viewer works fine. So the device is not damaged. Anyone has pointer on what I can do to fix?
Device Manager view
Azure Kinect Viewer error
Log:
[ trace ] : k4a_device_start_cameras(). k4a_device_start_cameras starting
[ info ] : k4a_device_start_cameras(). Starting camera's with the following config.
[ info ] : k4a_device_start_cameras(). color_format:3
[ info ] : k4a_device_start_cameras(). color_resolution:1
[ info ] : k4a_device_start_cameras(). depth_mode:2
[ info ] : k4a_device_start_cameras(). camera_fps:2
[ info ] : k4a_device_start_cameras(). synchronized_images_only:1
[ info ] : k4a_device_start_cameras(). depth_delay_off_color_usec:0
[ info ] : k4a_device_start_cameras(). wired_sync_mode:0
[ info ] : k4a_device_start_cameras(). subordinate_delay_off_master_usec:0
[ info ] : k4a_device_start_cameras(). disable_streaming_indicator:0
[ trace ] : usb_cmd_io(). XFR: Cmd=80000001, CmdLength=13, PayloadSize=0, CmdData=00000000 00000000...
[ trace ] : usb_cmd_io(). XFR: Cmd=000000e1, CmdLength=4, PayloadSize=0, CmdData=00000004 000001ec...
[ error ] : depth_engine_start_helper(). Depth engine create and initialize failed with error code: 204.
[ error ] : deresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in depth_engine_start_helper()
[ error ] : depth_engine_start_helper(dewrapper, dewrapper->fps, dewrapper->depth_mode, &depth_engine_max_compute_time_ms, &depth_engine_output_buffer_size) returned failure in depth_engine_thread()
[ warning ] : capturesync_add_capture(). Capture Error Detected, Depth
[ info ] : queue_stop(). Queue "Queue_capture" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_depth" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_color" stopped, shutting down and notifying consumers.
[ error ] : dewrapper_start(). Depth Engine thread failed to start
[ error ] : dewrapper_start(depth->dewrapper, config, depth->calibration_memory, depth->calibration_memory_size) returned failure in depth_start()
[ trace ] : usb_cmd_io(). XFR: Cmd=000000f2, PayloadSize=0
[ error ] : cmd_status == CMD_STATUS_PASS returned failure in depthmcu_depth_stop_streaming()
[ error ] : depthmcu_depth_stop_streaming(). ERROR: cmd_status=0x00000063
[ trace ] : usb_cmd_io(). XFR: Cmd=0000000a, PayloadSize=0
[ error ] : depth_start(device->depth, config) returned failure in k4a_device_start_cameras()
[ info ] : k4a_device_start_cameras(). k4a_device_start_cameras started
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopping
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopped
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A23E0
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2660
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2860
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC4821BE40
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC4821A0C0
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC4821B4C0
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC481A2660
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC481A23E0
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC4821BE40
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC481A2860
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC4821B4C0
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC4821A0C0
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A8A0B80
[ trace ] : imu_t_destroy(). Destroyed imu_t 000001EC4820E470
[ trace ] : color_t_destroy(). Destroyed color_t 000001EC48226D80
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A8A0860
[ trace ] : dewrapper_t_destroy(). Destroyed dewrapper_t 000001EC481A19E0
[ trace ] : depth_t_destroy(). Destroyed depth_t 000001EC481A5E00
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A8A0400
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A89FFA0
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A89FC30
[ trace ] : capturesync_t_destroy(). Destroyed capturesync_t 000001EC481739D0
[ trace ] : calibration_t_destroy(). Destroyed calibration_t 000001EC4519EBE0
[ trace ] : usbcmd_t_destroy(). Destroyed usbcmd_t 000001EC4813C930
[ trace ] : depthmcu_t_destroy(). Destroyed depthmcu_t 000001EC4A760320
[ trace ] : usbcmd_t_destroy(). Destroyed usbcmd_t 000001EC4813CA10
[ trace ] : colormcu_t_destroy(). Destroyed colormcu_t 000001EC481EE3B0
[ trace ] : k4a_device_t_destroy(). Destroyed k4a_device_t 000001EC45109B40
[ trace ] : k4a_device_t_create(). Created k4a_device_t 000001EC4A7A7F60
[ trace ] : depthmcu_t_create(). Created depthmcu_t 000001EC4A7603A0
[ trace ] : usbcmd_t_create(). Created usbcmd_t 000001EC4813C930
[ info ] : find_libusb_device(). Container ID found: {ccc11f1c-eddb-48c8-da9d-6c737eda8c49}
[ info ] : populate_serialnumber(). Serial Number found 000603501312
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ trace ] : colormcu_t_create(). Created colormcu_t 000001EC481F36B0
[ trace ] : usbcmd_t_create(). Created usbcmd_t 000001EC4813D2D0
[ info ] : find_libusb_device(). Container ID found: {ccc11f1c-eddb-48c8-da9d-6c737eda8c49}
[ info ] : populate_serialnumber(). Serial Number found 000603501312
[ trace ] : calibration_t_create(). Created calibration_t 000001EC479BB3D0
[ trace ] : usb_cmd_io(). XFR: Cmd=00000111, PayloadSize=10240
[ trace ] : capturesync_t_create(). Created capturesync_t 000001EC481739D0
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89EC90
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89ECE0
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89EB00
[ trace ] : depth_t_create(). Created depth_t 000001EC481A4A00
[ trace ] : usb_cmd_io(). XFR: Cmd=00000201, PayloadSize=18
[ trace ] : usb_cmd_io(). XFR: Cmd=00000201, PayloadSize=18
[ critical ] : ******************** Device Info ********************
[ critical ] : K4A SDK version: 1.4.1
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ critical ] : Serial Number: 000603501312
[ critical ] : RGB Sensor Version: 1.6.110
[ critical ] : Depth Sensor Version:1.6.79
[ critical ] : Mic Array Version: 1.6.14
[ critical ] : Sensor Config: 6109.7
[ critical ] : Build type: Release
[ critical ] : Signature type: MSFT
[ critical ] : ****************************************************
[ trace ] : dewrapper_t_create(). Created dewrapper_t 000001EC481A1E60
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89EB50
[ trace ] : usb_cmd_io(). XFR: Cmd=000000f2, PayloadSize=0
[ trace ] : usb_cmd_io(). XFR: Cmd=0000000a, PayloadSize=0
[ trace ] : color_t_create(). Created color_t 000001EC4A88F6E0
[ trace ] : imu_t_create(). Created imu_t 000001EC4820E470
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89F5A0
[ trace ] : usb_cmd_io(). XFR: Cmd=80000004, PayloadSize=0
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ trace ] : usb_cmd_io(). XFR: Cmd=80000006, PayloadSize=1
[ trace ] : usb_cmd_io(). XFR: Cmd=80000006, PayloadSize=1
[ trace ] : k4a_device_start_cameras(). k4a_device_start_cameras starting
[ info ] : k4a_device_start_cameras(). Starting camera's with the following config.
[ info ] : k4a_device_start_cameras(). color_format:3
[ info ] : k4a_device_start_cameras(). color_resolution:1
[ info ] : k4a_device_start_cameras(). depth_mode:2
[ info ] : k4a_device_start_cameras(). camera_fps:2
[ info ] : k4a_device_start_cameras(). synchronized_images_only:1
[ info ] : k4a_device_start_cameras(). depth_delay_off_color_usec:0
[ info ] : k4a_device_start_cameras(). wired_sync_mode:0
[ info ] : k4a_device_start_cameras(). subordinate_delay_off_master_usec:0
[ info ] : k4a_device_start_cameras(). disable_streaming_indicator:0
[ trace ] : usb_cmd_io(). XFR: Cmd=80000001, CmdLength=13, PayloadSize=0, CmdData=00000000 00000000...
[ trace ] : usb_cmd_io(). XFR: Cmd=000000e1, CmdLength=4, PayloadSize=0, CmdData=00000004 000001ec...
[ trace ] : usb_cmd_io(). XFR: Cmd=00000022, CmdLength=4, PayloadSize=2000000, CmdData=00000002 000001ec...
[ error ] : depth_engine_start_helper(). Depth engine create and initialize failed with error code: 204.
[ error ] : deresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in depth_engine_start_helper()
[ error ] : depth_engine_start_helper(dewrapper, dewrapper->fps, dewrapper->depth_mode, &depth_engine_max_compute_time_ms, &depth_engine_output_buffer_size) returned failure in depth_engine_thread()
[ warning ] : capturesync_add_capture(). Capture Error Detected, Depth
[ error ] : dewrapper_start(). Depth Engine thread failed to start
[ info ] : queue_stop(). Queue "Queue_capture" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_depth" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_color" stopped, shutting down and notifying consumers.
[ error ] : dewrapper_start(depth->dewrapper, config, depth->calibration_memory, depth->calibration_memory_size) returned failure in depth_start()
[ trace ] : usb_cmd_io(). XFR: Cmd=000000f2, PayloadSize=0
[ error ] : cmd_status == CMD_STATUS_PASS returned failure in depthmcu_depth_stop_streaming()
[ error ] : depthmcu_depth_stop_streaming(). ERROR: cmd_status=0x00000063
[ trace ] : usb_cmd_io(). XFR: Cmd=0000000a, PayloadSize=0
[ error ] : depth_start(device->depth, config) returned failure in k4a_device_start_cameras()
[ info ] : k4a_device_start_cameras(). k4a_device_start_cameras started
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopping
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopped
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A23E0
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2660
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2860
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC48218230
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC48219C30
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC48219DB0
This looks like the remote access issue on Linux. See https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/810.
I am trying to test route app.cash.source-endpoint-quartz from my junit which internally redirect the flow to another route app.accrual.source-endpoint-direct.
In my case the scenario is like app.cash.source-endpoint-quartz sends few messages to MQ, after that the processing continues and based on certain condition it will redirect to route app.accrual.source-endpoint-direct and which eventually sends few more messages to same MQ.
How do I test this?
Cash Route
from("{{app.cash.source-endpoint-quartz}}")
.routeId("cash-route")
.log(LoggingLevel.INFO, logger,"***** CASH ROUTE STARTED *****")
.doTry()
...
....
.to("direct:cashTransactionRoute") //Sub Route
.process(c -> {
TransactionMaster transactionMaster = (TransactionMaster) c.getIn().getHeader(Constants.HEADER_TRANSACTION_MASTER_CASH);
transactionMasterService.updateMsgStatus(transactionMaster, Status.SUCCESS);
})
.bean(transactionManager, "markSuccess")
...
...
Cash Sub Route
from("direct:cashTransactionRoute")
.routeId("cash-transaction-route")
...
.split(simple("${body}"))
.parallelProcessing()
...
.end()// End of split() and parallelProcessing()
.end()
.process(e -> {
...
})
.choice()
.when(simple("${body.size} != 0"))
.process(e -> {
e.getIn().getBody();
})
.to("{{app.accrual.source-endpoint-direct}}") //Redirect to accrual route
.end() //End of choice
.end();
Accrual Route
from("{{app.accrual.source-endpoint-direct}}") //Accrual Route
.routeId("accrual-route")
.log(LoggingLevel.INFO, logger,"***** ACCRUAL ROUTE STARTED *****")
...
...
application-test.yaml
app:
cash:
source-endpoint-quartz: direct-vm:cash
txn-type: CASH
accrual:
source-endpoint-direct: direct-vm:accrual
source-endpoint-quartz-1: direct-vm:accrual-quartz-1
source-endpoint-quartz-2: direct-vm:accrual-quartz-2
Below is my JUnit which I tried but getting error.
#RunWith(CamelSpringBootRunner.class)
#SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {"camel.springboot.java-routes-include-pattern=**/Cash*, **/Accrual*"})
#EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class, SecurityAutoConfiguration.class})
#DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
#ActiveProfiles(profiles = {"test"})
public class CashRouteTest {
#EndpointInject(value = "{{app.cash.source-endpoint-quartz}}")
private ProducerTemplate producerTemplate;
#EndpointInject(value = "{{app.accrual.source-endpoint-direct}}")
private ProducerTemplate producerTemplateAccrual;
#EndpointInject(value = "{{app.mqservice}}")
private MockEndpoint mock;
#Test
public void cashRouteTest_PaymentWithAccrual() throws Exception {
Mockito.when(...).thenReturn(.....);
Mockito.when(...).thenReturn(.....);
...
producerTemplateAccrual.start();
producerTemplate.start();
producerTemplate.sendBody(null);
//producerTemplateAccrual.sendBody(null);
mock.expectedMessageCount(4);
mock.expectedBodiesReceived();
Assert.assertEquals(4, mock.getExchanges().size());
String xml = String.valueOf(mock.getExchanges().get(0).getIn().getBody());
MessageEnvelope messageEnvelope = (MessageEnvelope) XmlUtil.toObject(xml);
String actualPayload = XmlUtil.toXml(messageEnvelope.getPayload());
String expectedPayload = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>....";
Collection<TransactionMaster> txnMasters = (Collection<TransactionMaster>) txnMasterRepo.findAll();
Collection<Transaction> txns = (Collection<Transaction>) txnRepo.findAll();
logger.info("actualPayload : {} ", actualPayload);
Assert.assertEquals(expectedPayload, actualPayload);
Assert.assertEquals(2, txnMasters.size());
Assert.assertEquals(4, txns.size());
Assert.assertEquals(Status.SUCCESS, Status.forValue(txnMasters.iterator().next().getRefStatusId()));
Assert.assertEquals(Status.SUCCESS, Status.forValue(txns.iterator().next().getRefStatusId()));
mock.assertIsSatisfied(5000);
}
}
When I run this JUnit I get below error.
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-route started and consuming from: direct-vm://cash
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-enrich-route started and consuming from: direct://cashEnrichRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-transaction-route started and consuming from: direct://cashTransactionRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Total 3 routes, of which 3 are started
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[cash-route ] [cash-route ] [direct-vm://cash ] [ 32018]
[cash-route ] [log1 ] [log ] [ 9]
[cash-route ] [doTry1 ] [doTry ] [ 0]
[cash-route ] [bean1 ] [bean[com.app.service.DbTransactionManager] ] [ 500]
[cash-route ] [bean2 ] [bean[com.app.service.CashTransactionSearch] ] [ 15]
[cash-route ] [choice1 ] [when[simple{Simple: ${body.size} == 0}]choice[] ] [ 204]
[cash-route ] [process1 ] [Processor#0x20bc4c09 ] [ 15]
[cash-route ] [process2 ] [Processor#0x1ca6323c ] [ 16]
[cash-route ] [to1 ] [direct:cashEnrichRoute ] [ 130]
[cash-enrich-route ] [split1 ] [split[Simple: ${body}] ] [ 130]
[cash-route ] [process3 ] [Processor#0x5aac9d67 ] [ 235]
[cash-route ] [process4 ] [Processor#0x753cc26d ] [ 75]
[cash-route ] [to2 ] [direct:cashTransactionRoute ] [ 0]
[cash-transaction-r] [split2 ] [split[Simple: ${body}] ] [ 385]
[cash-transaction-r] [process16 ] [Processor#0x20b3bbe7 ] [ 0]
[cash-transaction-r] [choice3 ] [when[simple{Simple: ${body.size} != 0}]choice[] ] [ 0]
[cash-transaction-r] [process17 ] [Processor#0x5190ae57 ] [ 0]
[cash-transaction-r] [to5 ] [{{app.accrual.source-endpoint-direct}} ] [ 0]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.component.directvm.DirectVmConsumerNotAvailableException: No consumers available on endpoint: direct-vm://accrual. Exchange[ID-SPLS1800411-10N-1564022207351-0-3]
I see that when it loads the context it does not start the accrual route. Even though I have specified producerTemplateAccrual.start(); in my junit.
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-route started and consuming from: direct-vm://cash
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-enrich-route started and consuming from: direct://cashEnrichRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-transaction-route started and consuming from: direct://cashTransactionRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Total 3 routes, of which 3 are started
#SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {"camel.springboot.java-routes-include-pattern=**/Cash*, **/Accrual*"})
Cash*, **
Because of the space after , the AccrualRoute was getting ignored.
After removing the space both the routes are getting loaded.
We are migrating from solr 6.6 to solr 7.5. We have a solr Join which facets using facet. thread set to 32. We are seeing the repeated solrCore close exception and also further querying fails.Below are Exception stack trace. and solr Query
2019-07-09 17:37:30.053 INFO (facetExecutor-67-thread-22-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore [promotion_rules-v1_shard1_replica_n1] **CLOSING SolrCore org.apache.solr.core.SolrCore**#44de0f89
2019-07-09 17:37:30.054 INFO (facetExecutor-67-thread-22-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.core.promotion_rules-v1.shard1.replica_n1, tag=44de0f89
2019-07-09 17:37:30.056 INFO (facetExecutor-67-thread-22-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.m.r.SolrJmxReporter Closing reporter [org.apache.solr.metrics.reporters.SolrJmxReporter#36a60356: rootName = null, domain = solr.core.promotion_rules-v1.shard1.replica_n1, service url = null, agent id = null] for registry solr.core.promotion_rules-v1.shard1.replica_n1 / com.codahale.metrics.MetricRegistry#79be463d
2019-07-09 17:37:30.148 INFO (facetExecutor-67-thread-22-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.collection.promotion_rules-v1.shard1.leader, tag=44de0f89
2019-07-09 17:37:30.159 INFO (facetExecutor-67-thread-22-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.u.p.DocExpirationUpdateProcessorFactory Triggering Graceful close of DocExpiration Executor
2019-07-09 17:38:03.062 **ERROR (facetExecutor-67-thread-26-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-4] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org**
2019-07-09 17:38:03.067 ERROR (facetExecutor-67-thread-28-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] **o.a.s.c.SolrCore Too many close [count:-5] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org**
2019-07-09 17:38:06.176 ERROR (facetExecutor-67-thread-25-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-7] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:38:07.602 ERROR (facetExecutor-67-thread-24-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-6] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:38:11.868 ERROR (facetExecutor-67-thread-23-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-8] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:38:32.522 ERROR (facetExecutor-67-thread-4-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] **o.a.s.c.SolrCore Too many close [count:-9] on** org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:39:08.862 ERROR (facetExecutor-67-thread-3-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-10] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:39:08.988 ERROR (facetExecutor-67-thread-6-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-12] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:39:09.048 ERROR (facetExecutor-67-thread-5-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-13] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:39:10.474 ERROR (facetExecutor-67-thread-2-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-11] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:39:10.572 ERROR (facetExecutor-67-thread-7-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-14] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
2019-07-09 17:39:10.646 ERROR (facetExecutor-67-thread-9-processing-n:127.0.0.1:8983_solr x:products_comp-v1_shard1_replica_n21 c:products_comp-v1 s:shard1 r:core_node22) [ ] o.a.s.c.SolrCore Too many close [count:-15] on org.apache.solr.core.SolrCore#44de0f89. Please report this exception to solr-user#lucene.apache.org
SolrQuery
q=*:*&defType=edismax&fl=comboid,skuid&start=0&rows=15&facet.limit=100&variant=A&debugQuery=true&debug.explain.structured=true&fq=!status_facet:inactive&fq=!mode:AF_ONLY&fq=**{!join+from=skuid+to=skuid+fromIndex=promotion_rules}id:promo-opera-test-1000_promo-opera-test-1000**&enableManagedResourceRange=true&facet=true&facet.mincount=1&**facet.threads=32**&facet.field=dynamiccategory_facet&facet.recommend.maxfacets=30&facet.recommend.debug=true&sort=ratingandreviewsort+desc&qt=/promo&timeAllowed=5000
I'm getting a rather odd exception in a camel route. It is comparing a class with itself and identifying them as different types. I can only assume is the result of a ClassLoader issue. This is the exception formatted for clarity (full trace to below).
java.lang.IllegalArgumentException:
Part {http://ws.someco.com/messageserv}createMsgRequest
should be of type
com.someco.ws.messageserv.CreateMsgRequest,
not com.someco.ws.messageserv.CreateMsgRequest
Can anyone suggest a solution?
These are some of the version detail:
JBoss Fuse (6.2.1.redhat-084)
[installed ] [2.15.1.redhat-621084 ] camel-cxf camel-2.15.1.redhat-621084
[installed ] [1.2.0.redhat-621084 ] fabric-cxf fabric-1.2.0.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-specs cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-core cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-wsdl cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-http cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-http-jetty cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-bindings-soap cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-jaxws cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-jaxrs cxf-3.0.4.redhat-621084
[installed ] [3.0.4.redhat-621084 ] cxf-databinding-jaxb cxf-3.0.4.redhat-621084
This is from the logged error
2016-09-28 15:18:44,541 | ERROR | tp1704597020-170 | DefaultErrorHandler | 198 - org.apache.camel.camel-core - 2.15.1.redhat-621084 | Failed delivery for (MessageId: ID-IFDS3854-57235-1475090154837-1-1 on ExchangeId: ID-IFDS3854-57235-1475090154837-1-2). Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: Part {http://ws.someco.com/messageserv}createMsgRequest should be of type com.someco.ws.messageserv.CreateMsgRequest, not com.someco.ws.messageserv.CreateMsgRequest
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[route2 ] [route2 ] [cxf://bean:msgservpocEndpoint ] [ 256]
[route2 ] [removeHeaders2 ] [removeHeaders[*] ] [ 1]
[route2 ] [log4 ] [log ] [ 1]
[route2 ] [to3 ] [ref:createMsgReqTransformer ] [ 97]
[route2 ] [process2 ] [ref:imageProcessor ] [ 0]
[route2 ] [setHeader2 ] [setHeader[operationName] ] [ 0]
[route2 ] [log5 ] [log ] [ 1]
[route2 ] [messageservEndpoin] [cxf:bean:messageservEndpoint?defaultOperationName=createMsg&defaultOperationNa] [ 152]
Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
Id ID-IFDS3854-57235-1475090154837-1-2
ExchangePattern InOut
Headers {CamelRedelivered=false, CamelRedeliveryCounter=0, operationName=createMsg}
BodyType java.util.ArrayList
Body [com.someco.ws.messageserv.CreateMsgRequest#161e2951]
]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
java.lang.IllegalArgumentException: Part {http://ws.someco.com/messageserv}createMsgRequest should be of type com.someco.ws.messageserv.CreateMsgRequest, not com.someco.ws.messageserv.CreateMsgRequest
at org.apache.cxf.jaxb.io.DataWriterImpl.checkPart(DataWriterImpl.java:292)[79:org.apache.cxf.cxf-rt-databinding-jaxb:3.0.4.redhat-621084]
at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:220)[79:org.apache.cxf.cxf-rt-databinding-jaxb:3.0.4.redhat-621084]
at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.wsdl.interceptors.BareOutInterceptor.handleMessage(BareOutInterceptor.java:69)[78:org.apache.cxf.cxf-rt-wsdl:3.0.4.redhat-621084]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:418)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:116)[207:org.apache.camel.camel-cxf:2.15.1.redhat-621084]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:139)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:95)[207:org.apache.camel.camel-cxf:2.15.1.redhat-621084]
at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:75)[207:org.apache.camel.camel-cxf:2.15.1.redhat-621084]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_79]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621084]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621084]
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[205:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621084]
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[205:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621084]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.Server.handle(Server.java:370)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
I try to get a blob out of a database using camel (2.15.1). The data size is about 20 mb. This is my route:
<route streamCache="true">
<from uri="file://c:/tmp/trigger" />
<to uri="jdbc:datasourceCosima" />
<log message="done 1."/>
<to uri="direct:a" />
</route>
<route streamCache="true">
<from uri="direct:a" />
<to uri="file:blobdata" />
<log message="done 2."/>
</route>
To start it i place a file with the sql command in c:/tmp/trigger. The content is something like select bls_data from blob_storage where io_id='2fe0...'
This is the result:
[2016-02-18 12:44:15.539] INFO: org.apache.camel.util.CamelLogger log - done 1.
[2016-02-18 12:44:16.553] SEVERE: org.apache.camel.util.CamelLogger log - Failed delivery for (MessageId: ID-GHD13044-49732-1455793836517-2-2382 on ExchangeId: ID-GHD13044-49732-1455793836517-2-2381). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[org.apache.camel.component.file.GenericFileMessage#7a0613]
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[route9 ] [route9 ] [file://c:/tmp/trigger ] [ 1635]
[route9 ] [to13 ] [jdbc:datasourceCosima ] [ 822]
[route9 ] [log12 ] [log ] [ 1]
[route9 ] [to14 ] [direct:a ] [ 813]
[route10 ] [to15 ] [file:blobdata ] [ 812]
Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
Id ID-GHD13044-49732-1455793836517-2-2381
ExchangePattern InOnly
Headers {breadcrumbId=ID-GHD13044-49732-1455793836517-2-2380, CamelFileAbsolute=true, CamelFileAbsolutePath=c:\tmp\trigger\select.txt, CamelFileContentType=null, CamelFileLastModified=1455793414658, CamelFileLength=179, CamelFileName=select.txt, CamelFileNameConsumed=select.txt, CamelFileNameOnly=select.txt, CamelFileParent=c:\tmp\trigger, CamelFilePath=c:\tmp\trigger\select.txt, CamelFileRelativePath=select.txt, CamelJdbcColumnNames=[bls_data], CamelJdbcRowCount=1, CamelRedelivered=false, CamelRedeliveryCounter=0}
BodyType java.util.ArrayList
Body [{bls_data=255044462D312E360D25E2E3CFD30D0A3...
]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[org.apache.camel.component.file.GenericFileMessage#7a0613]
at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1635)
at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:308)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:433)
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:211)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:175)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.OutOfMemoryError: Java heap space
I thought that streamCache would do the job and cache the data on disc or whatever.
So the question is: How to get blob data from a database into a file without size restriction?