[JBoss JIRA] (WFLY-9516) JPA deployer adding cross sub deployment dependencies when multiple persistence units deployed
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-9516?page=com.atlassian.jira.plugin.... ]
Scott Marlow commented on WFLY-9516:
------------------------------------
Currently, at the root deployment level, we are tracking all of the contained persistence units (from top + sub level), of which every component will have a dependency on, so that any component could depend on any persistence unit in the application.
Why didn't reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2 start?
{code}
service jboss.persistenceunit."reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2" (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb.jar".component.StatelessBean1.START, service jboss.deployment.unit."reproducer-ear-0.1.ear".WeldStartService]
{code}
> JPA deployer adding cross sub deployment dependencies when multiple persistence units deployed
> ----------------------------------------------------------------------------------------------
>
> Key: WFLY-9516
> URL: https://issues.jboss.org/browse/WFLY-9516
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 11.0.0.Final
> Reporter: Brad Maxwell
> Assignee: Scott Marlow
>
> If an ear contains two EJB sub deployments which each contain a Persistence Unit and a Stateless EJB which injects the PU that is in its jar using @PersistenceContext. There is a dependency being added where in the Stateless EJB from one deployment depends on the PU from the other jar. It appears this is happening after this bug fix WFLY-1531
> {code}
> app.ear
> - ejb-with-pu1.jar
> - ejb-with-pu2.jar
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9516) JPA deployer adding cross sub deployment dependencies when multiple persistence units deployed
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-9516?page=com.atlassian.jira.plugin.... ]
Scott Marlow edited comment on WFLY-9516 at 11/15/17 11:11 AM:
---------------------------------------------------------------
Thanks Stuart, I can build now with the changes you mentioned.
WildFly console output after deployment:
{code}
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
09:26:09,298 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
09:26:15,333 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
09:26:15,430 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 12.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Alpha2) starting
09:26:16,458 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
09:26:16,482 INFO [org.wildfly.security] (ServerService Thread Pool -- 17) ELY00001: WildFly Elytron version 1.2.0.Beta8
09:26:16,495 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 29) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
09:26:16,498 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment reproducer-ear-0.1.ear
09:26:16,554 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
09:26:16,571 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.5.4.Final
09:26:16,580 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.5.4.Final
09:26:16,611 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 42) WFLYCLINF0001: Activating Infinispan subsystem.
09:26:16,611 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 43) WFLYRS0016: RESTEasy version 3.0.24.Final
09:26:16,624 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 41) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
09:26:16,663 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
09:26:16,682 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.5.Final
09:26:16,628 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
09:26:16,653 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
09:26:16,667 INFO [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.6.Final)
09:26:16,701 INFO [org.jboss.as.security] (ServerService Thread Pool -- 57) WFLYSEC0002: Activating Security Subsystem
09:26:16,700 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 58) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
09:26:16,710 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
09:26:16,747 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 60) WFLYWS0002: Activating WebServices Extension
09:26:16,728 INFO [org.jboss.as.naming] (MSC service thread 1-1) WFLYNAM0003: Starting Naming Service
09:26:16,763 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0003: Undertow 1.4.18.Final starting
09:26:16,746 INFO [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=5.0.2.Final
09:26:16,747 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2
09:26:16,807 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 128 (per class), which is derived from thread worker pool sizing.
09:26:16,807 INFO [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 32 (per class), which is derived from the number of CPUs on this host.
09:26:16,945 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0014: Creating file handler for path '/home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
09:26:16,966 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
09:26:16,968 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
09:26:17,005 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
09:26:17,086 INFO [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
09:26:17,096 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-8) WFLYDM0111: Keystore /home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
09:26:17,097 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) WFLYDS0013: Started FileSystemDeploymentService for directory /home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/standalone/deployments
09:26:17,105 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "reproducer-ear-0.1.ear" (runtime-name: "reproducer-ear-0.1.ear")
09:26:17,166 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-ejb2.jar")
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-common.jar")
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-ejb.jar")
09:26:17,344 INFO [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.1.9.Final (Apache CXF 3.1.12)
09:26:17,490 INFO [org.jboss.as.jpa] (MSC service thread 1-8) WFLYJPA0002: Read persistence.xml for pu1
09:26:17,490 INFO [org.jboss.as.jpa] (MSC service thread 1-6) WFLYJPA0002: Read persistence.xml for pu2
09:26:22,710 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0493: EJB subsystem suspension complete
09:26:22,774 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
09:26:22,780 WARN [org.jboss.as.dependency.private] (MSC service thread 1-5) WFLYSRV0018: Deployment "deployment.reproducer-ear-0.1.ear" is using a private module ("org.apache.cxf.impl") which may be changed or removed in future versions without notice.
09:26:22,817 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment reproducer-ear-0.1.ear
09:26:22,852 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.3.5.Final
09:26:22,936 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment reproducer-common.jar
09:26:22,945 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-6) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
09:26:22,959 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment reproducer-ejb.jar
09:26:22,959 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment reproducer-ejb2.jar
09:26:22,963 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'StatelessBean1' in deployment unit 'subdeployment "reproducer-ejb.jar" of deployment "reproducer-ear-0.1.ear"' are as follows:
java:global/reproducer-ear-0.1/reproducer-ejb/StatelessBean1!org.wildfly.test.StatelessBean1
java:app/reproducer-ejb/StatelessBean1!org.wildfly.test.StatelessBean1
java:module/StatelessBean1!org.wildfly.test.StatelessBean1
java:global/reproducer-ear-0.1/reproducer-ejb/StatelessBean1
java:app/reproducer-ejb/StatelessBean1
java:module/StatelessBean1
09:26:22,963 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1'
09:26:22,963 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2'
09:26:22,966 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'StatelessBean2' in deployment unit 'subdeployment "reproducer-ejb2.jar" of deployment "reproducer-ear-0.1.ear"' are as follows:
java:global/reproducer-ear-0.1/reproducer-ejb2/StatelessBean2!org.wildfly.test.StatelessBean2
java:app/reproducer-ejb2/StatelessBean2!org.wildfly.test.StatelessBean2
java:module/StatelessBean2!org.wildfly.test.StatelessBean2
java:global/reproducer-ear-0.1/reproducer-ejb2/StatelessBean2
java:app/reproducer-ejb2/StatelessBean2
java:module/StatelessBean2
09:26:22,992 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 62) HHH000204: Processing PersistenceUnitInfo [
name: pu2
...]
09:26:22,992 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 63) HHH000204: Processing PersistenceUnitInfo [
name: pu1
...]
09:26:23,019 INFO [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 2.4.5 (Final)
09:26:23,102 INFO [org.hibernate.Version] (ServerService Thread Pool -- 62) HHH000412: Hibernate Core {5.1.10.Final}
09:26:23,107 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000206: hibernate.properties not found
09:26:23,108 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000021: Bytecode provider name : javassist
09:26:23,163 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 62) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
09:26:23,270 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1'
09:26:23,359 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started client-mappings cache from ejb container
09:26:23,456 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 62) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
09:26:23,460 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 62) HHH000431: Unable to determine H2 database version, certain features may not work
09:26:23,508 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 62) Envers integration enabled? : true
09:26:23,793 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1.org.wildfly.test.Entity1 cache from hibernate container
09:26:23,810 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1.org.wildfly.test.Entity1-pending-puts cache from hibernate container
09:26:23,911 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "reproducer-ear-0.1.ear")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".deploymentCompleteService",
"jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.ValidatorFactory is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".batch.artifact.factory is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager]",
"jboss.deployment.unit.\"reproducer-ear-0.1.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".deploymentCompleteService]",
"jboss.deployment.unit.\"reproducer-ear-0.1.ear\".WeldStartService is missing [jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.Validator is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.InAppClientContainer is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.InstanceName is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb.jar\".component.StatelessBean1.START is missing [jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"]"
]
}
09:26:23,917 INFO [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "reproducer-ear-0.1.ear" (runtime-name : "reproducer-ear-0.1.ear")
09:26:23,918 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".beanmanager (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".batch.artifact.factory, service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".weld.weldClassIntrospector]
service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."reproducer-ear-0.1.ear".deploymentCompleteService]
service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2 (missing) dependents: [service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.InAppClientContainer, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.Validator, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.InstanceName, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.ValidatorFactory]
service jboss.persistenceunit."reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2" (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb.jar".component.StatelessBean1.START, service jboss.deployment.unit."reproducer-ear-0.1.ear".WeldStartService]
09:26:23,959 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
09:26:23,961 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
09:26:23,961 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
09:26:23,961 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 12.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Alpha2) started (with errors) in 14923ms - Started 491 of 734 services (26 services failed or missing dependencies, 359 services are lazy, passive or on-demand)
{code}
was (Author: smarlow):
Thanks Stuart, I can build now with the changes you mentioned.
WildFly console output after deployment:
{quote}
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
09:26:09,298 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
09:26:15,333 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
09:26:15,430 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 12.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Alpha2) starting
09:26:16,458 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
09:26:16,482 INFO [org.wildfly.security] (ServerService Thread Pool -- 17) ELY00001: WildFly Elytron version 1.2.0.Beta8
09:26:16,495 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 29) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
09:26:16,498 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment reproducer-ear-0.1.ear
09:26:16,554 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
09:26:16,571 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.5.4.Final
09:26:16,580 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.5.4.Final
09:26:16,611 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 42) WFLYCLINF0001: Activating Infinispan subsystem.
09:26:16,611 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 43) WFLYRS0016: RESTEasy version 3.0.24.Final
09:26:16,624 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 41) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
09:26:16,663 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
09:26:16,682 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.5.Final
09:26:16,628 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
09:26:16,653 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
09:26:16,667 INFO [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.6.Final)
09:26:16,701 INFO [org.jboss.as.security] (ServerService Thread Pool -- 57) WFLYSEC0002: Activating Security Subsystem
09:26:16,700 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 58) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
09:26:16,710 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
09:26:16,747 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 60) WFLYWS0002: Activating WebServices Extension
09:26:16,728 INFO [org.jboss.as.naming] (MSC service thread 1-1) WFLYNAM0003: Starting Naming Service
09:26:16,763 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0003: Undertow 1.4.18.Final starting
09:26:16,746 INFO [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=5.0.2.Final
09:26:16,747 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2
09:26:16,807 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 128 (per class), which is derived from thread worker pool sizing.
09:26:16,807 INFO [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 32 (per class), which is derived from the number of CPUs on this host.
09:26:16,945 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0014: Creating file handler for path '/home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
09:26:16,966 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
09:26:16,968 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
09:26:17,005 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
09:26:17,086 INFO [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
09:26:17,096 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-8) WFLYDM0111: Keystore /home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
09:26:17,097 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) WFLYDS0013: Started FileSystemDeploymentService for directory /home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/standalone/deployments
09:26:17,105 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "reproducer-ear-0.1.ear" (runtime-name: "reproducer-ear-0.1.ear")
09:26:17,166 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-ejb2.jar")
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-common.jar")
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-ejb.jar")
09:26:17,344 INFO [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.1.9.Final (Apache CXF 3.1.12)
09:26:17,490 INFO [org.jboss.as.jpa] (MSC service thread 1-8) WFLYJPA0002: Read persistence.xml for pu1
09:26:17,490 INFO [org.jboss.as.jpa] (MSC service thread 1-6) WFLYJPA0002: Read persistence.xml for pu2
09:26:22,710 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0493: EJB subsystem suspension complete
09:26:22,774 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
09:26:22,780 WARN [org.jboss.as.dependency.private] (MSC service thread 1-5) WFLYSRV0018: Deployment "deployment.reproducer-ear-0.1.ear" is using a private module ("org.apache.cxf.impl") which may be changed or removed in future versions without notice.
09:26:22,817 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment reproducer-ear-0.1.ear
09:26:22,852 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.3.5.Final
09:26:22,936 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment reproducer-common.jar
09:26:22,945 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-6) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
09:26:22,959 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment reproducer-ejb.jar
09:26:22,959 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment reproducer-ejb2.jar
09:26:22,963 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'StatelessBean1' in deployment unit 'subdeployment "reproducer-ejb.jar" of deployment "reproducer-ear-0.1.ear"' are as follows:
java:global/reproducer-ear-0.1/reproducer-ejb/StatelessBean1!org.wildfly.test.StatelessBean1
java:app/reproducer-ejb/StatelessBean1!org.wildfly.test.StatelessBean1
java:module/StatelessBean1!org.wildfly.test.StatelessBean1
java:global/reproducer-ear-0.1/reproducer-ejb/StatelessBean1
java:app/reproducer-ejb/StatelessBean1
java:module/StatelessBean1
09:26:22,963 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1'
09:26:22,963 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2'
09:26:22,966 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'StatelessBean2' in deployment unit 'subdeployment "reproducer-ejb2.jar" of deployment "reproducer-ear-0.1.ear"' are as follows:
java:global/reproducer-ear-0.1/reproducer-ejb2/StatelessBean2!org.wildfly.test.StatelessBean2
java:app/reproducer-ejb2/StatelessBean2!org.wildfly.test.StatelessBean2
java:module/StatelessBean2!org.wildfly.test.StatelessBean2
java:global/reproducer-ear-0.1/reproducer-ejb2/StatelessBean2
java:app/reproducer-ejb2/StatelessBean2
java:module/StatelessBean2
09:26:22,992 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 62) HHH000204: Processing PersistenceUnitInfo [
name: pu2
...]
09:26:22,992 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 63) HHH000204: Processing PersistenceUnitInfo [
name: pu1
...]
09:26:23,019 INFO [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 2.4.5 (Final)
09:26:23,102 INFO [org.hibernate.Version] (ServerService Thread Pool -- 62) HHH000412: Hibernate Core {5.1.10.Final}
09:26:23,107 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000206: hibernate.properties not found
09:26:23,108 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000021: Bytecode provider name : javassist
09:26:23,163 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 62) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
09:26:23,270 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1'
09:26:23,359 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started client-mappings cache from ejb container
09:26:23,456 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 62) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
09:26:23,460 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 62) HHH000431: Unable to determine H2 database version, certain features may not work
09:26:23,508 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 62) Envers integration enabled? : true
09:26:23,793 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1.org.wildfly.test.Entity1 cache from hibernate container
09:26:23,810 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1.org.wildfly.test.Entity1-pending-puts cache from hibernate container
09:26:23,911 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "reproducer-ear-0.1.ear")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".deploymentCompleteService",
"jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.ValidatorFactory is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".batch.artifact.factory is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager]",
"jboss.deployment.unit.\"reproducer-ear-0.1.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".deploymentCompleteService]",
"jboss.deployment.unit.\"reproducer-ear-0.1.ear\".WeldStartService is missing [jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.Validator is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.InAppClientContainer is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.InstanceName is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb.jar\".component.StatelessBean1.START is missing [jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"]"
]
}
09:26:23,917 INFO [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "reproducer-ear-0.1.ear" (runtime-name : "reproducer-ear-0.1.ear")
09:26:23,918 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".beanmanager (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".batch.artifact.factory, service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".weld.weldClassIntrospector]
service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."reproducer-ear-0.1.ear".deploymentCompleteService]
service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2 (missing) dependents: [service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.InAppClientContainer, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.Validator, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.InstanceName, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.ValidatorFactory]
service jboss.persistenceunit."reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2" (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb.jar".component.StatelessBean1.START, service jboss.deployment.unit."reproducer-ear-0.1.ear".WeldStartService]
09:26:23,959 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
09:26:23,961 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
09:26:23,961 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
09:26:23,961 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 12.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Alpha2) started (with errors) in 14923ms - Started 491 of 734 services (26 services failed or missing dependencies, 359 services are lazy, passive or on-demand)
{quote}
> JPA deployer adding cross sub deployment dependencies when multiple persistence units deployed
> ----------------------------------------------------------------------------------------------
>
> Key: WFLY-9516
> URL: https://issues.jboss.org/browse/WFLY-9516
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 11.0.0.Final
> Reporter: Brad Maxwell
> Assignee: Scott Marlow
>
> If an ear contains two EJB sub deployments which each contain a Persistence Unit and a Stateless EJB which injects the PU that is in its jar using @PersistenceContext. There is a dependency being added where in the Stateless EJB from one deployment depends on the PU from the other jar. It appears this is happening after this bug fix WFLY-1531
> {code}
> app.ear
> - ejb-with-pu1.jar
> - ejb-with-pu2.jar
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9516) JPA deployer adding cross sub deployment dependencies when multiple persistence units deployed
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-9516?page=com.atlassian.jira.plugin.... ]
Scott Marlow commented on WFLY-9516:
------------------------------------
Thanks Stuart, I can build now with the changes you mentioned.
WildFly console output after deployment:
{quote}
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
09:26:09,298 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
09:26:15,333 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
09:26:15,430 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 12.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Alpha2) starting
09:26:16,458 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
09:26:16,482 INFO [org.wildfly.security] (ServerService Thread Pool -- 17) ELY00001: WildFly Elytron version 1.2.0.Beta8
09:26:16,495 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 29) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
09:26:16,498 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment reproducer-ear-0.1.ear
09:26:16,554 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
09:26:16,571 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.5.4.Final
09:26:16,580 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.5.4.Final
09:26:16,611 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 42) WFLYCLINF0001: Activating Infinispan subsystem.
09:26:16,611 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 43) WFLYRS0016: RESTEasy version 3.0.24.Final
09:26:16,624 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 41) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
09:26:16,663 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
09:26:16,682 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.5.Final
09:26:16,628 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
09:26:16,653 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
09:26:16,667 INFO [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.6.Final)
09:26:16,701 INFO [org.jboss.as.security] (ServerService Thread Pool -- 57) WFLYSEC0002: Activating Security Subsystem
09:26:16,700 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 58) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
09:26:16,710 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
09:26:16,747 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 60) WFLYWS0002: Activating WebServices Extension
09:26:16,728 INFO [org.jboss.as.naming] (MSC service thread 1-1) WFLYNAM0003: Starting Naming Service
09:26:16,763 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0003: Undertow 1.4.18.Final starting
09:26:16,746 INFO [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=5.0.2.Final
09:26:16,747 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2
09:26:16,807 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 128 (per class), which is derived from thread worker pool sizing.
09:26:16,807 INFO [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 32 (per class), which is derived from the number of CPUs on this host.
09:26:16,945 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0014: Creating file handler for path '/home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
09:26:16,966 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
09:26:16,968 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
09:26:17,005 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
09:26:17,086 INFO [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
09:26:17,096 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-8) WFLYDM0111: Keystore /home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
09:26:17,097 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) WFLYDS0013: Started FileSystemDeploymentService for directory /home/smarlow/work/wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/standalone/deployments
09:26:17,105 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "reproducer-ear-0.1.ear" (runtime-name: "reproducer-ear-0.1.ear")
09:26:17,166 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-ejb2.jar")
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-common.jar")
09:26:17,178 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0207: Starting subdeployment (runtime-name: "reproducer-ejb.jar")
09:26:17,344 INFO [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.1.9.Final (Apache CXF 3.1.12)
09:26:17,490 INFO [org.jboss.as.jpa] (MSC service thread 1-8) WFLYJPA0002: Read persistence.xml for pu1
09:26:17,490 INFO [org.jboss.as.jpa] (MSC service thread 1-6) WFLYJPA0002: Read persistence.xml for pu2
09:26:22,710 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0493: EJB subsystem suspension complete
09:26:22,774 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
09:26:22,780 WARN [org.jboss.as.dependency.private] (MSC service thread 1-5) WFLYSRV0018: Deployment "deployment.reproducer-ear-0.1.ear" is using a private module ("org.apache.cxf.impl") which may be changed or removed in future versions without notice.
09:26:22,817 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment reproducer-ear-0.1.ear
09:26:22,852 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.3.5.Final
09:26:22,936 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment reproducer-common.jar
09:26:22,945 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-6) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
09:26:22,959 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment reproducer-ejb.jar
09:26:22,959 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment reproducer-ejb2.jar
09:26:22,963 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'StatelessBean1' in deployment unit 'subdeployment "reproducer-ejb.jar" of deployment "reproducer-ear-0.1.ear"' are as follows:
java:global/reproducer-ear-0.1/reproducer-ejb/StatelessBean1!org.wildfly.test.StatelessBean1
java:app/reproducer-ejb/StatelessBean1!org.wildfly.test.StatelessBean1
java:module/StatelessBean1!org.wildfly.test.StatelessBean1
java:global/reproducer-ear-0.1/reproducer-ejb/StatelessBean1
java:app/reproducer-ejb/StatelessBean1
java:module/StatelessBean1
09:26:22,963 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1'
09:26:22,963 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2'
09:26:22,966 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'StatelessBean2' in deployment unit 'subdeployment "reproducer-ejb2.jar" of deployment "reproducer-ear-0.1.ear"' are as follows:
java:global/reproducer-ear-0.1/reproducer-ejb2/StatelessBean2!org.wildfly.test.StatelessBean2
java:app/reproducer-ejb2/StatelessBean2!org.wildfly.test.StatelessBean2
java:module/StatelessBean2!org.wildfly.test.StatelessBean2
java:global/reproducer-ear-0.1/reproducer-ejb2/StatelessBean2
java:app/reproducer-ejb2/StatelessBean2
java:module/StatelessBean2
09:26:22,992 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 62) HHH000204: Processing PersistenceUnitInfo [
name: pu2
...]
09:26:22,992 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 63) HHH000204: Processing PersistenceUnitInfo [
name: pu1
...]
09:26:23,019 INFO [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 2.4.5 (Final)
09:26:23,102 INFO [org.hibernate.Version] (ServerService Thread Pool -- 62) HHH000412: Hibernate Core {5.1.10.Final}
09:26:23,107 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000206: hibernate.properties not found
09:26:23,108 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000021: Bytecode provider name : javassist
09:26:23,163 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 62) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
09:26:23,270 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1'
09:26:23,359 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started client-mappings cache from ejb container
09:26:23,456 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 62) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
09:26:23,460 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 62) HHH000431: Unable to determine H2 database version, certain features may not work
09:26:23,508 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 62) Envers integration enabled? : true
09:26:23,793 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1.org.wildfly.test.Entity1 cache from hibernate container
09:26:23,810 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started reproducer-ear-0.1.ear/reproducer-ejb.jar#pu1.org.wildfly.test.Entity1-pending-puts cache from hibernate container
09:26:23,911 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "reproducer-ear-0.1.ear")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".deploymentCompleteService",
"jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.ValidatorFactory is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".batch.artifact.factory is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager]",
"jboss.deployment.unit.\"reproducer-ear-0.1.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".deploymentCompleteService]",
"jboss.deployment.unit.\"reproducer-ear-0.1.ear\".WeldStartService is missing [jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.Validator is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.InAppClientContainer is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2.InstanceName is missing [jboss.naming.context.java.comp.\"reproducer-ear-0.1\".reproducer-ejb2.StatelessBean2]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb2.jar\".beanmanager]",
"jboss.deployment.subunit.\"reproducer-ear-0.1.ear\".\"reproducer-ejb.jar\".component.StatelessBean1.START is missing [jboss.persistenceunit.\"reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2\"]"
]
}
09:26:23,917 INFO [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "reproducer-ear-0.1.ear" (runtime-name : "reproducer-ear-0.1.ear")
09:26:23,918 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".beanmanager (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".batch.artifact.factory, service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".weld.weldClassIntrospector]
service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb2.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."reproducer-ear-0.1.ear".deploymentCompleteService]
service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2 (missing) dependents: [service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.InAppClientContainer, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.Validator, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.InstanceName, service jboss.naming.context.java.comp."reproducer-ear-0.1".reproducer-ejb2.StatelessBean2.ValidatorFactory]
service jboss.persistenceunit."reproducer-ear-0.1.ear/reproducer-ejb2.jar#pu2" (missing) dependents: [service jboss.deployment.subunit."reproducer-ear-0.1.ear"."reproducer-ejb.jar".component.StatelessBean1.START, service jboss.deployment.unit."reproducer-ear-0.1.ear".WeldStartService]
09:26:23,959 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
09:26:23,961 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
09:26:23,961 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
09:26:23,961 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 12.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Alpha2) started (with errors) in 14923ms - Started 491 of 734 services (26 services failed or missing dependencies, 359 services are lazy, passive or on-demand)
{quote}
> JPA deployer adding cross sub deployment dependencies when multiple persistence units deployed
> ----------------------------------------------------------------------------------------------
>
> Key: WFLY-9516
> URL: https://issues.jboss.org/browse/WFLY-9516
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 11.0.0.Final
> Reporter: Brad Maxwell
> Assignee: Scott Marlow
>
> If an ear contains two EJB sub deployments which each contain a Persistence Unit and a Stateless EJB which injects the PU that is in its jar using @PersistenceContext. There is a dependency being added where in the Stateless EJB from one deployment depends on the PU from the other jar. It appears this is happening after this bug fix WFLY-1531
> {code}
> app.ear
> - ejb-with-pu1.jar
> - ejb-with-pu2.jar
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (DROOLS-2135) Rule compilation can fail when using an attribute/method of OOPath provided variable
by Peter Mačkay (JIRA)
Peter Mačkay created DROOLS-2135:
------------------------------------
Summary: Rule compilation can fail when using an attribute/method of OOPath provided variable
Key: DROOLS-2135
URL: https://issues.jboss.org/browse/DROOLS-2135
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.4.1.Final
Reporter: Peter Mačkay
Assignee: Mario Fusco
Priority: Minor
Having a test like this:
https://gist.github.com/mackaypeter/d8b576ce34d42794da559308b1854aff
Produces the following error:
{code}
Unable to Analyse Expression this.getName() == "joe":
[Error: unable to resolve method using strict-mode: org.drools.compiler.oopath.MyTest$Parent.getName()]
[Near : {... this.getName() == "joe" ....}]
^
[Line: 4, Column: 2] : [Rule name='R']
{code}
It seems like it tries to look for the method definition in the Parent class instead of the Child class. The rule works correctly when there's a getName method defined in Parent. Meaning the rule compiles and fires correctly.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (DROOLS-2134) OOPathTest#testDeclarationOutsideOOPath fails with ClassCastException when jitting is enforced
by Peter Mačkay (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2134?page=com.atlassian.jira.plugi... ]
Peter Mačkay updated DROOLS-2134:
---------------------------------
Labels: jitting (was: )
> OOPathTest#testDeclarationOutsideOOPath fails with ClassCastException when jitting is enforced
> ----------------------------------------------------------------------------------------------
>
> Key: DROOLS-2134
> URL: https://issues.jboss.org/browse/DROOLS-2134
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.4.1.Final
> Reporter: Peter Mačkay
> Assignee: Mario Fusco
> Priority: Minor
> Labels: jitting
>
> When trying to run OOPathTest#testDeclarationOutsideOOPath [1] with enforced jitting, the test fails with following exception:
> {code}
> java.lang.RuntimeException: Error evaluating constraint 'this != $ic1' in []
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:273)
> at org.drools.core.rule.constraint.MvelConstraint.isAllowedCachedLeft(MvelConstraint.java:233)
> at org.drools.core.common.DoubleBetaConstraints.isAllowedCachedLeft(DoubleBetaConstraints.java:109)
> at org.drools.core.phreak.PhreakFromNode.propagate(PhreakFromNode.java:317)
> at org.drools.core.phreak.PhreakFromNode.checkConstraintsAndPropagate(PhreakFromNode.java:290)
> at org.drools.core.phreak.PhreakFromNode.doLeftInserts(PhreakFromNode.java:120)
> at org.drools.core.phreak.PhreakFromNode.doNode(PhreakFromNode.java:68)
> at org.drools.core.phreak.PhreakReactiveFromNode.doNode(PhreakReactiveFromNode.java:34)
> at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:392)
> at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
> at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
> at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
> at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
> at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
> at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
> at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
> at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
> at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1320)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1311)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1295)
> at org.drools.compiler.oopath.OOPathTest.testDeclarationOutsideOOPath(OOPathTest.java:1010)
> 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:497)
> 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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 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 com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
> at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
> 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:497)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> Caused by: java.lang.ClassCastException: org.drools.compiler.oopath.model.TMFile cannot be cast to org.drools.compiler.oopath.model.TMFileSet
> at ConditionEvaluator02d1ed6d278d48e7bf85d6c59d74e5c4.evaluate(Unknown Source)
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:271)
> ... 48 more
> {code}
> [1]: https://github.com/kiegroup/drools/blob/6214852d8332b8708bc845794e3f2207c...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9524) Messaging - default max client threads
by Jeff Mesnil (JIRA)
[ https://issues.jboss.org/browse/WFLY-9524?page=com.atlassian.jira.plugin.... ]
Jeff Mesnil commented on WFLY-9524:
-----------------------------------
Ok, I am convinced we need to support this use case.
Ideally, I would like to have the messaging-activemq subsystem adapts its configuration depending on the deployment use case:
* Cloud/VM deployment with small number of CPU cores
* Metal deployment with large number of CPU cores
Please note that I intend to modify the messaging-activemq subsystem to use thread pools from WildFly (as described in WFLY-5838). So it might make more sense to fix this issue by ensuring that the WildFly thread pools are correctly sized for this use case.
We need to have num-of-artemis-client-threads > num-of-ra-sessions * numbers-of-deployed-mdbs to avoid resource starvation.
* num-of-ra-sessions is controlled by Artemis maxSession activation config property (defaults to 15) and it is not configurable from WildFly management model.
* num-of-artemis-client-threads is managed by /subsystem=messaging-activemq's global-client-thread-pool-max-size attribute (default to 8 * CPU core).
* numbers-of-deployed-mdbs is the number of MDBs that are deployed multiplied by the pool size (managed by /subsystem=ejb3/strict-max-bean-instance-pool=mdb-strict-max-pool which defaults to 4 * CPU core)
This constraint depends on the number of deployed MDB and can not be enforced during the management model validation. We could add a warning whenever a MDB is deployed and we run the risk of resource starvation.
We could also change the default value of the num-of-artemis-client-threads so that it does not depend on the number of CPU cores. E.g. using the default value of 64.
With a default value of 64, we can deploy 1 MDB without resource starvation (that leaves 4 Artemis thread to do some stuff).
For deployment on metal hardware with more CPU cores, this default value is not great.
Maybe we should make the default value of the num-of-artemis-client-threads "smarter" and similar to the logic from the strict-max-bean-instance-pool and derives the actual value from CPU count.
E.g.
if ($cpu_core_count < 4) {
value = 64
} else {
value = 8 * $cpu-core-count
}
[~dmlloyd] Would it make sense to have the new WildFly thread pools use such derived size?
> Messaging - default max client threads
> --------------------------------------
>
> Key: WFLY-9524
> URL: https://issues.jboss.org/browse/WFLY-9524
> Project: WildFly
> Issue Type: Enhancement
> Components: JMS
> Affects Versions: 11.0.0.Final
> Reporter: Martin Styk
> Assignee: Jeff Mesnil
>
> By default, size of client thread pool is configured as 8 * number of CPU cores.
> On 1 CPU machine, with default configuration and MDB deployed on server, resource starvation is possible
> On one CPU there are by default
> * 8 ActiveMQ client threads (8 * CPU count)
> * 4 MDB instances (mdb-strict-max-pool = 4 * CPU count)
> * 15 JCA RA sessions consuming messages from queue (default value of maxSession)
> Consuming of messages by MDB gets stuck because all 8 client threads are awaiting large message completion and there is no other thread to handle other tasks.
> {code:title=Client thread waiting for large message completion}
> "Thread-7 (ActiveMQ-client-global-threads)" #475 daemon prio=5 os_prio=0
> tid=0x000000000590f000 nid=0x7c7a in Object.wait() [0x00007fda43413000]
> java.lang.Thread.State: TIMED_WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> at
> org.apache.activemq.artemis.core.client.impl.LargeMessageControllerImpl.waitCompletion(LargeMessageControllerImpl.java:302)
> - locked <0x00000000b0083e88> (a
> org.apache.activemq.artemis.core.client.impl.LargeMessageControllerImpl)
> at
> org.apache.activemq.artemis.core.client.impl.LargeMessageControllerImpl.saveBuffer(LargeMessageControllerImpl.java:276)
> - locked <0x00000000b0083e88> (a
> org.apache.activemq.artemis.core.client.impl.LargeMessageControllerImpl)
> at
> org.apache.activemq.artemis.core.client.impl.ClientLargeMessageImpl.checkBuffer(ClientLargeMessageImpl.java:159)
> at
> org.apache.activemq.artemis.core.client.impl.ClientLargeMessageImpl.checkCompletion(ClientLargeMessageImpl.java:84)
> at
> org.apache.activemq.artemis.jms.client.ActiveMQMessage.doBeforeReceive(ActiveMQMessage.java:786)
> at
> org.apache.activemq.artemis.jms.client.ActiveMQTextMessage.doBeforeReceive(ActiveMQTextMessage.java:110)
> at
> org.apache.activemq.artemis.ra.inflow.ActiveMQMessageHandler.onMessage(ActiveMQMessageHandler.java:295)
> at
> org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1001)
> at
> org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:49)
> at
> org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1124)
> at
> org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:122)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> This can be fixed by adjusting default values for these parameters.
> In this case, we need more client threads than JCA RA sessions (maxSession).
> To avoid resource starvation, number of client threads must be greater than sum of {{maxSession}} for each MDB deployed on server.
> We should check number of client threads required by deployments (MDBs), and at least print warning message that size of client thread pool may be insufficient.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (DROOLS-2134) OOPathTest#testDeclarationOutsideOOPath fails with ClassCastException when jitting is enforced
by Peter Mačkay (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2134?page=com.atlassian.jira.plugi... ]
Peter Mačkay updated DROOLS-2134:
---------------------------------
Description:
When trying to run OOPathTest#testDeclarationOutsideOOPath [1] with enforced jitting, the test fails with following exception:
{code}
java.lang.RuntimeException: Error evaluating constraint 'this != $ic1' in []
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:273)
at org.drools.core.rule.constraint.MvelConstraint.isAllowedCachedLeft(MvelConstraint.java:233)
at org.drools.core.common.DoubleBetaConstraints.isAllowedCachedLeft(DoubleBetaConstraints.java:109)
at org.drools.core.phreak.PhreakFromNode.propagate(PhreakFromNode.java:317)
at org.drools.core.phreak.PhreakFromNode.checkConstraintsAndPropagate(PhreakFromNode.java:290)
at org.drools.core.phreak.PhreakFromNode.doLeftInserts(PhreakFromNode.java:120)
at org.drools.core.phreak.PhreakFromNode.doNode(PhreakFromNode.java:68)
at org.drools.core.phreak.PhreakReactiveFromNode.doNode(PhreakReactiveFromNode.java:34)
at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:392)
at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1320)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1311)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1295)
at org.drools.compiler.oopath.OOPathTest.testDeclarationOutsideOOPath(OOPathTest.java:1010)
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:497)
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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
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 com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
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:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassCastException: org.drools.compiler.oopath.model.TMFile cannot be cast to org.drools.compiler.oopath.model.TMFileSet
at ConditionEvaluator02d1ed6d278d48e7bf85d6c59d74e5c4.evaluate(Unknown Source)
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:271)
... 48 more
{code}
[1]: https://github.com/kiegroup/drools/blob/6214852d8332b8708bc845794e3f2207c...
was:
When trying to run OOPathTest#testDeclarationOutsideOOPath with enforced jitting, the test fails with following exception:
{code}
java.lang.RuntimeException: Error evaluating constraint 'this != $ic1' in []
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:273)
at org.drools.core.rule.constraint.MvelConstraint.isAllowedCachedLeft(MvelConstraint.java:233)
at org.drools.core.common.DoubleBetaConstraints.isAllowedCachedLeft(DoubleBetaConstraints.java:109)
at org.drools.core.phreak.PhreakFromNode.propagate(PhreakFromNode.java:317)
at org.drools.core.phreak.PhreakFromNode.checkConstraintsAndPropagate(PhreakFromNode.java:290)
at org.drools.core.phreak.PhreakFromNode.doLeftInserts(PhreakFromNode.java:120)
at org.drools.core.phreak.PhreakFromNode.doNode(PhreakFromNode.java:68)
at org.drools.core.phreak.PhreakReactiveFromNode.doNode(PhreakReactiveFromNode.java:34)
at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:392)
at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1320)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1311)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1295)
at org.drools.compiler.oopath.OOPathTest.testDeclarationOutsideOOPath(OOPathTest.java:1010)
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:497)
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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
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 com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
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:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassCastException: org.drools.compiler.oopath.model.TMFile cannot be cast to org.drools.compiler.oopath.model.TMFileSet
at ConditionEvaluator02d1ed6d278d48e7bf85d6c59d74e5c4.evaluate(Unknown Source)
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:271)
... 48 more
{code}
> OOPathTest#testDeclarationOutsideOOPath fails with ClassCastException when jitting is enforced
> ----------------------------------------------------------------------------------------------
>
> Key: DROOLS-2134
> URL: https://issues.jboss.org/browse/DROOLS-2134
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.4.1.Final
> Reporter: Peter Mačkay
> Assignee: Mario Fusco
> Priority: Minor
>
> When trying to run OOPathTest#testDeclarationOutsideOOPath [1] with enforced jitting, the test fails with following exception:
> {code}
> java.lang.RuntimeException: Error evaluating constraint 'this != $ic1' in []
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:273)
> at org.drools.core.rule.constraint.MvelConstraint.isAllowedCachedLeft(MvelConstraint.java:233)
> at org.drools.core.common.DoubleBetaConstraints.isAllowedCachedLeft(DoubleBetaConstraints.java:109)
> at org.drools.core.phreak.PhreakFromNode.propagate(PhreakFromNode.java:317)
> at org.drools.core.phreak.PhreakFromNode.checkConstraintsAndPropagate(PhreakFromNode.java:290)
> at org.drools.core.phreak.PhreakFromNode.doLeftInserts(PhreakFromNode.java:120)
> at org.drools.core.phreak.PhreakFromNode.doNode(PhreakFromNode.java:68)
> at org.drools.core.phreak.PhreakReactiveFromNode.doNode(PhreakReactiveFromNode.java:34)
> at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:392)
> at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
> at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
> at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
> at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
> at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
> at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
> at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
> at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
> at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1320)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1311)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1295)
> at org.drools.compiler.oopath.OOPathTest.testDeclarationOutsideOOPath(OOPathTest.java:1010)
> 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:497)
> 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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 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 com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
> at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
> 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:497)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> Caused by: java.lang.ClassCastException: org.drools.compiler.oopath.model.TMFile cannot be cast to org.drools.compiler.oopath.model.TMFileSet
> at ConditionEvaluator02d1ed6d278d48e7bf85d6c59d74e5c4.evaluate(Unknown Source)
> at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:271)
> ... 48 more
> {code}
> [1]: https://github.com/kiegroup/drools/blob/6214852d8332b8708bc845794e3f2207c...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9529) Using injected JMS in a background task/thread leads to NameNotFoundException: java:comp/TransactionSynchronizationRegistry
by Jeff Mesnil (JIRA)
[ https://issues.jboss.org/browse/WFLY-9529?page=com.atlassian.jira.plugin.... ]
Jeff Mesnil updated WFLY-9529:
------------------------------
Component/s: Naming
> Using injected JMS in a background task/thread leads to NameNotFoundException: java:comp/TransactionSynchronizationRegistry
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-9529
> URL: https://issues.jboss.org/browse/WFLY-9529
> Project: WildFly
> Issue Type: Bug
> Components: JMS, Naming
> Affects Versions: 10.1.0.Final, 11.0.0.Final
> Environment: Running on Windows 10, Java 64-bit 1.8.0_131
> Reporter: Scott Van Wart
> Assignee: Jeff Mesnil
> Labels: ActiveMQ, jms, transaction
> Attachments: injected-jms.zip, wildfly-11-injected-jms.txt
>
>
> If I try to use an @Injected JMSContext while executing within a background task (ManagedExecutorService) or thread (ManagedThreadFactory), I get the attached stacktrace. I've experienced this a number of times with Wildfly 10.1.0, including messages sent in Infinispan's expiry task thread.
> My original workaround was to submit an additional task on a separate thread to send the message, then wait for it to complete. That seemed unreliable (sometimes it would still produce NameNotFoundException). I've resorted to creating my own JMSContext by using @Resource( lookup="java:/ConnectionFactory" ) and sending messages that way. Both workarounds prevent the message sending logic from participating in any ongoing transactions.
> I'm also attaching a sample EAR project. It can be built with Maven. It creates a background task that waits 3 seconds and then tries to send a JMS message in a new transaction using an injected JMS context. I use the standalone-full.xml profile to run it.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9529) Using injected JMS in a background task/thread leads to NameNotFoundException: java:comp/TransactionSynchronizationRegistry
by Jeff Mesnil (JIRA)
[ https://issues.jboss.org/browse/WFLY-9529?page=com.atlassian.jira.plugin.... ]
Jeff Mesnil reassigned WFLY-9529:
---------------------------------
Assignee: Eduardo Martins (was: Jeff Mesnil)
> Using injected JMS in a background task/thread leads to NameNotFoundException: java:comp/TransactionSynchronizationRegistry
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-9529
> URL: https://issues.jboss.org/browse/WFLY-9529
> Project: WildFly
> Issue Type: Bug
> Components: JMS, Naming
> Affects Versions: 10.1.0.Final, 11.0.0.Final
> Environment: Running on Windows 10, Java 64-bit 1.8.0_131
> Reporter: Scott Van Wart
> Assignee: Eduardo Martins
> Labels: ActiveMQ, jms, transaction
> Attachments: injected-jms.zip, wildfly-11-injected-jms.txt
>
>
> If I try to use an @Injected JMSContext while executing within a background task (ManagedExecutorService) or thread (ManagedThreadFactory), I get the attached stacktrace. I've experienced this a number of times with Wildfly 10.1.0, including messages sent in Infinispan's expiry task thread.
> My original workaround was to submit an additional task on a separate thread to send the message, then wait for it to complete. That seemed unreliable (sometimes it would still produce NameNotFoundException). I've resorted to creating my own JMSContext by using @Resource( lookup="java:/ConnectionFactory" ) and sending messages that way. Both workarounds prevent the message sending logic from participating in any ongoing transactions.
> I'm also attaching a sample EAR project. It can be built with Maven. It creates a background task that waits 3 seconds and then tries to send a JMS message in a new transaction using an injected JMS context. I use the standalone-full.xml profile to run it.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (DROOLS-2134) OOPathTest#testDeclarationOutsideOOPath fails with ClassCastException when jitting is enforced
by Peter Mačkay (JIRA)
Peter Mačkay created DROOLS-2134:
------------------------------------
Summary: OOPathTest#testDeclarationOutsideOOPath fails with ClassCastException when jitting is enforced
Key: DROOLS-2134
URL: https://issues.jboss.org/browse/DROOLS-2134
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.4.1.Final
Reporter: Peter Mačkay
Assignee: Mario Fusco
Priority: Minor
When trying to run OOPathTest#testDeclarationOutsideOOPath with enforced jitting, the test fails with following exception:
{code}
java.lang.RuntimeException: Error evaluating constraint 'this != $ic1' in []
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:273)
at org.drools.core.rule.constraint.MvelConstraint.isAllowedCachedLeft(MvelConstraint.java:233)
at org.drools.core.common.DoubleBetaConstraints.isAllowedCachedLeft(DoubleBetaConstraints.java:109)
at org.drools.core.phreak.PhreakFromNode.propagate(PhreakFromNode.java:317)
at org.drools.core.phreak.PhreakFromNode.checkConstraintsAndPropagate(PhreakFromNode.java:290)
at org.drools.core.phreak.PhreakFromNode.doLeftInserts(PhreakFromNode.java:120)
at org.drools.core.phreak.PhreakFromNode.doNode(PhreakFromNode.java:68)
at org.drools.core.phreak.PhreakReactiveFromNode.doNode(PhreakReactiveFromNode.java:34)
at org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:392)
at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:333)
at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:169)
at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:127)
at org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:212)
at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:87)
at org.drools.core.concurrent.AbstractRuleEvaluator.internalEvaluateAndFire(AbstractRuleEvaluator.java:34)
at org.drools.core.concurrent.SequentialRuleEvaluator.evaluateAndFire(SequentialRuleEvaluator.java:43)
at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1067)
at org.drools.core.common.DefaultAgenda.internalFireAllRules(DefaultAgenda.java:1014)
at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1006)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1320)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1311)
at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1295)
at org.drools.compiler.oopath.OOPathTest.testDeclarationOutsideOOPath(OOPathTest.java:1010)
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:497)
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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
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 com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
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:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassCastException: org.drools.compiler.oopath.model.TMFile cannot be cast to org.drools.compiler.oopath.model.TMFileSet
at ConditionEvaluator02d1ed6d278d48e7bf85d6c59d74e5c4.evaluate(Unknown Source)
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:271)
... 48 more
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months