[jira] [Commented] (ARIES-1995) [blueprint core] importing spring context with custom namespace does not wait for NamespaceHandler to be registered

2021-02-12 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/ARIES-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17284096#comment-17284096
 ] 

ASF subversion and git services commented on ARIES-1995:


Commit b79c449bce2ed372ebdaa4124ba9bde057983be1 in aries's branch 
refs/heads/trunk from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=aries.git;h=b79c449 ]

Merge pull request #111 from amergey/trunk-with-additional-namespace

ARIES-1995 ability to force waiting for custom namespace handlers

> [blueprint core] importing spring context with custom namespace does not wait 
> for NamespaceHandler to be registered
> ---
>
> Key: ARIES-1995
> URL: https://issues.apache.org/jira/browse/ARIES-1995
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-core-1.10.2
>Reporter: Arnaud MERGEY
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: blueprint-core-1.10.3
>
>
> In a blueprint application importing spring context with custom namespace 
> using aries blueprint-spring integration does not wait for custom namespace.
> For example 
> with this blueprint context
> {code:java}
> http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xmlns:spring="http://www.springframework.org/schema/beans; 
> xmlns:context="http://www.springframework.org/schema/context; 
> xmlns:security="http://www.springframework.org/schema/security; 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0         
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd         
> http://www.springframework.org/schema/beans                         
> http://www.springframework.org/schema/beans/spring-beans.xsd; 
> default-activation="eager" default-availability="mandatory">
>  {code}
> importing this spring context
> {code:java}
> http://www.springframework.org/schema/security; xmlns="http://www.springframework.org/schema/security;  
> xmlns:b="http://www.springframework.org/schema/beans;  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;  
> xsi:schemaLocation="http://www.springframework.org/schema/beans 
> https://www.springframework.org/schema/beans/spring-beans.xsd 
> http://www.springframework.org/schema/security 
> https://www.springframework.org/schema/security/spring-security.xsd;>
> class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
>/> 
> {code}
> fails with this stacktrace:
> {code:java}
> java.lang.RuntimeException: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Unable to locate Spring NamespaceHandler for XML 
> schema namespace [http://www.springframework.org/schema/security] Offending 
> resource: class path resource [spring/security.xml] at 
> org.apache.aries.blueprint.spring.BlueprintNamespaceHandler.parse(BlueprintNamespaceHandler.java:132)
>  at 
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369) 
> at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427) 
> at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371)
>  at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
>  at 
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at 

[jira] [Resolved] (ARIES-1995) [blueprint core] importing spring context with custom namespace does not wait for NamespaceHandler to be registered

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré resolved ARIES-1995.
-
Resolution: Fixed

> [blueprint core] importing spring context with custom namespace does not wait 
> for NamespaceHandler to be registered
> ---
>
> Key: ARIES-1995
> URL: https://issues.apache.org/jira/browse/ARIES-1995
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-core-1.10.2
>Reporter: Arnaud MERGEY
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: blueprint-core-1.10.3
>
>
> In a blueprint application importing spring context with custom namespace 
> using aries blueprint-spring integration does not wait for custom namespace.
> For example 
> with this blueprint context
> {code:java}
> http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xmlns:spring="http://www.springframework.org/schema/beans; 
> xmlns:context="http://www.springframework.org/schema/context; 
> xmlns:security="http://www.springframework.org/schema/security; 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0         
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd         
> http://www.springframework.org/schema/beans                         
> http://www.springframework.org/schema/beans/spring-beans.xsd; 
> default-activation="eager" default-availability="mandatory">
>  {code}
> importing this spring context
> {code:java}
> http://www.springframework.org/schema/security; xmlns="http://www.springframework.org/schema/security;  
> xmlns:b="http://www.springframework.org/schema/beans;  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;  
> xsi:schemaLocation="http://www.springframework.org/schema/beans 
> https://www.springframework.org/schema/beans/spring-beans.xsd 
> http://www.springframework.org/schema/security 
> https://www.springframework.org/schema/security/spring-security.xsd;>
> class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
>/> 
> {code}
> fails with this stacktrace:
> {code:java}
> java.lang.RuntimeException: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Unable to locate Spring NamespaceHandler for XML 
> schema namespace [http://www.springframework.org/schema/security] Offending 
> resource: class path resource [spring/security.xml] at 
> org.apache.aries.blueprint.spring.BlueprintNamespaceHandler.parse(BlueprintNamespaceHandler.java:132)
>  at 
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369) 
> at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427) 
> at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371)
>  at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
>  at 
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748) Caused by: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> 

