Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

java.lang.NoSuchMethodError

Hi there,

This is now driving me mad. Some times it appears, then sometimes it doesn't, when nothing has changed in and code or config.

Caused by: java.lang.NoSuchMethodError: org.antlr.runtime.Lexer.<init>(Lorg/antlr/runtime/CharStream;Lorg/antlr/runtime/RecognizerSharedState;)V

What am I doing wrong in general with the way I have GigaSpaces setup for external libaries?

PS I'm using Drools with GigaSpaces.

Thanks in advance

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3695]{quote}

asked 2011-06-23 13:34:57 -0600

robertral gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

Paul,

A good practice would be to place all the 3rd party libraries (drools jars for example) into the \gigaspaces-xap-premium\lib\platform\ext folder and make sure these does not include libraries already loaded by GigaSpaces (spring , xercesImpl , jetty , etc).
If you have large amount of jars increase the GSC JVM perm gem:

export GSC_JAVA_OPTIONS=-XX:PermSize=512m -XX:MaxPermSize=512m

Shay

answered 2011-06-23 13:42:03 -0600

shay hassidim gravatar image
edit flag offensive delete link more
0

Apologies; only just noticed that I hadn't replied to this. Thanks for your help

answered 2013-01-03 04:55:33 -0600

robertral gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-06-23 13:34:57 -0600

Seen: 576 times

Last updated: Jan 03 '13