Re: [rules-users] How to generate rule statements using MVEL 2.0 template?

2014-01-20 Thread neal
Hi Mark,

This is the rough template i have created to produce rules. I am able to
generate basic rules and able to write them .drl. 

package @{package};

@foreach{importEntry : imports}
import @{importEntry};
@end{}

@foreach{importEntry : staticImports}
import static @{importEntry};
@end{}

rule "@{ruleName}"

dialect "@{dialectName}"
salience @{salienceValue}
enabled @{enableValue}

when
@foreach{modelObject : modelObjects} @{modelObject.referenceName} :
@{modelObject.referenceType} ( @foreach{ attribute : modelObject.attributes}
@{attribute.name} @{attribute.operator} "@{attribute.value}" @end{} ) @end{}
then
@foreach{modelObject : modelObjects} @{modelObject.referenceName} :
@{modelObject.referenceType} ( @foreach{ attribute :
modelObject.thenAttributes} @{attribute.name} @{attribute.operator}
"@{attribute.value}" @end{} ) @end{}
end

I am reading the generated rule through .drl into String. How can i able to
parse it so that it will give me object model which i passed to this
template?




--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-generate-rule-statements-using-MVEL-2-0-template-tp4027692p4027765.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Project Explorer has dissappeared in KIE Workbench

2014-01-20 Thread ivot
Hi All,

I have installed JBoss 7.1.1 and deployed
kie-drools-wb-distribution-6.0.1.Final.war.

However, when I log in to KIE Workbench I get an error message:

 

Alos I do not see Project Explorer on the screen. Also when I click on
Explorer Menu option Project Explorer is not listed there:

 

It seems that there were some warnings during deployment of kie workbench
(see server.log attached).

server.log   

Can anyone advise please how to fix this?

Thank you in advance,
Ivan







--
View this message in context: 
http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Project Explorer has dissappeared in KIE Workbench

2014-01-20 Thread Michael Anstis
Can you please confirm you downloaded the WAR from
http://download.jboss.org/drools/release/6.0.1.Final/kie-drools-wb-distribution-6.0.1.Final.zip




On 20 January 2014 13:10, ivot  wrote:

> Hi All,
>
> I have installed JBoss 7.1.1 and deployed
> kie-drools-wb-distribution-6.0.1.Final.war.
>
> However, when I log in to KIE Workbench I get an error message:
>
> 
>
> Alos I do not see Project Explorer on the screen. Also when I click on
> Explorer Menu option Project Explorer is not listed there:
>
> 
>
> It seems that there were some warnings during deployment of kie workbench
> (see server.log attached).
>
> server.log 
>
> Can anyone advise please how to fix this?
>
> Thank you in advance,
> Ivan
>
>
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] stuck! Unknown accessor type: org.mvel2.optimizers.impl.refl.collection.ArrayCreator@690c2a7a

2014-01-20 Thread brachi
any news?



--
View this message in context: 
http://drools.46999.n3.nabble.com/stuck-Unknown-accessor-type-org-mvel2-optimizers-impl-refl-collection-ArrayCreator-690c2a7a-tp4020969p4027769.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Project Explorer has dissappeared in KIE Workbench

2014-01-20 Thread Toni Rikkola
I tested the 6.0.1.Final war with Chrome and got the user agent error.
Looks like the only browser that works 100% is Firefox and any other
that uses Gecko 1.8.

Toni

On ma, 2014-01-20 at 13:25 +, Michael Anstis wrote:
> Can you please confirm you downloaded the WAR
> from 
> http://download.jboss.org/drools/release/6.0.1.Final/kie-drools-wb-distribution-6.0.1.Final.zip
> 
> 
> 
> 
> 
> 
> On 20 January 2014 13:10, ivot  wrote:
> Hi All,
> 
> I have installed JBoss 7.1.1 and deployed
> kie-drools-wb-distribution-6.0.1.Final.war.
> 
> However, when I log in to KIE Workbench I get an error
> message:
> 
> 
> 
> Alos I do not see Project Explorer on the screen. Also when I
> click on
> Explorer Menu option Project Explorer is not listed there:
> 
> 
> 
> 
> It seems that there were some warnings during deployment of
> kie workbench
> (see server.log attached).
> 
> server.log
> 
> 
> Can anyone advise please how to fix this?
> 
> Thank you in advance,
> Ivan
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context:
> 
> http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767.html
> Sent from the Drools: User forum mailing list archive at
> Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
Must not be in 6.0.1.

I upgraded to 6.0.1