[GitHub] [aries] jbonofre merged pull request #111: ARIES-1995 ability to force waiting for custom namespace handlers

2021-02-12 Thread GitBox


jbonofre merged pull request #111:
URL: https://github.com/apache/aries/pull/111


   



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.

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




[jira] [Commented] (ARIES-1995) [blueprint core] importing spring context with custom namespace does not wait for NamespaceHandler to be registered

2021-02-12 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/ARIES-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17284095#comment-17284095
 ] 

ASF subversion and git services commented on ARIES-1995:


Commit cc82cfbf40937054275a82b64561ed3bf6aa2843 in aries's branch 
refs/heads/trunk from arnaud-mergey
[ https://gitbox.apache.org/repos/asf?p=aries.git;h=cc82cfb ]

ARIES-1995 ability to force waiting for custom namespace handlers


> [blueprint core] importing spring context with custom namespace does not wait 
> for NamespaceHandler to be registered
> ---
>
> Key: ARIES-1995
> URL: https://issues.apache.org/jira/browse/ARIES-1995
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-core-1.10.2
>Reporter: Arnaud MERGEY
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: blueprint-core-1.10.3
>
>
> In a blueprint application importing spring context with custom namespace 
> using aries blueprint-spring integration does not wait for custom namespace.
> For example 
> with this blueprint context
> {code:java}
> http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xmlns:spring="http://www.springframework.org/schema/beans; 
> xmlns:context="http://www.springframework.org/schema/context; 
> xmlns:security="http://www.springframework.org/schema/security; 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0         
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd         
> http://www.springframework.org/schema/beans                         
> http://www.springframework.org/schema/beans/spring-beans.xsd; 
> default-activation="eager" default-availability="mandatory">
>  {code}
> importing this spring context
> {code:java}
> http://www.springframework.org/schema/security; xmlns="http://www.springframework.org/schema/security;  
> xmlns:b="http://www.springframework.org/schema/beans;  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;  
> xsi:schemaLocation="http://www.springframework.org/schema/beans 
> https://www.springframework.org/schema/beans/spring-beans.xsd 
> http://www.springframework.org/schema/security 
> https://www.springframework.org/schema/security/spring-security.xsd;>
> class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
>/> 
> {code}
> fails with this stacktrace:
> {code:java}
> java.lang.RuntimeException: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Unable to locate Spring NamespaceHandler for XML 
> schema namespace [http://www.springframework.org/schema/security] Offending 
> resource: class path resource [spring/security.xml] at 
> org.apache.aries.blueprint.spring.BlueprintNamespaceHandler.parse(BlueprintNamespaceHandler.java:132)
>  at 
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369) 
> at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427) 
> at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371)
>  at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
>  at 
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748) Caused by: 
> 

[GitHub] [aries] jbonofre commented on pull request #110: ARIES-1993 support for spring/spring-security 5

2021-02-12 Thread GitBox


jbonofre commented on pull request #110:
URL: https://github.com/apache/aries/pull/110#issuecomment-778571560


   It seems it doesn't compile:
   
   ```
   BlueprintBeanFactory.java:[299,44]  is 
not abstract and does not override abstract method iterator() in 
java.lang.Iterable
   ```



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.

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




[jira] [Updated] (ARIES-1990) Hardcoded starting bundle timeout to 60 second

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré updated ARIES-1990:

Fix Version/s: blueprint-core-1.10.3

