Deploying guvnor 5.5.1 Snapshot on websphere AS 7.0
by abhinay_agarwal
While Deploying guvnor 5.5.1 -Snapshot on websphere 7.0 i am getting the
following error
[5/9/13 12:11:18:521 IST] 00000007 AdminHelper A ADMN1009I: An attempt
is made to start the drools-guvnorEAR application.
[5/9/13 12:11:18:568 IST] 00000007 CompositionUn A WSVR0190I: Starting
composition unit WebSphere:cuname=drools-guvnorEAR in BLA
WebSphere:blaname=drools-guvnorEAR.
[5/9/13 12:11:51:421 IST] 00000007 ApplicationMg A WSVR0200I: Starting
application: drools-guvnorEAR
[5/9/13 12:11:51:421 IST] 00000007 ApplicationMg A WSVR0204I: Application:
drools-guvnorEAR Application build level: Unknown
[5/9/13 12:11:51:811 IST] 00000007 webapp I
com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web
Module: JBoss Guvnor for Drools.
[5/9/13 12:11:52:076 IST] 00000007 InjectionProc E CWNEN0044E: A resource
reference binding could not be found for the BeanManager resource reference,
defined for the JBoss Guvnor for Drools component.
[5/9/13 12:11:53:074 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.52.5753476655115778206616.txt
com.ibm.ws.injectionengine.InjectionEngineImpl.processBindings 480
[5/9/13 12:11:53:121 IST] 00000007 InjectionEngi E CWNEN0011E: The
injection engine failed to process bindings for the metadata.
[5/9/13 12:11:53:215 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.53.1839095875068220164390.txt
com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace 640
[5/9/13 12:11:53:215 IST] 00000007 ComponentName E CNTR0125E: Unable to
process injection information for class: [class
org.drools.guvnor.server.repository.SafeWeldListener].
[5/9/13 12:11:53:386 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.53.2612645496587947147575.txt
com.ibm.ws.webcontainer.webapp.WebGroup 131
[5/9/13 12:11:53:386 IST] 00000007 webapp E
com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0015E: Failure to
initialize Web application JBoss Guvnor for Drools
[5/9/13 12:11:53:558 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.53.3864474793422569466133.txt
com.ibm.ws.webcontainer.WebContainer 736
[5/9/13 12:11:53:651 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.53.5581434492717138337900.txt
com.ibm.ws.runtime.component.WebContainerImpl.install 124
[5/9/13 12:11:53:683 IST] 00000007 DeployedAppli W WSVR0206E: Module,
drools-guvnor.war, of application,
drools-guvnorEAR.ear/deployments/drools-guvnorEAR, failed to start
[5/9/13 12:11:53:683 IST] 00000007 ApplicationMg W WSVR0101W: An error
occurred starting, drools-guvnorEAR
[5/9/13 12:11:53:683 IST] 00000007 ApplicationMg A WSVR0217I: Stopping
application: drools-guvnorEAR
[5/9/13 12:11:53:714 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.53.7148569466503349536987.txt
com.ibm.ws.wsaddressing.urimap.EndpointMappingListener 1:196:1.8
[5/9/13 12:11:54:010 IST] 00000007 ApplicationMg A WSVR0220I: Application
stopped: drools-guvnorEAR
[5/9/13 12:11:54:322 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.54.0106549968453388597889.txt
com.ibm.ws.runtime.component.ApplicationMgrImpl 1449
[5/9/13 12:11:54:322 IST] 00000007 CompositionUn E WSVR0194E: Composition
unit WebSphere:cuname=drools-guvnorEAR in BLA
WebSphere:blaname=drools-guvnorEAR failed to start.
[5/9/13 12:11:54:447 IST] 00000007 DMAdapter I
com.ibm.ws.ffdc.impl.DMAdapter getAnalysisEngine FFDC1009I: Analysis Engine
using data base: D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\properties\logbr\ffdc\adv\ffdcdb.xml
[5/9/13 12:11:54:556 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.54.3535465789859844096183.txt
com.ibm.ws.management.AdminServiceImpl.invoke 679
[5/9/13 12:11:54:556 IST] 00000007 AppManagement W Unable to start:
drools-guvnorEAR using:
WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=BHUKRK286014DNode01,version=7.0.0.11,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=BHUKRK286014DNode01Cell,spec=1.0
exception is: javax.management.MBeanException: Exception thrown in
RequiredModelMBean while trying to invoke operation startApplication
[5/9/13 12:11:54:619 IST] 00000007 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_6f6e6f6e_13.05.09_12.11.54.6198303816507559970350.txt
com.ibm.ws.management.application.AppManagementImpl.startApplication 1332
Any idea about this error ?
Thanks,
Abhinay
--
View this message in context: http://drools.46999.n3.nabble.com/Deploying-guvnor-5-5-1-Snapshot-on-webs...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Use of the binding variable
by IPatel
Hi,
I am having little bit difficulty in understanding "binding variable"
concept in the guvnor. During our POC a business user asked me question
around this and i was able to save myself by telling them that the binding
variable is used in case you want use the fact again in Then statement.
(This is how i see it in the examples of rules).
Can anyone please explaining me the real use of the binding variable so that
i can help my business partner understand it properly?
Thank you for your help in advance
Isha
--
View this message in context: http://drools.46999.n3.nabble.com/Use-of-the-binding-variable-tp4023744.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Odd behavior on timeInMillis after[15m, 96h] otherTimeInMillis
by ScalaEnthusiast
I am attempting to use the after[start, end] construct with two time values
being returned in milliseconds.
We are effectively using Drools 5.3 (BRMS 5.3.1).
Here is what I have (field names changed, etc due to nature of data):
//---------------------------------------------
global String someInsertedConstant;
global Calendar myCurrentTime; // calculated just before inserting as
global.
rule "compare time in millis"
dialect "java"
when
$someObject : SomeObjectClass ( field1 == someInsertedConstant,
field2 == null,
myCurrentTime.timeInMillis after[15m, 96h]
someObject.getTime().getTimeInMillis ) from entry-point "SomeEntryPoint"
then
System.out.println("Boo-yah!!!");
//-------------------------
This does not send out a Boo-yah!!! as I would expect, when myCurrentime is
15 minutes or more past someObject.getTime(). However, I have another rule
just like this, where the only difference is the after is [0m,15m] instead,
and it gives a Boo-yah!!! as it should when myCurrentTime is up to 15
minutes past someObject.getTime(). Both rules are together in the same
package.
Am I missing something here? In the first case, "after[15m, 96h]", I can
change that line to manually subtract the two times as longs and compare
against being >= 900000 and it fires as it should. This appears to be a bug,
but I am not entirely sure as I am fairly new to the rule world.
What am I missing?
Thanks,
ScalaEnthusiast
--
View this message in context: http://drools.46999.n3.nabble.com/Odd-behavior-on-timeInMillis-after-15m-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Grid Node Null Pointer Exception
by Jason Barto
I am attempting to, using Camel, receive AMQP messages from RabbitMQ and
pass them into a Drools Fusion engine. As my starting point I have a 4
line bit of Java code that instantiates Camel and passes it the camel XML
pasted below. Is it apparent to anyone where I've gone wrong that I
receive a NPE while the system is calling the init method for 'node1'?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xmlns:drools="http://drools.org/schema/drools-spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/rabbit
http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd
http://drools.org/schema/drools-spring
http://drools.org/schema/drools-spring.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="droolsPolicy" class="org.drools.camel.component.DroolsPolicy"
/>
<drools:grid-node id="node1"/>
<drools:kbase id="kbase1" node="node1">
<drools:configuration>
<drools:mbeans enabled="true"/>
</drools:configuration>
<drools:resources>
<drools:resource type="DRL"
source="classpath:drools-rules.drl"/>
</drools:resources>
</drools:kbase>
<drools:ksession id="ksession1" type="stateful" name="ksession1"
kbase="kbase1" node="node1"/>
<bean id="drools" class="org.drools.camel.component.DroolsComponent"/>
<bean id="jsonMessageConverter"
class="amqp.spring.converter.XStreamConverter"/>
<bean id="textMessageConverter"
class="amqp.spring.converter.StringConverter"/>
<bean id="messageConverter"
class="amqp.spring.converter.ContentTypeConverterFactory">
<property name="converters">
<map>
<entry key="application/json"
value-ref="jsonMessageConverter"/>
<entry key="application/xml"
value-ref="textMessageConverter"/>
</map>
</property>
<property name="fallbackConverter" ref="textMessageConverter"/>
</bean>
<rabbit:connection-factory id="connectionFactory" host="127.0.0.1"
port="5672" />
<rabbit:template id="amqpTemplate"
connection-factory="connectionFactory" message-converter="messageConverter"
reply-timeout="60000"/>
<rabbit:admin connection-factory="connectionFactory"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="stream:in?promptMessage=Enter something: "/>
<to uri="spring-amqp:cml.direct:a.b.c?type=direct"/>
</route>
<route>
<from uri="spring-amqp:cml.direct:springd:a.b.c?type=direct" />
<transform>
<simple>${body.toUpperCase()}</simple>
</transform>
<to uri="spring-amqp:cml.topic:a.b.c"/>
</route>
<route>
<from uri="spring-amqp:cml.topic:springt:#?type=topic" />
<to uri="stream:out"/>
</route>
</camelContext>
</beans>
I'm still extremely new to Drools, Camel, BRMS and my ultimate goal is to
have BRMS running, receiving events from RabbitMQ. This is one step along
my learning to achieve that goal so any help that can be offered is very
much appreciated.
It's potentially worth noting that the JAR files I'm running for this are
from the Drools-jBPM Integration 5.5 distribution.
Sincerely,
Jason
12 years, 10 months
How to write Hibernate query lang(HQL) in .DRL file
by zeeshan
Hi !
According to my requirement I need to fetch and Insert data from database
using Hibernate Query from .DRL file.
I have idea how to execute HQL in Plain Java class but according to my
requirement,I need to fire query to database from .DRL file which I tried
but unable to get output instead I was getting errors.
Can anyone suggest me process to execute Hibernate Query from DRL file
or please provide me some sample code or any link.
Thanks !!
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-write-Hibernate-query-lang-HQL-i...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Performing Hibernate NativeSQLQuery in Drools
by Roopa
Hi,
I need some inputs on integrating Hibernate with Drools platform.
Please do help me executing nativeSQLQuery of Hibernate in Drools DRL file
In Java file, setting the session as global parameter in Drools
droolsSession.setGlobal("hibernateSession", session);
and in the DRL file, in when clause I am trying to execute the Native SQL
Query
Order() from hibernateSession.createSQLQuery("SELECT id FROM
Order").list(); // this query will give the list of orderId s from RDBMS.
Here, Order() is a POJO class (Entity) mapping to Order table.
When executed, I found the Order() entity is not populated with the id
values from the query.
Can some one help me with the tutorial which speaks about Quering DB via
Hibernate NativeSQL Query in Drools.
--
View this message in context: http://drools.46999.n3.nabble.com/Performing-Hibernate-NativeSQLQuery-in-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
new Kie API and RuleMatrixSheetListener()
by Ramon Buckland
Hi,
I am looking at the new Kie API and I am trying to work out how I tell it / Drools that I have a RuleMatrixSheet ..
https://github.com/droolsjbpm/drools/blob/master/drools-decisiontables/sr...
This was the old way (a bit manual)
final SpreadsheetCompiler converter = new SpreadsheetCompiler();
final InputStream stream = this.getClass().getResourceAsStream( "/path/to/spreadsheet.xls" );
final String drl = converter.compile( stream,
InputType.XLS,
new RuleMatrixSheetListener() );
Is there an example of a matrix style Spreadsheet being used to generate the rules, with the new Kie APIs ?
I can't seem to find similar concepts on the ResourceFactory API, or on "Resource"
Version 5 and version 6 don't really "support" the Configuration object understanding the Matrix Style Rules table.
If it were to be implemented, it looks like :
org.kie.api.builder.KieFileSystem
needs some changes, to support the compilation of a Rule Matrix where write* is taking a Resource,
If there is not an Example, what do I need to "wire" together for this.
Any pointers are much appreciated.
Kind regards
Ramon
Ramon Buckland
ramon(a)thebuckland.com
12 years, 10 months
Using XMLGregorianCalendar for @timestamp metadata
by ScalaEnthusiast
I have an object that comes into a stream as an event and I want to use
@timestamp to specify the event time from the object.
Then field that has this information is an XMLGregorianCalendar called
timeStamp. If I specify this attribute with @timestamp(timeStamp) I get and
error saying that conversion to long from the XMLGregorianCalendarImpl is
not supported. Ok, I get that.
now, I can get a java Date by calling the following method chain on the
timeStamp object:
timeStamp.toGregorianCalendar().getCalendarDate()
specifying this in the @timestamp does not validate, presumably because
@timestamp is looking for an attribute (or chain of attributes) and not a
chain of method calls.
Is there anyway to specify a timestamp in the rule using an
XMLGregorianCalendar?
--
View this message in context: http://drools.46999.n3.nabble.com/Using-XMLGregorianCalendar-for-timestam...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months