javax.jcr.ReferentialIntegrityException Error while Saving the Rule in Guvnor 5.1.1
by LaKhI ReDdY!!!!!!!!!!!
Hi ,
I am getting the following error while saving the Rule in Guvnor 5.1.1.
Could you please provide suggestions/inputs to resolve the below issue ? I
am using Oracle DB.
ERROR 18-08 12:31:22,129 (VersionableItem.java:checkout:637) Error
occured while checking out the asset
javax.jcr.ReferentialIntegrityException: Target node
298106d4-8786-46ba-b3a3-e9f42d93ac81 of REFERENCE property does not exist
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.checkReferentialIntegrity(SharedItemStateManager.java:1056)
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:574)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1110)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1140)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
at
org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
at
org.apache.jackrabbit.core.version.VersionManagerImplBase$WriteOperation.save(VersionManagerImplBase.java:463)
at
org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerImplBase.java:209)
Regards,
Reddy
10 years, 3 months
Drools bpmn gateway constraints questions
by mattmadhavan
Hello,
I am trying create a few constraints (XOR). I have a .DRL file with 3
agenda-group. I am also using a custom evaluator and few global static
functions.
Mine is a Stateless Session with bunch of records (Caner records)
1. How do I refer to the current fact?
- Can I do something like this?
*$cancerRecord : CancerRecord ()*
2. How do I invoke external functions?
Can I do something like
*inlist* ($cancerRecord.PRIMARY_SITE, "C500, C501, C502, C503, C504, C505,
C506, C508, C509")
*containsAny* (kcontext, $cancerRecord,
"505101,505102,505103,505104,505105,505106,505107,505108")
*not inlist *($cancerRecord.PRIMARY_SITE, "C500, C501, C502, C503, C504,
C505, C506, C508, C509")
*not containsAny *(kcontext, $cancerRecord,
"505101,505102,505103,505104,505105,505106,505107,505108")
*Please note that inlist and containsAny are valid functions that work. But
I am not able to import tham within the constrains.*
I not able to locate any documentation in this. Can some one point me to the
right documentation. I have been stuck on this for couple of days.
Any help is appreciated.
Thanks in advance!
Matt'm
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-bpmn-gateway-constraints-questio...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
Re: [rules-users] DROOLS 5.6.0 Final Decision Table PermGen space OutOfMemoryError
by Jan Rose
Mark, thanks for responding. Do you have a recommendation as to how much I should
increase the perm gen space?
Also, is there anything else I can do to run my decision tables more efficiently?
Jan
try increasing your perm gen space.
Mark On 16 Aug 2014, at 04:11, Jan Rose <ufos at comcast.net> wrote: >
Would like some advice regarding using Decision Tables in DROOLS 5.6.0 Final.
We have decision tables with over 12,000 rows.
It is a basic ‘look-up’ table with 3 conditions and 2 actions.
The conditions are, for example: Company = X Dept = X Class = X then value = X and log X.
When I reduced the number of rows to approx. 500 . .. it works. > I have set the max memory in the JVM to 2 gigs.
We have tried compiling the decision tables using the spreadsheet compiler as well as the decision table compiler. >
Below is the error when using the decision table compiler.
However, we get the same PermGen space error with the spreadsheet compiler. > >
Obviously, we need to be able to have more than 500 rows in our decision table(s). Any advice would be appreciated. > >
Aug 14, 2014 6:33:09 PM com.macys.test.rules.engine.AttribDecisionTbl main > INFO: found file:c:\attribute-data.xls > Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRules > INFO: Loading file: log-rules.drl > Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRuleFile > INFO: found rule file:log-rules.drl > Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadRules > INFO: Loading file: AttributeRules-MDSLife-V1.xls > Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadExcelRules > INFO: found file:AttributeRules-MDSLife-V1.xls > Exception in thread "main" java.lang.OutOfMemoryError: PermGen space > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:800) > at org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:624) > at org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:254) > at org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:237) > at org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:434) > at org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:429) > at org.drools.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:257) > at org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:139) > at org.drools.compiler.PackageBuilder.reloadAll(PackageBuilder.java:1202) > at org.drools.compiler.PackageBuilder.compileAllRules(PackageBuilder.java:951) > at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:938) > at org.drools.compiler.PackageBuilder.addPackageFromDecisionTable(PackageBuilder.java:451) > at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:715) > at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51) > at com.macys.test.test_drools.RuleRunner.loadExcelRules(RuleRunner.java:161) > at com.macys.test.test_drools.RuleRunner.loadRules(RuleRunner.java:53) > at com.macys.test.test_drools.RuleRunner.runStatelessRules(RuleRunner.java:217) > at com.macys.test.rules.engine.AttribDecisionTbl.main(AttribDecisionTbl.java:99) > > > _______________________________________________ > rules-users mailing list > rules-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140816/e86011b...
Sent from my iPad
10 years, 3 months
Kie-Spring Issue, not able to created Session as "prototype"
by mattmadhavan
Hello,
I have the following kie-spring xml definition to test my custom evaluater.
Please note the * type="stateless" scope="prototype"* in the xml
configuration. Everytime this session is looked up, I want a new instance of
the StatelessKieSession.
I am getting the same instance for both the look ups! Looks like the session
bean is created as a Singleton even though I specified prototype scope.
I really need to create prototype version of my StetelessKieSession on
demand ( I am using Camel routes) as I increase the number of JMS clients to
process the load. This is a critical feature I really require.
Any ideas please? Seems to that kie-spring is not really mature enough!
Thanks in advance!
Matt'M
--
View this message in context: http://drools.46999.n3.nabble.com/Kie-Spring-Issue-not-able-to-created-Se...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
DROOLS 5.6.0 Final Decision Table PermGen space OutOfMemoryError
by Jan Rose
Would like some advice regarding using Decision Tables in DROOLS 5.6.0
Final. We have decision tables with over 12,000 rows. It is a basic
'look-up' table with 3 conditions and 2 actions. The conditions are, for
example: Company = X Dept = X Class = X then value = X and log X. When
I reduced the number of rows to approx. 500 . .. it works.
I have set the max memory in the JVM to 2 gigs. We have tried compiling
the decision tables using the spreadsheet compiler as well as the decision
table compiler.
Below is the error when using the decision table compiler. However, we get
the same PermGen space error with the spreadsheet compiler.
Obviously, we need to be able to have more than 500 rows in our decision
table(s). Any advice would be appreciated.
Aug 14, 2014 6:33:09 PM com.macys.test.rules.engine.AttribDecisionTbl main
INFO: found <file:///c:\attribute-data.xls> file:c:\attribute-data.xls
Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRules
INFO: Loading file: log-rules.drl
Aug 14, 2014 6:33:10 PM com.macys.test.test_drools.RuleRunner loadRuleFile
INFO: found rule <file:///\\log-rules.drl> file:log-rules.drl
Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadRules
INFO: Loading file: AttributeRules-MDSLife-V1.xls
Aug 14, 2014 6:33:11 PM com.macys.test.test_drools.RuleRunner loadExcelRules
INFO: found <file:///\\AttributeRules-MDSLife-V1.xls>
file:AttributeRules-MDSLife-V1.xls
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at
org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(Java
DialectRuntimeData.java:624)
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader
.java:254)
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader
.java:237)
at
org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at
org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:434)
at
org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:429)
at
org.drools.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeDat
a.java:257)
at
org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistr
y.java:139)
at
org.drools.compiler.PackageBuilder.reloadAll(PackageBuilder.java:1202)
at
org.drools.compiler.PackageBuilder.compileAllRules(PackageBuilder.java:951)
at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:938)
at
org.drools.compiler.PackageBuilder.addPackageFromDecisionTable(PackageBuilde
r.java:451)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:
715)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:5
1)
at
com.macys.test.test_drools.RuleRunner.loadExcelRules(RuleRunner.java:161)
at
com.macys.test.test_drools.RuleRunner.loadRules(RuleRunner.java:53)
at
com.macys.test.test_drools.RuleRunner.runStatelessRules(RuleRunner.java:217)
at
com.macys.test.rules.engine.AttribDecisionTbl.main(AttribDecisionTbl.java:99
)
10 years, 3 months
Drools 6.0.1: Pushing changes back to Workbench GIT using SSH
by dotrc
I am using workbench for managing my rules maven projects within the embedded
GIT repository. I am aware that using git:// protocol, I can clone an
existing rule repository; I can do this successfully.
For authoring rules, I want to use Eclipse (using EGit). I want to push my
commits back to the GIT repo. I understand that I'll have to use ssh
protocol instead of git for specifying the repo, something like this:
ssh://{userName}@localhost:8001/{repoName}
When we use a standard GIT repo like stash, it gives us an option to set our
public key on the stash server, but I'm not able to find a way to do that
with the embedded ssh server within workbench. Hence, I'm not able to
authenticate myself and perform a push.
We tried creating a private-public key pair using ssh-keygen and put that
within c:\users\<username>\.ssh and added the public key to
'authorized_keys(2) (though I know this may not be the right place) and then
used the private key as the identity file with ssh client directly from
cygwin, again to no avail.
Any pointers will be really appreciated.
Also, should the username be 'admin' or any other specific one for pushing?
Will the existing Windows username work?
Thanks,
Rishi
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-Pushing-changes-back-to-Wo...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
Starnge problem with AbstractKieModule while testing, ignores "classes" folfer
by mattmadhavan
Hello,
While unit testing some of my DRL files I notice that, *AbstractKieModule *
does not look at main classpath. It only checks for the target\test-classes
and not target\classes folder at all!
I see the following warning on the coonsole!
*2014-08-12 14:15:25,426 [AbstractKieModule] [main] WARN No files found for
KieBase BREAST_MASTRT_KBase, searching folder
\working\MeasureMesh\org.facs.ncdb.measuresmesh\target\test-classes
*
/My configuration is:/
My .drl files arr in the package "org.xxxx.xxxxx.rules.breast.MASTRT of the
traget/classes folder, but its not loaded!
Any ideas please?
Thanks
Matt'M
--
View this message in context: http://drools.46999.n3.nabble.com/Starnge-problem-with-AbstractKieModule-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
javax.jcr.ReferentialIntegrityException Error while Savign the Rule in Guvnor 5.1.1
by LaKhI ReDdY!!!!!!!!!!!
Hi All,
I am getting the following error while saving the Rule in Guvnor 5.1.1.
Could you please provide suggestions/inputs to resolve the below issue ? I
am using Oracle DB.
ERROR 11-08 12:31:22,129 (VersionableItem.java:checkout:637) Error
occured while checking out the asset
javax.jcr.ReferentialIntegrityException: Target node
298106d4-8786-46ba-b3a3-e9f42d93ac81 of REFERENCE property does not exist
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.checkReferentialIntegrity(SharedItemStateManager.java:1056)
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:574)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1110)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1140)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
at
org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
at
org.apache.jackrabbit.core.version.VersionManagerImplBase$WriteOperation.save(VersionManagerImplBase.java:463)
at
org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerImplBase.java:209)
Regards,
Lakshmi reddy
10 years, 3 months