[JBoss JIRA] (DROOLS-1347) Explicit expiration of event not effective - regression from 6.4 to 6.5
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1347?page=com.atlassian.jira.plugi... ]
Matteo Mortari commented on DROOLS-1347:
----------------------------------------
Rule definition advice.
In this case, the problem is the rule "Rexpected" is assuming the previous behavior of expiration (as behaving before 6.5.0.Final). In this case, the rule can be defined more correclty and aligned with the current behavior (from 6.5.0.Final) by rewriting it as:
{code:java}
rule "Rexpected"
when
$t : Character() over window:length(1)
not String(this coincides $t)
then
insert("good");
list.add("Rexpected");
end
{code}
with output:
{code}
2016-10-28 17:06:21,275 INFO [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (main) Found kmodule: file:/home/mmortari/git/DROOLS-1347/target/classes/META-INF/kmodule.xml
2016-10-28 17:06:21,462 WARN [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (main) Unable to find pom.properties in /home/mmortari/git/DROOLS-1347/target/classes
2016-10-28 17:06:21,472 INFO [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (main) Recursed up folders, found and used pom.xml /home/mmortari/git/DROOLS-1347/pom.xml
2016-10-28 17:06:21,478 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (main) KieModule was added: FileKieModule[releaseId=org.drools:DROOLS-1347:0.0.1-SNAPSHOT,file=/home/mmortari/git/DROOLS-1347/target/classes]
2016-10-28 17:06:22,314 INFO [org.drools.DROOLS_1347.RuleTest] (main) Creating kieBase with STREAM option
2016-10-28 17:06:22,380 INFO [org.drools.DROOLS_1347.RuleTest] (main) There should be rules:
2016-10-28 17:06:22,381 INFO [org.drools.DROOLS_1347.RuleTest] (main) kp [Package name=org.drools.DROOLS_1347] rule Rexpected
2016-10-28 17:06:22,381 INFO [org.drools.DROOLS_1347.RuleTest] (main) kp [Package name=org.drools.DROOLS_1347] rule Ravoid
2016-10-28 17:06:22,381 INFO [org.drools.DROOLS_1347.RuleTest] (main) Creating kieSession
2016-10-28 17:06:22,427 INFO [org.drools.DROOLS_1347.RuleTest] (main) Populating globals
2016-10-28 17:06:22,427 INFO [org.drools.DROOLS_1347.RuleTest] (main) Now running data
---a---
x a
x good
fired: [Rule name=Rexpected, agendaGroup=MAIN, salience=0, no-loop=false]
Session facts:
> a [java.lang.Character] FH: 5:1:649329985:97:1:DEFAULT:NON_TRAIT:java.lang.Character
> good [java.lang.String] FH: 5:2:1146825051:3178685:2:DEFAULT:NON_TRAIT:java.lang.String
---b---
x b
x good
fired: [Rule name=Rexpected, agendaGroup=MAIN, salience=0, no-loop=false]
Session facts:
> b [java.lang.Character] FH: 5:3:1239807799:98:3:DEFAULT:NON_TRAIT:java.lang.Character
> good [java.lang.String] FH: 5:4:1146825051:3178685:4:DEFAULT:NON_TRAIT:java.lang.String
{code}
and all assertions passes (/) (y)
> Explicit expiration of event not effective - regression from 6.4 to 6.5
> -----------------------------------------------------------------------
>
> Key: DROOLS-1347
> URL: https://issues.jboss.org/browse/DROOLS-1347
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Thibault Daoulas
> Assignee: Matteo Mortari
>
> I just ugraded my project from Drools 6.4.0.Final to 6.5.0.Final and have now quite a few tests on rules that fail, all have in common that they test the expiration of events, where an event that should have been removed from the working memory is still present.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (DROOLS-1347) Explicit expiration of event not effective - regression from 6.4 to 6.5
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1347?page=com.atlassian.jira.plugi... ]
Matteo Mortari edited comment on DROOLS-1347 at 10/28/16 11:03 AM:
-------------------------------------------------------------------
Simplified reproducer with assertions, aligned with OP's case:
{code:java}
public class RuleTest {
static final Logger LOG = LoggerFactory.getLogger(RuleTest.class);
@Test
public void test() throws InstantiationException, IllegalAccessException {
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer = kieServices.getKieClasspathContainer();
Results verifyResults = kContainer.verify();
for (Message m : verifyResults.getMessages()) {
LOG.info("{}", m);
}
LOG.info("Creating kieBase with STREAM option");
KieBaseConfiguration kieBaseConf = kieServices.newKieBaseConfiguration();
kieBaseConf.setOption( EventProcessingOption.STREAM );
KieBase kieBase = kContainer.newKieBase(kieBaseConf);
LOG.info("There should be rules: ");
for ( KiePackage kp : kieBase.getKiePackages() ) {
for (Rule rule : kp.getRules()) {
LOG.info("kp " + kp + " rule " + rule.getName());
}
}
LOG.info("Creating kieSession");
KieSessionConfiguration config = kieServices.newKieSessionConfiguration();
config.setOption( ClockTypeOption.get("pseudo") );
KieSession session = kieBase.newKieSession(config, null);
SessionPseudoClock clock = session.getSessionClock();
session.addEventListener(new DebugRuleRuntimeEventListener() {
@Override
public void objectDeleted(ObjectDeletedEvent event) {
System.out.println(event.getOldObject() + " " + "x");
}
@Override
public void objectInserted(ObjectInsertedEvent event) {
System.out.println("x" + " " + event.getObject());
}
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
System.out.println(event.getOldObject() + " " + event.getObject());
}
});
session.addEventListener(new DefaultAgendaEventListener() {
@Override
public void afterMatchFired(AfterMatchFiredEvent event) {
System.out.println("fired: "+event.getMatch().getRule());
}
});
LOG.info("Populating globals");
List<String> check = new ArrayList<String>();
session.setGlobal("list", check);
LOG.info("Now running data");
System.out.println("---a---");
clock.advanceTime(1000L, TimeUnit.MILLISECONDS);
session.insert( new Character('a') );
session.fireAllRules();
print(session);
assertTrue(check.contains("Rexpected"));
assertFalse(check.contains("Ravoid"));
System.out.println("---b---");
clock.advanceTime(3600000L, TimeUnit.MILLISECONDS);
session.insert( new Character('b') );
session.fireAllRules();
print(session);
assertTrue(check.contains("Rexpected"));
assertFalse(check.contains("Ravoid"));
}
private void print(KieSession session) {
System.out.println("Session facts:");
for ( FactHandle fh : session.getFactHandles() ) {
InternalFactHandle ifh = (InternalFactHandle) fh;
System.out.println(" > "+ifh.getObject()+" ["+ifh.getObjectClassName()+"] FH: "+fh);
}
}
}
{code}
And rules:
{code:java}
package org.drools.DROOLS_1347;
global java.util.List list;
declare Character
@role( event )
@expires( 1s )
end
declare String
@role( event )
@expires( 10m )
end
rule "Rexpected"
when
$t : Character() over window:length(1)
not String()
then
insert("good");
list.add("Rexpected");
end
rule "Ravoid"
when
$t : Character() over window:length(1)
exists String(this before $t)
not String(this coincides $t)
then
insert("bad");
list.add("Ravoid");
end
{code}
and output:
{code}
2016-10-28 17:01:57,314 INFO [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (main) Found kmodule: file:/home/mmortari/git/DROOLS-1347/target/classes/META-INF/kmodule.xml
2016-10-28 17:01:57,527 WARN [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (main) Unable to find pom.properties in /home/mmortari/git/DROOLS-1347/target/classes
2016-10-28 17:01:57,536 INFO [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (main) Recursed up folders, found and used pom.xml /home/mmortari/git/DROOLS-1347/pom.xml
2016-10-28 17:01:57,543 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (main) KieModule was added: FileKieModule[releaseId=org.drools:DROOLS-1347:0.0.1-SNAPSHOT,file=/home/mmortari/git/DROOLS-1347/target/classes]
2016-10-28 17:01:58,390 INFO [org.drools.DROOLS_1347.RuleTest] (main) Creating kieBase with STREAM option
2016-10-28 17:01:58,454 INFO [org.drools.DROOLS_1347.RuleTest] (main) There should be rules:
2016-10-28 17:01:58,454 INFO [org.drools.DROOLS_1347.RuleTest] (main) kp [Package name=org.drools.DROOLS_1347] rule Rexpected
2016-10-28 17:01:58,454 INFO [org.drools.DROOLS_1347.RuleTest] (main) kp [Package name=org.drools.DROOLS_1347] rule Ravoid
2016-10-28 17:01:58,454 INFO [org.drools.DROOLS_1347.RuleTest] (main) Creating kieSession
2016-10-28 17:01:58,499 INFO [org.drools.DROOLS_1347.RuleTest] (main) Populating globals
2016-10-28 17:01:58,500 INFO [org.drools.DROOLS_1347.RuleTest] (main) Now running data
---a---
x a
x good
fired: [Rule name=Rexpected, agendaGroup=MAIN, salience=0, no-loop=false]
Session facts:
> a [java.lang.Character] FH: 5:1:504858437:97:1:DEFAULT:NON_TRAIT:java.lang.Character
> good [java.lang.String] FH: 5:2:775386112:3178685:2:DEFAULT:NON_TRAIT:java.lang.String
---b---
x b
x bad
fired: [Rule name=Ravoid, agendaGroup=MAIN, salience=0, no-loop=false]
Session facts:
> b [java.lang.Character] FH: 5:3:391630194:98:3:DEFAULT:NON_TRAIT:java.lang.Character
> bad [java.lang.String] FH: 5:4:1146825051:97285:4:DEFAULT:NON_TRAIT:java.lang.String
{code}
Please notice despite the assertion fails, no expired events are present in the session anyway after all the rules have been fired and fireAllRules() has returned.
was (Author: tari_manga):
Simplified reproducer with assertions, aligned with OP's case:
{code:java}
public class RuleTest {
static final Logger LOG = LoggerFactory.getLogger(RuleTest.class);
@Test
public void test() throws InstantiationException, IllegalAccessException {
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer = kieServices.getKieClasspathContainer();
Results verifyResults = kContainer.verify();
for (Message m : verifyResults.getMessages()) {
LOG.info("{}", m);
}
LOG.info("Creating kieBase with STREAM option");
KieBaseConfiguration kieBaseConf = kieServices.newKieBaseConfiguration();
kieBaseConf.setOption( EventProcessingOption.STREAM );
KieBase kieBase = kContainer.newKieBase(kieBaseConf);
LOG.info("There should be rules: ");
for ( KiePackage kp : kieBase.getKiePackages() ) {
for (Rule rule : kp.getRules()) {
LOG.info("kp " + kp + " rule " + rule.getName());
}
}
LOG.info("Creating kieSession");
KieSessionConfiguration config = kieServices.newKieSessionConfiguration();
config.setOption( ClockTypeOption.get("pseudo") );
KieSession session = kieBase.newKieSession(config, null);
SessionPseudoClock clock = session.getSessionClock();
session.addEventListener(new DebugRuleRuntimeEventListener() {
@Override
public void objectDeleted(ObjectDeletedEvent event) {
System.out.println(event.getOldObject() + " " + "x");
}
@Override
public void objectInserted(ObjectInsertedEvent event) {
System.out.println("x" + " " + event.getObject());
}
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
System.out.println(event.getOldObject() + " " + event.getObject());
}
});
session.addEventListener(new DefaultAgendaEventListener() {
@Override
public void afterMatchFired(AfterMatchFiredEvent event) {
System.out.println("fired: "+event.getMatch().getRule());
}
});
LOG.info("Populating globals");
List<String> check = new ArrayList<String>();
session.setGlobal("list", check);
LOG.info("Now running data");
System.out.println("---a---");
clock.advanceTime(1000L, TimeUnit.MILLISECONDS);
session.insert( new Character('a') );
session.fireAllRules();
print(session);
assertTrue(check.contains("Rexpected"));
assertFalse(check.contains("Ravoid"));
System.out.println("---b---");
clock.advanceTime(3600000L, TimeUnit.MILLISECONDS);
session.insert( new Character('b') );
session.fireAllRules();
print(session);
assertTrue(check.contains("Rexpected"));
assertFalse(check.contains("Ravoid"));
}
private void print(KieSession session) {
System.out.println("Session facts:");
for ( FactHandle fh : session.getFactHandles() ) {
InternalFactHandle ifh = (InternalFactHandle) fh;
System.out.println(" > "+ifh.getObject()+" ["+ifh.getObjectClassName()+"] FH: "+fh);
}
}
}
{code}
And rules:
{code:java}
package org.drools.DROOLS_1347;
global java.util.List list;
declare Character
@role( event )
@expires( 1s )
end
declare String
@role( event )
@expires( 10m )
end
rule "Rexpected"
when
$t : Character() over window:length(1)
not String()
then
insert("good");
list.add("Rexpected");
end
rule "Ravoid"
when
$t : Character() over window:length(1)
exists String(this before $t)
not String(this coincides $t)
then
insert("bad");
list.add("Ravoid");
end
{code}
> Explicit expiration of event not effective - regression from 6.4 to 6.5
> -----------------------------------------------------------------------
>
> Key: DROOLS-1347
> URL: https://issues.jboss.org/browse/DROOLS-1347
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Thibault Daoulas
> Assignee: Matteo Mortari
>
> I just ugraded my project from Drools 6.4.0.Final to 6.5.0.Final and have now quite a few tests on rules that fail, all have in common that they test the expiration of events, where an event that should have been removed from the working memory is still present.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (DROOLS-1347) Explicit expiration of event not effective - regression from 6.4 to 6.5
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1347?page=com.atlassian.jira.plugi... ]
Matteo Mortari edited comment on DROOLS-1347 at 10/28/16 11:01 AM:
-------------------------------------------------------------------
With reference to [DROOLS-311].
This issue [DROOLS-1347] is assuming the previous behavior of expiration (as behaving before 6.5.0.Final), which has now been fixed to align with design requirements
{quote}
1. Expired events does not cancel rule activations
{quote}
Hence, with [DROOLS-311] now fixed (from 6.5.0.Final), when the clock is advanced a second time, the expired event is still given the chance to match (as required by design).
Not a bug. Not a regression.
was (Author: tari_manga):
With reference to [DROOLS-311].
This issue [DROOLS-1347] is assuming the previous behavior of expiration, which has now been fixed to align with design requirements
{quote}
1. Expired events does not cancel rule activations
{quote}
Hence, with [DROOLS-311] now fixed, when the clock is advanced a second time, the expired event is still given the chance to match (as required by design).
Not a bug. Not a regression.
> Explicit expiration of event not effective - regression from 6.4 to 6.5
> -----------------------------------------------------------------------
>
> Key: DROOLS-1347
> URL: https://issues.jboss.org/browse/DROOLS-1347
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Thibault Daoulas
> Assignee: Matteo Mortari
>
> I just ugraded my project from Drools 6.4.0.Final to 6.5.0.Final and have now quite a few tests on rules that fail, all have in common that they test the expiration of events, where an event that should have been removed from the working memory is still present.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (DROOLS-1347) Explicit expiration of event not effective - regression from 6.4 to 6.5
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1347?page=com.atlassian.jira.plugi... ]
Matteo Mortari commented on DROOLS-1347:
----------------------------------------
With reference to [DROOLS-311].
This issue [DROOLS-1347] is assuming the previous behavior of expiration, which has now been fixed to align with design requirements
{quote}
1. Expired events does not cancel rule activations
{quote}
Hence, with [DROOLS-311] now fixed, when the clock is advanced a second time, the expired event is still given the chance to match (as required by design).
Not a bug. Not a regression.
> Explicit expiration of event not effective - regression from 6.4 to 6.5
> -----------------------------------------------------------------------
>
> Key: DROOLS-1347
> URL: https://issues.jboss.org/browse/DROOLS-1347
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Thibault Daoulas
> Assignee: Matteo Mortari
>
> I just ugraded my project from Drools 6.4.0.Final to 6.5.0.Final and have now quite a few tests on rules that fail, all have in common that they test the expiration of events, where an event that should have been removed from the working memory is still present.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (DROOLS-1347) Explicit expiration of event not effective - regression from 6.4 to 6.5
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1347?page=com.atlassian.jira.plugi... ]
Matteo Mortari commented on DROOLS-1347:
----------------------------------------
Simplified reproducer with assertions, aligned with OP's case:
{code:java}
public class RuleTest {
static final Logger LOG = LoggerFactory.getLogger(RuleTest.class);
@Test
public void test() throws InstantiationException, IllegalAccessException {
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer = kieServices.getKieClasspathContainer();
Results verifyResults = kContainer.verify();
for (Message m : verifyResults.getMessages()) {
LOG.info("{}", m);
}
LOG.info("Creating kieBase with STREAM option");
KieBaseConfiguration kieBaseConf = kieServices.newKieBaseConfiguration();
kieBaseConf.setOption( EventProcessingOption.STREAM );
KieBase kieBase = kContainer.newKieBase(kieBaseConf);
LOG.info("There should be rules: ");
for ( KiePackage kp : kieBase.getKiePackages() ) {
for (Rule rule : kp.getRules()) {
LOG.info("kp " + kp + " rule " + rule.getName());
}
}
LOG.info("Creating kieSession");
KieSessionConfiguration config = kieServices.newKieSessionConfiguration();
config.setOption( ClockTypeOption.get("pseudo") );
KieSession session = kieBase.newKieSession(config, null);
SessionPseudoClock clock = session.getSessionClock();
session.addEventListener(new DebugRuleRuntimeEventListener() {
@Override
public void objectDeleted(ObjectDeletedEvent event) {
System.out.println(event.getOldObject() + " " + "x");
}
@Override
public void objectInserted(ObjectInsertedEvent event) {
System.out.println("x" + " " + event.getObject());
}
@Override
public void objectUpdated(ObjectUpdatedEvent event) {
System.out.println(event.getOldObject() + " " + event.getObject());
}
});
session.addEventListener(new DefaultAgendaEventListener() {
@Override
public void afterMatchFired(AfterMatchFiredEvent event) {
System.out.println("fired: "+event.getMatch().getRule());
}
});
LOG.info("Populating globals");
List<String> check = new ArrayList<String>();
session.setGlobal("list", check);
LOG.info("Now running data");
System.out.println("---a---");
clock.advanceTime(1000L, TimeUnit.MILLISECONDS);
session.insert( new Character('a') );
session.fireAllRules();
print(session);
assertTrue(check.contains("Rexpected"));
assertFalse(check.contains("Ravoid"));
System.out.println("---b---");
clock.advanceTime(3600000L, TimeUnit.MILLISECONDS);
session.insert( new Character('b') );
session.fireAllRules();
print(session);
assertTrue(check.contains("Rexpected"));
assertFalse(check.contains("Ravoid"));
}
private void print(KieSession session) {
System.out.println("Session facts:");
for ( FactHandle fh : session.getFactHandles() ) {
InternalFactHandle ifh = (InternalFactHandle) fh;
System.out.println(" > "+ifh.getObject()+" ["+ifh.getObjectClassName()+"] FH: "+fh);
}
}
}
{code}
And rules:
{code:java}
package org.drools.DROOLS_1347;
global java.util.List list;
declare Character
@role( event )
@expires( 1s )
end
declare String
@role( event )
@expires( 10m )
end
rule "Rexpected"
when
$t : Character() over window:length(1)
not String()
then
insert("good");
list.add("Rexpected");
end
rule "Ravoid"
when
$t : Character() over window:length(1)
exists String(this before $t)
not String(this coincides $t)
then
insert("bad");
list.add("Ravoid");
end
{code}
> Explicit expiration of event not effective - regression from 6.4 to 6.5
> -----------------------------------------------------------------------
>
> Key: DROOLS-1347
> URL: https://issues.jboss.org/browse/DROOLS-1347
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Thibault Daoulas
> Assignee: Matteo Mortari
>
> I just ugraded my project from Drools 6.4.0.Final to 6.5.0.Final and have now quite a few tests on rules that fail, all have in common that they test the expiration of events, where an event that should have been removed from the working memory is still present.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (WFCORE-1907) Win Service Script: Revise help for /host
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1907?page=com.atlassian.jira.plugi... ]
Tomaz Cerar moved JBEAP-6704 to WFCORE-1907:
--------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-1907 (was: JBEAP-6704)
Issue Type: Enhancement (was: Bug)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Scripts
(was: Scripts)
Affects Version/s: (was: 7.0.0.GA)
> Win Service Script: Revise help for /host
> -----------------------------------------
>
> Key: WFCORE-1907
> URL: https://issues.jboss.org/browse/WFCORE-1907
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Scripts
> Reporter: Tomaz Cerar
> Assignee: Tomaz Cerar
>
> The help text for the /host parameter is misleading.
> The current help text for the /host parameter is:
> {quote}/host [^<domainhost^>] : Indicates that domain mode is to be used with an optional domain controller name.{quote}
> A better description would be:
> bq. Indicates that domain mode is to be used, with an optional domain/host controller name.
> 6.4 Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1375439
> Customer support case: 01676698
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (WFCORE-1906) standalone.bat is unable to start from directory "jboss(eap)" on Windows
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1906?page=com.atlassian.jira.plugi... ]
Tomaz Cerar moved JBEAP-6703 to WFCORE-1906:
--------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-1906 (was: JBEAP-6703)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Scripts
(was: Scripts)
Affects Version/s: 3.0.0.Alpha10
(was: 7.1.0.DR4)
Affects Testing: (was: Regression)
> standalone.bat is unable to start from directory "jboss(eap)" on Windows
> ------------------------------------------------------------------------
>
> Key: WFCORE-1906
> URL: https://issues.jboss.org/browse/WFCORE-1906
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Affects Versions: 3.0.0.Alpha10
> Reporter: Tomaz Cerar
> Assignee: Tomaz Cerar
> Priority: Critical
>
> standalone.bat is unable to start from directory "jboss(eap)" on Windows
> This is regression against EAP 7.1.0.DR3.
> Actual results:
> {noformat}
> C:\Users\Administrator\playground\7.1.0.DR5\jboss(eap)\bin>standalone.bat
> Calling "C:\Users\Administrator\playground\7.1.0.DR5\jboss(eap)\bin\standalone.conf.bat"
> "JAVA_OPTS already set in environment; overriding default settings with values: -Dprogram.name=standalone.bat -Xms1G -Xmx1G -XX:Me
> taspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman"
> "GC_LOG set in environment to true"
> Setting JAVA property to "C:\jdk1.8.0_45\bin\java"
> \standalone\log\gc.log" -XX:-TraceClassUnloading -Dprogram.name=standalone.bat -Dprogram.name=standalone.bat -Xms1G -Xmx1G -XX:Met
> aspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman" was unexpe
> cted at this time.
> C:\Users\Administrator\playground\7.1.0.DR5\jboss(eap)\bin>
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (WFCORE-1905) windows service (service.bat) failed to install if the value of /serviceuser has a white space inside
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1905?page=com.atlassian.jira.plugi... ]
Tomaz Cerar moved WFLY-7380 to WFCORE-1905:
-------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-1905 (was: WFLY-7380)
Component/s: Scripts
(was: Scripts)
Affects Version/s: (was: 10.1.0.Final)
> windows service (service.bat) failed to install if the value of /serviceuser has a white space inside
> -----------------------------------------------------------------------------------------------------
>
> Key: WFCORE-1905
> URL: https://issues.jboss.org/browse/WFCORE-1905
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Reporter: Brad Maxwell
> Assignee: Tomaz Cerar
> Priority: Minor
>
> When using "service.bat install /serviceuser ..." command to install window service, if the account name behind /serviceuser has a whit space inside like ".\JBoss User", it will failed to install windows service.
> Run command: service.bat install /serviceuser ".\JBoss User" /servicepass "change it" /startup /debug
> When starting it, an error window poped up:
> {code}
> Windows could not start the JBossEAP6 on Local Computer.
> For more information, review the System Event Log.
> If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code1.
> {code}
> Additional info:
> Possible fix is editing "service.bat" and add double quotation marks on %SERVICE_USER%
> From
> {code}
> set RUNAS=--ServiceUser=%SERVICE_USER% --ServicePassword=%SERVICE_PASS%
> {code}
> to
> {code}
> set RUNAS=--ServiceUser="%SERVICE_USER%" --ServicePassword="%SERVICE_PASS%"
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months
[JBoss JIRA] (WFCORE-350) Domain reflects jboss.server.xy properties
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFCORE-350?page=com.atlassian.jira.plugin... ]
Tomaz Cerar updated WFCORE-350:
-------------------------------
Component/s: (was: Scripts)
> Domain reflects jboss.server.xy properties
> ------------------------------------------
>
> Key: WFCORE-350
> URL: https://issues.jboss.org/browse/WFCORE-350
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Reporter: Rostislav Svoboda
> Priority: Minor
>
> Domain reflects jboss.server.xy properties, tested with jboss.server.log.dir property.
> The same server.log file is used for both server-one and server-two. Only file boot.log is created in domain/servers/server-one/log and domain/servers/server-two/log directory. In my case file server.log contains log only for server-one, there is no log for server-two.
> I think jboss.server.xy properties shouldn't be reflected in domain instances.
> Even structure of https://docs.jboss.org/author/display/AS71/Command+line+parameters implies that jboss.server.xy properties are used for Standalone.
> Reproducer of my steps:
> {code}
> rm -rf domain/servers
> bin/domain.sh -Djboss.server.log.dir=/tmp/
> ls -aR domain/servers/server-one/log
> ls -aR domain/servers/server-two/log
> ls -l /tmp/server*
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 6 months