> Hardcoded starting bundle timeout to 60 second
> --
>
> Key: ARIES-1990
> URL: https://issues.apache.org/jira/browse/ARIES-1990
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-core-1.10.2
>Reporter: nizar.ben.mansour
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: blueprint-core-1.10.3
>
>
> Hello,
> in BlueprintEventDispatcher ,we have 60 second as timeout .This will apply 
> when starting a bundle.
>  
> {code:java}
> private void callListener(final BlueprintListener listener, final 
> BlueprintEvent event) throws RejectedExecutionException {
>  try {
>  executor.invokeAny(Collections.>singleton(new 
> Callable() {
>  public Void call() throws Exception {
>  listener.blueprintEvent(event);
>  return null;
>  }
>  }), 60L, TimeUnit.SECONDS);
>  } catch (InterruptedException ie) {
>  LOGGER.warn("Thread interrupted", ie);
>  Thread.currentThread().interrupt();
>  } catch (TimeoutException te) {
>  LOGGER.warn("Listener timed out, will be ignored", te);
>  listeners.remove(listener);
>  } catch (ExecutionException ee) {
>  LOGGER.warn("Listener caused an exception, will be ignored", ee);
>  listeners.remove(listener);
>  }
>  }{code}
>  
>  
> We are having an issue that results in a warning for a 
> java.util.concurrent.TimeoutException.
>  
> {code:java}
> 2020-07-21T11:58:00,852 | DEBUG | ActiveMQ InactivityMonitor Worker | 
> AbstractInactivityMonitor        | 97 - org.apache.activemq.activemq-osgi - 
> 5.15.9 | Running WriteCheck[tcp://10.68.248.156:61616]2020-07-21T11:58:00,852 
> | DEBUG | ActiveMQ InactivityMonitor Worker | AbstractInactivityMonitor       
>  | 97 - org.apache.activemq.activemq-osgi - 5.15.9 | Running 
> WriteCheck[tcp://10.68.248.156:61616]2020-07-21T11:58:00,853 | DEBUG | 
> HikariPool-2 housekeeper | HikariPool                       | 63 - 
> com.zaxxer.HikariCP - 2.4.11 | HikariPool-2 - Pool stats (total=10, active=0, 
> idle=10, waiting=0)2020-07-21T11:58:01,878 | WARN  | FelixStartLevel  | 
> BlueprintEventDispatcher         | 100 - org.apache.aries.blueprint.core - 
> 1.10.2 | Listener timed out, will be 
> ignoredjava.util.concurrent.TimeoutException: null at 
> java.util.concurrent.AbstractExecutorService.doInvokeAny(AbstractExecutorService.java:184)
>  ~[?:?] at 
> java.util.concurrent.AbstractExecutorService.invokeAny(AbstractExecutorService.java:225)
>  ~[?:?] at 
> org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper$4.call(ScheduledExecutorServiceWrapper.java:185)
>  ~[100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper$15.call(ScheduledExecutorServiceWrapper.java:446)
>  ~[100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.utils.threading.RWLock.runReadOperation(RWLock.java:33)
>  ~[100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper.runUnlessShutdown(ScheduledExecutorServiceWrapper.java:443)
>  ~[100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper.invokeAny(ScheduledExecutorServiceWrapper.java:180)
>  ~[100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintEventDispatcher.callListener(BlueprintEventDispatcher.java:188)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintEventDispatcher.callListeners(BlueprintEventDispatcher.java:178)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintEventDispatcher.blueprintEvent(BlueprintEventDispatcher.java:133)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:447)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:311)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:280)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276)
>  [100:org.apache.aries.blueprint.core:1.10.2] at 
> 

[jira] [Updated] (ARIES-1967) JAXRS Resource doesn't register anymore

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré updated ARIES-1967:

Fix Version/s: jax-rs-whiteboard-1.0.11

> JAXRS Resource doesn't register anymore
> ---
>
> Key: ARIES-1967
> URL: https://issues.apache.org/jira/browse/ARIES-1967
> Project: Aries
>  Issue Type: Bug
>  Components: jax-rs-whiteboard
>Affects Versions: jax-rs-whiteboard-1.0.7
>Reporter: Jean-Baptiste Onofré
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: jax-rs-whiteboard-1.0.11
>
>
> The following example works fine with Aries JAX-RS Whiteboard 1.0.6: 
> [https://github.com/apache/karaf/tree/master/examples/karaf-rest-example/karaf-rest-example-whiteboard]
> However, it doesn't work anymore with 1.0.7: the jaxrs resource is not 
> registered at all (nothing displayed in {{http:list}}).
> It might be related to CXF change or whiteboard. I will fix that.



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


[jira] [Assigned] (ARIES-1970) ClassCastException in Karaf ITests when using CXF JAX-RS WebClient and Whiteboard

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré reassigned ARIES-1970:
---

Assignee: Jean-Baptiste Onofré

> ClassCastException in Karaf ITests when using CXF JAX-RS WebClient and 
> Whiteboard
> -
>
> Key: ARIES-1970
> URL: https://issues.apache.org/jira/browse/ARIES-1970
> Project: Aries
>  Issue Type: Bug
>  Components: jax-rs-whiteboard
>Affects Versions: jax-rs-whiteboard-1.0.5, jax-rs-whiteboard-1.0.7, 
> jax-rs-whiteboard-1.0.6
> Environment: Karaf 4.3.0.RC1 (with default CXF: 3.3.5) + Whiteboard 
> 1.0.6 (with default CXF: 3.2.5)
> Karaf 4.3.0.RC1 (rebuilt with CXF: 3.2.5) + Whiteboard 1.0.6 (with default 
> CXF: 3.2.5)
> Karaf 4.2.6 + Whiteboard 1.0.5
>Reporter: Alexey Ivanov
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> Could be related with https://issues.apache.org/jira/browse/ARIES-1969
> May be caused by mixed up classes from different OSGi classpathes (repackaged 
> CXF copy in Whiteboard and CXF copy from jax-rs) due to to CXF singletones or 
> Karaf+Pax-Exam dynamic packages.
> Bug disappears after we moved out repackaged CXF from Aries JAX-RR Whiteboard 
> into external dependency.
> Steps to reproduce:
> {code:java}
> Deploy whiteboard example from karaf-rest-example-whiteboard
> Deploy cxf-jaxrs
> Create org.apache.cxf.jaxrs.client.WebClient. E.g. WebClient client = 
> WebClient.create(address); 
> Then ClassCastException occurs
> {code}
>  
> {code:java}
> java.lang.RuntimeException: java.lang.ClassCastException: Cannot cast 
> org.apache.cxf.bus.managers.ClientLifeCycleManagerImpl to 
> org.apache.cxf.endpoint.ClientLifeCycleManager
>  at 
> org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:234)
>  at org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:115)
>  at 
> org.apache.karaf.itests.examples.RestExampleTest.testWhiteboardWithCxfWebClient(RestExampleTest.java:180)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
>  at 
> org.apache.karaf.itests.KarafTestSupport$Retry$1.evaluate(KarafTestSupport.java:139)
>  at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runLeafWithRetry(ContainerTestRunner.java:97)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:43)
>  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>  at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>  at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:92)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> 

