[JBoss JIRA] (DROOLS-2127) Importing a jar into a project in work bench not working properly
by Michael Anstis (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2127?page=com.atlassian.jira.plugi... ]
Michael Anstis commented on DROOLS-2127:
----------------------------------------
Can you provide your JAR you uploaded?
I just downloaded {{kie-drools-wb-7.4.1.Final}}, installed and ran.
After uploading a JAR everything worked fine for me. I could download the JAR from the Artifact Repository screen and use as a dependency in projects.
I noticed your GAVs are shown as "<undetermined>:<undetermined>:<undetermined>" which means there was a problem parsing the pom in the JAR.. so this might be the cause of your problems but I'd need your JAR to investigate further.
> Importing a jar into a project in work bench not working properly
> -----------------------------------------------------------------
>
> Key: DROOLS-2127
> URL: https://issues.jboss.org/browse/DROOLS-2127
> Project: Drools
> Issue Type: Bug
> Components: Artifact Repository
> Affects Versions: 7.4.1.Final
> Environment: wildfly 10, workbench 7.4.1, java 1.8.0.141
> Reporter: Ramesh C
> Assignee: Michael Anstis
> Priority: Minor
> Attachments: WorkbenchIssue.png
>
>
> If we import a jar into repository in workbench and try to import it in projects, it is not working.
> I found, it is missing a first char of a package name in the path.
> please refer attached image for details.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFCORE-3417) JmxControlledStateNotificationsTestCase fails with security manager with IBM JDK in WF core
by Jiri Ondrusek (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3417?page=com.atlassian.jira.plugi... ]
Jiri Ondrusek reassigned WFCORE-3417:
-------------------------------------
Assignee: Jiri Ondrusek
> JmxControlledStateNotificationsTestCase fails with security manager with IBM JDK in WF core
> -------------------------------------------------------------------------------------------
>
> Key: WFCORE-3417
> URL: https://issues.jboss.org/browse/WFCORE-3417
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 4.0.0.Alpha2
> Reporter: Ondrej Lukas
> Assignee: Jiri Ondrusek
>
> *org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase*
> {code}
> cd testsuite/domain/
> mvn test -DtestLogToFile=false -Dtest=JmxControlledStateNotificationsTestCase -Dsecurity.manager
> {code}
> fails on IBM JDK with:
> {code}
> java.lang.AssertionError: {"outcome" => "failed","result" => undefined,"failure-description" => {"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => {"server-group" => {"main-server-group" => {"host" => {"master" => {"main-one" => {"WFLYCTL0080: Failed services" => {"test.deployment.jmx" => "java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/mnt/hudson_workspace/workspace/eap-7x-as-testsuite-test-core-rhel-secman/19de6045/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/mnt/hudson_workspace/workspace/eap-7x-as-testsuite-test-core-rhel-secman/19de6045/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")"}}}}}}}},"rolled-back" => true,"server-groups" => {"main-server-group" => {"host" => {"master" => {"main-one" => {"response" => {"outcome" => "failed","failure-description" => {"WFLYCTL0080: Failed services" => {"test.deployment.jmx" => "java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/mnt/hudson_workspace/workspace/eap-7x-as-testsuite-test-core-rhel-secman/19de6045/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/mnt/hudson_workspace/workspace/eap-7x-as-testsuite-test-core-rhel-secman/19de6045/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")"}},"rolled-back" => true}}}}}}}
> at org.junit.Assert.fail(Assert.java:88)
> at org.jboss.as.test.integration.management.rbac.RbacUtil.checkOperationResult(RbacUtil.java:115)
> at org.jboss.as.test.integration.management.rbac.RbacUtil.executeOperation(RbacUtil.java:100)
> at org.wildfly.test.jmx.JMXListenerDeploymentSetupTask.setup(JMXListenerDeploymentSetupTask.java:75)
> at org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase.setupClass(JmxControlledStateNotificationsTestCase.java:86)
> {code}
> Moreover it causes that all following test cases will fail.
> It seems it is caused by [1] which configures different Path for IBM JDK, but this is not covered in permissions for deployment created in [2].
> [1] https://github.com/wildfly/wildfly-core/blob/8b28abb588dd7d9d51e662011180...
> [2] https://github.com/wildfly/wildfly-core/blob/8b28abb588dd7d9d51e662011180...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (DROOLS-2133) Rule Unit unbind using `run` causes wrong lookup of DS on the wrong unit
by Matteo Mortari (JIRA)
Matteo Mortari created DROOLS-2133:
--------------------------------------
Summary: Rule Unit unbind using `run` causes wrong lookup of DS on the wrong unit
Key: DROOLS-2133
URL: https://issues.jboss.org/browse/DROOLS-2133
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Matteo Mortari
Assignee: Mario Fusco
Please reference test {{testGuardAndRunBack}}
{code:java}
public static class MainHouseUnit implements RuleUnit {
private DataSource<Date> now;
private DataSource<String> part;
private DataSource<Boolean> switch1;
public MainHouseUnit() {
super();
}
public DataSource<Date> getNow() {
return now;
}
public DataSource<String> getPart() {
return part;
}
public DataSource<Boolean> getSwitch1() {
return switch1;
}
}
public static class DayPartUnit implements RuleUnit {
private DataSource<Date> now;
private DataSource<Date> aScopedDS;
private DataSource<String> part;
public DayPartUnit() {
super();
}
public DataSource<Date> getNow() {
return now;
}
public DataSource<String> getPart() {
return part;
}
public DataSource<Date> getaScopedDS() {
return aScopedDS;
}
}
public static class SwitchUnit implements RuleUnit {
private DataSource<String> part;
private DataSource<Boolean> switch1;
public SwitchUnit() {
super();
}
public DataSource<String> getPart() {
return part;
}
public DataSource<Boolean> getSwitch1() {
return switch1;
}
}
private KieBase kieBaseMainGuardSubunitRunBackToMain(boolean currentStyle) {
// use "hammer" approach with external multiple call to fire, or "drools.run()" approach in rules.
System.out.println("Running with style: " + currentStyle);
String drl1 = "package org.drools.compiler.integrationtests\n" +
"unit " + getCanonicalSimpleName(MainHouseUnit.class) + "\n" +
"import " + DayPartUnit.class.getCanonicalName() + "\n" +
"import " + SwitchUnit.class.getCanonicalName() + "\n" +
"rule GuardDayPartUnit when\n" +
" Object() from now \n" +
" not( String() from part ) \n" +
"then\n" +
" System.out.println(\"Guarding DayPartUnit\");\n" +
" drools.guard(DayPartUnit.class);\n" +
"end\n" +
"rule GuardSwitchUnit when\n" +
" String() from part \n" +
" not( Boolean() from switch1 ) \n" +
"then\n" +
" System.out.println(\"Guarding SwitchUnit\");\n" +
" drools.guard(SwitchUnit.class);\n" +
"end\n";
String drl2 = "package org.drools.compiler.integrationtests\n" +
"unit " + getCanonicalSimpleName(DayPartUnit.class) + "\n" +
"import " + MainHouseUnit.class.getCanonicalName() + "\n" +
"rule doDayPartUnit when\n" +
" $n : Object() from now \n" +
"then\n" +
" System.out.println(\"Inside DayPartUnit: \"+$n);\n" +
" part.insert(\"Morning\");\n" +
(currentStyle ? "//" : "") + " drools.run(MainHouseUnit.class);\n" +
"end\n";
String drl3 = "package org.drools.compiler.integrationtests\n" +
"unit " + getCanonicalSimpleName(SwitchUnit.class) + "\n" +
"import " + MainHouseUnit.class.getCanonicalName() + "\n" +
"rule doSwitchUnit when\n" +
" $n : String() from part \n" +
"then\n" +
" System.out.println(\"Inside SwitchUnit: \"+$n);\n" +
" switch1.insert(true);\n" +
(currentStyle ? "//" : "") + " drools.run(MainHouseUnit.class);\n" +
"end\n";
KieBase kbase = new KieHelper().addContent(drl1, ResourceType.DRL)
.addContent(drl2, ResourceType.DRL)
.addContent(drl3, ResourceType.DRL)
.build();
return kbase;
}
@Test
public void testMainGuardSubunitRunBackToMain_usingHammerStyle() throws Exception {
KieBase kbase = kieBaseMainGuardSubunitRunBackToMain(true);
RuleUnitExecutor executor = RuleUnitExecutor.create().bind(kbase);
executor.newDataSource("now", LocalDateTime.now());
executor.newDataSource("part");
executor.newDataSource("aScopedDS");
DataSource<Boolean> switch1 = executor.newDataSource("switch1");
RuleUnit adultUnit = new MainHouseUnit();
executor.run(adultUnit);
// need a second, "hammer" run.
executor.run(adultUnit);
assertEquals(true, switch1.iterator().next());
}
@Test
public void testMainGuardSubunitRunBackToMain_usingRunStyle() throws Exception {
KieBase kbase = kieBaseMainGuardSubunitRunBackToMain(false);
RuleUnitExecutor executor = RuleUnitExecutor.create().bind(kbase);
executor.newDataSource("now", LocalDateTime.now());
executor.newDataSource("part");
executor.newDataSource("aScopedDS");
DataSource<Boolean> switch1 = executor.newDataSource("switch1");
RuleUnit adultUnit = new MainHouseUnit();
executor.run(adultUnit); // FAILs with trying to lookup method getaScopedDS() on the MainHouseUnit (which is not correct unit).
// does NOT need a second, "hammer" run.
assertEquals(true, switch1.iterator().next());
}
public static class EmptyUnit implements RuleUnit {
public EmptyUnit() {
// no-args constructor.
}
}
public static class StringDSUnit implements RuleUnit {
private DataSource<String> strings;
public StringDSUnit() {
// no-args constructor.
}
public DataSource<String> getStrings() {
return strings;
}
}
@Test
public void testGuardAndRunBack() {
String drl1 = "package org.drools.compiler.integrationtests\n" +
"unit " + getCanonicalSimpleName(EmptyUnit.class) + "\n" +
"import " + StringDSUnit.class.getCanonicalName() + "\n" +
"rule RGuard when\n" +
"then\n" +
" System.out.println(\"Guarding StringDSUnit\");\n" +
" drools.guard(StringDSUnit.class);\n" +
"end\n";
String drl2 = "package org.drools.compiler.integrationtests\n" +
"unit " + getCanonicalSimpleName(StringDSUnit.class) + "\n" +
"import " + EmptyUnit.class.getCanonicalName() + "\n" +
"rule RGoBack when\n" +
"then\n" +
" System.out.println(\"Inside StringDSUnit: \");\n" +
" drools.run(EmptyUnit.class);\n" +
"end\n";
KieBase kbase = new KieHelper().addContent(drl1, ResourceType.DRL)
.addContent(drl2, ResourceType.DRL)
.build();
RuleUnitExecutor executor = RuleUnitExecutor.create().bind(kbase);
executor.newDataSource("strings", "abc", "xyz");
RuleUnit adultUnit = new EmptyUnit();
executor.run(adultUnit); // FAILs with trying to lookup method getStrings() on the EmptyUnit (which is not correct unit).
}
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (DROOLS-2126) kie-docs, kie-workbench-webapp: missing jackson dependency classes
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2126?page=com.atlassian.jira.plugi... ]
Marek Novotny commented on DROOLS-2126:
---------------------------------------
So there are multiple usages of {{JsonFactory}}:
{noformat}
import org.codehaus.jackson.JsonFactory;
./jbpm-designer/jbpm-designer-backend/src/main/java/org/jbpm/designer/expressioneditor/marshalling/ExpressionEditorMessageJSONMarshaller.java
import org.codehaus.jackson.JsonFactory;
./jbpm-designer/jbpm-designer-backend/src/main/java/org/jbpm/designer/expressioneditor/marshalling/ExpressionEditorMessageJSONUnmarshaller.java
import org.codehaus.jackson.JsonFactory;
./jbpm-designer/jbpm-designer-backend/src/main/java/org/jbpm/designer/bpmn2/impl/Bpmn2JsonUnmarshaller.java
import org.codehaus.jackson.JsonFactory;
./jbpm-designer/jbpm-designer-backend/src/main/java/org/jbpm/designer/bpmn2/impl/Bpmn2JsonMarshaller.java
import org.codehaus.jackson.JsonFactory;
./jbpm-designer/jbpm-designer-backend/src/main/java/org/jbpm/designer/epn/impl/EpnJsonMarshaller.java
import org.codehaus.jackson.JsonFactory;
./kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/main/java/org/kie/workbench/common/stunner/bpmn/backend/legacy/Bpmn2JsonUnmarshaller.java
import org.codehaus.jackson.JsonFactory;
./kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/main/java/org/kie/workbench/common/stunner/bpmn/backend/legacy/Bpmn2JsonMarshaller.java
{noformat}
> kie-docs,kie-workbench-webapp: missing jackson dependency classes
> -----------------------------------------------------------------
>
> Key: DROOLS-2126
> URL: https://issues.jboss.org/browse/DROOLS-2126
> Project: Drools
> Issue Type: Bug
> Reporter: Marek Novotny
> Assignee: Marek Novotny
> Priority: Critical
>
> Build for kie-docs fails to compile due missing "jackson" classes from dependencies
> {noformat}
> [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ kie-docs-code ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 1 source file to /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/target/test-classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[22,28] package org.codehaus.jackson does not exist
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[23,32] package org.codehaus.jackson.map does not exist
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[24,32] package org.codehaus.jackson.map does not exist
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[37,49] cannot find symbol
> symbol: class JsonGenerationException
> location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[37,74] cannot find symbol
> symbol: class JsonMappingException
> location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[64,56] cannot find symbol
> symbol: class JsonGenerationException
> location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[64,81] cannot find symbol
> symbol: class JsonMappingException
> location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[92,58] cannot find symbol
> symbol: class JsonGenerationException
> location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[92,83] cannot find symbol
> symbol: class JsonMappingException
> location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [INFO] 9 errors
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] KIE :: Documentation ............................... SUCCESS [ 1.616 s]
> [INFO] KIE :: Documentation :: Example Code ............... FAILURE [ 1.368 s]
> [INFO] KIE :: Documentation Guides ........................ SKIPPED
> [INFO] KIE :: Documentation :: Drools ..................... SKIPPED
> [INFO] KIE :: Documentation :: jBPM ....................... SKIPPED
> [INFO] KIE :: Documentation :: OptaPlanner Workbench and Execution Server SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.777 s
> [INFO] Finished at: 2017-11-13T14:45:00+01:00
> [INFO] Final Memory: 77M/990M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile (default-testCompile) on project kie-docs-code: Compilation failure: Compilation failure:
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[22,28] package org.codehaus.jackson does not exist
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[23,32] package org.codehaus.jackson.map does not exist
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[24,32] package org.codehaus.jackson.map does not exist
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[37,49] cannot find symbol
> [ERROR] symbol: class JsonGenerationException
> [ERROR] location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[37,74] cannot find symbol
> [ERROR] symbol: class JsonMappingException
> [ERROR] location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[64,56] cannot find symbol
> [ERROR] symbol: class JsonGenerationException
> [ERROR] location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[64,81] cannot find symbol
> [ERROR] symbol: class JsonMappingException
> [ERROR] location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[92,58] cannot find symbol
> [ERROR] symbol: class JsonGenerationException
> [ERROR] location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] /home/mnovotny/projects/git/KIEGROUP/kie-docs/code/src/test/java/org/guvnor/rest/backend/documentation/GuvnorSerializationExamplesTest.java:[92,83] cannot find symbol
> [ERROR] symbol: class JsonMappingException
> [ERROR] location: class org.guvnor.rest.backend.documentation.GuvnorSerializationExamplesTest
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR] mvn <goals> -rf :kie-docs-code
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (WFLY-9455) WFLYTX0001: Unable to roll back active transaction thrown for EJB bridge transactions
by Ondra Chaloupka (JIRA)
[ https://issues.jboss.org/browse/WFLY-9455?page=com.atlassian.jira.plugin.... ]
Ondra Chaloupka updated WFLY-9455:
----------------------------------
Steps to Reproduce:
Could be reproduced with jbosstm quickstart at
https://github.com/jbosstm/quickstart
{code}
export JBOSS_HOME=...
cp $JBOSS_HOME/docs/examples/configs/standalone-xts.xml $JBOSS_HOME/standalone/configuration
mvn clean; mvn install -pl XTS/wsat-jta-multi_service -am -Parq -Dtest=BridgeFromJTATest#testCommit
{code}
was:
Could be reproduced with jbosstm quickstart at
https://github.com/jbosstm/quickstart
{code}
export JBOSS_HOME=...
cp $JBOSS_HOME/docs/examples/config/standalone-xts.xml $JBOSS_HOME/standalone/configuration
mvn clean; mvn install -pl XTS/wsat-jta-multi_service -am -Parq -Dtest=BridgeFromJTATest#testCommit
{code}
> WFLYTX0001: Unable to roll back active transaction thrown for EJB bridge transactions
> -------------------------------------------------------------------------------------
>
> Key: WFLY-9455
> URL: https://issues.jboss.org/browse/WFLY-9455
> Project: WildFly
> Issue Type: Bug
> Components: XTS
> Affects Versions: 11.0.0.CR1
> Reporter: Ondra Chaloupka
> Assignee: Ondra Chaloupka
>
> It happens to get exception
> {code}
> ERROR [org.jboss.as.txn] (default task-12) WFLYTX0003: APPLICATION ERROR: transaction still active in request with status 0
> ERROR [org.jboss.as.txn] (default task-12) WFLYTX0001: Unable to roll back active transaction: javax.transaction.SystemException: WFTXN0032: Rollback not allowed on imported transaction
> at org.wildfly.transaction.client.LocalTransaction.rollbackAndDissociate(LocalTransaction.java:100)
> at org.wildfly.transaction.client.ContextTransactionManager.rollback(ContextTransactionManager.java:83)
> at org.jboss.as.txn.deployment.TransactionRollbackSetupAction.checkTransactionStatus(TransactionRollbackSetupAction.java:137)
> at org.jboss.as.txn.deployment.TransactionRollbackSetupAction.teardown(TransactionRollbackSetupAction.java:67)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1510)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
> at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
> at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> when using XTS transactions bridged to JTA for EJB handling. This happens on change of integration layer for WFTC in WFLY11.
> The integration issues were already discussed as part of the JBTM-2853.
> Here I hit a trouble of having log filled with the exception mentioned above. This does not cause a functionality trouble but the log is ugly filled with ERRORs.
> The trouble seems to be caused by the fact that transaction is imported on ivocation of WS
> https://github.com/wildfly/wildfly/blob/master/webservices/server-integra...
> but as it was suspended in the integration code before
> https://github.com/jbosstm/narayana/blob/master/txbridge/src/main/java/or...
> now the WFTC holds the notion about the transaction even on call of
> https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java...
> and such transaction is tried to be rollback which is forbidden on WFTC for imported ones and thus at least ERROR msg is written to the log.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (JGRP-2235) ConcurrentModificationException when resend pending lock requests
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-2235?page=com.atlassian.jira.plugin.... ]
Bela Ban updated JGRP-2235:
---------------------------
Fix Version/s: 4.0.9
> ConcurrentModificationException when resend pending lock requests
> -----------------------------------------------------------------
>
> Key: JGRP-2235
> URL: https://issues.jboss.org/browse/JGRP-2235
> Project: JGroups
> Issue Type: Bug
> Reporter: Bram Klein Gunnewiek
> Assignee: Bela Ban
> Fix For: 4.0.9
>
>
> While testing JGRP-2234 we saw a ConcurrentModificationException in the locking protocol in some (rare) situations:
> {noformat}
> 09:46:42.856 [jgroups-7,TEST,B] ERROR org.jgroups.protocols.pbcast.GMS - JGRP000027: failed passing message up
> java.util.ConcurrentModificationException: null
> at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1630) ~[?:1.8.0_151]
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_151]
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_151]
> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_151]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_151]
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_151]
> at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_151]
> at org.jgroups.protocols.Locking$ClientLockTable.lambda$resendPendingLockRequests$3(Locking.java:1085) ~[classes/:?]
> at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707) ~[?:1.8.0_151]
> at org.jgroups.protocols.Locking$ClientLockTable.resendPendingLockRequests(Locking.java:1084) ~[classes/:?]
> at org.jgroups.protocols.CENTRAL_LOCK.handleView(CENTRAL_LOCK.java:147) ~[classes/:?]
> at org.jgroups.protocols.Locking.up(Locking.java:218) ~[classes/:?]
> at org.jgroups.protocols.FRAG2.up(FRAG2.java:163) ~[classes/:?]
> at org.jgroups.protocols.pbcast.GMS.installView(GMS.java:702) ~[classes/:?]
> at org.jgroups.protocols.pbcast.ParticipantGmsImpl.handleViewChange(ParticipantGmsImpl.java:135) ~[classes/:?]
> at org.jgroups.protocols.pbcast.GMS.up(GMS.java:918) ~[classes/:?]
> at org.jgroups.stack.Protocol.up(Protocol.java:364) [classes/:?]
> at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:293) [classes/:?]
> at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:428) [classes/:?]
> at org.jgroups.protocols.pbcast.NAKACK2.deliverBatch(NAKACK2.java:962) [classes/:?]
> at org.jgroups.protocols.pbcast.NAKACK2.removeAndDeliver(NAKACK2.java:896) [classes/:?]
> at org.jgroups.protocols.pbcast.NAKACK2.handleMessages(NAKACK2.java:870) [classes/:?]
> at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:690) [classes/:?]
> at org.jgroups.stack.Protocol.up(Protocol.java:372) [classes/:?]
> at org.jgroups.protocols.TP.passBatchUp(TP.java:1255) [classes/:?]
> at org.jgroups.util.MaxOneThreadPerSender$BatchHandlerLoop.passBatchUp(MaxOneThreadPerSender.java:284) [classes/:?]
> at org.jgroups.util.SubmitToThreadPool$BatchHandler.run(SubmitToThreadPool.java:136) [classes/:?]
> at org.jgroups.util.MaxOneThreadPerSender$BatchHandlerLoop.run(MaxOneThreadPerSender.java:273) [classes/:?]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_151]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months
[JBoss JIRA] (JGRP-2234) Unlocked locks stay locked forever
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-2234?page=com.atlassian.jira.plugin.... ]
Bela Ban updated JGRP-2234:
---------------------------
Fix Version/s: 4.0.9
> Unlocked locks stay locked forever
> ----------------------------------
>
> Key: JGRP-2234
> URL: https://issues.jboss.org/browse/JGRP-2234
> Project: JGroups
> Issue Type: Bug
> Reporter: Bram Klein Gunnewiek
> Assignee: Bela Ban
> Fix For: 4.0.9
>
> Attachments: ClusterSplitLockTest.java, jg_clusterlock_output_testfail.txt
>
>
> As discussed in the mailing list we have issues where locks from the central lock protocol stay locked forever when the coordinator of the cluster disconnects. We can reproduce this with the attached ClusterSplitLockTest.java. Its a race condition and we need to run the test a lot of times (sometimes > 20) before we encounter a failure.
> What we think is happening:
> In a three node cluster (node A, B and C where node A is the coordinator) unlock requests from B and/or C can be missed when node A leaves and B and/or C don't have the new view installed yet. When, for example, node B takes over coordination it creates the lock table based on the back-ups. Lets say node C has locked the lock with name 'lockX'. Node C performs an unlock of 'lockX' just after node A (gracefully) leaves and sends the unlock request to node A since node C doesn't have the correct view installed yet. Node B has and recreated the lock table where 'lockX' is locked by Node C. Node C doesn't resend the unlock request so 'lockX' gets locked forever.
> Attached is the testng test we wrote and the output of a test failure.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 8 months