arup | 1 Feb 08:13
Picon

Unable to start guvnor with no initial repository

Hi all,

I'm running my Guvnor 5.2 on WAS 6.1. But after deploying the war file when
i'm trying to hit the guvnor link i'm getting the following errors:

[2/1/12 12:41:04:483 IST] 00000028 SystemOut     O ERROR 01-02 12:41:04,483
(LoggingHelper.java:error:69) 	 Service method 'public abstract
java.lang.String[]
org.drools.guvnor.client.rpc.RepositoryService.listStates() throws
com.google.gwt.user.client.rpc.SerializationException' threw an unexpected
exception: java.lang.IllegalStateException: java.lang.NullPointerException
java.lang.IllegalStateException: java.lang.NullPointerException
	at
org.drools.guvnor.server.util.TestEnvironmentSessionHelper.getSession(TestEnvironmentSessionHelper.java:113)
	at
org.drools.guvnor.server.RepositoryServiceServlet.getService(RepositoryServiceServlet.java:69)
	at
org.drools.guvnor.server.RepositoryServiceServlet.listStates(RepositoryServiceServlet.java:630)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:618)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
	at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
	at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
	at
(Continue reading)

aitchnyu | 1 Feb 08:37
Picon

Re: Why is solving a partial puzzle much slower than generating one from scratch?

Sorry if I called it by a misleading name (3x3) . It means a regular sudoku
like http://www.sudoku-solutions.com/ .

And I hacked on NQueens to make it. Only the row is the planning entity.
Each digit has a value, row, column and a fixed status. A fixed digit has
row, column and value assigned and fixed status set to true (you must not
reassign row of this). An unsolved digit has a null row, with column and
value assigned and fixed status set to false.

I included three cases. It solves a completely blank grid, it doesnt solve a
24-digit problem (it gets stuck at a step, see included log snippet), it
solves an easier 8-digit version of same problem in *much longer time*.

*Case*: Output of solving a completely blank grid
12:42:33.977 [main] INFO  o.d.p.c.l.DefaultLocalSearchSolverPhase - Phase
local search finished: step total (148), time spend (5491), best score (0).
12:42:33.977 [main] INFO  o.d.p.core.solver.DefaultSolver - Solved: time
spend (5491), best score (0), average calculate count per second (17598).

*Case*: solving problem 1: 24 digits of
http://puzzles.about.com/library/sudoku/blprsudokux01.htm 
12:51:34.279 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
index (10530), time spend (164914), score (-3),     best score (-3),
accepted move size (456) for picked step (Digit:4 (Row 5,Column 2) block
code[10]  => Row 3)

