java.lang.ClassCastException: [Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package
by Ganesh Neelekani
Hi,
I am strugling with "java.lang.ClassCastException:
[Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package " from
many days,
can you please help me to resolve this exception ,
As it is causing run time and if i again restarted and issue is not found
for same request...
I am using drools-guvnor.war(jboss version) of 5.4 version
--
Thanking you.
----------------------------------------------------------------------
With regards.
Ganesh N Neelekani
ph - +91 7829108302
12 years, 7 months
ClassCastException when changing drools version 5.3.5.Final to 6.0.0.Beta3
by Andreas
Hi,
when I change the version of drools from 5.3.5.Final to 6.0.0.Beta3 (maven
pom)
I'm getting following exception:
org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.compiler.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.compiler.rule.builder.dialect.mvel.MVELDialectConfiguration'
at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:283)
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:268)
at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:181)
at
org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:159)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:210)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:143)
at
org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
at
org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:47)
at
net.javabeansdotasia.casestudy.test.Tester.prepareKnowledgeBase(Tester.java:136)
at net.javabeansdotasia.casestudy.test.Tester.setUp(Tester.java:71)
at net.javabeansdotasia.casestudy.test.Tester.main(Tester.java:160)
Caused by: java.lang.ClassCastException:
org.drools.compiler.rule.builder.dialect.mvel.MVELDialectConfiguration
cannot be cast to org.drools.compiler.DialectConfiguration
at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:278)
... 10 more
would be nice if someone could help me,
if the source code is needed let me know
Andreas
--
View this message in context: http://drools.46999.n3.nabble.com/ClassCastException-when-changing-drools...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 7 months
Guvnor 5.3 on WebSphere 8.5: detailed question
by drdaveg
I've been trying to run Guvnor on WebSphere at an IBM shop. I'm using Guvnor
5.3GA for help under our support contract with RedHat. In previous posts,
people have recommended to get Guvnor to work, nearly unmodified, under
WebSphere by disabling servlets, getting particular versions of the software
to run on specific versions of WebSphere by coincidence, etc. These
approaches have not gotten very much Guvnor functionality running so I am
trying:
1. To remove the Seam-specific calls from Guvnor and
2. Inject objects using appropriate WebSphere-based libraries.
In doing (1) I've removed the Seam-specific annotations but don't see any
references to "remote.js" in the source code. Am I missing references that
are there by searching incorrectly, am not including the correct files - or
are these automatically generated by the GWT-based dynamic code generation?
Also, any thoughts on improving my approach would be welcome!
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-3-on-WebSphere-8-5-detailed-qu...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
Spam
by rjr201
Sorry to keep going on about this.. I realise that the nabble interface is
only a mirror of the mailing list, but currently it's completely swamped by
spam. I'm sure a lot of people using drools for the first time come to this
forum for help/guidance, and it's not very inspiring when there is roughly 1
real post to every 8 spam posts.
I'm guessing it's not an easy task just to filter it out, but is there a way
that I can manually delete it? I check this forums most mornings, and it
would take me very little time to remove it..
--
View this message in context: http://drools.46999.n3.nabble.com/Spam-tp4024841.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
[jBPM] Can guvnor maintain multiple versions of a BPMN definition with same id?
by Michiel Vermandel
Hi,
In jBPM4.4 you can deploy a jPDL with the same name multiple times. The
different versions automatically get a different version number and
processInstances will keep using the version that was current when the
processInstance started.
You do not need to select specified Process Definitions upon engine startup. All is retrieved from the database as needed.
In jBPM5.4 things seem to be different. If I am correct the Knowledge base needs to be filled at startup with all Process Definitions which are
needed by any running process.
If I need multiple versions of the
same Process Definition in the kBase to complete process instances
started with a different version, it seems I cannot use the same id for
the different "versions" of the "same" process definition.
Adding two process definitions with the same id but a different version number does not seem to work.
1) Am I right so far?
If (1) == yes then
2) what it the use of the version number?
3) will everything work if I change the ProcessDefinitions with as id the
original processDefinition id concattenated with the version number?
4) does Guvnor support automatic version management?: create BPMN with id
a.b.c , start processInstance for this BPMN, change BPMN (keep id, but
increment version), start second processInstance. ProcessInstance 1 will keep using version 1 of BPMN, ProcessInstance 2 will use the updated
version of the BPMN
If (4) == no then how does Guvnor handle changes to BPMN definitions?
Are you supposed to upgrade all running versions of a Process Definition?
Thanks a lot!
Michiel
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
12 years, 8 months
setting enum values in Action Column in excel sheet for Drools decision Table
by ashish6276
Hi
I have created an excel sheet for drool decision table. i created a object
class for the excel properties which has class level hireachy. City is
inside Country and country is inside region. we are facing issue
in Action part of the excel. as i am setting object as hierarchy based but
we are not able to get the
enum value which is defined inside the inner object. like
contentProviders= new ContentProviders();
response.setContentprovider(contentProviders);
providers= new Providers();
contentProviders.getContentProviderList().add(providers);
providers.setContentProvider($param);
where
providers.setContentProvider($param);
is enum value it is throwing an error in drl as it is not able to recognize
the enum value
i am getting below error while running java program
com/schedulesearch/rules/Rule_BR_01_a6040cb1e88e4e90bd83ad4092334994.java
(8:750) : Test cannot be resolved.
Test is enum value.
This code i am writing in the Action Part of xls.
Please suggest Thanks in Advance
--
View this message in context: http://drools.46999.n3.nabble.com/setting-enum-values-in-Action-Column-in...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months