[jira] [Commented] (CAMEL-15177) Remove Camel-HDFS Karaf feature

2020-11-30 Thread Serge Shikov (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-15177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240593#comment-17240593
 ] 

Serge Shikov commented on CAMEL-15177:
--

>After upgrading to a newer version the Karaf

Is it possible to use it in older versions? 

> Remove Camel-HDFS Karaf feature
> ---
>
> Key: CAMEL-15177
> URL: https://issues.apache.org/jira/browse/CAMEL-15177
> Project: Camel
>  Issue Type: Task
>  Components: karaf
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.4.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CAMEL-15177) Remove Camel-HDFS Karaf feature

2020-11-30 Thread Serge Shikov (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-15177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240586#comment-17240586
 ] 

Serge Shikov commented on CAMEL-15177:
--

Ok, get it. So, its unrelated to CAMEL-15169, and this is generic issue with 
Hadoop and Karaf? And this is not possible to install Hadoop feature into Karaf 
for some reasons, right?

> Remove Camel-HDFS Karaf feature
> ---
>
> Key: CAMEL-15177
> URL: https://issues.apache.org/jira/browse/CAMEL-15177
> Project: Camel
>  Issue Type: Task
>  Components: karaf
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.4.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (CAMEL-15177) Remove Camel-HDFS Karaf feature

2020-11-30 Thread Serge Shikov (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-15177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240562#comment-17240562
 ] 

Serge Shikov edited comment on CAMEL-15177 at 11/30/20, 8:35 AM:
-

Can't understand the idea behind this task. Reason is camel-hdfs does not work 
on Camel Kafka Connector? And so what? If it doesn't work in some cases, why 
remove it? This is just karaf feature xml file, if for somebody it doesn't work 
for some reason - why somebody installed it?


was (Author: sshikov):
Can't understand the idea behind this task. Reason is camel-hdfs does not work 
on Camel Kafka Connector? And so what? If it doesn't work in some cases, why 
remove it? This is just karaf feature xml file, if for somebody it doesn't work 
for some reason - why somebody just uninstall it?

> Remove Camel-HDFS Karaf feature
> ---
>
> Key: CAMEL-15177
> URL: https://issues.apache.org/jira/browse/CAMEL-15177
> Project: Camel
>  Issue Type: Task
>  Components: karaf
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.4.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CAMEL-15177) Remove Camel-HDFS Karaf feature

2020-11-30 Thread Serge Shikov (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-15177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240562#comment-17240562
 ] 

Serge Shikov commented on CAMEL-15177:
--

Can't understand the idea behind this task. Reason is camel-hdfs does not work 
on Camel Kafka Connector? And so what? If it doesn't work in some cases, why 
remove it? This is just karaf feature xml file, if for somebody it doesn't work 
for some reason - why somebody just uninstall it?

> Remove Camel-HDFS Karaf feature
> ---
>
> Key: CAMEL-15177
> URL: https://issues.apache.org/jira/browse/CAMEL-15177
> Project: Camel
>  Issue Type: Task
>  Components: karaf
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.4.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (CAMEL-6060) spring-dm and blueprint - OSGi language resolver does not work

2014-05-15 Thread Serge Shikov (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13992717#comment-13992717
 ] 

Serge Shikov commented on CAMEL-6060:
-

Probably the same error for jsonpath language implementation:

{code}
2014-05-08 16:08:21,179 | ERROR | ExtenderThread-8 | ContextLoaderListener  
  | 141 - org.springframework.osgi.extender - 1.2.1 | Application context 
refresh failed (OsgiBundleXmlApplicationContext(bundle=cbonds-adapter, 
config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.RuntimeCamelException: 
org.apache.camel.FailedToCreateRouteException: Failed to create route 
update-route at: >>> Choice[[When[jsonpath{$.items} -> [Log[Json ${body}], 
process[ref:updateProcessor], To[mock:parsed]]], When[jsonpath{$.error} -> 
[Log[Json Error ${body}], Stop]]] Otherwise[[Log[Json Other ${body}], Stop]]] 
<<< in route: Route(update-route)[[From[direct:update-table]] -> [OnExcept... 
because of No language could be found for: jsonpath
at 
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)[144:org.apache.camel.camel-spring:2.13.0]
at 
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:316)[144:org.apache.camel.camel-spring:2.13.0]
at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)[127:org.springframework.context:3.2.4.RELEASE]
at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)[127:org.springframework.context:3.2.4.RELEASE]
at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)[127:org.springframework.context:3.2.4.RELEASE]
at 
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[140:org.springframework.osgi.core:1.2.1]
at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[140:org.springframework.osgi.core:1.2.1]
at 
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[140:org.springframework.osgi.core:1.2.1]
at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[140:org.springframework.osgi.core:1.2.1]
at 
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[141:org.springframework.osgi.extender:1.2.1]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_55]
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create 
route update-route at: >>> Choice[[When[jsonpath{$.items} -> [Log[Json 
${body}], process[ref:updateProcessor], To[mock:parsed]]], 
When[jsonpath{$.error} -> [Log[Json Error ${body}], Stop]]] Otherwise[[Log[Json 
Other ${body}], Stop]]] <<< in route: 
Route(update-route)[[From[direct:update-table]] -> [OnExcept... because of No 
language could be found for: jsonpath
at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:910)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:175)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:778)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2041)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1791)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1665)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1633)[136:org.apache.camel.camel-core:2.13.0]
at 
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:254)[144:org.apache.camel.camel-spring:2.13.0]
at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)[144:org.apache.camel.camel-spring:2.13.0]
... 10 more
Caused by: org.apache.camel.NoSuchLanguageException: No language could be found 
for: jsonpath
 