I even created a new repo

with the rule

7.  |   when
8.  |   Number( )
9.  |   then
10. |   end

and get 
[8] No mapping entries for expanding:   insert( new Number() );
[8] Unable to expand:   insert( new Number() );




--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027772.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
BTW, it would be nice if some where on the GUI you could see what version you
were running.



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027773.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Project Explorer has dissappeared in KIE Workbench

2014-01-20 Thread ivot
Hi,

Yes, I have downloaded kie-drools from the location below.

Actually, I reinstalled the JBoss and KIE-Workbench and then logged in to
Workbench using Firefox and though I do not see Project Explorer option in
the Explore option, Project Explorer itself is showing on the lefthandside
and did not disappear so far.

Also I did not see Error message when logging in to KIE Workbench.

It seems that FireFox works properly with KIE Workbench (IE and Chrome
failed previously).

Thanks for the hint about FireFox.

I saw on youtube video that KIE Workbench was launched in FireFox, but did
not think it was so important.

Thank you,
Ivan


2014/1/20 Toni Rikkola-2 [via Drools] <
ml-node+s46999n4027770...@n3.nabble.com>

> I tested the 6.0.1.Final war with Chrome and got the user agent error.
> Looks like the only browser that works 100% is Firefox and any other
> that uses Gecko 1.8.
>
> Toni
>
> On ma, 2014-01-20 at 13:25 +, Michael Anstis wrote:
>
> > Can you please confirm you downloaded the WAR
> > from
> http://download.jboss.org/drools/release/6.0.1.Final/kie-drools-wb-distribution-6.0.1.Final.zip
> >
> >
> >
> >
> >
> >
> > On 20 January 2014 13:10, ivot <[hidden 
> > email]>
> wrote:
> > Hi All,
> >
> > I have installed JBoss 7.1.1 and deployed
> > kie-drools-wb-distribution-6.0.1.Final.war.
> >
> > However, when I log in to KIE Workbench I get an error
> > message:
> >
> > <
> http://drools.46999.n3.nabble.com/file/n4027767/StartUp_Error.png>
> >
> > Alos I do not see Project Explorer on the screen. Also when I
> > click on
> > Explorer Menu option Project Explorer is not listed there:
> >
> > <
> http://drools.46999.n3.nabble.com/file/n4027767/No_Project_Explorer.png>
> >
> > It seems that there were some warnings during deployment of
> > kie workbench
> > (see server.log attached).
> >
> > server.log
> > 
> >
> > Can anyone advise please how to fix this?
> >
> > Thank you in advance,
> > Ivan
> >
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767.html
> > Sent from the Drools: User forum mailing list archive at
> > Nabble.com.
> > ___
> > rules-users mailing list
> > [hidden email]
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> > ___
> > rules-users mailing list
> > [hidden email] 
> > https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> ___
> rules-users mailing list
> [hidden email] 
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767p4027770.html
>  To unsubscribe from Project Explorer has dissappeared in KIE Workbench, click
> here
> .
> NAML
>




--
View this message in context: 
http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767p4027774.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] named consequences for an or...

2014-01-20 Thread pmander
I was using or in a rule for example

rule "or example"
when
$t : (Transaction(org == "us") or Transaction(acc == "111"))
then
insert(new Record($t, 1));
end

This would work but would create 2 Record objects which we sorted out later
on but now for performance reasons I don't want the second match to be
evaluated if the first one matches. I saw a post about named consequences
and came up with something like:

when
$t : Transaction(org == "us")
if ($t != null) break[t1]
$t1 : Transaction(acc == "111")
then
insert(new Record($t1, 1));
then[t1]
insert(new Record($t, 1));
end

This compiles but the "or" doesn't work. This is probably due to my "break".
Is there a way I can do what I need?

Note that the performance implication of performing the or is not apparent
in this example but it is there - I have simplified this example to make it
easier to talk about (and to protect the innocent)



--
View this message in context: 
http://drools.46999.n3.nabble.com/named-consequences-for-an-or-tp4027775.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Fusion CEP Design problem / Race Condition

2014-01-20 Thread Martin Kitzler

Hello everyone,

 

i'm having some design problems with Drools Fusion and CEP. Maybe you can guide me into the right direction.
(Drools 5.6)

 

 

 

Problem:
I want to use Fusion CEP to handle a quite large amount of events (25-50 thousand per minute as a start). The events don't have to live very long so I plan to expire them very soon.
My rule is pretty simple:
There is only one event type (which has a string value field in it).
The rule should fire when there are X events with the same value Y in time window Z.
The effect of the rule should be something like an Alarm which will be extracted from outside the rule engine.

 