[jira] [Updated] (ARIES-1970) ClassCastException in Karaf ITests when using CXF JAX-RS WebClient and Whiteboard

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré updated ARIES-1970:

Fix Version/s: jax-rs-whiteboard-1.0.11

> ClassCastException in Karaf ITests when using CXF JAX-RS WebClient and 
> Whiteboard
> -
>
> Key: ARIES-1970
> URL: https://issues.apache.org/jira/browse/ARIES-1970
> Project: Aries
>  Issue Type: Bug
>  Components: jax-rs-whiteboard
>Affects Versions: jax-rs-whiteboard-1.0.5, jax-rs-whiteboard-1.0.7, 
> jax-rs-whiteboard-1.0.6
> Environment: Karaf 4.3.0.RC1 (with default CXF: 3.3.5) + Whiteboard 
> 1.0.6 (with default CXF: 3.2.5)
> Karaf 4.3.0.RC1 (rebuilt with CXF: 3.2.5) + Whiteboard 1.0.6 (with default 
> CXF: 3.2.5)
> Karaf 4.2.6 + Whiteboard 1.0.5
>Reporter: Alexey Ivanov
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: jax-rs-whiteboard-1.0.11
>
>
> Could be related with https://issues.apache.org/jira/browse/ARIES-1969
> May be caused by mixed up classes from different OSGi classpathes (repackaged 
> CXF copy in Whiteboard and CXF copy from jax-rs) due to to CXF singletones or 
> Karaf+Pax-Exam dynamic packages.
> Bug disappears after we moved out repackaged CXF from Aries JAX-RR Whiteboard 
> into external dependency.
> Steps to reproduce:
> {code:java}
> Deploy whiteboard example from karaf-rest-example-whiteboard
> Deploy cxf-jaxrs
> Create org.apache.cxf.jaxrs.client.WebClient. E.g. WebClient client = 
> WebClient.create(address); 
> Then ClassCastException occurs
> {code}
>  
> {code:java}
> java.lang.RuntimeException: java.lang.ClassCastException: Cannot cast 
> org.apache.cxf.bus.managers.ClientLifeCycleManagerImpl to 
> org.apache.cxf.endpoint.ClientLifeCycleManager
>  at 
> org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:234)
>  at org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:115)
>  at 
> org.apache.karaf.itests.examples.RestExampleTest.testWhiteboardWithCxfWebClient(RestExampleTest.java:180)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
>  at 
> org.apache.karaf.itests.KarafTestSupport$Retry$1.evaluate(KarafTestSupport.java:139)
>  at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runLeafWithRetry(ContainerTestRunner.java:97)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:43)
>  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>  at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>  at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
>  at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:92)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> 

