[JBoss JIRA] (WFLY-3534) Transaction is not being shared by different operations within the same thread
by Richard Yang (JIRA)
[ https://issues.jboss.org/browse/WFLY-3534?page=com.atlassian.jira.plugin.... ]
Richard Yang commented on WFLY-3534:
------------------------------------
We are facing this issue in 8.1.0.Final. It is a show stopper for us.
Could you have this fix patched to 8.1.0.Final? or provide jars for us to replace?
Thanks.
> Transaction is not being shared by different operations within the same thread
> ------------------------------------------------------------------------------
>
> Key: WFLY-3534
> URL: https://issues.jboss.org/browse/WFLY-3534
> Project: WildFly
> Issue Type: Bug
> Components: Security
> Affects Versions: 9.0.0.Alpha1
> Reporter: Pedro Igor
> Assignee: Pedro Igor
> Fix For: 9.0.0.Alpha1
>
>
> When injecting a JPA-based PartitionManager configuration in a EJB as follows:
> {code}
> @Resource(mappedName = "picketlink/JPADSBasedPartitionManager")
> private PartitionManager jpaDSBasedPartitionManager;
> {code}
> The IDM operations are executed without share the same EntityManager instance. This causes some strange behaviors such as not being able to retrieve data stored from a previous operation during a method execution.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (DROOLS-625) Implement a passive pattern
by Mario Fusco (JIRA)
Mario Fusco created DROOLS-625:
----------------------------------
Summary: Implement a passive pattern
Key: DROOLS-625
URL: https://issues.jboss.org/browse/DROOLS-625
Project: Drools
Issue Type: Feature Request
Reporter: Mario Fusco
Assignee: Mario Fusco
Prepending a pattern with a '?' should make it passive (i.e. non reactive to right insertions) as dimostrated by the following test case.
{code}
@Test
public void testPassiveInsert() throws Exception {
String str =
"global java.util.List list\n" +
"rule R when\n" +
" $i : Integer()\n" +
" ?String( this == $i.toString() )\n" +
"then\n" +
" list.add( $i );\n" +
"end\n";
KieSession ksession = new KieHelper()
.addContent(str, ResourceType.DRL)
.build()
.newKieSession();
List<Integer> list = new ArrayList<Integer>();
ksession.setGlobal("list", list);
ksession.insert(1);
ksession.insert("2");
ksession.fireAllRules();
assertEquals(0, list.size());
ksession.insert("1");
ksession.fireAllRules();
assertEquals(0, list.size());
ksession.insert(2);
ksession.fireAllRules();
assertEquals(1, list.size());
assertEquals(2, (int)list.get(0));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (DROOLS-624) Passive queries behave in a reactive way
by Mario Fusco (JIRA)
Mario Fusco created DROOLS-624:
----------------------------------
Summary: Passive queries behave in a reactive way
Key: DROOLS-624
URL: https://issues.jboss.org/browse/DROOLS-624
Project: Drools
Issue Type: Bug
Reporter: Mario Fusco
Assignee: Mark Proctor
The batch evaluation performed by phreak doesn't allow to take count of the sequence of the inserts performed into a kiesession between 2 consecutive fireAllRules. This means that the following test case succeeds as expected
{code}
@Test
public void testPassiveQuery2() throws Exception {
String str =
"global java.util.List list\n" +
"query Q (Integer i)\n" +
" String( this == i.toString() )\n" +
"end\n" +
"rule R @Eager(true) when\n" +
" $i : Integer()\n" +
" ?Q( $i; )\n" +
"then\n" +
" list.add( $i );\n" +
"end\n";
KieSession ksession = new KieHelper()
.addContent(str, ResourceType.DRL)
.build()
.newKieSession();
List<Integer> list = new ArrayList<Integer>();
ksession.setGlobal("list", list);
ksession.insert("1");
ksession.insert(1);
ksession.fireAllRules();
assertEquals(1, list.size());
}
{code}
but you got an activatoin even if the fact matched by the passive query is inserted (the String in this case) is inserted after. So the following test fails:
{code}
@Test
public void testPassiveQuery3() throws Exception {
String str =
"global java.util.List list\n" +
"query Q (Integer i)\n" +
" String( this == i.toString() )\n" +
"end\n" +
"rule R @Eager(true) when\n" +
" $i : Integer()\n" +
" ?Q( $i; )\n" +
"then\n" +
" list.add( $i );\n" +
"end\n";
KieSession ksession = new KieHelper()
.addContent(str, ResourceType.DRL)
.build()
.newKieSession();
List<Integer> list = new ArrayList<Integer>();
ksession.setGlobal("list", list);
ksession.insert(1);
ksession.insert("1");
ksession.fireAllRules();
System.out.println(list);
assertEquals(0, list.size());
}
{code}
Note that performing a further fireAllRules between the 2 insertions force the evaluation of the lefttTuple before the insertion of the fact matched by the passive query and the fixes the problem as demonstrated by this last test.
{code}
@Test
public void testPassiveQuery4() throws Exception {
String str =
"global java.util.List list\n" +
"query Q (Integer i)\n" +
" String( this == i.toString() )\n" +
"end\n" +
"rule R @Eager(true) when\n" +
" $i : Integer()\n" +
" ?Q( $i; )\n" +
"then\n" +
" list.add( $i );\n" +
"end\n";
KieSession ksession = new KieHelper()
.addContent(str, ResourceType.DRL)
.build()
.newKieSession();
List<Integer> list = new ArrayList<Integer>();
ksession.setGlobal("list", list);
ksession.insert(1);
ksession.fireAllRules();
ksession.insert("1");
ksession.fireAllRules();
System.out.println(list);
assertEquals(0, list.size());
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (WFLY-3932) Enable security manager via JBoss Modules
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/WFLY-3932?page=com.atlassian.jira.plugin.... ]
James Perkins updated WFLY-3932:
--------------------------------
Description:
In WildFly Core the security manager can be enabled via the {{-secmgr}} argument or setting the {{SECMGR=true}} environment variable. In order for this change to work correctly the {{WildFlySecurityManager.install()}} needs to be disabled.
Also -all- standalone, process-controller and host-controller modules that declare a dependency on {{org.wildfly.security.manager}} need to export the services.
Tests need to be updated to use the {{-secmgr}} argument rather than {{-Djava.security.manager}}.
was:
In WildFly Core the security manager can be enabled via the {{-secmgr}} argument or setting the {{SECMGR=true}} environment variable. In order for this change to work correctly the {{WildFlySecurityManager.install()}} needs to be disabled.
Also all modules that declare a dependency on {{org.wildfly.security.manager}} need to export the services.
Tests need to be updated to use the {{-secmgr}} argument rather than {{-Djava.security.manager}}.
> Enable security manager via JBoss Modules
> -----------------------------------------
>
> Key: WFLY-3932
> URL: https://issues.jboss.org/browse/WFLY-3932
> Project: WildFly
> Issue Type: Feature Request
> Components: Security Manager
> Reporter: James Perkins
> Assignee: James Perkins
>
> In WildFly Core the security manager can be enabled via the {{-secmgr}} argument or setting the {{SECMGR=true}} environment variable. In order for this change to work correctly the {{WildFlySecurityManager.install()}} needs to be disabled.
> Also -all- standalone, process-controller and host-controller modules that declare a dependency on {{org.wildfly.security.manager}} need to export the services.
> Tests need to be updated to use the {{-secmgr}} argument rather than {{-Djava.security.manager}}.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (WFLY-270) Use logger instead of [stdout] for JGroups GMS logger
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/WFLY-270?page=com.atlassian.jira.plugin.s... ]
Radoslav Husar reassigned WFLY-270:
-----------------------------------
Assignee: Paul Ferraro (was: Radoslav Husar)
Paul is fixing this by <pbcast.GMS print_local_addr="false"/>.
> Use logger instead of [stdout] for JGroups GMS logger
> -----------------------------------------------------
>
> Key: WFLY-270
> URL: https://issues.jboss.org/browse/WFLY-270
> Project: WildFly
> Issue Type: Feature Request
> Components: Clustering
> Affects Versions: 8.0.0.Alpha1
> Reporter: Radoslav Husar
> Assignee: Paul Ferraro
> Priority: Trivial
>
> ...and possibly remove the unnecessary dash lines on the way.
> {noformat}
> [JBossINF] 12:11:12,677 INFO [org.jboss.as.osgi] (MSC service thread 1-15) JBAS011907: Register module: Module "deployment.clusterbench-ee6.ear.clusterbench-ee6-ejb.jar:main" from Service Module Loader
> [JBossINF] 12:11:13,142 INFO [stdout] (ChannelService lifecycle - 1)
> [JBossINF] 12:11:13,142 INFO [stdout] (ChannelService lifecycle - 1) -------------------------------------------------------------------
> [JBossINF] 12:11:13,142 INFO [stdout] (ChannelService lifecycle - 1) GMS: address=perf18/web, cluster=web, physical address=10.16.90.54:55200
> [JBossINF] 12:11:13,143 INFO [stdout] (ChannelService lifecycle - 1) -------------------------------------------------------------------
> [JBossINF] 12:11:13,209 INFO [stdout] (ChannelService lifecycle - 1)
> [JBossINF] 12:11:13,209 INFO [stdout] (ChannelService lifecycle - 1) -------------------------------------------------------------------
> [JBossINF] 12:11:13,209 INFO [stdout] (ChannelService lifecycle - 1) GMS: address=perf18/ejb, cluster=ejb, physical address=10.16.90.54:55200
> [JBossINF] 12:11:13,210 INFO [stdout] (ChannelService lifecycle - 1) -------------------------------------------------------------------
> [JBossINF] 12:11:13,441 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-5) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months