[JBoss JIRA] (DROOLS-5027) DMN Editor: Traffic Violation throws an NPE when opened
by Michael Anstis (Jira)
[ https://issues.redhat.com/browse/DROOLS-5027?page=com.atlassian.jira.plug... ]
Michael Anstis commented on DROOLS-5027:
----------------------------------------
[~Rikkola] As you know, neither [~karreiro], [~yamer] or myself have been able to replicate.
Can you please rebuild your local environment and try again? Hopefully you can confirm it cannot be reproduced we can close this JIRA...
Just adding a comment to record our discussions on GChat for prosperity.
> DMN Editor: Traffic Violation throws an NPE when opened
> -------------------------------------------------------
>
> Key: DROOLS-5027
> URL: https://issues.redhat.com/browse/DROOLS-5027
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Reporter: Toni Rikkola
> Assignee: Michael Anstis
> Priority: Blocker
> Labels: drools-tools
>
> Open drools-wb-showcase.
> Import Traffic violation example project.
> Open Traffic violation DMN file.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 5 months
[JBoss JIRA] (WFLY-13055) Permission check failed when using SecurityManager with IBM JDK
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFLY-13055?page=com.atlassian.jira.plugi... ]
Darran Lofthouse commented on WFLY-13055:
-----------------------------------------
I would be surprised if IBM specific properties were needed, the error is on the server side which means the permissions and checking are managed by the application server.
> Permission check failed when using SecurityManager with IBM JDK
> ---------------------------------------------------------------
>
> Key: WFLY-13055
> URL: https://issues.redhat.com/browse/WFLY-13055
> Project: WildFly
> Issue Type: Bug
> Components: Security Manager, Test Suite
> Affects Versions: 19.0.0.Beta1
> Reporter: Francesco Marchioni
> Priority: Major
> Attachments: surefire-reports.zip
>
>
> When using IBM JDK in combination with SecurityManager a Permission check fails for classes using packages com.sun.org.apache.xerces.internal.jaxp
> {code:java}
> INFO] Running org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase
> [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.002 s <<< FAILURE! - in org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase
> [ERROR] testHelloError(org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase) Time elapsed: 0.188 s <<< FAILURE!
> org.junit.ComparisonFailure: expected:<[Fault for test purpose]> but was:<[Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "accessClassInPackage.com.sun.org.apache.xerces.internal.jaxp")" in code source "(vfs:/content/jaxws-basic-pojo.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.jaxws-basic-pojo.war" from Service Module Loader")]>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError(BasicTests.java:69)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> at java.lang.reflect.Method.invoke(Method.java:508)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> {code}
> Affected Tests in the AS Testsuite:
> org.jboss.as.test.integration.ws.basic.PojoEndpointTestCase#testHelloError
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATVoteReadOnly
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATClientRollback
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATVoteRollback
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATApplicationException
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATSimple
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATSingleSimple
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATVoteRollbackPrePrepare
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATApplicationExceptionCommit
> org.jboss.as.test.xts.wsat.client.ATTestCase#testWSATRollbackOnly
> org.jboss.as.test.xts.wsba.coordinatorcompletion.client.BACoordinatorCompletionTestCase#testWSBACoordinatorSimple
> org.jboss.as.test.xts.wsba.coordinatorcompletion.client.BACoordinatorCompletionTestCase#testWSBACoordinatorSingle
> org.jboss.as.test.xts.wsba.coordinatorcompletion.client.BACoordinatorCompletionTestCase#testWSBACoordinatorApplicationException
> org.jboss.as.test.xts.wsba.coordinatorcompletion.client.BACoordinatorCompletionTestCase#testWSBACoordinatorClientCancel
> org.jboss.as.test.txbridge.fromjta.BridgeFromJTATestCase#testRollback
> org.jboss.as.test.txbridge.fromjta.BridgeFromJTATestCase#testCommit
> org.jboss.as.test.xts.suspend.wsat.AtomicTransactionSuspendTestCase#testRollbackAfterSuspend
> org.jboss.as.test.xts.suspend.wsat.AtomicTransactionSuspendTestCase#testRemoteServiceAfterSuspend
> org.jboss.as.test.xts.suspend.wsat.AtomicTransactionSuspendTestCase#testCommitAfterSuspend
> org.jboss.as.test.xts.annotation.client.CompensatableTestCase#testNoTransaction
> org.jboss.as.test.xts.annotation.client.CompensatableTestCase#testActiveTransaction
> org.jboss.as.test.xts.annotation.client.TransactionalTestCase#testNoTransaction
> org.jboss.as.test.xts.annotation.client.TransactionalTestCase#testActiveTransaction
> org.jboss.as.test.xts.suspend.wsba.BusinessActivitySuspendTestCase#testRemoteServiceAfterSuspend
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 5 months
[JBoss JIRA] (DROOLS-5019) Unexpected rule match with forall pattern
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5019?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-5019.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/d8adda09763b0f61048a09b45824f51...
> Unexpected rule match with forall pattern
> -----------------------------------------
>
> Key: DROOLS-5019
> URL: https://issues.redhat.com/browse/DROOLS-5019
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.29.0.Final, 7.30.0.Final, 7.31.0.Final, 7.32.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Major
> Attachments: forall-unwanted-match.tgz
>
>
> As of Drools 7.29.0.Final, rules with a forall pattern sometimes won't match as expected.
> In particular we notice that adding an extra (apparently unrelated) rule causes the rule containing forall to fire when it is not expected to. No inference is involved.
> Example of DRL behaving as expected:
> {noformat}
> package org.drools.reproducer
> declare Request
> skippne : boolean
> pneeligid : String
> applicableAirlines : java.util.List
> officeid : String
> end
> declare Flight
> id : int
> marketingairlinecode : String
> cabin : String
> end
> declare Offer
> id : int
> flightIds : java.util.List
> boundIds : java.util.List
> passengerId : int
> notificationFlightId : int
> stayDurationBeforeDeparture : int
> end
> declare Passenger
> id : int
> end
> rule "53_54_55_NotificationTestInterlineAllFlight"
> when
> Offer( $thisOfferId: id, $offerFlightIds : flightIds, $offerBoundIds : boundIds, $thisPassengerId: passengerId, $thisNotificationFlightId: notificationFlightId )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id )
> Passenger( id == $thisPassengerId )
> Request( $skippne: skippne, pneeligid == "100000053" || skippne, $applicableAirlines: applicableAirlines )
> forall(
> $fact : Flight( $applicableAirlines contains marketingairlinecode )
> Flight( this == $fact, cabin == "Y" ) )
> then
> System.out.println("53_54_55_NotificationTestInterlineAllFlight");
> end
> rule "2_SmsNotificationCheckinTestFNDCall"
> when
> Offer( $thisOfferId: id, $thisPassengerId: passengerId, $thisNotificationFlightId: notificationFlightId, $offerFlightIds : flightIds, $offerBoundIds : boundIds, $stayDurationBeforeDeparture: stayDurationBeforeDeparture )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id, $thisFlightId: id )
> Passenger( id == $thisPassengerId )
> Request( $skippne: skippne, pneeligid == "checkin" || skippne, $applicableAirlines: applicableAirlines )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id, $applicableAirlines contains marketingairlinecode, cabin == "L" )
> then
> System.out.println("2_SmsNotificationCheckinTestFNDCall");
> end
> {noformat}
> Example of DRL not behaving as expected (the 53_54_55_NotificationTestInterlineAllFlight rule will now fire when the forall clause is not satisfied):
> {noformat}
> package org.drools.reproducer
> declare Request
> skippne : boolean
> pneeligid : String
> applicableAirlines : java.util.List
> officeid : String
> end
> declare Flight
> id : int
> marketingairlinecode : String
> cabin : String
> end
> declare Offer
> id : int
> flightIds : java.util.List
> boundIds : java.util.List
> passengerId : int
> notificationFlightId : int
> stayDurationBeforeDeparture : int
> end
> declare Passenger
> id : int
> end
> rule "53_54_55_NotificationTestInterlineAllFlight"
> when
> Offer( $thisOfferId: id, $offerFlightIds : flightIds, $offerBoundIds : boundIds, $thisPassengerId: passengerId, $thisNotificationFlightId: notificationFlightId )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id )
> Passenger( id == $thisPassengerId )
> Request( $skippne: skippne, pneeligid == "100000053" || skippne, $applicableAirlines: applicableAirlines )
> forall(
> $fact : Flight( $applicableAirlines contains marketingairlinecode )
> Flight( this == $fact, cabin == "Y" ) )
> then
> System.out.println("53_54_55_NotificationTestInterlineAllFlight");
> end
> rule "2_SmsNotificationCheckinTestFNDCall"
> when
> Offer( $thisOfferId: id, $thisPassengerId: passengerId, $thisNotificationFlightId: notificationFlightId, $offerFlightIds : flightIds, $offerBoundIds : boundIds, $stayDurationBeforeDeparture: stayDurationBeforeDeparture )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id, $thisFlightId: id )
> Passenger( id == $thisPassengerId )
> Request( $skippne: skippne, pneeligid == "checkin" || skippne, $applicableAirlines: applicableAirlines )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id, $applicableAirlines contains marketingairlinecode, cabin == "L" )
> then
> System.out.println("2_SmsNotificationCheckinTestFNDCall");
> end
> rule "3_XmlNotificationCheckinTestFNDCall"
> when
> Offer( $thisOfferId: id, $thisPassengerId: passengerId, $thisNotificationFlightId: notificationFlightId, $offerFlightIds : flightIds, $offerBoundIds : boundIds, $stayDurationBeforeDeparture: stayDurationBeforeDeparture )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id, $thisFlightId: id )
> Passenger( id == $thisPassengerId )
> Request( $skippne: skippne, pneeligid == "checkin" || skippne, $applicableAirlines: applicableAirlines )
> Flight( id == $thisNotificationFlightId, $offerFlightIds contains id, $applicableAirlines contains marketingairlinecode, cabin == "Q" )
> then
> System.out.println("3_XmlNotificationCheckinTestFNDCall");
> end
> {noformat}
> The issue does not occur when using Drools <= 7.28.0.Final.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 5 months