GenericCommand-not found

78 views
Skip to first unread message

Xy Z

unread,
Oct 16, 2022, 9:53:33 AM10/16/22
to Drools Usage
Hi,
As part of security upgrade I have to upgrade drools-core from 6.1.0.CR1 to 7.73.0.Final...what are the dependent jars that needs to be upgraded along with this?I have upgraded the jars according to Maven compile dependencies but am facing error while building my project-the error being cannot access org.drools.core.command.impl.GenericCommand...class file for the same not found.Could someone please help on this 

Thanks

Matteo Mortari

unread,
Oct 17, 2022, 2:50:51 AM10/17/22
to drools...@googlegroups.com
Hi Xy Z,

you can reference the following guides for some references about migration 6 -> 7:

However, not much can be said on a generic description; if the above references do not help you solve your issue, you should consider creating a reproducer and sharing it so we can take a further look (you should remove business logic and all proprietary logic, just to keep the compile issue you mentioned).

Hope this helps,
MM

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/cb418e93-8db5-4920-b63b-50e677ec7a90n%40googlegroups.com.


--

Xy Z

unread,
Oct 17, 2022, 3:17:18 AM10/17/22
to drools...@googlegroups.com
Hi Matteo,

Thanks for the update.I will look into it

Regards,
Xy Z

Xy Z

unread,
Oct 18, 2022, 8:20:13 AM10/18/22
to drools...@googlegroups.com
Hi,

I used decompiler to see if that class is present in drools-core 7.73.0.Final.jar and it seems it no longer has GenericCommand.class...so can you help me on which jar has that class?

Thanks,
Xy Z

Abdoulaye Youssoufa NDIAYE

unread,
Oct 18, 2022, 8:54:04 AM10/18/22
to drools...@googlegroups.com
Hi i need to become an expert on drools and what solution can i resolve with it and some references. 

Best regards.

Matteo Mortari

unread,
Oct 18, 2022, 11:25:11 AM10/18/22
to drools...@googlegroups.com
Hi Xy Z,

likely the class has been refactored or no longer existing in 7.x drools core or 8.x org.drools:drools-commands

As mentioned, not much can be said on such a generic description; you should consider creating a reproducer and sharing it so we can take a further look (you should remove business logic and all proprietary logic, just to keep the compile issue you mentioned).

Hope this helps,
MM

Matteo Mortari

unread,
Oct 18, 2022, 11:30:18 AM10/18/22
to drools...@googlegroups.com
Hi Abdoulaye,

Please keep the mailing-list thread separate.

A good place to get started are the drools website for the various link in the documentations, and the KIE Community channel on youtube

Abdoulaye Youssoufa NDIAYE

unread,
Oct 18, 2022, 6:28:26 PM10/18/22
to drools...@googlegroups.com

Xy Z

unread,
Oct 20, 2022, 10:01:24 PM10/20/22
to drools...@googlegroups.com
Hi,

Thanks for your update

As you said that class is no longer available from 7.x version so I have upgraded it to 6.5.0.Final version but according to Maven respository it is vulnerable version but in synk website it's not listed as vulnerable.So am not sure if it's possible to use this.Is there any way to know if that class has been refactored so that I can use that refactored class .I am not sure if I will be able to reproduce the code and share as I can't use personal mail inside vdi

Thanks,
Xy Z

Xy Z

unread,
Oct 25, 2022, 11:49:20 PM10/25/22
to drools...@googlegroups.com
Hi,

I have resolved the GenericCommand issue by using it's refactored class ExecutableCommand of the new version.
But I got some more errors in other Java files like,

WorkFlowServiceManager.java:[387,76] cannot find symbol
[ERROR] symbol:   method addKnowledgePackages(java.util.Collection<org.kie.internal.definition.KnowledgePackage>)
[ERROR] location: class org.drools.core.impl.KnowledgeBaseImpl
[ERROR] UserGroupCallbackImpl.java:[51,8] com.abc.UserGroupCallbackImpl is not abstract and does not override abstract method getGroupsForUser(java.lang.String) in org.kie.api.task.UserGroupCallback
[ERROR] JBPMHelper.java:[188,41] cannot find symbol
[ERROR] symbol:   method setProcessMarshallerFactoryService(org.jbpm.marshalling.impl.ProcessMarshallerFactoryServiceImpl)
[ERROR] location: class org.drools.core.marshalling.impl.ProcessMarshallerFactory
[ERROR] JBPMHelper.java:[272,88] incompatible types: possible lossy conversion from long to int
[ERROR] JBPMHelper.java:[389,86] incompatible types: java.lang.Long cannot be converted to int
[ERROR] JBPMHelper.java:[824,41] cannot find symbol
[ERROR] symbol:   method setProcessMarshallerFactoryService(org.jbpm.marshalling.impl.ProcessMarshallerFactoryServiceImpl)
[ERROR] location: class org.drools.core.marshalling.impl.ProcessMarshallerFactory

For the class org.drools.core.impl.KnowledgeBaseImpl,I compared the old class and the upgraded version class where in the upgraded class Java file it has one statement "INTERNAL ERROR" whereas the old class has many methods...Is there any way to solve this?

Regards,

Xy Z





Reply all
Reply to author
Forward
0 new messages