You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "jamesnetherton (via GitHub)" <gi...@apache.org> on 2024/03/19 09:46:10 UTC

[I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

jamesnetherton opened a new issue, #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893

   ### Bug description
   
   Since https://github.com/apache/camel/pull/13481, there's a few places that interrogate the catalog which fail with:
   
   ```
   Caused by: java.lang.IllegalArgumentException: Unexpected kind model
       at org.apache.camel.catalog.CamelCatalog.model (CamelCatalog.java:620)
   ```
   
   `CamelCatalog` is lacking some case clauses for `model`  here:
   
   https://github.com/apache/camel/blob/main/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java#L229-L248
   
   And here:
   
   https://github.com/apache/camel/blob/main/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java#L601-L620
   
   @lburgazzoli can you help with this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "JiriOndrusek (via GitHub)" <gi...@apache.org>.
JiriOndrusek commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2006881539

   > I would probably add an additional filter here: https://github.com/apache/camel-quarkus/blob/camel-main/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java#L225-L228 to also exclude `model` as model in fact were not included before anyhow, so I can try to figure out on the camel catalog side how to better handle it
   
   Thanks for the suggestion. I added change you described into `camel-main`. Do I understand correctly, that it is only temporary solution and should be removed once it is fixed on Camel side?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2011640085

   Yeah some new types have been added


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2006700755

   I can send a PR later on, but I'll be AFK for some time now 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2006580274

   Example here:
   
   https://github.com/apache/camel-quarkus/actions/runs/8340782266/job/22825442309
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2006693226

   I would probably add an additional filter here: https://github.com/apache/camel-quarkus/blob/camel-main/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java#L225-L228 to also exclude `model`, so I can try to figure out on the camel catalog side how to better handle it as model in fact were not included before anyhow


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "JiriOndrusek (via GitHub)" <gi...@apache.org>.
JiriOndrusek commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2011638470

   @lburgazzoli I had to add the same kind of exclusion for `Kind.bean`, Otherwise I was getting:
   ```
   Execution update-extension-doc-page of goal org.apache.camel.quarkus:camel-quarkus-maven-plugin:3.9.0-SNAPSHOT:update-extension-doc-page failed: Unexpected kind bean 
   ```
    (from https://github.com/apache/camel/blob/main/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java#L632)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton closed issue #5893: Catalog throws IllegalArgumentException: Unexpected kind model
URL: https://github.com/apache/camel-quarkus/issues/5893


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2006558815

   @jamesnetherton sure, do you have a link to a failure ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [camel-main] Catalog throws IllegalArgumentException: Unexpected kind model [camel-quarkus]

Posted by "lburgazzoli (via GitHub)" <gi...@apache.org>.
lburgazzoli commented on issue #5893:
URL: https://github.com/apache/camel-quarkus/issues/5893#issuecomment-2007206599

   @JiriOndrusek I need to investigate it a little bit more, it looks like the kind model was somehow mentioned but never used in practice.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org