[jira] [Created] (CAMEL-11231) JSON Api Dataformat

2017-05-04 Thread Charles Moulliard (JIRA)
Charles Moulliard created CAMEL-11231:
-

 Summary: JSON Api Dataformat
 Key: CAMEL-11231
 URL: https://issues.apache.org/jira/browse/CAMEL-11231
 Project: Camel
  Issue Type: New Feature
Reporter: Charles Moulliard


Implement a new DataFormat to support to serialize/deserialize JSONApi 
Objects/Strings as defined within the spec : http://jsonapi.org/

Potential candidate projects to be evaluated :
- https://github.com/jasminb/jsonapi-converter
- https://github.com/faogustavo/JSONApi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (CAMEL-11229) Infinite recursion if exception happens inside exception handler

2017-05-04 Thread Christian Schneider (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schneider updated CAMEL-11229:

Summary: Infinite recursion if exception happens inside exception handler  
(was: Infinite loop if exception happens inside exception handler)

> Infinite recursion if exception happens inside exception handler
> 
>
> Key: CAMEL-11229
> URL: https://issues.apache.org/jira/browse/CAMEL-11229
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.3
>Reporter: Christian Schneider
>Assignee: Christian Schneider
> Fix For: 2.18.4
>
>
> Use an onException handler like this:
> onException(Throwable.class).to("direct:handle_er");
> from("direct:handle_er")..throwException(new RuntimeException());
> If the main route throws an exception then this will create an infinite 
> recursion of exceptions.
> I would expect that camel handles the exception inside an onException handler 
> differently. So the onException is not called again.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Comment Edited] (CAMEL-11216) REST-DSL - Producer fails with NPE or other exceptions if you have not set a hostname

2017-05-04 Thread Ramu kakarla (JIRA)

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

 Ramu kakarla edited comment on CAMEL-11216 at 5/4/17 3:28 PM:
---

Hi Claus,

I have reproduced the issue. By removing Host from restConfiguration 
restConfiguration().port(8080); gives Host value Null . This can be checked in 
populateRests method of RouteBuilder class