I found some similar examples (and also studies the documentation) but the race condition (see down below) destroys all my plans.

 

 

 

ATM it looks like this:
declare MyEvent
    @role(event)
    @expires( 30s )
end

 

declare Alarm
    @role(event)
end

 

 

rule "RULE 1"
when
  $e : MyEvent( ) from entry-point entryone
//  not Alarm(eventValue == $e.getEventValue())
  Number( $count : intValue, $count > 30) from accumulate( $i : (MyEvent ( eventValue == $e.getEventValue() ) over window:time(15s) from entry-point entryone), count( $i )   )
then
//  insert( new Alarm($e.getEventValue(), $count));
  System.out.println("rule 1. value="+$e.getEventValue() +" count=" + $count);
end

 

-> When there are more than 30 "same" events (same value) in the last 15 seconds.

MyEvent and Alarm are simple POJOs. Only fields, getter, setter, ... (value is a String, count is a Integer)

 

 

 

 

The rule like this will fire for EVERY event -> when there are 30 similar events then the log message is printed 30 times.
I'm unhappy with this situation because I actually only need the RHS triggered only once for each value. Secondly I thought that the performance would be better when firing only once.

So I introduced the Alarm object which is created after the rule triggers the first time for the given value. (the two commented lines)
When the rule triggers the first time for value X, I create an Alarm object for this value. Then the "not Alarm(...)" should prevent the execution.

This works for the first few thousand events. Then I receive a race condition exception. Occurs usually between event 2000 - 1.

Exception in thread "main" org.drools.RuntimeDroolsException: Unexpected exception executing action org.drools.reteoo.PropagationQueuingNode$PropagateAction@61f0b700
    at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1047)
    at org.drools.reteoo.WindowNode.assertObject(WindowNode.java:182)
    at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:497)
    at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:382)
    at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:302)
    at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:254)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:366)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:327)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:130)
    at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:58)
    at myClass.main(...)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.NullPointerException
    at org.drools.reteoo.ReteooWorkingMemory$EvaluateResultConstraints.execute(ReteooWorkingMemory.java:593)
    at org.drools.common.PropagationContextImpl.evaluateActionQueue(PropagationContextImpl.java:364)
    at org.drools.reteoo.PropagationQueuingNode$AssertAction.execute(PropagationQueuingNode.java:449)
    at org.drools.reteoo.PropagationQueuingNode.propagateActions(PropagationQueuingNode.java:289)
    at org.drools.reteoo.PropagationQueuingNode$PropagateAction.execute(PropagationQueuingNode.java:611)
    at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1045)
    ... 16 more

 

 

I'm adding a few thousand events into the knowledge session. Then let the thread sleep for a few seconds for drools to catch up. I tried this with various combinations and always received the exception.
It works when trying for a few hundred events. (rule triggers as planed)

 

 

for the sake of completeness:
My Java class that starts the knowledge session and inserts the events:
    KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
    config.setOption(EventProcessingOption.STREAM);
    kbase = KnowledgeBaseFactory.newKnowledgeBase(config);
    kbase.addKnowledg

Re: [rules-users] named consequences for an or...

2014-01-20 Thread pmander
I could do this:

when 
$t : Transaction((org == "us") || (expensive() == "111"))
then 
insert(new Record($t, 1)); 
end 

If org is indeed equal to "us" is it guaranteed that expensive() doesn't get
executed? 



--
View this message in context: 
http://drools.46999.n3.nabble.com/named-consequences-for-an-or-tp4027775p402.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Issue with Kie-cli-config

2014-01-20 Thread Soumya.plavaga
I am getting login failed while doing ssh localhost -p 8001. I have tried the
following steps -

1. My drools-wb is running on my localhost. Drools internal ssh server is
runing on port 8001.

2. I have generated the ssh public & private key using ssh-keygen -t rsa
with empty pass phrase.

3. It created id_rsa & id_rsa.pub under $HOME/.ssh.

4. I have copied the content of id_rsa.pub into $HOME/.ssh/authorized_keys.

5. After that tried to access the ssh localhost -p 8001.


I have now recieved a message that -

Authenticated with partial success along with password prompt.

'debug 1: authentication that can continue: password, keyboard-interactive.'

It looks like some where in the server side configuration of drool's ssh
server it is setting 'publicKeyAuthentication no'.
But did not figure out where I can enable that settings in drool's internal
ssh server to pick my generated public key.

