[rules-users] Exception in thread "main" java.lang.ClassCastException: org.drools.io.impl.FileSystemResource cannot be cast to org.drools.io.InternalResource

Mark Proctor mproctor at codehaus.org
Thu Sep 19 20:58:27 EDT 2013


This can happen, if you mix and match wrong versions of jars on your class path.

Mark
On 18 Sep 2013, at 18:10, Davide Sottara <dsotty at gmail.com> wrote:

> Seems strange, since FileSystemResource implements InternalResource. 
> Which version are you using?
> Davide
> 
> On 09/18/2013 07:25 AM, poonam.ligade at wipro.com wrote:
>> Hi,
>> 
>> I am getting below error:
>> 
>> Exception in thread "main" java.lang.ClassCastException: org.drools.io.impl.FileSystemResource cannot be cast to org.drools.io.InternalResource
>>     at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:487)
>>     at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
>>     at SimpleRule.createKnowledgeBase(SimpleRule.java:87)
>>     at SimpleRule.main(SimpleRule.java:32)
>> 
>> Can you please help.
>> Its urgent.
>> 
>> Thanks,
>> Poonam.
>> Please do not print this email unless it is absolutely necessary.
>> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>> www.wipro.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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130920/b555b383/attachment.html 


More information about the rules-users mailing list