[jira] [Updated] (ARIES-1969) Aries JAX-RS Whiteboard causes ClassCastException for bundles where CXF is used

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré updated ARIES-1969:

Fix Version/s: jax-rs-whiteboard-1.0.11

> Aries JAX-RS Whiteboard causes ClassCastException for bundles where CXF is 
> used
> ---
>
> Key: ARIES-1969
> URL: https://issues.apache.org/jira/browse/ARIES-1969
> Project: Aries
>  Issue Type: Bug
>  Components: jax-rs-whiteboard
>Affects Versions: jax-rs-whiteboard-1.0.5, jax-rs-whiteboard-1.0.7, 
> jax-rs-whiteboard-1.0.6
> Environment: Environment: Karaf 4.2.8
> CXF: 3.3.4
>  
>  
>Reporter: Joao Assuncao
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: jax-rs-whiteboard-1.0.11
>
>
> Installing a bundle where CXF is used, for example, a SOAP web service, while 
> jax-rs-whiteboard is running will result in class cast exceptions. 
> This only happens if the bundle providing the SOAP WS starts after 
> jax-rs-whiteboard. This is probably a result of repacked extensions in 
> jax-rs-whiteboard getting registered.
> Steps to reproduce:
>  
> {noformat}
> feature:install aries-jax-rs-whiteboard
> install -s mvn:org.apache.karaf.examples/karaf-soap-example-api/4.2.8
> install -s mvn:org.apache.karaf.examples/karaf-soap-example-scr/4.2.8 
> {noformat}
>  
> {noformat}
> 2020-01-24T09:59:09,996 | ERROR | pipe-restart 221 | karaf-soap-example-scr   
> | 221 - org.apache.karaf.examples.karaf-soap-example-scr - 4.2.8 | 
> bundle org.apache.karaf.examples.karaf-soap-example-scr:4.2.8 (221)[org.
> apache.karaf.examples.soap.scr.SoapService(44)] : The activate method has 
> thrown an exception
> java.lang.ClassCastException: Cannot cast 
> org.apache.cxf.service.factory.FactoryBeanListenerManager to 
> org.apache.cxf.service.factory.FactoryBeanListenerManager
> at java.lang.Class.cast(Class.java:3369) ~[?:1.8.0_144]
> at 
> org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeanOfType(ExtensionManagerImpl.java:307)
>  ~[?:?]
> at 
> org.apache.cxf.bus.extension.ExtensionManagerBus.getExtension(ExtensionManagerBus.java:181)
>  ~[?:?]
> at 
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.setBus(AbstractServiceFactoryBean.java:98)
>  ~[?:?]
> at 
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:248)
>  ~[?:?]
> at 
> org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory(ServerFactoryBean.java:238)
>  ~[?:?]
> at 
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
>  ~[?:?]
> at 
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168) 
> ~[?:?]
> at 
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
>  ~[?:?]
> at 
> org.apache.karaf.examples.soap.scr.SoapService.activate(SoapService.java:38) 
> ~[?:?]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_144]
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_144]
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_144]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
> at 
> org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
>  ~[!/:?]
> {noformat}
>  
>  
>  



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