It gets *stuck* here forever.
12:59:31.398 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
index (4265), time spend (74003), score (-3),     best score (-3), accepted
move size (520) for picked step (Digit:7 (Row 5,Column 7) block code[12]  =>
(Continue reading)

Toni Rikkola | 1 Feb 12:44
Picon
Gravatar

Drools 5.4.0.Beta2 released

Drools 5.4.0.Beta2 released (Expert, Fusion, Planner, Guvnor)

Toni Rikkola
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
juankera | 1 Feb 13:20
Picon

Re: Accumulate function, events and stream processing

No way, working with entry-points doesn't help. I get the same results.

Could you please help me with another clues?

Thanks.

--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Accumulate-function-events-and-stream-processing-tp3700577p3706414.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

juankera | 1 Feb 13:25
Picon

Re: Accumulate function, events and stream processing

Hey, i've just found this issue.

https://issues.jboss.org/browse/JBRULES-3075

Copied from third comment:

/This actually means the whole "window:length" feature can't be used at all.
events are not cleared from memory and therefor accumulate functions
constantly return wrong results./

Is that true? Anyone using window:length out there?

--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Accumulate-function-events-and-stream-processing-tp3700577p3706423.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Stephen Masters | 1 Feb 13:25

Eclipse plugin for editing DSLR

Hi folks,

I was thinking the Eclipse DSLR editor just didn't work, but discovered this morning that actually it's
just that it only works properly (i.e. shows the 'generated' DRL) if I put the DSLR in the same directory as
the DSL. Until now, I have kept the DSL in the 'main' side of my Maven source tree and DSLRs for use in unit
testing in the 'test' side.

So I was wondering whether there's a means of configuring the Eclipse plugin so that it can find DSL
resources in another directory.

As a side note, I was thinking that this would be a handy thing for a Maven Drools plugin to configure for me,
when I run "mvn eclipse:eclipse". It could be based on project structure conventions or through me
indicating the location of my rules resources. I noticed a couple of old interactions on the mailing list
regarding Maven Drools plugins, but I also notice that so far nothing has appeared in the
droolsjbpm-tools Github repo.

Steve

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Wolfgang Laun | 1 Feb 14:11
Picon

Re: Accumulate function, events and stream processing

On 01/02/2012, juankera <juankera <at> gmail.com> wrote:
> Hey, i've just found this issue.
>
> https://issues.jboss.org/browse/JBRULES-3075

A window:length was never meant to cause retraction of events.

>
> Copied from third comment:
>
> /This actually means the whole "window:length" feature can't be used at all.
> events are not cleared from memory and therefor accumulate functions
> constantly return wrong results./

window:length works correctly in 5.3.0.

Please produce a simple, complete test-case. The code you've shown is
incomplete and can't be run.

-W

>
> Is that true? Anyone using window:length out there?
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-Accumulate-function-events-and-stream-processing-tp3700577p3706423.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Geoffrey De Smet | 1 Feb 15:27
Picon
Gravatar

Re: Why is solving a partial puzzle much slower than generating one from scratch?


Op 01-02-12 08:37, aitchnyu schreef:
> Sorry if I called it by a misleading name (3x3) . It means a regular sudoku
> like http://www.sudoku-solutions.com/ .
>
> And I hacked on NQueens to make it. Only the row is the planning entity.
> Each digit has a value, row, column and a fixed status. A fixed digit has
> row, column and value assigned and fixed status set to true (you must not
> reassign row of this). An unsolved digit has a null row, with column and
> value assigned and fixed status set to false.
>
> I included three cases. It solves a completely blank grid, it doesnt solve a
> 24-digit problem (it gets stuck at a step, see included log snippet), it
> solves an easier 8-digit version of same problem in *much longer time*.
>
> *Case*: Output of solving a completely blank grid
> 12:42:33.977 [main] INFO  o.d.p.c.l.DefaultLocalSearchSolverPhase - Phase
> local search finished: step total (148), time spend (5491), best score (0).
> 12:42:33.977 [main] INFO  o.d.p.core.solver.DefaultSolver - Solved: time
> spend (5491), best score (0), average calculate count per second (17598).
>
> *Case*: solving problem 1: 24 digits of
> http://puzzles.about.com/library/sudoku/blprsudokux01.htm
> 12:51:34.279 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (10530), time spend (164914), score (-3),     best score (-3),
> accepted move size (456) for picked step (Digit:4 (Row 5,Column 2) block
> code[10]  =>  Row 3)
>
I don't see a construction heuristic at work here. Have you tried 
running a construction heuristic before the local search?
It's not hard, just add 3 lines (use FIRST FIT). Take a look 5.4.0.Beta2 
version of
nqueensSolverConfig.xml.
<constructionHeuristic>
<constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType>
<constructionHeuristicPickEarlyType>FIRST_LAST_STEP_SCORE_EQUAL_OR_IMPROVING</constructionHeuristicPickEarlyType><!-- 
for speed -->
</constructionHeuristic>
<localSearch>
       ...

I wouldn't be surprised that a construction heuristic solves the 24 clue 
sudoku immediately,
without having to resort to local search even.
> It gets *stuck* here forever.
> 12:59:31.398 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4265), time spend (74003), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 5,Column 7) block code[12]  =>
> Row 3).
> 12:59:31.429 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4266), time spend (74034), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 3,Column 4) block code[11]  =>
> Row 5).
> 12:59:31.444 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4267), time spend (74049), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 5,Column 4) block code[11]  =>
> Row 3).
> 12:59:31.459 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4268), time spend (74064), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 3,Column 7) block code[12]  =>
> Row 5).
> 12:59:31.474 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4269), time spend (74079), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 5,Column 7) block code[12]  =>
> Row 3).
> 12:59:31.493 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4270), time spend (74098), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 3,Column 4) block code[11]  =>
> Row 5).
> 12:59:31.508 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
> index (4271), time spend (74113), score (-3),     best score (-3), accepted
> move size (520) for picked step (Digit:7 (Row 5,Column 4) block code[11]  =>
> Row 3).
If you're using <propertyTabu>7 or higher, this is probably a score trap 
(look for "score trap" in the manual).
But go for the constr. heuristic first.
>
> *Case*: reducing predefined digits down to 6
> 13:02:31.093 [main] INFO  o.d.p.c.l.DefaultLocalSearchSolverPhase - Phase
> local search finished: step total (554), time spend (12849), best score (0).
> 13:02:31.094 [main] INFO  o.d.p.core.solver.DefaultSolver - Solved: time
> spend (12850), best score (0), average calculate count per second (25229)
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Why-is-solving-a-partial-puzzle-much-slower-than-generating-one-from-scratch-tp3703622p3705805.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