##
if (getRestConfigurations() != null) {
for (Map.Entry entry : 
getRestConfigurations().entrySet()) {
RestConfiguration config = 
entry.getValue().asRestConfiguration(getContext());
if ("".equals(entry.getKey())) {
if(entry.getValue().getHost()==null){
   throw new IllegalArgumentException("Host can't be 
null");
   
}
###
 Please verify this,so that I can raise pull req
Regards
Ramu


 








was (Author: kramu.k7):
Hi Claus,

I have reproduced the issue. By removing Host from restConfiguration 
restConfiguration().port(8080); gives Host value Null . This can be checked in 
populateRests method of RouteBuilder class

##
if (getRestConfigurations() != null) {
for (Map.Entry entry : 
getRestConfigurations().entrySet()) {
RestConfiguration config = 
entry.getValue().asRestConfiguration(getContext());
if ("".equals(entry.getKey())) {
if(entry.getValue().getHost()==null){
   throw new IllegalArgumentException("Host can't be 
null");
   
}
-  
  
##
 
 Please verify this,so that I can raise pull req
Regards
Ramu


 







> REST-DSL - Producer fails with NPE or other exceptions if you have not set a 
> hostname
> -
>
> Key: CAMEL-11216
> URL: https://issues.apache.org/jira/browse/CAMEL-11216
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-core
>Affects Versions: 2.19.0
>Reporter: Claus Ibsen
>
> If you forget to configure a host name then the rest producer fails with 
> different errors if you use http4, netty4-http, undertow etc.
> We should likely add some validation logic in the rest endpoint / rest 
> producer so it can detect this missing configuration and report this in the 
> same way.
> You can reproduce from this example by removing host at
> https://github.com/apache/camel/blob/master/examples/camel-example-rest-producer/src/main/java/sample/camel/RestRoute.java#L33



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-11216) REST-DSL - Producer fails with NPE or other exceptions if you have not set a hostname

2017-05-04 Thread Ramu kakarla (JIRA)

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

 Ramu kakarla commented on CAMEL-11216:
---

Hi Claus,

I have reproduced the issue. By removing Host from restConfiguration 
restConfiguration().port(8080); gives Host value Null . This can be checked in 
populateRests method of RouteBuilder class

##
if (getRestConfigurations() != null) {
for (Map.Entry entry : 
getRestConfigurations().entrySet()) {
RestConfiguration config = 
entry.getValue().asRestConfiguration(getContext());
if ("".equals(entry.getKey())) {
if(entry.getValue().getHost()==null){
   throw new IllegalArgumentException("Host can't be 
null");
   
}
-  
  
##
 
 Please verify this,so that I can raise pull req
Regards
Ramu


 







> REST-DSL - Producer fails with NPE or other exceptions if you have not set a 
> hostname
> -
>
> Key: CAMEL-11216
> URL: https://issues.apache.org/jira/browse/CAMEL-11216
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-core
>Affects Versions: 2.19.0
>Reporter: Claus Ibsen
>
> If you forget to configure a host name then the rest producer fails with 
> different errors if you use http4, netty4-http, undertow etc.
> We should likely add some validation logic in the rest endpoint / rest 
> producer so it can detect this missing configuration and report this in the 
> same way.
> You can reproduce from this example by removing host at
> https://github.com/apache/camel/blob/master/examples/camel-example-rest-producer/src/main/java/sample/camel/RestRoute.java#L33



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-11227) Simple expression colon in sql-stored component

2017-05-04 Thread Sami Nurminen (JIRA)

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

Sami Nurminen commented on CAMEL-11227:
---

https://github.com/apache/camel/pull/1673

> Simple expression colon in sql-stored component
> ---
>
> Key: CAMEL-11227
> URL: https://issues.apache.org/jira/browse/CAMEL-11227
> Project: Camel
>  Issue Type: Bug
>  Components: camel-sql
>Reporter: Sami Nurminen
> Fix For: 2.18.4, 2.20.0, 2.19.1
>
>
> Simple expression in sql-stored does not support colon
> See for details 
> https://stackoverflow.com/questions/43607569/simple-expression-in-sql-stored-component



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (CAMEL-11230) Allow to configure the prefix/suffix used for languages

2017-05-04 Thread Luca Burgazzoli (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luca Burgazzoli updated CAMEL-11230:

Description: 
It would be nice to have a way to configure the prefix/suffix used to parse 
languages so that an user can change the defaults in case they clash with other 
systems or because of personal preferences:

i.e.

{code:xml|title=XML Dsl|borderStyle=solid}
http://camel.apache.org/schema/spring;>












{code}

{code:title=Spring Boot properties|borderStyle=solid}
camel.language.properties.prefix = {{
camel.language.properties.suffix = {{

camel.language.simple.prefix = [[
camel.language.simple.suffix = ]]

camel.language.groovy.prefix = <<
camel.language.groovy.suffix = >>
{code}

  was:
It would be nice to have a way to configure the prefix/suffix used to parse 
languages so that an user can change the defaults in case they clash with other 
systems or because of personal preferences:

i.e.

{code:xml|title=XML Dsl|borderStyle=solid}
http://camel.apache.org/schema/spring;>











>
{code}


> Allow to configure the prefix/suffix used for languages
> ---
>
> Key: CAMEL-11230
> URL: https://issues.apache.org/jira/browse/CAMEL-11230
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core, camel-language
>Reporter: Luca Burgazzoli
>Priority: Minor
> Fix For: 3.0.0
>
>
> It would be nice to have a way to configure the prefix/suffix used to parse 
> languages so that an user can change the defaults in case they clash with 
> other systems or because of personal preferences:
> i.e.
> {code:xml|title=XML Dsl|borderStyle=solid}
> http://camel.apache.org/schema/spring;>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> {code:title=Spring Boot properties|borderStyle=solid}
> camel.language.properties.prefix = {{
> camel.language.properties.suffix = {{
> camel.language.simple.prefix = [[
> camel.language.simple.suffix = ]]
> camel.language.groovy.prefix = <<
> camel.language.groovy.suffix = >>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (CAMEL-11230) Allow to configure the prefix/suffix used for languages

2017-05-04 Thread Luca Burgazzoli (JIRA)
Luca Burgazzoli created CAMEL-11230:
---

 Summary: Allow to configure the prefix/suffix used for languages
 Key: CAMEL-11230
 URL: https://issues.apache.org/jira/browse/CAMEL-11230
 Project: Camel
  Issue Type: New Feature
  Components: camel-core, camel-language
Reporter: Luca Burgazzoli
Priority: Minor
 Fix For: 3.0.0


It would be nice to have a way to configure the prefix/suffix used to parse 
languages so that an user can change the defaults in case they clash with other 
systems or because of personal preferences:

i.e.

{code:xml|title=XML Dsl|borderStyle=solid}
http://camel.apache.org/schema/spring;>











>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (CAMEL-11230) Allow to configure the prefix/suffix used for languages

2017-05-04 Thread Luca Burgazzoli (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luca Burgazzoli updated CAMEL-11230:

Estimated Complexity: Advanced  (was: Unknown)

> Allow to configure the prefix/suffix used for languages
> ---
>
> Key: CAMEL-11230
> URL: https://issues.apache.org/jira/browse/CAMEL-11230
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core, camel-language
>Reporter: Luca Burgazzoli
>Priority: Minor
> Fix For: 3.0.0
>
>
> It would be nice to have a way to configure the prefix/suffix used to parse 
> languages so that an user can change the defaults in case they clash with 
> other systems or because of personal preferences:
> i.e.
> {code:xml|title=XML Dsl|borderStyle=solid}
> http://camel.apache.org/schema/spring;>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  {code}
> {code:title=Spring Boot properties|borderStyle=solid}
> camel.language.properties.prefix = {{
> camel.language.properties.suffix = {{
> camel.language.simple.prefix = [[
> camel.language.simple.suffix = ]]
> camel.language.groovy.prefix = <<
> camel.language.groovy.suffix = >>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (CAMEL-11201) camel-reactive-streams - Cannot create service in spring-boot

2017-05-04 Thread Nicola Ferraro (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Ferraro resolved CAMEL-11201.

Resolution: Fixed

The fix is present in the 2.19.0 CR.

> camel-reactive-streams - Cannot create service in spring-boot
> -
>
> Key: CAMEL-11201
> URL: https://issues.apache.org/jira/browse/CAMEL-11201
> Project: Camel
>  Issue Type: Bug
>  Components: camel-reactive-streams
>Affects Versions: 2.19.0
>Reporter: Nicola Ferraro
>Assignee: Nicola Ferraro
> Fix For: 2.19.0
>
>
> I've tried to run a reactive streams application on the preview of v. 2.19.0 
> and found a deadlock while instantiating the reactive-streams service (the 
> starter code and the CamelReactiveStreams class wait one for the other).
> It's strange, since the reactive streams examples are based on spring-boot. 
> I'm investigating. This may require a new release of camel 2.19.0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (CAMEL-11229) Infinite loop if exception happens inside exception handler

2017-05-04 Thread Christian Schneider (JIRA)
Christian Schneider created CAMEL-11229:
---

 Summary: Infinite loop if exception happens inside exception 
handler
 Key: CAMEL-11229
 URL: https://issues.apache.org/jira/browse/CAMEL-11229
 Project: Camel
  Issue Type: Bug
  Components: camel-core
Affects Versions: 2.18.3
Reporter: Christian Schneider
Assignee: Christian Schneider
 Fix For: 2.18.4


Use an onException handler like this:

onException(Throwable.class).to("direct:handle_er");
from("direct:handle_er")..throwException(new RuntimeException());

If the main route throws an exception then this will create an infinite 
recursion of exceptions.

I would expect that camel handles the exception inside an onException handler 
differently. So the onException is not called again.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (CAMEL-11218) Basic authentication not working when using camel cxf as producer

2017-05-04 Thread Claus Ibsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-11218.
-
Resolution: Not A Problem

> Basic authentication not working when using camel cxf as producer
> -
>
> Key: CAMEL-11218
> URL: https://issues.apache.org/jira/browse/CAMEL-11218
> Project: Camel
>  Issue Type: Bug
>  Components: camel-cxf, camel-cxfrs, documentation
>Affects Versions: 2.17.0
>Reporter: Saravanakumar Selvaraj
>
> According to http://camel.apache.org/cxf.html,  username and password options 
> can be set in cxfEndpoint from camel 2.13.2 onwards.
> When tried to create a producer endpoint like,
> {code:xml} address="http://localhost:8000/ws;
> serviceClass="com.mycompany.services.HelloWSService" 
> loggingFeatureEnabled="true" username="admin" password="admin"/>{code}
>  But it fails with following error
> {code}Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: 
> Attribute 'username' is not allowed to appear in element 
> 'camel-cxf:cxfEndpoint'.
> at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:201){code}
> It appears to be this username and password elements are applicable for cxfrs 
> component and not cxf component. 
> So the following documentations need to be corrected.
> http://camel.apache.org/cxfrs.html
> http://camel.apache.org/cxf.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-11218) Basic authentication not working when using camel cxf as producer

2017-05-04 Thread Claus Ibsen (JIRA)

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

Claus Ibsen commented on CAMEL-11218:
-

Those are options on the endpoint uri, not in the schema

> Basic authentication not working when using camel cxf as producer
> -
>
> Key: CAMEL-11218
> URL: https://issues.apache.org/jira/browse/CAMEL-11218
> Project: Camel
>  Issue Type: Bug
>  Components: camel-cxf, camel-cxfrs, documentation
>Affects Versions: 2.17.0
>Reporter: Saravanakumar Selvaraj
>
> According to http://camel.apache.org/cxf.html,  username and password options 
> can be set in cxfEndpoint from camel 2.13.2 onwards.
> When tried to create a producer endpoint like,
> {code:xml} address="http://localhost:8000/ws;
> serviceClass="com.mycompany.services.HelloWSService" 
> loggingFeatureEnabled="true" username="admin" password="admin"/>{code}
>  But it fails with following error
> {code}Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: 
> Attribute 'username' is not allowed to appear in element 
> 'camel-cxf:cxfEndpoint'.
> at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:201){code}
> It appears to be this username and password elements are applicable for cxfrs 
> component and not cxf component. 
> So the following documentations need to be corrected.
> http://camel.apache.org/cxfrs.html
> http://camel.apache.org/cxf.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-11221) camel-netty4-http cannot have a URL larger than 409 bytes by default, rather than the assumed 4096 byte limit

2017-05-04 Thread Claus Ibsen (JIRA)

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

Claus Ibsen commented on CAMEL-11221:
-

Yes it should be 4096. You are welcome to provide a fix as a github PR
https://github.com/apache/camel/

> camel-netty4-http cannot have a URL larger than 409 bytes by default, rather 
> than the assumed 4096 byte limit
> -
>
> Key: CAMEL-11221
> URL: https://issues.apache.org/jira/browse/CAMEL-11221
> Project: Camel
>  Issue Type: Bug
>  Components: camel-netty4-http
>Affects Versions: 2.18.3
>Reporter: Wayne Gilbert
> Fix For: 2.18.4, 2.20.0, 2.19.1
>
>
> https://github.com/apache/camel/blob/camel-2.19.x/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/HttpServerSharedInitializerFactory.java
> In function "initChannel" the call to new request decoder
> pipeline.addLast("decoder", new HttpRequestDecoder(409, 
> configuration.getMaxHeaderSize(), 8192));
> 409, should probably be 4096,
> This is set when using the init-method start on the bean below:
>class="org.apache.camel.component.netty4.http.DefaultNettySharedHttpServer"
>   init-method="start" destroy-method="stop">
>ref="configuration"/>
>   



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (CAMEL-11221) camel-netty4-http cannot have a URL larger than 409 bytes by default, rather than the assumed 4096 byte limit

2017-05-04 Thread Claus Ibsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-11221:

Fix Version/s: 2.19.1
   2.20.0
   2.18.4

> camel-netty4-http cannot have a URL larger than 409 bytes by default, rather 
> than the assumed 4096 byte limit
> -
>
> Key: CAMEL-11221
> URL: https://issues.apache.org/jira/browse/CAMEL-11221
> Project: Camel
>  Issue Type: Bug
>  Components: camel-netty4-http
>Affects Versions: 2.18.3
>Reporter: Wayne Gilbert
> Fix For: 2.18.4, 2.20.0, 2.19.1
>
>
> https://github.com/apache/camel/blob/camel-2.19.x/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/HttpServerSharedInitializerFactory.java
> In function "initChannel" the call to new request decoder
> pipeline.addLast("decoder", new HttpRequestDecoder(409, 
> configuration.getMaxHeaderSize(), 8192));
> 409, should probably be 4096,
> This is set when using the init-method start on the bean below:
>class="org.apache.camel.component.netty4.http.DefaultNettySharedHttpServer"
>   init-method="start" destroy-method="stop">
>ref="configuration"/>
>   



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (CAMEL-11227) Simple expression colon in sql-stored component

2017-05-04 Thread Claus Ibsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-11227:

Component/s: camel-sql

> Simple expression colon in sql-stored component
> ---
>
> Key: CAMEL-11227
> URL: https://issues.apache.org/jira/browse/CAMEL-11227
> Project: Camel
>  Issue Type: Bug
>  Components: camel-sql
>Reporter: Sami Nurminen
> Fix For: 2.18.4, 2.20.0, 2.19.1
>
>
> Simple expression in sql-stored does not support colon
> See for details 
> https://stackoverflow.com/questions/43607569/simple-expression-in-sql-stored-component



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (CAMEL-11227) Simple expression colon in sql-stored component

2017-05-04 Thread Claus Ibsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/CAMEL-11227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-11227:

Fix Version/s: 2.19.1
   2.20.0
   2.18.4

> Simple expression colon in sql-stored component
> ---
>
> Key: CAMEL-11227
> URL: https://issues.apache.org/jira/browse/CAMEL-11227
> Project: Camel
>  Issue Type: Bug
>  Components: camel-sql
>Reporter: Sami Nurminen
> Fix For: 2.18.4, 2.20.0, 2.19.1
>
>
> Simple expression in sql-stored does not support colon
> See for details 
> https://stackoverflow.com/questions/43607569/simple-expression-in-sql-stored-component



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (CAMEL-10026) HealthCheck API

2017-05-04 Thread Nicola Ferraro (JIRA)

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

Nicola Ferraro commented on CAMEL-10026:


To stress the importance of this feature I'd like to share this (inspiring) 
talk of Kelsey Hightower about the importance of health checks: 
https://vimeo.com/173610242.

If we want to make camel ready for "cloud native" apps, we need this...

> HealthCheck API
> ---
>
> Key: CAMEL-10026
> URL: https://issues.apache.org/jira/browse/CAMEL-10026
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core
>Reporter: Claus Ibsen
> Fix For: 2.20.0
>
>
> Add a health check API to camel-core so this API can be queried from Java / 
> JMX / spring-boot etc. so users can easily get a health check. This can be 
> used for liveness/readiness checks for their Camel apps.
> The API should allow optional support for components to implement custom 
> logic for health check. So a FTP component can connect to a FTP server and do 
> a FTP list etc. A JDBC component does a SQL query, and so on.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)