[jira] [Commented] (CAMEL-7409) Camel ZipIterator should not eat the IOException

2014-05-06 Thread Serge Shikov (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-7409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990746#comment-13990746
 ] 

Serge Shikov commented on CAMEL-7409:
-

Yes, probably ZipInputStream just can't read anything, but ZipFile could detect 
such corrupted zips.

What about something like in ZipIterator constructor?
{code}
try {
final ZipFile zipFile= new 
ZipFile(inputMessage.getBody(File.class));
final InputStream inputStream = 
inputMessage.getBody(InputStream.class);
if (inputStream instanceof ZipInputStream) {
zipInputStream = (ZipInputStream)inputStream;
} else {
zipInputStream = new ZipInputStream(new 
BufferedInputStream(inputStream));
}
} catch (ZipException e) {
LOGGER.error("ZipException", e);
zipInputStream= null;
// orthrow new RuntimeException("ZipException", e);
} catch (IOException e) {
LOGGER.error("IOException", e);
zipInputStream= null;
// or   throw new RuntimeException("IOException", e);
}
{code}

> Camel ZipIterator should not eat the IOException
> 
>
> Key: CAMEL-7409
> URL: https://issues.apache.org/jira/browse/CAMEL-7409
> Project: Camel
>  Issue Type: Bug
>Affects Versions: 2.13.0
>Reporter: Willem Jiang
>Assignee: Willem Jiang
> Fix For: 2.12.4, 2.13.1, 2.14.0
>
>
> If there are some thing wrong with the Zip file which is split by 
> ZipIterator, we cannot find any warning or exception from the camel route. We 
> should not let ZipIterator eat up the exception without do anything.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CAMEL-7409) Camel ZipIterator should not eat the IOException

2014-05-05 Thread Serge Shikov (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-7409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989663#comment-13989663
 ] 

Serge Shikov edited comment on CAMEL-7409 at 5/5/14 4:15 PM:
-

Willem, have you added corrupted zip file for testing? W/o it all tests passed 
as expected, but if you add corrupted zip file, tests will fail, w/o any errors:

{code}
testSplitter(org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest)  
Time elapsed: 2.186 sec  <<< FAILURE!
java.lang.AssertionError: mock://entry Received message count. Expected: <2> 
but was: <3>
at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
at 
org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
at 
org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest.testSplitter(ZipSplitterRouteIssueTest.java:39)

testSplitterWithWrongFile(org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest)
  Time elapsed: 11.211 sec  <<< FAILURE!
java.lang.AssertionError: mock://errors Received message count. Expected: <1> 
but was: <0>
at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
at 
org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
at 
org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest.testSplitterWithWrongFile(ZipSplitterRouteIssueTest.java:49)
{code}

Steps to reproduce: any file with .zip extension, or corrupted data.zip (in my 
tests I have removed 1st 2 bytes from data.zip).


was (Author: cp1):
Willem, have you added corrupted zip file for testing? W/o it all tests passed 
as expected, but if you add corrupted zip file, tests will fail, w/o any errors:

{code}
testSplitter(org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest)  
Time elapsed: 2.186 sec  <<< FAILURE!
java.lang.AssertionError: mock://entry Received message count. Expected: <2> 
but was: <3>
at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
at 
org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
at 
org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest.testSplitter(ZipSplitterRouteIssueTest.java:39)

testSplitterWithWrongFile(org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest)
  Time elapsed: 11.211 sec  <<< FAILURE!
java.lang.AssertionError: mock://errors Received message count. Expected: <1> 
but was: <0>
at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
at 
org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
at 
org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest.testSplitterWithWrongFile(ZipSplitterRouteIssueTest.java:49)
{code}

> Camel ZipIterator should not eat the IOException
> -

[jira] [Commented] (CAMEL-7409) Camel ZipIterator should not eat the IOException

2014-05-05 Thread Serge Shikov (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-7409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989663#comment-13989663
 ] 

Serge Shikov commented on CAMEL-7409:
-

Willem, have you added corrupted zip file for testing? W/o it all tests passed 
as expected, but if you add corrupted zip file, tests will fail, w/o any errors:

{code}
testSplitter(org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest)  
Time elapsed: 2.186 sec  <<< FAILURE!
java.lang.AssertionError: mock://entry Received message count. Expected: <2> 
but was: <3>
at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
at 
org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
at 
org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest.testSplitter(ZipSplitterRouteIssueTest.java:39)

testSplitterWithWrongFile(org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest)
  Time elapsed: 11.211 sec  <<< FAILURE!
java.lang.AssertionError: mock://errors Received message count. Expected: <1> 
but was: <0>
at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
at 
org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
at 
org.apache.camel.dataformat.zipfile.ZipSplitterRouteIssueTest.testSplitterWithWrongFile(ZipSplitterRouteIssueTest.java:49)
{code}

> Camel ZipIterator should not eat the IOException
> 
>
> Key: CAMEL-7409
> URL: https://issues.apache.org/jira/browse/CAMEL-7409
> Project: Camel
>  Issue Type: Bug
>Affects Versions: 2.13.0
>Reporter: Willem Jiang
>Assignee: Willem Jiang
> Fix For: 2.12.4, 2.13.1, 2.14.0
>
>
> If there are some thing wrong with the Zip file which is split by 
> ZipIterator, we cannot find any warning or exception from the camel route. We 
> should not let ZipIterator eat up the exception without do anything.



--
This message was sent by Atlassian JIRA
(v6.2#6252)