You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/08/30 12:22:37 UTC

[GitHub] [camel-quarkus] neoxu999 opened a new issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

neoxu999 opened a new issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054


   JdbcAggregationRepository requires  org.springframework.transaction.jta.JtaTransactionManager;
   
   The spring requires spring-text. So when build the app, it will show an error
    Caused by: java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    
   ```
    JdbcAggregationRepository aggregationRepository = new JdbcAggregationRepository(
                   new JtaTransactionManager(userTransaction, tm), "aggregation", dataSource);
                   
                   
   .aggregate(constant(true),new MyAggregationStrategy()).completionSize(5).aggregationRepository(aggregationRepository)
   ```
   


-- 
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



[GitHub] [camel-quarkus] ppalaga commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-908515844


   @neoxu999 I am missing the reproducer. One option would be to modify the integration test in https://github.com/apache/camel-quarkus/blob/main/integration-tests/sql so that it fails due to your issue. Alternatively, you could attach a self-contained reproducer - a ZIP file with a Maven project or a a git repository URL containing a reproducer project. 


-- 
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



[GitHub] [camel-quarkus] zhfeng commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-908378950


   This error is happening in native building ? I think we have a integration test with JdbcAggregationRepository and please check it with https://github.com/apache/camel-quarkus/blob/main/integration-tests/sql/src/main/java/org/apache/camel/quarkus/component/sql/it/SqlRoutes.java
   
   Also you should depend on ```camel-quarkus-sql``` and ```camel-quarkus-jta```.


-- 
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



[GitHub] [camel-quarkus] neoxu999 commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
neoxu999 commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-909735925


   Hi @zhfeng , I tried native and JVM. Both didn't work with JdbcAggregationRepository
   
   By the way, there is another issue with native "mvn clean package -Dnative"
   No instances of java.net.SocksSocketImpl are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use --trace-object-instantiation=java.net.SocksSocketImpl.
   
   It complains the class SocksSocketImpl. I looks like related to camel-quarkus-jta. For this kind build issue, do you have any suggestion please?
   


-- 
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



[GitHub] [camel-quarkus] ppalaga commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-908515844


   @neoxu999 I am missing the reproducer. One option would be to modify the integration test in https://github.com/apache/camel-quarkus/blob/main/integration-tests/sql so that it fails due to your issue. Alternatively, you could attach a self-contained reproducer - a ZIP file with a Maven project or a a git repository URL containing a reproducer project. 


-- 
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



[GitHub] [camel-quarkus] ppalaga commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-912431848


   You are welcome and thanks for reporting anyway!


-- 
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



[GitHub] [camel-quarkus] zhfeng commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-909765522


   Thanks @neoxu999 and it seems that you open a socket for listening at the build time which is not allowed in the native mode. Anyway, as @ppalaga mentioned, it would be very helpful for providing a reproducer for us. We can take a further look at the issue.


-- 
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



[GitHub] [camel-quarkus] zhfeng commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-909765522


   Thanks @neoxu999 and it seems that you open a socket for listening at the build time which is not allowed in the native mode. Anyway, as @ppalaga mentioned, it would be very helpful for providing a reproducer for us. We can take a further look at the issue.


-- 
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



[GitHub] [camel-quarkus] neoxu999 commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
neoxu999 commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-909736444


   Hi @ppalaga , thanks for the suggestion. I will download the source code and try it.


-- 
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



[GitHub] [camel-quarkus] neoxu999 commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
neoxu999 commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-911584781


   problem fixed by latest version. Thanks, @zhfeng , @ppalaga .


-- 
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



[GitHub] [camel-quarkus] neoxu999 closed issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
neoxu999 closed issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054


   


-- 
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



[GitHub] [camel-quarkus] zhfeng commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-908378950


   This error is happening in native building ? I think we have a integration test with JdbcAggregationRepository and please check it with https://github.com/apache/camel-quarkus/blob/main/integration-tests/sql/src/main/java/org/apache/camel/quarkus/component/sql/it/SqlRoutes.java
   
   Also you should depend on ```camel-quarkus-sql``` and ```camel-quarkus-jta```.


-- 
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



[GitHub] [camel-quarkus] neoxu999 commented on issue #3054: JdbcAggregationRepository build error by spring JtaTransactionManager

Posted by GitBox <gi...@apache.org>.
neoxu999 commented on issue #3054:
URL: https://github.com/apache/camel-quarkus/issues/3054#issuecomment-909735925






-- 
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