I have also tried to setup a different ssh server on my localhost and can
confirm it is correctly picking my public key
for ssh authentication with the same set of ssh configuration I followed
above.

So my questions are -

1. Where does drools keep it's ssh server settings?

2. If I need to allow my ssh public key for authentication, which settings I
need to change?





--
View this message in context: 
http://drools.46999.n3.nabble.com/Issue-with-Kie-cli-config-tp4027737p4027779.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Unable to figure out few feature for tomcat7 deployment

2014-01-20 Thread Mohit Srivastava
Hi,

I deployed drools workbench on tomcat. Guide only explains every thing on
Wildfly or JBOSS EPA cluster
But I am unable to figure out following things:


   - How to add new user?
   - How to change system properties?

Thanks
--
Mohit
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] named consequences for an or...

2014-01-20 Thread Wolfgang Laun
On 20/01/2014, pmander  wrote:
> I could do this:
>
> when
>   $t : Transaction((org == "us") || (expensive() == "111"))
> then
> insert(new Record($t, 1));
> end
>

Yes, that takes care of the unwanted duplication.

> If org is indeed equal to "us" is it guaranteed that expensive() doesn't
> get
> executed?

You can test this quite easily: add a print to expensive().

-W

>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/named-consequences-for-an-or-tp4027775p402.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fusion CEP Design problem / Race Condition

2014-01-20 Thread Wolfgang Laun
The test (as you describe it) isn't really reproducing what will
happen in reality. A burst of 5000 events (almost) at the same time
followed by a lull of 5sec isn't quite like a scenario of 25-50k per
minute.

The Alarm tied to some eventValue is OK. But I'd try and accumulate
the matching events "manually" into a list kept in the Alarm fact, and
I'd even try and do the retraction by comparing the timestamp of the
oldest with the timestamp of a new arrival. You can easily handle the
situation when 30 is reached. (You may have to decide when this is
retriggered, i.e., the count falls below 30 and then exceeds 30 once
more.)

A little consideration should also be given to the number of different
eventValues. If these values are from a stable set, I don't see any
problems.

-W

