[EXN-java-library] Cannot stop a connector in Java

Bug #2052769 reported by Andreas Tsagkaropoulos
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NebulOuS
Fix Committed
Medium
Fotis Paraskevopoulos

Bug Description

Using the example publisher code, and adding the c.stop() directive immediately after c.start() is being called, leads to the following exception (when the main method in the TestPublisher class is run):

groovy.lang.MissingMethodException: No signature of method: java.util.LinkedHashMap$Entry.setActive() is applicable for argument types: (Boolean) values: [false]
 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:70)
 at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
 at eu.nebulouscloud.exn.core.Context$_stop_closure3.doCall(Context.groovy:143)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:274)
 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
 at groovy.lang.Closure.call(Closure.java:412)
 at groovy.lang.Closure.call(Closure.java:428)
 at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForMapEntry(DefaultGroovyMethods.java:6084)
 at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2435)
 at org.codehaus.groovy.runtime.dgm$203.invoke(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:247)
 at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
 at eu.nebulouscloud.exn.core.Context.stop(Context.groovy:142)
 at eu.nebulouscloud.exn.core.Context$stop$2.call(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
 at eu.nebulouscloud.exn.Connector.stop(Connector.groovy:113)
 at eu.nebulouscloud.exn.TestPublisher.main(TestPublisher.java:116)

description: updated
Changed in nebulous:
status: New → Fix Committed
Revision history for this message
Rudi Schlatte (rudi-constantly) wrote :

I still see this bug with current master (commit ID 42103992a421e1ec05c0e09a323b192d617a8968).

Is the fix included in https://review.opendev.org/c/nebulous/exn-connector-java/+/904778 ? This is the only outstanding changeset that I can see.

Changed in nebulous:
assignee: Fotis Paraskevopoulos (forums-existanze) → Fotis Paraskevopoulos (fotisparaskevopoulos)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.