[JBoss JIRA] (JBRULES-3279) Error message when using 2 patterns inside a single accumulate is not clear: Parser returned a null Package
by Geoffrey De Smet (Created) (JIRA)
Error message when using 2 patterns inside a single accumulate is not clear: Parser returned a null Package
-----------------------------------------------------------------------------------------------------------
Key: JBRULES-3279
URL: https://issues.jboss.org/browse/JBRULES-3279
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 5.3.0.Final
Reporter: Geoffrey De Smet
Assignee: Edson Tirelli
I am trying to parse this rule:
{code}
rule "machineUsage"
when
$machineCapacity : MrMachineCapacity($machine : machine, $resource : resource)
$usageTotal : Number() from accumulate(
MrProcessRequirement(resource == $resource, $process : process, $usage : usage)
MrProcessAssignment(machine == $machine, process == $process),
sum($usage)
)
then
...
end
{code}
And I get this error message:
{code}
Exception in thread "main" java.lang.IllegalStateException: There are errors in the scoreDrl's:[47,77]: [ERR 102] Line 47:77 mismatched input ',' in rule "machineUsage"
[0,0]: Parser returned a null Package
{code}
For this line:
{code}
MrProcessAssignment(machine == $machine, process == $process),
{code}
It clear that it's because I can't use 2 patterns inside a single accumulate, but the error message seems wrong?
When I try this instead:
{code}
rule "machineUsage"
when
$machineCapacity : MrMachineCapacity($machine : machine, $resource : resource)
$usageTotal : Number() from accumulate(
(MrProcessRequirement(resource == $resource, $process : process, $usage : usage)
and MrProcessAssignment(machine == $machine, process == $process)),
sum($usage)
)
then
...
end
{code}
I get:
{code}
Exception in thread "main" org.drools.RuntimeDroolsException: BUG: Can't build a rete network with an inner OR group element
{code}
Don't really see the OR in there.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (AS7-5823) Create class hierarchy
by Harald Pehl (JIRA)
Harald Pehl created AS7-5823:
--------------------------------
Summary: Create class hierarchy
Key: AS7-5823
URL: https://issues.jboss.org/browse/AS7-5823
Project: Application Server 7
Issue Type: Sub-task
Reporter: Harald Pehl
Seperate classes into two distinct packages:
* org.jboss.mbui.aui: Contains classes for the abstract ui layer
* org.jboss.mbui.cui: Contains classes for the concrete ui layer
--
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
12 years, 1 month
[JBoss JIRA] (AS7-5964) Admin Console: Missing validation message for ListItem
by Harald Pehl (JIRA)
Harald Pehl created AS7-5964:
--------------------------------
Summary: Admin Console: Missing validation message for ListItem
Key: AS7-5964
URL: https://issues.jboss.org/browse/AS7-5964
Project: Application Server 7
Issue Type: Feature Request
Components: Console
Reporter: Harald Pehl
Assignee: Harald Pehl
Priority: Minor
Fix For: 7.2.0.CR1
The ballrom widget {{org.jboss.ballroom.client.widgets.forms.ListItem}} does not show a validation icon / message in case of invalid values.
In contrast other widgets like {{org.jboss.ballroom.client.widgets.forms.TextItem}} show a validation icon / message. Therefore an instance of {{org.jboss.ballroom.client.widgets.forms.InputElementWrapper}} is used.
ListItem should also use this wrapper.
--
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
12 years, 1 month
[JBoss JIRA] (AS7-5984) Determine whether a server is in sync with the domain model on reconnect
by Emanuel Muckenhuber (JIRA)
Emanuel Muckenhuber created AS7-5984:
----------------------------------------
Summary: Determine whether a server is in sync with the domain model on reconnect
Key: AS7-5984
URL: https://issues.jboss.org/browse/AS7-5984
Project: Application Server 7
Issue Type: Task
Components: Domain Management
Reporter: Emanuel Muckenhuber
Assignee: Emanuel Muckenhuber
Fix For: 7.2.0.CR1
When a server reconnects to the host-controller we would need to determine whether the server is still in sync with the domain model. Potentially the host-controller could also keep track of whether the server missed operations from the domain-controller.
--
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
12 years, 1 month
[JBoss JIRA] (AS7-5981) Exception after adding Karaf Features bundles
by Ulrich Romahn (JIRA)
Ulrich Romahn created AS7-5981:
----------------------------------
Summary: Exception after adding Karaf Features bundles
Key: AS7-5981
URL: https://issues.jboss.org/browse/AS7-5981
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Affects Versions: 7.2.0.Alpha1
Environment: JBoss AS 7.2.0-Alpha1-SNAPSHOT (latest build from master), Centos 6.3, Oracle Java SDK 1.7.0 u9
Reporter: Ulrich Romahn
Assignee: Thomas Diesler
Priority: Minor
I am trying to add the Features bundles from Apache Karaf allowing me to load bundles defined in a features.xml file.
After adding the bundles and their dependencies, the log shows the following exception:
12:30:42,567 ERROR [org.apache.aries.blueprint.container.BlueprintContainerImpl] (Blueprint Extender: 2) Unable to start blueprint container for bundle org.apache.karaf.features.management: org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.NoSuchMethodError: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;
at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:98)
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)
at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:631)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:337)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_07]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_07]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_07]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [rt.jar:1.7.0_07]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [rt.jar:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
Caused by: java.lang.NoSuchMethodError: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;
at org.apache.aries.util.internal.R43Worker.getClassLoader(R43Worker.java:40)
at org.apache.aries.util.AriesFrameworkUtil.getClassLoaderForced(AriesFrameworkUtil.java:99)
at org.apache.aries.proxy.impl.AbstractProxyManager.getClassLoader(AbstractProxyManager.java:93)
at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:84)
at org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:50)
at org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:39)
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:236)
at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:82)
... 14 more
It looks like there are some incompatibilities between JBoss OSGi and Apache Felix which Karaf is primarily based on.
--
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
12 years, 1 month
[JBoss JIRA] (AS7-5965) Resource adapter archive not recognized as CDI bean archive
by Martin Kouba (JIRA)
Martin Kouba created AS7-5965:
---------------------------------
Summary: Resource adapter archive not recognized as CDI bean archive
Key: AS7-5965
URL: https://issues.jboss.org/browse/AS7-5965
Project: Application Server 7
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 7.1.2.Final (EAP)
Reporter: Martin Kouba
Assignee: Stuart Douglas
The CDI 1.0 spec states in 12.1. "Bean archives":
{quote}
A library jar, EJB jar, application client jar or rar archive is a bean archive if it has a file named beans.xml in the META-INF directory.
...
In an application deployed as an ear, the container searches every bean archive bundled with or referenced by the ear, including bean archives bundled with or referenced by wars and EJB jars contained in the ear. The bean archives might be library jars, EJB jars, rars or war WEB-INF/classes directories.
{quote}
However it seems that RARs are not recognized.
--
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
12 years, 1 month