[JBoss JIRA] (DROOLS-1252) java.lang.ClassCastException: event cannot be cast to org.drools.core.common.InternalFactHandle
by Michael Neifeld (JIRA)
Michael Neifeld created DROOLS-1252:
---------------------------------------
Summary: java.lang.ClassCastException: event cannot be cast to org.drools.core.common.InternalFactHandle
Key: DROOLS-1252
URL: https://issues.jboss.org/browse/DROOLS-1252
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.4.0.Final
Environment: Drools 6.4.Final
Fusion (CEP)
Reporter: Michael Neifeld
Assignee: Mario Fusco
Priority: Blocker
Attachments: RULES_ERRORS.log, Rule_Emergency_Network_Start_No_Active_Call_Rule523993873.java
It seems to be similar to another bug DROOLS-1185, but without any Modify.
this is the rule:
{code:java}
declare EmergencyNetworkComplexEvent
@role(event)
@timestamp(timestamp)
@expires(1h)
end
...
global Logger dlogger;
.....
rule "Emergency Network Start No Active Call Rule" //EMERGENCY
salience 90
// no-loop true
when
//conditions
$event : EmergencyNetworkComplexEvent( transition == Transition.START)
$predecessor : CallComplexEvent( radioID == $event.radioID )
not ( EmergencyActiveCallComplexEvent( getTransition() == Transition.START, getCallID() == $event.callID )
or EmergencyActiveCallComplexEvent( getTransition() == Transition.START, getRadioID() == $event.radioID ))
then
if (dlogger.isTraceEnabled()) dlogger.trace("Emergency Network Start No Active Call Rule: receiving {}, {}",$event, $predecessor);
// action: create container, add the event to the container
EmergencyActiveCallComplexEvent container = new EmergencyActiveCallComplexEvent($event);
insert(container);
delete($event); // ???
if (dlogger.isTraceEnabled()) dlogger.trace("Emergency Network Start No Active Call Rule: after delete {}",$event);
//actions: register new active call, new emergency call
new ActiveCallSnapshot().addCall($event);
final EmergencyEventSnapshot snapshot = new EmergencyEventSnapshot();
snapshot.addEmergencyCall($event);
//actions: get preceding event and add it to trail
snapshot.add2Trail($predecessor);
if (dlogger.isTraceEnabled()) dlogger.trace("Emergency Network Start No Active Call Rule: exiting {}",container);
end
{code}
and this is the classdump of this rule:
{code:java}
package com.mot.ssol.cep;
import com.mot.ssol.cep.model.ComplexEventImpl;import com.mot.nsa.monitor.client.NetworkEvent;import com.mot.ssol.cep.model.PseudoActiveCallComplexEvent;import java.util.Date;import com.mot.nsa.monitor.client.CallEvent.ChannelStatus;import com.mot.ssol.cep.model.ControlCallComplexEvent;import com.mot.nsa.monitor.client.GaugeValue;import org.apache.commons.lang3.StringUtils;import com.mot.ssol.cep.TDMAResolver;import com.mot.ssol.cep.model.CEPEvent;import com.mot.ssol.cep.*;import com.mot.ssol.cep.model.InactiveCallComplexEvent;import org.kie.api.runtime.rule.QueryResults;import com.mot.ssol.cep.EventBuilder;import com.mot.nsa.monitor.client.CallEvent;import com.mot.ssol.cep.model.EmergencyNetworkComplexEvent;import com.mot.nsa.monitor.analyzer.AnalyzedEvent;import com.mot.ssol.cep.TrapSnapshot;import com.mot.nsa.monitor.cepm.mapper.RadioAliasMapper;import com.mot.nsa.monitor.MutableTimestampAware;import com.mot.ssol.cep.model.NetworkComplexEvent;import com.mot.ssol.cep.model.CallComplexEvent;import com.mot.ssol.cep.model.ControlNetworkComplexEvent;import java.util.concurrent.BlockingQueue;import com.mot.nsa.monitor.cepm.model.CallCepmEvent;import java.util.concurrent.LinkedBlockingQueue;import com.mot.ssol.cep.model.GroupRegistrationComplexEvent;import com.mot.nsa.monitor.cepm.mapper.GroupAliasMapper;import com.mot.ssol.cep.model.BusyComplexEventDecorator;import java.util.List;import com.mot.ssol.cep.model.ComplexEvent.Type;import com.mot.ssol.cep.EmergencyEventSnapshot;import com.mot.nsa.monitor.cepm.mapper.ZoneMapper;import com.mot.ssol.cep.model.NetworkComplexEventImpl;import com.mot.ssol.cep.model.ChannelHandle;import com.mot.nsa.monitor.cepm.StatisticModule;import com.mot.nsa.monitor.client.ClientEvent;import com.mot.nsa.monitor.client.RadioEvent;import com.mot.ssol.cep.model.CallComplexEventImpl;import com.mot.ssol.cep.model.ChannelCallComplexEvent;import org.kie.api.runtime.rule.QueryResultsRow;import com.mot.nsa.monitor.MutableTransitionAware;import com.mot.ssol.cep.model.RadioHandle;import com.mot.ssol.cep.ActiveCallSnapshot;import com.mot.nsa.monitor.TransitionAware.Transition;import org.drools.core.spi.KnowledgeHelper;import com.mot.ssol.cep.model.PseudoRadioRegistrationComplexEvent;import com.mot.ssol.cep.model.EmergencyActiveCallComplexEvent;import com.mot.nsa.monitor.cepm.model.NonCallEvent;import org.slf4j.Logger;import com.mot.ssol.cep.model.EmergencyComplexEventDecorator;import org.apache.commons.lang3.time.DateUtils;import com.mot.nsa.monitor.client.NetworkEventImpl;import com.mot.ssol.cep.CallEventSnapshot;import com.mot.ssol.cep.model.PendingComplexEvent;import com.mot.ssol.cep.model.RadioRegistrationComplexEvent;import com.mot.ssol.cep.model.ComplexEvent;import com.mot.nsa.monitor.client.CallEventImpl;import com.mot.ssol.cep.model.ActiveCallComplexEvent;import com.mot.nsa.monitor.cepm.model.CallCepmEventImpl;import com.mot.ssol.cep.model.PseudoCallComplexEvent;import org.drools.core.spi.KnowledgeHelper;import static com.mot.ssol.cep.ClearAll.clearAll;import static com.mot.ssol.cep.EndZoneCall.endZoneCall;import static com.mot.ssol.cep.Busies2End.busies2End;import static com.mot.ssol.cep.EndCallEvents.endCallEvents;import static com.mot.ssol.cep.Events2busy.events2busy;import static com.mot.ssol.cep.EndCall.endCall;import static com.mot.ssol.cep.Emergency2end.emergency2end;
public class Rule_Emergency_Network_Start_No_Active_Call_Rule523993873 {
private static final long serialVersionUID = 510l;
public static void defaultConsequence(KnowledgeHelper drools, com.mot.ssol.cep.model.EmergencyNetworkComplexEvent $event, org.kie.api.runtime.rule.FactHandle $event__Handle__ , com.mot.ssol.cep.model.CallComplexEvent $predecessor, org.kie.api.runtime.rule.FactHandle $predecessor__Handle__ , org.slf4j.Logger dlogger ) throws java.lang.Exception { org.kie.api.runtime.rule.RuleContext kcontext = drools;
if (dlogger.isTraceEnabled()) dlogger.trace("Emergency Network Start No Active Call Rule: receiving {}, {}",$event, $predecessor);
// action: create container, add the event to the container
EmergencyActiveCallComplexEvent container = new EmergencyActiveCallComplexEvent($event);
drools.insert(container);
{ drools.delete( $event__Handle__ ); }; // ???
if (dlogger.isTraceEnabled()) dlogger.trace("Emergency Network Start No Active Call Rule: after delete {}",$event);
//actions: register new active call, new emergency call
new ActiveCallSnapshot().addCall($event);
final EmergencyEventSnapshot snapshot = new EmergencyEventSnapshot();
snapshot.addEmergencyCall($event);
//actions: get preceding event and add it to trail
snapshot.add2Trail($predecessor);
if (dlogger.isTraceEnabled()) dlogger.trace("Emergency Network Start No Active Call Rule: exiting {}",container);
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (WFCORE-1703) It is not possible to set jboss.modules.system.pkgs per server in domain mode
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1703?page=com.atlassian.jira.plugi... ]
Brian Stansberry updated WFCORE-1703:
-------------------------------------
Workaround Description:
Working solution is to add the following for the server in {{host.xml}}:
{code:xml}
<server name="server-one" group="main-server-group">
<system-properties>
<property name="jboss.modules.system.pkgs" value="my.package"/>
</system-properties>
..
{code}
Workaround: Workaround Exists
Great; glad it works. I'll leave this open because even though the intended use is to use the system-properties configuration element, having the jvm option logic detect and deal with -D options is a valid improvement.
> It is not possible to set jboss.modules.system.pkgs per server in domain mode
> -----------------------------------------------------------------------------
>
> Key: WFCORE-1703
> URL: https://issues.jboss.org/browse/WFCORE-1703
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 2.2.0.Final
> Reporter: Bogdan Ilchyshyn
> Priority: Minor
>
> It is not possible to set {{jboss.modules.system.pkgs}} property per server / server group in domain configuration. Even when the following configuration is added to {{host.xml}}:
> {code:xml}
> <server name="server-one" group="main-server-group">
> <jvm name="default">
> <jvm-options>
> <option value="-Djboss.modules.system.pkgs=my.package"/>
> ...
> {code}
> It is overridden by configuration in {{domain.conf}}:
> {noformat}
> JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
> {noformat}
> This is an issue for configuring third-party java agents per-server. A problem described in WFLY-895 adds to this. One should either add a whole bunch of things to _all_ jvms in domain in order to make agent work, or remove config from {{domain.conf}} to avoid overrides.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (DROOLS-1251) An accumulate with 2 constraints should accept "and", not just "&&" and ", "
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1251?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet updated DROOLS-1251:
-------------------------------------
Description:
Specifically:
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength // FAILS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 && $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0, $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
----
Full reproducer from optaplanner-examples employee rostering example, this rule:
{code}
// Identical shiftTypes during a weekend
rule "identicalShiftTypesDuringWeekend"
when
$contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
enabled == true, $contract : contract)
$employee : Employee(contract == $contract, $weekendLength : weekendLength)
ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
$shiftType : ShiftType()
accumulate(
$assignment : ShiftAssignment(
weekend == true,
weekendSundayIndex == $sundayIndex,
employee == $employee,
shiftType == $shiftType);
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
)
then
scoreHolder.addSoftConstraintMatch(kcontext,
($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
end
{code}
throws
{code}
java.lang.IllegalStateException: There are errors in a score DRL:
Error Messages:
Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
text=Parser returned a null Package]
---
{code}
was:
This rule:
{code}
// Identical shiftTypes during a weekend
rule "identicalShiftTypesDuringWeekend"
when
$contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
enabled == true, $contract : contract)
$employee : Employee(contract == $contract, $weekendLength : weekendLength)
ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
$shiftType : ShiftType()
accumulate(
$assignment : ShiftAssignment(
weekend == true,
weekendSundayIndex == $sundayIndex,
employee == $employee,
shiftType == $shiftType);
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
)
then
scoreHolder.addSoftConstraintMatch(kcontext,
($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
end
{code}
throws
{code}
java.lang.IllegalStateException: There are errors in a score DRL:
Error Messages:
Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
text=Parser returned a null Package]
---
{code}
More specifically:
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength // FAILS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 && $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0, $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
> An accumulate with 2 constraints should accept "and", not just "&&" and ","
> ---------------------------------------------------------------------------
>
> Key: DROOLS-1251
> URL: https://issues.jboss.org/browse/DROOLS-1251
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Mario Fusco
> Priority: Minor
>
> Specifically:
> {code}
> accumulate(
> ...;
> $weekendAssignmentTotal : count($assignment);
> $weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength // FAILS
> )
> {code}
> {code}
> accumulate(
> ...;
> $weekendAssignmentTotal : count($assignment);
> $weekendAssignmentTotal > 0 && $weekendAssignmentTotal < $weekendLength // WORKS
> )
> {code}
> {code}
> accumulate(
> ...;
> $weekendAssignmentTotal : count($assignment);
> $weekendAssignmentTotal > 0, $weekendAssignmentTotal < $weekendLength // WORKS
> )
> {code}
> ----
> Full reproducer from optaplanner-examples employee rostering example, this rule:
> {code}
> // Identical shiftTypes during a weekend
> rule "identicalShiftTypesDuringWeekend"
> when
> $contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
> enabled == true, $contract : contract)
> $employee : Employee(contract == $contract, $weekendLength : weekendLength)
> ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
> $shiftType : ShiftType()
> accumulate(
> $assignment : ShiftAssignment(
> weekend == true,
> weekendSundayIndex == $sundayIndex,
> employee == $employee,
> shiftType == $shiftType);
> $weekendAssignmentTotal : count($assignment);
> $weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
> )
> then
> scoreHolder.addSoftConstraintMatch(kcontext,
> ($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
> end
> {code}
> throws
> {code}
> java.lang.IllegalStateException: There are errors in a score DRL:
> Error Messages:
> Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
> text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
> Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
> text=Parser returned a null Package]
> ---
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (DROOLS-1251) An accumulate with 2 constraints should accept "and", not just "&&" and ", "
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1251?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet updated DROOLS-1251:
-------------------------------------
Description:
Specifically:
{code}
accumulate(
...;
$t : count($assignment);
$t > 0 and $t < $weekendLength // FAILS
)
{code}
{code}
accumulate(
...;
$t : count($assignment);
$t > 0 && $t < $weekendLength // WORKS
)
{code}
{code}
accumulate(
...;
$t : count($assignment);
$t > 0, $t < $weekendLength // WORKS
)
{code}
----
Full reproducer from optaplanner-examples employee rostering example, this rule:
{code}
// Identical shiftTypes during a weekend
rule "identicalShiftTypesDuringWeekend"
when
$contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
enabled == true, $contract : contract)
$employee : Employee(contract == $contract, $weekendLength : weekendLength)
ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
$shiftType : ShiftType()
accumulate(
$assignment : ShiftAssignment(
weekend == true,
weekendSundayIndex == $sundayIndex,
employee == $employee,
shiftType == $shiftType);
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
)
then
scoreHolder.addSoftConstraintMatch(kcontext,
($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
end
{code}
throws
{code}
java.lang.IllegalStateException: There are errors in a score DRL:
Error Messages:
Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
text=Parser returned a null Package]
---
{code}
was:
Specifically:
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength // FAILS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 && $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0, $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
----
Full reproducer from optaplanner-examples employee rostering example, this rule:
{code}
// Identical shiftTypes during a weekend
rule "identicalShiftTypesDuringWeekend"
when
$contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
enabled == true, $contract : contract)
$employee : Employee(contract == $contract, $weekendLength : weekendLength)
ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
$shiftType : ShiftType()
accumulate(
$assignment : ShiftAssignment(
weekend == true,
weekendSundayIndex == $sundayIndex,
employee == $employee,
shiftType == $shiftType);
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
)
then
scoreHolder.addSoftConstraintMatch(kcontext,
($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
end
{code}
throws
{code}
java.lang.IllegalStateException: There are errors in a score DRL:
Error Messages:
Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
text=Parser returned a null Package]
---
{code}
> An accumulate with 2 constraints should accept "and", not just "&&" and ","
> ---------------------------------------------------------------------------
>
> Key: DROOLS-1251
> URL: https://issues.jboss.org/browse/DROOLS-1251
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Mario Fusco
> Priority: Minor
>
> Specifically:
> {code}
> accumulate(
> ...;
> $t : count($assignment);
> $t > 0 and $t < $weekendLength // FAILS
> )
> {code}
> {code}
> accumulate(
> ...;
> $t : count($assignment);
> $t > 0 && $t < $weekendLength // WORKS
> )
> {code}
> {code}
> accumulate(
> ...;
> $t : count($assignment);
> $t > 0, $t < $weekendLength // WORKS
> )
> {code}
> ----
> Full reproducer from optaplanner-examples employee rostering example, this rule:
> {code}
> // Identical shiftTypes during a weekend
> rule "identicalShiftTypesDuringWeekend"
> when
> $contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
> enabled == true, $contract : contract)
> $employee : Employee(contract == $contract, $weekendLength : weekendLength)
> ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
> $shiftType : ShiftType()
> accumulate(
> $assignment : ShiftAssignment(
> weekend == true,
> weekendSundayIndex == $sundayIndex,
> employee == $employee,
> shiftType == $shiftType);
> $weekendAssignmentTotal : count($assignment);
> $weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
> )
> then
> scoreHolder.addSoftConstraintMatch(kcontext,
> ($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
> end
> {code}
> throws
> {code}
> java.lang.IllegalStateException: There are errors in a score DRL:
> Error Messages:
> Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
> text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
> Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
> text=Parser returned a null Package]
> ---
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (DROOLS-1251) An accumulate with 2 constraints should accept "and", not just "&&" and ", "
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1251?page=com.atlassian.jira.plugi... ]
Geoffrey De Smet updated DROOLS-1251:
-------------------------------------
Affects Version/s: 6.4.0.Final
> An accumulate with 2 constraints should accept "and", not just "&&" and ","
> ---------------------------------------------------------------------------
>
> Key: DROOLS-1251
> URL: https://issues.jboss.org/browse/DROOLS-1251
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Mario Fusco
> Priority: Minor
>
> Specifically:
> {code}
> accumulate(
> ...;
> $t : count($assignment);
> $t > 0 and $t < $weekendLength // FAILS
> )
> {code}
> {code}
> accumulate(
> ...;
> $t : count($assignment);
> $t > 0 && $t < $weekendLength // WORKS
> )
> {code}
> {code}
> accumulate(
> ...;
> $t : count($assignment);
> $t > 0, $t < $weekendLength // WORKS
> )
> {code}
> ----
> Full reproducer from optaplanner-examples employee rostering example, this rule:
> {code}
> // Identical shiftTypes during a weekend
> rule "identicalShiftTypesDuringWeekend"
> when
> $contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
> enabled == true, $contract : contract)
> $employee : Employee(contract == $contract, $weekendLength : weekendLength)
> ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
> $shiftType : ShiftType()
> accumulate(
> $assignment : ShiftAssignment(
> weekend == true,
> weekendSundayIndex == $sundayIndex,
> employee == $employee,
> shiftType == $shiftType);
> $weekendAssignmentTotal : count($assignment);
> $weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
> )
> then
> scoreHolder.addSoftConstraintMatch(kcontext,
> ($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
> end
> {code}
> throws
> {code}
> java.lang.IllegalStateException: There are errors in a score DRL:
> Error Messages:
> Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
> text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
> Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
> text=Parser returned a null Package]
> ---
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (DROOLS-1251) An accumulate with 2 constraints should accept "and", not just "&&" and ", "
by Geoffrey De Smet (JIRA)
Geoffrey De Smet created DROOLS-1251:
----------------------------------------
Summary: An accumulate with 2 constraints should accept "and", not just "&&" and ","
Key: DROOLS-1251
URL: https://issues.jboss.org/browse/DROOLS-1251
Project: Drools
Issue Type: Enhancement
Components: core engine
Reporter: Geoffrey De Smet
Assignee: Mario Fusco
Priority: Minor
This rule:
{code}
// Identical shiftTypes during a weekend
rule "identicalShiftTypesDuringWeekend"
when
$contractLine : BooleanContractLine(contractLineType == ContractLineType.IDENTICAL_SHIFT_TYPES_DURING_WEEKEND,
enabled == true, $contract : contract)
$employee : Employee(contract == $contract, $weekendLength : weekendLength)
ShiftDate(dayOfWeek == DayOfWeek.SUNDAY, $sundayIndex : dayIndex)
$shiftType : ShiftType()
accumulate(
$assignment : ShiftAssignment(
weekend == true,
weekendSundayIndex == $sundayIndex,
employee == $employee,
shiftType == $shiftType);
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength
)
then
scoreHolder.addSoftConstraintMatch(kcontext,
($weekendAssignmentTotal.intValue() - $weekendLength) * $contractLine.getWeight());
end
{code}
throws
{code}
java.lang.IllegalStateException: There are errors in a score DRL:
Error Messages:
Message [id=1, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=452, column=0
text=[ERR 102] Line 452:40 mismatched input 'and' in rule "identicalShiftTypesDuringWeekend"]
Message [id=2, level=ERROR, path=org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl, line=0, column=0
text=Parser returned a null Package]
---
{code}
More specifically:
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 and $weekendAssignmentTotal < $weekendLength // FAILS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0 && $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
{code}
accumulate(
...;
$weekendAssignmentTotal : count($assignment);
$weekendAssignmentTotal > 0, $weekendAssignmentTotal < $weekendLength // WORKS
)
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (WFLY-6940) NullPointerException from JBossPDP when adding policy set because of null ClassLoader
by Ondrej Kotek (JIRA)
[ https://issues.jboss.org/browse/WFLY-6940?page=com.atlassian.jira.plugin.... ]
Ondrej Kotek moved JBEAP-5598 to WFLY-6940:
-------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-6940 (was: JBEAP-5598)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Class Loading
Security
(was: Class Loading)
(was: Security)
Affects Version/s: 11.0.0.Alpha1
(was: 7.1.0.DR1)
(was: 7.1.0.DR2)
Affects Testing: (was: Regression)
> NullPointerException from JBossPDP when adding policy set because of null ClassLoader
> -------------------------------------------------------------------------------------
>
> Key: WFLY-6940
> URL: https://issues.jboss.org/browse/WFLY-6940
> Project: WildFly
> Issue Type: Bug
> Components: Class Loading, Security
> Affects Versions: 11.0.0.Alpha1
> Reporter: Ondrej Kotek
> Assignee: David Lloyd
> Priority: Critical
> Attachments: pdp-2.1.9.Final-jboss-as7.war
>
>
> There si _NullPointerException_ thrown from _org.jboss.security.xacml.core.JBossPDP_ when adding policy set during deployment -- the context _ClassLoader_ is null.
> {noformat}
> INFO [org.jboss.security.xacml.core.JBossPDP] (MSC service thread 1-3) Reading policysets from location=policies/himss-policy.xml
> 13:01:42,592 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."pdp-2.1.9.Final-jboss-as7.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."pdp-2.1.9.Final-jboss-as7.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "pdp-2.1.9.Final-jboss-as7.war"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> 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:745)
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
> at org.jboss.wsf.stack.cxf.configuration.BusHolder.newInstance(BusHolder.java:325)
> at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:211)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
> ... 5 more
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> at org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:163)
> at org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP.getPDP(SOAPSAMLXACMLPDP.java:111)
> at org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP.<init>(SOAPSAMLXACMLPDP.java:69)
> at org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDPService.<init>(SOAPSAMLXACMLPDPService.java:42)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at java.lang.Class.newInstance(Class.java:442)
> at org.jboss.wsf.stack.cxf.configuration.BusHolder.newInstance(BusHolder.java:321)
> ... 10 more
> Caused by: java.lang.NullPointerException
> at org.jboss.security.xacml.core.JBossPDP.getResourceViaClassLoader(JBossPDP.java:626)
> at org.jboss.security.xacml.core.JBossPDP.isDirectory(JBossPDP.java:614)
> at org.jboss.security.xacml.core.JBossPDP.isDirectory(JBossPDP.java:602)
> at org.jboss.security.xacml.core.JBossPDP.addPolicySets(JBossPDP.java:468)
> at org.jboss.security.xacml.core.JBossPDP.bootstrap(JBossPDP.java:346)
> at org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:159)
> ... 19 more
> 13:01:42,596 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
> "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"pdp-2.1.9.Final-jboss-as7.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"pdp-2.1.9.Final-jboss-as7.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"pdp-2.1.9.Final-jboss-as7.war\"
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> Caused by: java.lang.NullPointerException"},
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"pdp-2.1.9.Final-jboss-as7.war\".INSTALL"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (WFLY-6926) TimeoutException: Replication timeout when handling request with DIST cache
by Michal Vinkler (JIRA)
[ https://issues.jboss.org/browse/WFLY-6926?page=com.atlassian.jira.plugin.... ]
Michal Vinkler commented on WFLY-6926:
--------------------------------------
[~pferraro] I was able to reproduce the issue with the latest infinispan-core.jar built from 8.2.x branch.
Logs:
http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/mvinkler_eap-7x-failo...
http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/mvinkler_eap-7x-failo...
>From server logs: Infinispan version: Infinispan 'Chakra' 8.2.4-SNAPSHOT
> TimeoutException: Replication timeout when handling request with DIST cache
> ---------------------------------------------------------------------------
>
> Key: WFLY-6926
> URL: https://issues.jboss.org/browse/WFLY-6926
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 10.1.0.CR1
> Reporter: Michal Vinkler
> Assignee: Paul Ferraro
> Priority: Blocker
>
> Seen in http-session scenarios with *DIST* cache only. REPL cache scenarios seem not to be affected.
> TimeoutExceptions occur right away after sending first request and definitely result in client getting 500:
> {code}
> [JBossINF] [0m[31m04:31:39,033 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-1) ISPN000136: Error executing command GetKeyValueCommand, writing keys []: org.infinispan.util.concurrent.TimeoutException: Replication timeout for perf19
> [JBossINF] at org.infinispan.remoting.transport.jgroups.JGroupsTransport.checkRsp(JGroupsTransport.java:801)
> [JBossINF] at org.infinispan.remoting.transport.jgroups.JGroupsTransport.lambda$invokeRemotelyAsync$1(JGroupsTransport.java:642)
> [JBossINF] at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
> [JBossINF] at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
> [JBossINF] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
> [JBossINF] at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
> [JBossINF] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.staggeredProcessNext(CommandAwareRpcDispatcher.java:375)
> [JBossINF] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.lambda$processCallsStaggered$3(CommandAwareRpcDispatcher.java:357)
> [JBossINF] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [JBossINF] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [JBossINF] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> [JBossINF] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> [JBossINF] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [JBossINF] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [JBossINF] at java.lang.Thread.run(Thread.java:745)
> {code}
> Client:
> {code}
> 2016/08/08 04:31:39:068 EDT [WARN ][Runner - 4] HOST perf17.mw.lab.eng.bos.redhat.com:rootProcess:c - Error sampling data: Internal Server Error>
> org.jboss.smartfrog.loaddriver.RequestProcessingException: Invalid response code: 500 Content: Internal Server Error
> at org.jboss.smartfrog.loaddriver.http.HttpRequestProcessorFactoryImpl$HttpRequestProcessor.processRequest(HttpRequestProcessorFactoryImpl.java:163)
> at org.jboss.smartfrog.loaddriver.CompoundRequestProcessorFactoryImpl$CompoundRequestProcessor.processRequest(CompoundRequestProcessorFactoryImpl.java:52)
> at org.jboss.smartfrog.loaddriver.Runner.run(Runner.java:103)
> at java.lang.Thread.run(Thread.java:745)
> {code}
> I was able to reproduce it even with a very small load of 30 sessions.
> Server link (run with 30 sessions):
> http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/mvinkler_eap-7x-failo...
> Client link (run with 30 sessions):
> http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/mvinkler_eap-7x-failo...
> This issue occurs under different conditions than JBEAP-3779 (which is similar), that's why I opened new issue.
> Number of occurrences of TimeoutExceptions is very high. The server logs are full of them.
> This issue makes clustering with *DIST* cache unusable, thus giving blocker priority.
> Also, there is a issue with shutting down the servers in the end of the test, I don't know if it can be related, but I am hitting it constantly in the http-session DIST scenarios.
> The server shutdown usually gets stuck on this command:
> {code}
> [JBossINF] [0m[0m04:38:51,694 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000082: Stopping the RpcDispatcher for channel web
> {code}
> *EDIT:*
> Also ejb-remote tests with *DIST* cache are affected (even if only 20 sessions are created).
> Server log for ejb-remote run:
> http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/mvinkler_eap-7x-failo...
> Client log for ejb-remote run:
> http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/mvinkler_eap-7x-failo...
> *EDIT #2:*
> Can be very easily reproduced locally. Just start a cluster of at least 3 servers with clusterbench deployed. Then do few requests to various nodes until you get 500 as a response. Also notice, when shutting down a node, which logged TimeoutException before, the node won't stop and get stuck during the shutdown.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (WFLY-6939) Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work
by jaikiran pai (JIRA)
[ https://issues.jboss.org/browse/WFLY-6939?page=com.atlassian.jira.plugin.... ]
jaikiran pai updated WFLY-6939:
-------------------------------
Description:
Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
{code}
<html>
<body>
foo: --- ${Boolean.TRUE} ---<br>
bar: --- ${Integer.MAX_VALUE} ---<br>
</body>
</html>
{code}
However, the {code}${Boolean.TRUE}{code} and {code}${Integer.MAX_VALUE}{code} in the above example aren't evaluated correctly and instead a blank string is rendered for them.
More details in the linked forum thread https://developer.jboss.org/thread/271825
was:
Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
{code}
<html>
<body>
foo: --- ${Boolean.TRUE} ---<br>
bar: --- ${Integer.MAX_VALUE} ---<br>
</body>
</html>
{code}
However, the `${Boolean.TRUE}` and ${Integer.MAX_VALUE} in the above example aren't evaluated correctly and instead a blank string is rendered for them.
More details in the linked forum thread https://developer.jboss.org/thread/271825
> Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work
> ------------------------------------------------------------------------------------
>
> Key: WFLY-6939
> URL: https://issues.jboss.org/browse/WFLY-6939
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 10.0.0.Final, 10.1.0.CR1
> Reporter: jaikiran pai
> Assignee: jaikiran pai
>
> Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
> {code}
> <html>
> <body>
> foo: --- ${Boolean.TRUE} ---<br>
> bar: --- ${Integer.MAX_VALUE} ---<br>
> </body>
> </html>
> {code}
> However, the {code}${Boolean.TRUE}{code} and {code}${Integer.MAX_VALUE}{code} in the above example aren't evaluated correctly and instead a blank string is rendered for them.
> More details in the linked forum thread https://developer.jboss.org/thread/271825
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (WFLY-6939) Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work
by jaikiran pai (JIRA)
[ https://issues.jboss.org/browse/WFLY-6939?page=com.atlassian.jira.plugin.... ]
jaikiran pai updated WFLY-6939:
-------------------------------
Description:
Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
{code}
<html>
<body>
foo: --- ${Boolean.TRUE} ---<br>
bar: --- ${Integer.MAX_VALUE} ---<br>
</body>
</html>
{code}
However, the `${Boolean.TRUE}` and ${Integer.MAX_VALUE} in the above example aren't evaluated correctly and instead a blank string is rendered for them.
More details in the linked forum thread https://developer.jboss.org/thread/271825
was:
Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
{code}
<html>
<body>
foo: --- ${Boolean.TRUE} ---<br>
bar: --- ${Integer.MAX_VALUE} ---<br>
</body>
</html>
{code}
However, the ${Boolean.TRUE} and ${Integer.MAX_VALUE} in the above example aren't evaluated correctly and instead a blank string is rendered for them.
More details in the linked forum thread https://developer.jboss.org/thread/271825
> Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work
> ------------------------------------------------------------------------------------
>
> Key: WFLY-6939
> URL: https://issues.jboss.org/browse/WFLY-6939
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 10.0.0.Final, 10.1.0.CR1
> Reporter: jaikiran pai
> Assignee: jaikiran pai
>
> Java EE7 (which supports EL 3.0 spec) allows JSPs to use EL expressions like:
> {code}
> <html>
> <body>
> foo: --- ${Boolean.TRUE} ---<br>
> bar: --- ${Integer.MAX_VALUE} ---<br>
> </body>
> </html>
> {code}
> However, the `${Boolean.TRUE}` and ${Integer.MAX_VALUE} in the above example aren't evaluated correctly and instead a blank string is rendered for them.
> More details in the linked forum thread https://developer.jboss.org/thread/271825
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months