[JBoss JIRA] (DROOLS-94) Hashed field on Integer.this causes a RuntimeException
by Mario Fusco (JIRA)
Mario Fusco created DROOLS-94:
---------------------------------
Summary: Hashed field on Integer.this causes a RuntimeException
Key: DROOLS-94
URL: https://issues.jboss.org/browse/DROOLS-94
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Mario Fusco
Assignee: Mario Fusco
Having the following drl
{code}
global java.util.List list;
rule R when
$i : Integer( this == 1 )
then
list.add( $i );
end
rule S when
$i : Integer( this == 2 )
then
list.add( $i );
end
rule T when
$i : Integer( this == 3 )
then
list.add( $i );
end
{code}
and inserting an Integer(1) in the ksession causes the following Exception:
org.drools.core.RuntimeDroolsException: Conversion to long not supported from java.lang.Integer
at org.drools.core.base.extractors.BaseObjectClassFieldReader.getLongValue(BaseObjectClassFieldReader.java:126)
Note that it is necessary to have the constraint on Integer.this in 3 different rule in order to enable the field hashing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] (DROOLS-93) Building rule file that contains event declaration with @duration ends with NPE
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-93?page=com.atlassian.jira.plugin.... ]
Mario Fusco reassigned DROOLS-93:
---------------------------------
Assignee: Mario Fusco (was: Mark Proctor)
> Building rule file that contains event declaration with @duration ends with NPE
> -------------------------------------------------------------------------------
>
> Key: DROOLS-93
> URL: https://issues.jboss.org/browse/DROOLS-93
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.0.0.Alpha1
> Reporter: Petr Široký
> Assignee: Mario Fusco
> Attachments: drools93-reproducer.zip
>
>
> Building kbase with simple rule file with event declaration that has a @duration attribute ends with NPE. When the @duration is removed, file is built correctly. See attached maven reproducer (just run mvn test).
> The rule file looks like this:
> {code}
> package org.jboss.drools.example.kbase
> declare org.jboss.drools.example.kbase.SimpleFact
> @role(event)
> @duration(duration)
> end
> {code}
> Exception thrown when building the file:
> {code}
> java.lang.NullPointerException
> at org.drools.compiler.compiler.PackageBuilder.processTypeFields(PackageBuilder.java:2206)
> at org.drools.compiler.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:2123)
> at org.drools.compiler.compiler.PackageBuilder.mergePackage(PackageBuilder.java:1254)
> at org.drools.compiler.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:2000)
> at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.buildTypeDeclarations(CompositeKnowledgeBuilderImpl.java:273)
> at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.buildTypeDeclarations(CompositeKnowledgeBuilderImpl.java:249)
> at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.buildPackages(CompositeKnowledgeBuilderImpl.java:87)
> at org.drools.compiler.compiler.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:76)
> at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:140)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:39)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieModule(KieBuilderImpl.java:207)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:160)
> at org.kie.internal.utils.KieHelper.build(KieHelper.java:25)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] (AS7-6824) jboss-as-cli_1_2.xsd targets 1.1 namespace
by Alexey Loubyansky (JIRA)
Alexey Loubyansky created AS7-6824:
--------------------------------------
Summary: jboss-as-cli_1_2.xsd targets 1.1 namespace
Key: AS7-6824
URL: https://issues.jboss.org/browse/AS7-6824
Project: Application Server 7
Issue Type: Feature Request
Components: CLI
Affects Versions: 7.1.3.Final (EAP)
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: 8.0.0.Alpha1
The jboss-as-cli_1_2.xsd targets the 1.1 namespace.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months