[JBoss JIRA] (JBRULES-3266) Rule, import with wildcards and variable / patternBinding
by Per Sterner (Created) (JIRA)
Rule, import with wildcards and variable / patternBinding
---------------------------------------------------------
Key: JBRULES-3266
URL: https://issues.jboss.org/browse/JBRULES-3266
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.3.0.Final
Environment: Windows, Equinox
Reporter: Per Sterner
Assignee: Mark Proctor
I got the exception "java.lang.NoClassDefFoundError: de/pelle7/testpackage/event/myEvent (wrong name: de/pelle7/testpackage/event/MyEvent)" while adding my resources.
I removed the import wildcards and the error disappeard.
Finally I found the problem:
I used the patternBinding 'myEvent' and there is a class called 'MyEvent' and I used an wildcard import where the class 'MyEvent' is located.
My solution is that I replaced all my pattern bindings with the suffix '$' which is more convenient.
Perhaps it would be nice to produce an rule-compilation error. with a line notice.
--
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
14 years, 1 month
[JBoss JIRA] (AS7-2284) Don't enable web console unless it is populated with data
by Lukáš Petrovický (Created) (JIRA)
Don't enable web console unless it is populated with data
---------------------------------------------------------
Key: AS7-2284
URL: https://issues.jboss.org/browse/AS7-2284
Project: Application Server 7
Issue Type: Enhancement
Components: Console
Affects Versions: 7.1.0.Alpha1
Reporter: Lukáš Petrovický
Assignee: Heiko Braun
Try logging into the web console immediately after the server starts. What you see is... nothing. We're missing all the data - deployments, modules... Basically, the menu on the left side doesn't show anything.
If you refresh the console a little while after that (tens of seconds later), the data are all properly there. What I propose is that, until the data are available, the console be either disabled or with some sort of "Loading, please wait..." dialog preventing users from interacting with the UI.
--
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
14 years, 1 month
[JBoss JIRA] Created: (JBRULES-2244) MVEL raising errors for declared types when there is a package import (import x.y.x.*)
by Edson Tirelli (JIRA)
MVEL raising errors for declared types when there is a package import (import x.y.x.*)
--------------------------------------------------------------------------------------
Key: JBRULES-2244
URL: https://jira.jboss.org/jira/browse/JBRULES-2244
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler, drools-core
Affects Versions: 5.0.1.FINAL, 5.0.0.FINAL
Reporter: Edson Tirelli
Assignee: Edson Tirelli
Fix For: 5.1.0.M1
The following DRL:
===================================================
package org.drools.examples.broker
import org.drools.examples.broker.model.*;
declare Statistics
symbol : String @key()
average : double
end
rule "Setup statistics"
when
$c : Company( $s : symbol )
not( Statistics( symbol == $s ) )
then
Statistics s = new Statistics();
s.symbol = $s;
insert( s );
end
===================================================
Generates the error:
-----------------------------
BuildError: Unable to build expression for 'consequence': Failed to compile: 1 compilation error(s):
- (1,10) unqualified type in strict mode for: Statistics ' Statistics s = new Statistics();
s.symbol = $s;
insert( s );
' broker.drl drools-examples-fusion/src/main/rules line 42 Drools Error
-----------------------------
But if we change the import to:
===================================================
import org.drools.examples.broker.model.Company
import org.drools.examples.broker.model.StockTick
import org.drools.examples.broker.model.SuddenDropEvent
===================================================
Everything works just fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] (AS7-4276) setting default-interface to crap makes AS completely non-responsive
by Heiko Rupp (JIRA)
Heiko Rupp created AS7-4276:
-------------------------------
Summary: setting default-interface to crap makes AS completely non-responsive
Key: AS7-4276
URL: https://issues.jboss.org/browse/AS7-4276
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Affects Versions: 7.1.1.Final
Reporter: Heiko Rupp
Assignee: Brian Stansberry
[standalone@localhost:9999 socket-binding-group=standard-sockets] /:read-children-names(type=interface)
'type' is not found among the supported properties: [child-type]
[standalone@localhost:9999 socket-binding-group=standard-sockets] /:read-children-names(child-type=interface)
{
"outcome" => "success",
"result" => [
"management",
"public",
"unsecure"
]
}
[standalone@localhost:9999 socket-binding-group=standard-sockets] :write-attribute(name=default-interface,value=non-existing-crap)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9999 socket-binding-group=standard-sockets] /:reload
{
"outcome" => "success",
"response-headers" => {"process-state" => "reload-required"}
}
[standalone@localhost:9999 socket-binding-group=standard-sockets] :read-attribute(name=default-interface)
Failed to perform read-operation-description to validate the request: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
console says:
17:27:25,358 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.network.non-existing-crap (missing) dependents: [service jboss.socket-binding-manager]
17:27:25,366 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.0.0.Beta1 (AS 7.1.0.Final-redhat-1) started (with errors) in 5676ms - Started 116 of 206 services (43 services failed or missing dependencies, 46 services are passive or on-demand)
No ports are open. User has to shut down the server, edit standalone.xml and try again.
--
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
14 years, 1 month
[JBoss JIRA] (JBRULES-3403) drools-camel-server-5.3.x.Final.war - strict web application container complains about web.xml
by Nicholas DiPiazza (JIRA)
Nicholas DiPiazza created JBRULES-3403:
------------------------------------------
Summary: drools-camel-server-5.3.x.Final.war - strict web application container complains about web.xml
Key: JBRULES-3403
URL: https://issues.jboss.org/browse/JBRULES-3403
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-camel
Affects Versions: 5.3.1.Final, 5.3.0.Final
Environment: Problem reproduces in WebLogic 10.x, maybe more?
Reporter: Nicholas DiPiazza
Assignee: Mark Proctor
Priority: Minor
Seems like "strict" J2EE containers require the <servlet>'s <display-name> to come before <servlet-name>, in particular WebLogic requires this.
If this:
<servlet>
<servlet-name>CXFServlet</servlet-name>
<display-name>CXF Servlet</display-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
were changed to this:
<servlet>
<display-name>CXF Servlet</display-name>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
the 5.3.0.Final and 5.3.1.Final drools-camel war files would be one step towards deploying with no changes out-of-the-box on WebLogic 10.x.
--
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
14 years, 1 month
[JBoss JIRA] (JBRULES-3268) Support for varargs needed
by Martin A (Created) (JIRA)
Support for varargs needed
--------------------------
Key: JBRULES-3268
URL: https://issues.jboss.org/browse/JBRULES-3268
Project: Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.3.0.Final
Reporter: Martin A
Assignee: Mark Proctor
Priority: Minor
I have a method such as:
/*
* determines if any of the events passed as parameter has occurred
*/
public boolean hasAnyEventOccurred(String... events) {
for (String s : events) {
if (hasEventOccurred(s)) {
return true;
}
}
return false;
}
However in rules I can't call it like that:
hasAnyEventOccurred("event1", "event2", "event3"), I have to workaround as so: hasAnyEventOccurred(new String[] {"event1", "event2", "event3"})
--
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
14 years, 1 month
[JBoss JIRA] Created: (JBRULES-1801) drools-ant-4.0.7, DroolsCompilerAntTask, classloader mixup leads to ClassCastException if drools-compiler.jar part of classpathref
by Juergen none (JIRA)
drools-ant-4.0.7, DroolsCompilerAntTask, classloader mixup leads to ClassCastException if drools-compiler.jar part of classpathref
----------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-1801
URL: https://jira.jboss.org/jira/browse/JBRULES-1801
Project: JBoss Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-ant
Affects Versions: 4.0.7
Reporter: Juergen none
Assignee: Mark Proctor
drools-4.0.7:
Original error in build.xml:
/home/juergen/workspace/eclipse/kusss-dev/build.xml:777: RuleBaseTask failed: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
Traceback to:
org.drools.compiler.PackageBuilderConfiguration, line 154+:
Class cls = classLoader.loadClass( dialectClass );
DialectConfiguration dialectConf = (DialectConfiguration) cls.newInstance();
cls is org.drools.rule.builder.dialect.java.JavaDialectConfiguration, but loaded via classloader given in drools compile ant task property classpathref, while DialectConfiguration is loaded via ant tool classpath used for taskdef
-->
java.lang.ClassCastException: org.drools.rule.builder.dialect.java.JavaDialectConfiguration
interim fix:
make sure drools-compiler.jar is not in classpath of classloaderref
suggested fix:
Class cls = DialectConfiguration.class.getClassLoader().loadClass( dialectClass );
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month