On 20/01/2014, Martin Kitzler  wrote:
> Hello everyone,
>
> i'm having some design problems with Drools Fusion and CEP. Maybe you can
> guide me into the right direction.
> (Drools 5.6)
>
>
>
> Problem:
> I want to use Fusion CEP to handle a quite large amount of events (25-50
> thousand per minute as a start). The events don't have to live very long so
> I plan to expire them very soon.
> My rule is pretty simple:
> There is only one event type (which has a string value field in it).
> The rule should fire when there are X events with the same value Y in time
> window Z.
> The effect of the rule should be something like an Alarm which will be
> extracted from outside the rule engine.
>
>
> I found some similar examples (and also studies the documentation) but the
> race condition (see down below) destroys all my plans.
>
>
>
> ATM it looks like this:
> declare MyEvent
> @role(event)
> @expires( 30s )
> end
>
> declare Alarm
> @role(event)
> end
>
>
> rule "RULE 1"
> when
>   $e : MyEvent( ) from entry-point entryone
> //  not Alarm(eventValue == $e.getEventValue())
>   Number( $count : intValue, $count > 30) from accumulate( $i : (MyEvent (
> eventValue == $e.getEventValue() ) over window:time(15s) from entry-point
> entryone), count( $i )   )
> then
> //  insert( new Alarm($e.getEventValue(), $count));
>   System.out.println("rule 1. value="+$e.getEventValue() +" count=" +
> $count);
> end
>
> -> When there are more than 30 "same" events (same value) in the last 15
> seconds.
> MyEvent and Alarm are simple POJOs. Only fields, getter, setter, ... (value
> is a String, count is a Integer)
>
>
>
>
> The rule like this will fire for EVERY event -> when there are 30 similar
> events then the log message is printed 30 times.
> I'm unhappy with this situation because I actually only need the RHS
> triggered only once for each value. Secondly I thought that the performance
> would be better when firing only once.
> So I introduced the Alarm object which is created after the rule triggers
> the first time for the given value. (the two commented lines)
> When the rule triggers the first time for value X, I create an Alarm object
> for this value. Then the "not Alarm(...)" should prevent the execution.
> This works for the first few thousand events. Then I receive a race
> condition exception. Occurs usually between event 2000 - 1.
> Exception in thread "main" org.drools.RuntimeDroolsException: Unexpected
> exception executing action
> org.drools.reteoo.PropagationQueuingNode$PropagateAction@61f0b700
> at
> org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1047)
> at org.drools.reteoo.WindowNode.assertObject(WindowNode.java:182)
> at
> org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:497)
> at
> org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:382)
> at
> org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:302)
> at
> org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:254)
> at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:366)
> at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:327)
> at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:130)
> at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:58)
> at myClass.main(...)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
> Caused by: java.lang.NullPointerException
> at
> org.drools.reteoo.ReteooWorkingMemory$EvaluateResultConstraints.execute(ReteooWorkingMemory.java:593)
> at
> org.drools.common.PropagationContextImpl.evaluateActionQueue(PropagationContextImpl.java:364)
> at
> org.drools.reteoo.PropagationQueuingNode$AssertAction.execute(PropagationQueuingNode

Re: [rules-users] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
Another data point.

I set this up on another machine and it works.

Something on my machine must be corrupted.

What would you recommend I delete?  .niogit?

(My .war is already all new)



--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027783.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Support in IntelliJ

2014-01-20 Thread mreynolds
I recently saw this video:

http://www.screenr.com/w9q8

There are some pretty advanced features being displayed that makes the
Eclipse editor pale in comparison. I assumed that there was a Drools plugin
for this and Googlefu seems to indicate that this is the case. However,
whenever I open a DRL file IntelliJ says it found a plugin that supports
that extension, but when I browse the plugin repo it turns up nothing.
Searching for JBoss revealed a JBPM pluginbut no mention of Drools. This
isn't an environment issue either as this happens to me on both Linux and
Windows.

Does anyone know how to get this plugin? Is there another repository that
needs to be added?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Support-in-IntelliJ-tp4027784.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
more data points

with jboss not running:
I deleted .niogit.
I deleted all my .jar files from the kie and .m2 repos
I deleted and re-installed the kie-wb.jar

started jboss.
.niogit came back
started kiewb

Tried to add a rule to mortgage demo project


I still get the errors.

I'm not sure what can still be different between this setup and the one I
set up from scratch on the other machine that works. (In case it's lost in
the chain, the install on this machine used to work)


As a DSL/RDSLR file

1.  |   import java.lang.Number;
2.  |   import org.mortgages.Applicant;
3.  |   
4.  |   rule "sss"
5.  |   dialect "mvel"
6.  |   when
7.  |   Applicant( )
8.  |   then
9.  |   end

16:56:36,143 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule]
(http-/127.0.0.1:8080-1) Unable to build KieBaseModel:defaultKieBase
[7] Unable to expand: Applicant( )





--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027785.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] DSL: Unable to Expand Error - Even things that shouldn't be expanded.

2014-01-20 Thread SrjTx
Does any of this matter - I don't remember if it was there before the problem
or not

17:13:17,704 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xercesImpl.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/xalan-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,704 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xml-apis.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/xalan-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   


  
17:13:17,705 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry serializer.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/xalan-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,707 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb-api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


  
17:13:17,708 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry activation.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,708 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jsr173_1.0_api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


17:13:17,708 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb1-impl.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-impl-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   



17:13:17,709 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xml-apis.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/serializer-2.7.1.jar
 
does not point to a valid jar for a Class-Path reference.   


 
17:13:17,716 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb-api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


   
17:13:17,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jaxb-impl.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-drools-wb.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar
 
does not point to a valid jar for a Class-Path reference.   


  
17:13:17,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry jsr173_1.0_api.jar in
/opt/jboss-as-7.2.0.Final/standalone/deployments/kie-dro

Re: [rules-users] Drools Support in IntelliJ

2014-01-20 Thread Anjana Ackroyd
http://planet.jboss.org/post/add_jboss_drools_support_in_intellij_idea_leif_hanack

I just imported that zip file from the above link into my intellij


On Mon, Jan 20, 2014 at 2:33 PM, mreynolds  wrote:

> I recently saw this video:
>
> http://www.screenr.com/w9q8
>
> There are some pretty advanced features being displayed that makes the
> Eclipse editor pale in comparison. I assumed that there was a Drools plugin
> for this and Googlefu seems to indicate that this is the case. However,
> whenever I open a DRL file IntelliJ says it found a plugin that supports
> that extension, but when I browse the plugin repo it turns up nothing.
> Searching for JBoss revealed a JBPM pluginbut no mention of Drools. This
> isn't an environment issue either as this happens to me on both Linux and
> Windows.
>
> Does anyone know how to get this plugin? Is there another repository that
> needs to be added?
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-Support-in-IntelliJ-tp4027784.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users