[jira] [Resolved] (ARIES-1932) Karaf feature lacks the "features" classifier

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré resolved ARIES-1932.
-
Resolution: Not A Problem

> Karaf feature lacks the "features" classifier
> -
>
> Key: ARIES-1932
> URL: https://issues.apache.org/jira/browse/ARIES-1932
> Project: Aries
>  Issue Type: Bug
>  Components: jax-rs-whiteboard
>Affects Versions: jax-rs-whiteboard-1.0.4, jax-rs-whiteboard-1.0.5, 
> jax-rs-whiteboard-1.0.6
> Environment: Karaf plugin version: 4.1.7
>  
>Reporter: Joao Assuncao
>Priority: Major
>
> The jax-rs-whiteboard  Karaf feature cannot be used when building a custom 
> Karaf distribution. 
> During assembly, karaf-maven-plugin will fail with an error complaining that 
> aries-jax-rs-whiteboard can't be found.
> Adding the features to the attach-artifact 
> configuration fixes this issue.



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


[jira] [Resolved] (ARIES-1943) TopologyManagerImport assumes all referenced ImportRegistrations are not closed

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré resolved ARIES-1943.
-
Fix Version/s: rsa-1.15.0
   Resolution: Fixed

> TopologyManagerImport assumes all referenced ImportRegistrations are not 
> closed
> ---
>
> Key: ARIES-1943
> URL: https://issues.apache.org/jira/browse/ARIES-1943
> Project: Aries
>  Issue Type: Bug
>  Components: Remote Service Admin
>Affects Versions: rsa-1.14.0
>Reporter: Arnoud Glimmerveen
>Priority: Major
> Fix For: rsa-1.15.0
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> When an ImportRegistration is closed, all other methods must return null. 
> Obtaining for instance the ImportReference after close is therefor not 
> possible and the associated getter is expected to return null.
> The current importer logic appears to assume that at least the 
> ImportReference can always be obtained. This holds true when assuming that 
> only a single thread performs the import task, however de current 
> implementation uses up to 10 Threads. In that case whilst one Thread is busy 
> closing an ImportRegistration, another may already have the reference to it 
> and without the check for null will run into a NPE.
> Note that apparently the Apache Aries RSA implementation does not have 
> ImportRegistration.getImportReference() return null after close, which is I 
> guess the reason why this has gone unnoticed. Looking at the 
> [spec|https://osgi.org/specification/osgi.cmpn/7.0.0/service.remoteserviceadmin.html#org.osgi.service.remoteserviceadmin.ImportRegistration]
>  this in itself should also be considered a bug.



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


[jira] [Resolved] (ARIES-1887) org.apache.aries.transaction.blueprint is not thread safe

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré resolved ARIES-1887.
-
Resolution: Fixed

> org.apache.aries.transaction.blueprint is not thread safe
> -
>
> Key: ARIES-1887
> URL: https://issues.apache.org/jira/browse/ARIES-1887
> Project: Aries
>  Issue Type: Bug
>  Components: Transaction
>Affects Versions: transaction-blueprint-2.2.0
>Reporter: Nicolas Dutertry
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: transaction-blueprint-2.3.0
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The class ComponentTxData in org.apache.aries.transaction.blueprint uses a 
> HashMap
> {code:java}
> private Map txMap = new 
> HashMap();{code}
> This is very dangerous because txMap can be modified and accessed after 
> initialization.
> It should be replaced with a ConcurrentHashMap.



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


[jira] [Updated] (ARIES-1995) [blueprint core] importing spring context with custom namespace does not wait for NamespaceHandler to be registered

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré updated ARIES-1995:

Fix Version/s: blueprint-core-1.10.3

> [blueprint core] importing spring context with custom namespace does not wait 
> for NamespaceHandler to be registered
> ---
>
> Key: ARIES-1995
> URL: https://issues.apache.org/jira/browse/ARIES-1995
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-core-1.10.2
>Reporter: Arnaud MERGEY
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: blueprint-core-1.10.3
>
>
> In a blueprint application importing spring context with custom namespace 
> using aries blueprint-spring integration does not wait for custom namespace.
> For example 
> with this blueprint context
> {code:java}
> http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xmlns:spring="http://www.springframework.org/schema/beans; 
> xmlns:context="http://www.springframework.org/schema/context; 
> xmlns:security="http://www.springframework.org/schema/security; 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0         
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd         
> http://www.springframework.org/schema/beans                         
> http://www.springframework.org/schema/beans/spring-beans.xsd; 
> default-activation="eager" default-availability="mandatory">
>  {code}
> importing this spring context
> {code:java}
> http://www.springframework.org/schema/security; xmlns="http://www.springframework.org/schema/security;  
> xmlns:b="http://www.springframework.org/schema/beans;  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;  
> xsi:schemaLocation="http://www.springframework.org/schema/beans 
> https://www.springframework.org/schema/beans/spring-beans.xsd 
> http://www.springframework.org/schema/security 
> https://www.springframework.org/schema/security/spring-security.xsd;>
> class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
>/> 
> {code}
> fails with this stacktrace:
> {code:java}
> java.lang.RuntimeException: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Unable to locate Spring NamespaceHandler for XML 
> schema namespace [http://www.springframework.org/schema/security] Offending 
> resource: class path resource [spring/security.xml] at 
> org.apache.aries.blueprint.spring.BlueprintNamespaceHandler.parse(BlueprintNamespaceHandler.java:132)
>  at 
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369) 
> at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427) 
> at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371)
>  at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
>  at 
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748) Caused by: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> 