--

-- 
With kind regards,
Geoffrey De Smet

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Geoffrey De Smet | 1 Feb 15:37
Picon
Gravatar

Re: Why is solving a partial puzzle much slower than generating one from scratch?


Op 01-02-12 15:27, Geoffrey De Smet schreef:
>
> Op 01-02-12 08:37, aitchnyu schreef:
>> Sorry if I called it by a misleading name (3x3) . It means a regular sudoku
>> like http://www.sudoku-solutions.com/ .
>>
>> And I hacked on NQueens to make it. Only the row is the planning entity.
>> Each digit has a value, row, column and a fixed status. A fixed digit has
>> row, column and value assigned and fixed status set to true (you must not
>> reassign row of this). An unsolved digit has a null row, with column and
>> value assigned and fixed status set to false.
>>
>> I included three cases. It solves a completely blank grid, it doesnt solve a
>> 24-digit problem (it gets stuck at a step, see included log snippet), it
>> solves an easier 8-digit version of same problem in *much longer time*.
>>
>> *Case*: Output of solving a completely blank grid
>> 12:42:33.977 [main] INFO  o.d.p.c.l.DefaultLocalSearchSolverPhase - Phase
>> local search finished: step total (148), time spend (5491), best score (0).
>> 12:42:33.977 [main] INFO  o.d.p.core.solver.DefaultSolver - Solved: time
>> spend (5491), best score (0), average calculate count per second (17598).
>>
>> *Case*: solving problem 1: 24 digits of
>> http://puzzles.about.com/library/sudoku/blprsudokux01.htm
>> 12:51:34.279 [main] DEBUG o.d.p.c.l.DefaultLocalSearchSolverPhase -     Step
>> index (10530), time spend (164914), score (-3),     best score (-3),
>> accepted move size (456) for picked step (Digit:4 (Row 5,Column 2) block
>> code[10]  =>   Row 3)
>>
> I don't see a construction heuristic at work here. Have you tried
> running a construction heuristic before the local search?
> It's not hard, just add 3 lines (use FIRST FIT). Take a look 5.4.0.Beta2
> version of nqueensSolverConfig.xml.
> <constructionHeuristic>
> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType>
> <constructionHeuristicPickEarlyType>FIRST_LAST_STEP_SCORE_EQUAL_OR_IMPROVING</constructionHeuristicPickEarlyType><!--
> for speed -->
> </constructionHeuristic>
> <localSearch>
>         ...
>
> I wouldn't be surprised that a construction heuristic solves the 24 clue
> sudoku immediately,
> without having to resort to local search even.
Correction: If the score function adds a positive soft constraint
when 2 digits are on the same row, column or block and don't clash,
only then I wouldn't be surprised that a construction heuristic solves 
the 24 clue sudoku immediately.
Also, remove the FIRST_LAST_STEP_SCORE_EQUAL_OR_IMPROVING line (as 
that's not good if there are positive constraints).

Sudoku probably isn't really a straightforward, good example for Planner.

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

womuji | 1 Feb 16:06
Picon

Re: Difference between Rule Base and Knowledge Base

We are upgrading Drools Core from 5.1.1 to 5.3.1 and stilling using the old
RuleBase API, but we got Null Pointer Exception when running rules: 
-----------------
Caused by: [Error: wm.startProcess($phase.id): null]
[Near : {... WorkingMemory wm = drools.getW ....}]
...
Caused by: java.lang.NullPointerException
	at
org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1073)
-----------------

where our DRL file has content:
-----------------
rule "Set ruleflow"
    salience 10
    when
        $phase : Phase()
    then
        WorkingMemory wm = drools.getWorkingMemory();
        wm.startProcess($phase.id);
end
-----------------
Do we have to switch to KnlowledgeBase API or sth wrong with our rule? ( it
worked fine with 5.1.1)

--
View this message in context: http://drools.46999.n3.nabble.com/Difference-between-Rule-Base-and-Knowledge-Base-tp1263675p3706866.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Gmane