[JBoss JIRA] (WFLY-13076) Opentracing fails to load on EAR deployment
by Emmanuel Hugonnet (Jira)
[ https://issues.redhat.com/browse/WFLY-13076?page=com.atlassian.jira.plugi... ]
Emmanuel Hugonnet commented on WFLY-13076:
------------------------------------------
Do you have a branch where I could get your current work ?
> Opentracing fails to load on EAR deployment
> -------------------------------------------
>
> Key: WFLY-13076
> URL: https://issues.redhat.com/browse/WFLY-13076
> Project: WildFly
> Issue Type: Bug
> Components: MP OpenTracing
> Affects Versions: 18.0.1.Final
> Reporter: Roy Golan
> Assignee: Emmanuel Hugonnet
> Priority: Major
>
> wildfly 18, an EAR application (ovirt-engine ), I'm trying to enable opentracing, and failing.
> I added this to our xml:
> ```
> <extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
> ...
> <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
> ```
> Exported Jaeger environment vars:
> ```
> export JAEGER_SERVICE_NAME=ovirt-engine
> export JAEGER_REPORTER_LOG_SPANS=true
> export JAEGER_SAMPLER_TYPE=const
> export JAEGER_SAMPLER_PARAM=1
> ```
> And debugged the `TracerProducer` which throws:
> ```
> "Method threw 'org.jboss.weld.exceptions.IllegalStateException' exception. Cannot evaluate org.jboss.weldx.servlet.ServletContext$$Proxy$_$$_WeldClientProxy.toString()"
> ```
> The deployment structure is:
> | engine.ear
> - bll.jar EJB and CDI beans
> - lib/vdsbroker CDI
> | restapi.war JAXRS , also CDI beans
> | Jboss-Modules
> common.jar
> utils.jar
> dal.jar CDI
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFLY-13076) Opentracing fails to load on EAR deployment
by Roy Golan (Jira)
[ https://issues.redhat.com/browse/WFLY-13076?page=com.atlassian.jira.plugi... ]
Roy Golan commented on WFLY-13076:
----------------------------------
Same exception with 19 beta2 and an EJB:
2020-02-10 14:46:13,499+02 ERROR [org.ovirt.engine.core.bll.SetNonOperationalVdsCommand] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-25) [5942fd25] Exception: org.jb
oss.weld.exceptions.IllegalStateException: WELD-000713: Unable to inject ServletContext. None is associated with ModuleClassLoader for Module "deployment.engine.ear.bll.jar" from Service Mod
ule Loader, ServletContextService [{ModuleClassLoader for Module "deployment.engine.ear.services.war" from Service Module Loader=io.undertow.servlet.spec.ServletContextImpl@5775564e}]
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.web.ServletContextBean.newInstance(ServletContextBean.java:53)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.web.ServletContextBean.newInstance(ServletContextBean.java:39)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.builtin.AbstractDecorableBuiltInBean.create(AbstractDecorableBuiltInBean.java:53)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.contexts.AbstractContext.get(AbstractContext.java:96)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:102)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)
at org.jboss.weld.core(a)3.1.2.Final//org.jboss.weldx.servlet.ServletContext$$Proxy$_$$_WeldClientProxy.getAttribute(Unknown Source)
at org.wildfly.microprofile.opentracing-smallrye@18.0.0.Final//org.wildfly.microprofile.opentracing.smallrye.TracerProducer.getTracer(TracerProducer.java:39)
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.jboss.weld.core@3.1.2.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.injection.producer.ProducerMethodProducer.produce(ProducerMethodProducer.java:103)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:161)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:180)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.contexts.unbound.DependentContextImpl.get(DependentContextImpl.java:70)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:694)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.builtin.InstanceImpl.getBeanInstance(InstanceImpl.java:252)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:114)
at io.opentracing.contrib.opentracing-interceptors//io.opentracing.contrib.interceptors.OpenTracingInterceptor.getTracer(OpenTracingInterceptor.java:103)
at io.opentracing.contrib.opentracing-interceptors//io.opentracing.contrib.interceptors.OpenTracingInterceptor.wrap(OpenTracingInterceptor.java:43)
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.jboss.weld.core@3.1.2.Final//org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:84)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:72)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:56)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)
at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)
at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.VDSBrokerFrontendImpl$Proxy$_$$_WeldSubclass.runVdsCommand(Unknown Source)
> Opentracing fails to load on EAR deployment
> -------------------------------------------
>
> Key: WFLY-13076
> URL: https://issues.redhat.com/browse/WFLY-13076
> Project: WildFly
> Issue Type: Bug
> Components: MP OpenTracing
> Affects Versions: 18.0.1.Final
> Reporter: Roy Golan
> Assignee: Emmanuel Hugonnet
> Priority: Major
>
> wildfly 18, an EAR application (ovirt-engine ), I'm trying to enable opentracing, and failing.
> I added this to our xml:
> ```
> <extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
> ...
> <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
> ```
> Exported Jaeger environment vars:
> ```
> export JAEGER_SERVICE_NAME=ovirt-engine
> export JAEGER_REPORTER_LOG_SPANS=true
> export JAEGER_SAMPLER_TYPE=const
> export JAEGER_SAMPLER_PARAM=1
> ```
> And debugged the `TracerProducer` which throws:
> ```
> "Method threw 'org.jboss.weld.exceptions.IllegalStateException' exception. Cannot evaluate org.jboss.weldx.servlet.ServletContext$$Proxy$_$$_WeldClientProxy.toString()"
> ```
> The deployment structure is:
> | engine.ear
> - bll.jar EJB and CDI beans
> - lib/vdsbroker CDI
> | restapi.war JAXRS , also CDI beans
> | Jboss-Modules
> common.jar
> utils.jar
> dal.jar CDI
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (DROOLS-5044) Allow to set default value for columns other than 'literal equals to ...'
by Werner Van Herrewegen (Jira)
Werner Van Herrewegen created DROOLS-5044:
---------------------------------------------
Summary: Allow to set default value for columns other than 'literal equals to ...'
Key: DROOLS-5044
URL: https://issues.redhat.com/browse/DROOLS-5044
Project: Drools
Issue Type: Feature Request
Components: Guided Decision Table Editor
Reporter: Werner Van Herrewegen
Assignee: Michael Anstis
Attachments: image-2020-02-11-14-10-05-686.png, image-2020-02-11-14-28-02-448.png
Hi,
Sometimes I need to be able to put a +default 'TRUE'+ value for conditional columns that don't make any sense to have a 'FALSE' value.
I give you the following case:
When I want to update a fact A in the action part based on the value of a fact B on the condition part, it obviously makes sense to have an additional condition that fact A exists.
But this results (as seen in the example screenshot below) in the option to flag the column that fact A exists TRUE/FALSE with a 'default' on FALSE.
When you leave it FALSE, you get a compile error because the resulting rule code excludes the line, when you flag it TRUE, the line is shown ok and you don't get any errors.
So the only real value that is possible is TRUE and it must be flagged TRUE for each row in the decision table.
It is really hard for me to explain this to business users, when I give them the option to uncheck the column.
Workaround/solution would be to allow a default value 'TRUE' and actually hide the column.
Because for the business person, he doesn't care.
And the pity is that there actually is an option to add default values but only for literal equals...
More generally this is a need to add some rule text that is always in the generated resulting rule code in the LHS or RHS rule part for all rows in the decision table.
kr,
Werner
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFLY-10717) Maven in JBDS reports checkstyle errors not reported by standalone Maven
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-10717?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty updated WFLY-10717:
---------------------------------------
Attachment: Screenshot from 2020-02-11 19-00-56.png
> Maven in JBDS reports checkstyle errors not reported by standalone Maven
> ------------------------------------------------------------------------
>
> Key: WFLY-10717
> URL: https://issues.redhat.com/browse/WFLY-10717
> Project: WildFly
> Issue Type: Bug
> Components: Quickstarts
> Reporter: Sultan Zhantemirov
> Assignee: Eduardo Martins
> Priority: Major
> Attachments: Screenshot from 2020-02-11 19-00-56.png
>
>
> JDBS version 12.0.0.GA build date 20180710-1916
> After importing a quickstart, the following error appears in Problems section:
> {{Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:checkstyle (execution: check-style, phase: compile)}}
> It complains on <parent> element in pom.xml
> Problematical quickstarts:
> * greeter
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFLY-10717) Maven in JBDS reports checkstyle errors not reported by standalone Maven
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-10717?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty commented on WFLY-10717:
--------------------------------------------
[~emmartins] [~szhantem] what i have seen that if you install the maven checkstyle in your local then the error will go away. Let me know if you think is there any other way to fix this issue.
!Screenshot from 2020-02-11 19-00-56.png|thumbnail!
> Maven in JBDS reports checkstyle errors not reported by standalone Maven
> ------------------------------------------------------------------------
>
> Key: WFLY-10717
> URL: https://issues.redhat.com/browse/WFLY-10717
> Project: WildFly
> Issue Type: Bug
> Components: Quickstarts
> Reporter: Sultan Zhantemirov
> Assignee: Eduardo Martins
> Priority: Major
> Attachments: Screenshot from 2020-02-11 19-00-56.png
>
>
> JDBS version 12.0.0.GA build date 20180710-1916
> After importing a quickstart, the following error appears in Problems section:
> {{Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:checkstyle (execution: check-style, phase: compile)}}
> It complains on <parent> element in pom.xml
> Problematical quickstarts:
> * greeter
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFLY-13076) Opentracing fails to load on EAR deployment
by Emmanuel Hugonnet (Jira)
[ https://issues.redhat.com/browse/WFLY-13076?page=com.atlassian.jira.plugi... ]
Emmanuel Hugonnet commented on WFLY-13076:
------------------------------------------
Maybe you should give WildFly 19 Beta2 a try as we have changed a lot on this as we don't use a ContextListener anymore and everything is done by WildFly on deployment of the application.
Hum for the 2nd point a reproducer would be nice :)
> Opentracing fails to load on EAR deployment
> -------------------------------------------
>
> Key: WFLY-13076
> URL: https://issues.redhat.com/browse/WFLY-13076
> Project: WildFly
> Issue Type: Bug
> Components: MP OpenTracing
> Affects Versions: 18.0.1.Final
> Reporter: Roy Golan
> Assignee: Emmanuel Hugonnet
> Priority: Major
>
> wildfly 18, an EAR application (ovirt-engine ), I'm trying to enable opentracing, and failing.
> I added this to our xml:
> ```
> <extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
> ...
> <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
> ```
> Exported Jaeger environment vars:
> ```
> export JAEGER_SERVICE_NAME=ovirt-engine
> export JAEGER_REPORTER_LOG_SPANS=true
> export JAEGER_SAMPLER_TYPE=const
> export JAEGER_SAMPLER_PARAM=1
> ```
> And debugged the `TracerProducer` which throws:
> ```
> "Method threw 'org.jboss.weld.exceptions.IllegalStateException' exception. Cannot evaluate org.jboss.weldx.servlet.ServletContext$$Proxy$_$$_WeldClientProxy.toString()"
> ```
> The deployment structure is:
> | engine.ear
> - bll.jar EJB and CDI beans
> - lib/vdsbroker CDI
> | restapi.war JAXRS , also CDI beans
> | Jboss-Modules
> common.jar
> utils.jar
> dal.jar CDI
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFLY-13076) Opentracing fails to load on EAR deployment
by Roy Golan (Jira)
[ https://issues.redhat.com/browse/WFLY-13076?page=com.atlassian.jira.plugi... ]
Roy Golan commented on WFLY-13076:
----------------------------------
OK I took a simple war we do have under the ear, and added a simple JAXRS resource there, invoked it, and started getting spans, without any configuration.
So this means our restapi.jar needs something to be added to its deployment. What should it be then?
> Opentracing fails to load on EAR deployment
> -------------------------------------------
>
> Key: WFLY-13076
> URL: https://issues.redhat.com/browse/WFLY-13076
> Project: WildFly
> Issue Type: Bug
> Components: MP OpenTracing
> Affects Versions: 18.0.1.Final
> Reporter: Roy Golan
> Assignee: Emmanuel Hugonnet
> Priority: Major
>
> wildfly 18, an EAR application (ovirt-engine ), I'm trying to enable opentracing, and failing.
> I added this to our xml:
> ```
> <extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
> ...
> <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
> ```
> Exported Jaeger environment vars:
> ```
> export JAEGER_SERVICE_NAME=ovirt-engine
> export JAEGER_REPORTER_LOG_SPANS=true
> export JAEGER_SAMPLER_TYPE=const
> export JAEGER_SAMPLER_PARAM=1
> ```
> And debugged the `TracerProducer` which throws:
> ```
> "Method threw 'org.jboss.weld.exceptions.IllegalStateException' exception. Cannot evaluate org.jboss.weldx.servlet.ServletContext$$Proxy$_$$_WeldClientProxy.toString()"
> ```
> The deployment structure is:
> | engine.ear
> - bll.jar EJB and CDI beans
> - lib/vdsbroker CDI
> | restapi.war JAXRS , also CDI beans
> | Jboss-Modules
> common.jar
> utils.jar
> dal.jar CDI
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months