[jira] [Assigned] (ARIES-1995) [blueprint core] importing spring context with custom namespace does not wait for NamespaceHandler to be registered

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré reassigned ARIES-1995:
---

Assignee: Jean-Baptiste Onofré

> [blueprint core] importing spring context with custom namespace does not wait 
> for NamespaceHandler to be registered
> ---
>
> Key: ARIES-1995
> URL: https://issues.apache.org/jira/browse/ARIES-1995
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-core-1.10.2
>Reporter: Arnaud MERGEY
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> In a blueprint application importing spring context with custom namespace 
> using aries blueprint-spring integration does not wait for custom namespace.
> For example 
> with this blueprint context
> {code:java}
> http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xmlns:spring="http://www.springframework.org/schema/beans; 
> xmlns:context="http://www.springframework.org/schema/context; 
> xmlns:security="http://www.springframework.org/schema/security; 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0         
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd         
> http://www.springframework.org/schema/beans                         
> http://www.springframework.org/schema/beans/spring-beans.xsd; 
> default-activation="eager" default-availability="mandatory">
>  {code}
> importing this spring context
> {code:java}
> http://www.springframework.org/schema/security; xmlns="http://www.springframework.org/schema/security;  
> xmlns:b="http://www.springframework.org/schema/beans;  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;  
> xsi:schemaLocation="http://www.springframework.org/schema/beans 
> https://www.springframework.org/schema/beans/spring-beans.xsd 
> http://www.springframework.org/schema/security 
> https://www.springframework.org/schema/security/spring-security.xsd;>
> class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
>/> 
> {code}
> fails with this stacktrace:
> {code:java}
> java.lang.RuntimeException: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Unable to locate Spring NamespaceHandler for XML 
> schema namespace [http://www.springframework.org/schema/security] Offending 
> resource: class path resource [spring/security.xml] at 
> org.apache.aries.blueprint.spring.BlueprintNamespaceHandler.parse(BlueprintNamespaceHandler.java:132)
>  at 
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369) 
> at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427) 
> at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371)
>  at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
>  at 
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748) Caused by: 
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
> Configuration problem: Failed to import bean definitions from URL location 
> [classpath:spring/security.xml] Offending resource: URL 
> [bundleentry://103.fwk1077514876/OSGI-INF/blueprint/config.xml]; nested 
> exception is 
> 

[jira] [Assigned] (ARIES-1993) [blueprint/spring integration] Cannot parse spring-security 5 context

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré reassigned ARIES-1993:
---

Assignee: Jean-Baptiste Onofré

> [blueprint/spring integration] Cannot parse spring-security 5 context 
> --
>
> Key: ARIES-1993
> URL: https://issues.apache.org/jira/browse/ARIES-1993
> Project: Aries
>  Issue Type: Bug
>  Components: Blueprint
>Affects Versions: blueprint-spring-0.6.0
>Reporter: Arnaud MERGEY
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> In a blueprint application, trying to parse this blueprint xml file
> {code:java}
> http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xmlns:spring="http://www.springframework.org/schema/beans; 
> xmlns:context="http://www.springframework.org/schema/context; 
> xmlns:security="http://www.springframework.org/schema/security; 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0         
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd         
> http://www.springframework.org/schema/beans                         
> http://www.springframework.org/schema/beans/spring-beans.xsd                  
>       http://www.springframework.org/schema/context                         
> http://www.springframework.org/schema/context/spring-context.xsd              
>           http://www.springframework.org/schema/security                      
>   https://www.springframework.org/schema/security/spring-security.xsd; 
> default-activation="eager" default-availability="mandatory">
>  
>  password="password" authorities="ROLE_USER" /> 
> 
> {code}
> fails with
> {code:java}
> [Blueprint Extender: 1] WARN 
> org.apache.aries.blueprint.spring.SpringApplicationContext - Exception 
> encountered during context initialization - cancelling refresh attempt: 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'org.springframework.security.filterChains': Cannot resolve 
> reference to bean 
> 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting 
> bean property 'sourceList' with key [0]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': 
> Cannot resolve reference to bean 
> 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0'
>  while setting constructor argument with key [5]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 
> 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0':
>  Cannot resolve reference to bean 
> 'org.springframework.security.authentication.ProviderManager#0' while setting 
> bean property 'authenticationManager'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'org.springframework.security.authentication.ProviderManager#0': 
> Cannot resolve reference to bean 
> 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0'
>  while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 
> 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
>  FactoryBean threw exception on object creation; nested exception is 
> java.lang.AbstractMethodError: 
> org.apache.aries.blueprint.spring.BlueprintBeanFactory$WrapperBeanFactory.getBeanProvider(Lorg/springframework/core/ResolvableType;)Lorg/springframework/beans/factory/ObjectProvider;[Blueprint
>  Extender: 1] WARN org.apache.aries.blueprint.spring.SpringApplicationContext 
> - Exception encountered during context initialization - cancelling refresh 
> attempt: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'org.springframework.security.filterChains': Cannot 
> resolve reference to bean 
> 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting 
> bean property 'sourceList' with key [0]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': 
> Cannot resolve reference to bean 
> 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0'
>  while setting constructor argument with key [5]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with 

[jira] [Commented] (ARIES-2022) Upgrade to ASM 9.0

2021-02-12 Thread Jira


[ 
https://issues.apache.org/jira/browse/ARIES-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17284089#comment-17284089
 ] 

Jean-Baptiste Onofré commented on ARIES-2022:
-

Yes, I'm on it. Thanks for the reminder.

> Upgrade to ASM 9.0
> --
>
> Key: ARIES-2022
> URL: https://issues.apache.org/jira/browse/ARIES-2022
> Project: Aries
>  Issue Type: Dependency upgrade
>  Components: Proxy
>Reporter: Benjamin Graf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>




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


[jira] [Updated] (ARIES-2022) Upgrade to ASM 9.0

2021-02-12 Thread Jira


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

Jean-Baptiste Onofré updated ARIES-2022:

Fix Version/s: proxy-impl-1.1.9

> Upgrade to ASM 9.0
> --
>
> Key: ARIES-2022
> URL: https://issues.apache.org/jira/browse/ARIES-2022
> Project: Aries
>  Issue Type: Dependency upgrade
>  Components: Proxy
>Reporter: Benjamin Graf
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: proxy-impl-1.1.9
>
>




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