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

ASF GitHub Bot commented on KARAF-4542:
---------------------------------------

awrb commented on PR #1642:
URL: https://github.com/apache/karaf/pull/1642#issuecomment-1275768847

   I was able to reproduce the test failing locally too (sometimes) running 
`mvn clean test -Dtest=GraphQLExampleTest`. When it failed, it looked like it 
was being run twice, failing once and passing the second time:
   ```
   GraphQLExampleTest: testWebSocket
   Connecting websocket client
   junit.framework.AssertionFailedError
           at junit.framework.Assert.fail(Assert.java:55)
           at junit.framework.Assert.assertTrue(Assert.java:22)
           at junit.framework.Assert.assertTrue(Assert.java:31)
           at junit.framework.TestCase.assertTrue(TestCase.java:201)
           at 
org.apache.karaf.itests.examples.GraphQLExampleTest.testWebSocket(GraphQLExampleTest.java:110)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           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:160)
           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 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at 
org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:85)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at 
java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
           at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
           at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
           at java.base/java.security.AccessController.doPrivileged(Native 
Method)
           at 
java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
           at 
java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
           at 
java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
           at 
java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
           at java.base/java.security.AccessController.doPrivileged(Native 
Method)
           at 
java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   
   GraphQLExampleTest: testWebSocket
   Connecting websocket client
   Received websocket message: {bookCreated={id=5, name=Lord of the Rings}}
   Closing websocket client
   
   ```
   the first time @OnWebSocketMessage is not called.
   
   I played around with pax-exam options a bit, changed reactor strategy to 
PerClass, changed to using @Configuration rather than installing features 
manually but it did not help yet. 
   I don't think this is a problem with the servlet request because using 
   ```
           executeCommand("graphql:query " +  "\"mutation { addBook(name:Test 
pageCount:100) { id name } }\"");
   ```
    rather than POST to trigger the websocket message did not help.
   
   




> Add an option to feature:list to list features provided by a given repository
> -----------------------------------------------------------------------------
>
>                 Key: KARAF-4542
>                 URL: https://issues.apache.org/jira/browse/KARAF-4542
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>            Reporter: Jean-Baptiste Onofré
>            Priority: Major
>
> When we use {{feature:repo-add}}, it would be great to be able to list all 
> features provided only by this repository (using the repository name or URL).
> It would be great to provide an option to {{feature:list}} (like {{-r}}) to 
> list only the features provided by a repository.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to