[rules-users] java.lang.NoSuchFieldError: COMPILER_OPT_ALLOW_RESOLVE_INNERCLASSES_WITH_DOTNOTATION

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 23 07:10:12 EDT 2012


See below.

On 23/08/2012, Suvek <suvek.shah at gmail.com> wrote:
> Hi,
>
> I have two projects 'validation' and 'service'. When I execute the rules
> from unit tests under 'validation' project everything works fine. When the
> same validations are invoked from 'service' project (service has mvn
> dependency on validation project) I get the following error on the line
> ResourceFactory.newClassPathResource(resourcePath, ResourceType.DRL );
>
> java.lang.NoSuchFieldError:
> COMPILER_OPT_ALLOW_RESOLVE_INNERCLASSES_WITH_DOTNOTATION
>
> I looked up for the related issues but everyone says it is version
> mismatch,

You won't hear anything else.

> in my case its the same jars that are used in both the cases.

Which jars? The ones resulting from your application? All of the Drools runtime?

Check the path on both projects, check the Drools jars...

See the explanation of  java.lang.NoSuchFieldError.

-W

>
> what could be the reason?
>
> thanks
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/java-lang-NoSuchFieldError-COMPILER-OPT-ALLOW-RESOLVE-INNERCLASSES-WITH-DOTNOTATION-tp4019355.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list