Re: [rules-users] StackOverflow when serializing KieBase

2014-08-01 Thread Federico Bertola
I'll try to investigating a bit (or at least I'll try to make something 
reproducible). Meanwhile, this is the stack trace. It seems to me that 
is not the case as https://issues.jboss.org/browse/JBRULES-2335.

Any help is appreciated.

Federico.


On 07/31/2014 01:25 AM, Mark Proctor wrote:

It should work, there should not be too much recursion. I’d suggest digging 
deeper to see if you can point us to the references that are suspect.

Mark
On 30 Jul 2014, at 17:28, Federico Bertola federico.bertol...@gmail.com wrote:


Hi all,
when I try to serialize a rather large KieBase I constantly get the
aforementioned error. After a bit of tracking I see that the error seems
to appear when the KnowledgeBase try to serialize the Rete object.
I belive this is not an infinite loop because it seems that the graph is
quite deep and the serializer recursively calls writeExternal in a (sort
of) depth-first fashion.

Increasing the stack size didn't really help, so I'm asking if there's a
better way or if I should give up.

Thanks :)

Federico.
___
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


java.lang.StackOverflowError
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at org.drools.core.common.BaseNode.writeExternal(BaseNode.java:78)
at 
org.drools.core.reteoo.LeftTupleSource.writeExternal(LeftTupleSource.java:107)
at 
org.drools.core.reteoo.LeftInputAdapterNode.writeExternal(LeftInputAdapterNode.java:143)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at 
org.drools.core.reteoo.ObjectSinkNodeList.writeExternal(ObjectSinkNodeList.java:88)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at 
org.drools.core.reteoo.CompositeObjectSinkAdapter.writeExternal(CompositeObjectSinkAdapter.java:88)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at 
org.drools.core.reteoo.ObjectSource.writeExternal(ObjectSource.java:119)
at org.drools.core.reteoo.AlphaNode.writeExternal(AlphaNode.java:106)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at org.drools.core.reteoo.BetaNode.writeExternal(BetaNode.java:245)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at 
org.drools.core.reteoo.SingleLeftTupleSinkAdapter.writeExternal(SingleLeftTupleSinkAdapter.java:192)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at 
org.drools.core.reteoo.LeftTupleSource.writeExternal(LeftTupleSource.java:108)
at org.drools.core.reteoo.BetaNode.writeExternal(BetaNode.java:254)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at 
org.drools.core.reteoo.ObjectSinkNodeList.writeExternal(ObjectSinkNodeList.java:87)
at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1458)

Re: [rules-users] StackOverflow when serializing KieBase

2014-08-01 Thread Mark Proctor
We will not be able to help you, without a unit test that demonstrates your 
problem.

Mark
On 1 Aug 2014, at 15:38, Federico Bertola federico.bertol...@gmail.com wrote:

 I'll try to investigating a bit (or at least I'll try to make something 
 reproducible). Meanwhile, this is the stack trace. It seems to me that is not 
 the case as https://issues.jboss.org/browse/JBRULES-2335.
 Any help is appreciated.
 
 Federico.
 
 
 On 07/31/2014 01:25 AM, Mark Proctor wrote:
 It should work, there should not be too much recursion. I’d suggest digging 
 deeper to see if you can point us to the references that are suspect.
 
 Mark
 On 30 Jul 2014, at 17:28, Federico Bertola federico.bertol...@gmail.com 
 wrote:
 
 Hi all,
 when I try to serialize a rather large KieBase I constantly get the
 aforementioned error. After a bit of tracking I see that the error seems
 to appear when the KnowledgeBase try to serialize the Rete object.
 I belive this is not an infinite loop because it seems that the graph is
 quite deep and the serializer recursively calls writeExternal in a (sort
 of) depth-first fashion.
 
 Increasing the stack size didn't really help, so I'm asking if there's a
 better way or if I should give up.
 
 Thanks :)
 
 Federico.
 ___
 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
 
 stacktrace.txt___
 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] Api changes from drools 5.0.1 to 6.0.1??

2014-08-01 Thread techy_bolek
We are upgrading our application from drools 5.0.1 to drools 6.0.1 Final. I
noticed there are significant API changes. Many classes that used to be in
org.drools appear to be now in org.drools.core. Also, some classes appear to
be gone: DebugRuleFlowEventListener, RuleAgent.


My question is: is there a documentation somewhere explaining the API
differences between the two versions? 

If there is no such documentation - can anyone advise what to do about
DebugRuleFlowEventListener and RuleAgent?
Thanks, Thomas




--
View this message in context: 
http://drools.46999.n3.nabble.com/Api-changes-from-drools-5-0-1-to-6-0-1-tp4030553.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] BuildDeploy - Drools Document

2014-08-01 Thread Ricardo
15.7.4.1. Build  Deploy

Build  Depoy builds the current project and deploys the KJAR into the
workbench internal Maven repository.



the above statement from the drools document says deploys into internal
document but you can deploy to remote maven repo modifying pom.xml. The
above statement restriction the extended functionality of Build and Deploy. 



-
with kind regards,

--
View this message in context: 
http://drools.46999.n3.nabble.com/Build-Deploy-Drools-Document-tp4030554.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] BuildDeploy - Drools Document

2014-08-01 Thread Michael Anstis
Please submit a pull request for an update to the documentation and we will
happily accept it.

Sent on the move
On 1 Aug 2014 23:20, Ricardo sprabak...@gmail.com wrote:

 15.7.4.1. Build  Deploy

 Build  Depoy builds the current project and deploys the KJAR into the
 workbench internal Maven repository.



 the above statement from the drools document says deploys into internal
 document but you can deploy to remote maven repo modifying pom.xml. The
 above statement restriction the extended functionality of Build and Deploy.



 -
 with kind regards,

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Build-Deploy-Drools-Document-tp4030554.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] BuildDeploy - Drools Document

2014-08-01 Thread Mark Proctor
http://docs.jboss.org/drools/release/5.6.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html
https://github.com/droolsjbpm/droolsjbpm-knowledge/tree/master/kie-docs/

On 1 Aug 2014, at 23:26, Michael Anstis michael.ans...@gmail.com wrote:

 Please submit a pull request for an update to the documentation and we will 
 happily accept it.
 
 Sent on the move
 
 On 1 Aug 2014 23:20, Ricardo sprabak...@gmail.com wrote:
 15.7.4.1. Build  Deploy
 
 Build  Depoy builds the current project and deploys the KJAR into the
 workbench internal Maven repository.
 
 
 
 the above statement from the drools document says deploys into internal
 document but you can deploy to remote maven repo modifying pom.xml. The
 above statement restriction the extended functionality of Build and Deploy.
 
 
 
 -
 with kind regards,
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Build-Deploy-Drools-Document-tp4030554.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