Execption : java.lang.reflect.InvocationTargetException ( Place Help me in this Issue)

90 views
Skip to first unread message

senthilsen

unread,
Sep 12, 2011, 2:19:30 PM9/12/11
to givwenzen_developer
Hi all,

I download this GivWenZen 1.0.2.zip and configured . I m getting the
error that i mentioned in my subject.

I configured zip connect for the scenario as follows in fitnesse

import
org.givwenzen
bdd.steps

script giv wen zen test

given I turn on the calculator
and I have entered 50 into the calculator
and I have entered 70 into the calculator
when I press add
then the total is 120


-> The stack trace are given below.

scriptTable_2_0
__EXCEPTION__:java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
fitnesse.slim.StatementExecutor.createInstanceOfConstructor(StatementExecutor.java:
155)
at fitnesse.slim.StatementExecutor.create(StatementExecutor.java:103)
at fitnesse.slim.Statement.createInstance(Statement.java:88)
at fitnesse.slim.Statement.execute(Statement.java:68)
at fitnesse.slim.ListExecutor.execute(ListExecutor.java:36)
at fitnesse.slim.SlimServer.executeInstructions(SlimServer.java:93)
at fitnesse.slim.SlimServer.processTheInstructions(SlimServer.java:
78)
at
fitnesse.slim.SlimServer.processOneSetOfInstructions(SlimServer.java:
69)
at fitnesse.slim.SlimServer.tryProcessInstructions(SlimServer.java:
55)
at fitnesse.slim.SlimServer.serve(SlimServer.java:30)
at fitnesse.socketservice.SocketService
$ServerRunner.run(SocketService.java:95)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/google/common/base/
Predicate
at org.givwenzen.annotations.MarkedClassFinder.
(MarkedClassFinder.java:15)
at org.givwenzen.DomainStepFinder.(DomainStepFinder.java:21)
at
org.givwenzen.GivWenZenExecutorCreator.createDomainStepFinder(GivWenZenExecutorCreator.java:
51)
at
org.givwenzen.GivWenZenExecutorCreator.create(GivWenZenExecutorCreator.java:
39)
at org.givwenzen.GivWenZenTest.(GivWenZenTest.java:8)
... 16 more
Caused by: java.lang.ClassNotFoundException:
com.google.common.base.Predicate
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 21 more

Please help me in this new to this and like to work more on that ..now
stuck up in this place so kindly provide solution in this,,,,,,,,

senthilsen

unread,
Sep 12, 2011, 2:21:27 PM9/12/11
to givwenzen_developer

Wes Williams

unread,
Sep 12, 2011, 2:37:06 PM9/12/11
to givwenzen_developer
your problem is with a missing jar, maybe google collections related?
Are you just trying to run the examples are have you setup your own
code to be tested?

regards,
wes

Wes Williams

unread,
Sep 12, 2011, 2:44:02 PM9/12/11
to givwenzen_developer
givwenzen has quava (formerly google collections) v6. Maybe you are
using a later version of this jar? Let me know. In the meant time I
will download the latest and see if that causes me to have the same
issue.

wes

Wes Williams

unread,
Sep 12, 2011, 2:53:56 PM9/12/11
to givwenzen_developer
I just download guava v09 and everything works, maybe you have an older version on the command line, maybe an old version of google-collections. 

try getting the examples to work before making any of your own specs.

1) unzip the gwz download
2) cd to the dir unzipped to
3) run 'java -jar fitnesse.jar' add -p 3000 if port 80 is being used
4) in the browser go to httpL//localhost/
5) click SlimExamples link
6) click the suite button

do all examples pass?

thanks,
wes
--
Regards,
Wes Williams

wes.wi...@gmail.com
twitter: weswilliamz
linked in: http://www.linkedin.com/in/weswilliamz
blog: weswilliamz.blogspot.com

SenthilKumar B

unread,
Sep 12, 2011, 2:49:56 PM9/12/11
to givwenzen...@googlegroups.com
Hi wes,

Feeling good to got reply from you wes. :)

I tried with the code that is in the givwenzen-1.0.2.zip.
i watch the screencast from this link "  http://code.google.com/p/givwenzen/wiki/10MinuteHowToScreencast  " and configured in eclipse . i tried the fixture GivWenZenForSlim.java in givwenzen-1.0.2\src\main\java\org\
--
Thanks & Regards
 
 S E N T H I L
(Start Every day with a New bug To Heal It and soLve it )


SenthilKumar B

unread,
Sep 12, 2011, 2:57:45 PM9/12/11
to givwenzen...@googlegroups.com
 i m using guava-r06.jar in my set up in Eclipse with  the jar in screenshot....
--
Thanks & Regards
 
 S E N T H I L
(Start Every day with a New bug To Heal It and soLve it )

Wes Williams

unread,
Sep 12, 2011, 3:06:15 PM9/12/11
to givwenzen_developer
try running outside of eclipse so we can remove that as a factor.

On Sep 12, 1:57 pm, SenthilKumar B <senthil86....@gmail.com> wrote:
>  i m using guava-r06.jar in my set up in Eclipse with  the jar in
> screenshot....
>

SenthilKumar B

unread,
Sep 12, 2011, 3:19:32 PM9/12/11
to givwenzen...@googlegroups.com
Hi wes i add the updated version jar in eclipse for guava... and getting the same exception ...

I have one doubt i m giving that "!path G:\FitnesseSPACE\GivenWhenThen\bin" in fitnesse so is that it consider as local or it ll consider as a eclipse implimentation ... ? 

Wes Williams

unread,
Sep 12, 2011, 9:10:50 PM9/12/11
to givwenzen_developer
Senthil,

Please run and send me the full java classpath, working directory, and
command you are running. I am fairly confident this is a classpath
issue.

Thanks,
Wes

On Sep 12, 2:19 pm, SenthilKumar B <senthil86....@gmail.com> wrote:
> Hi wes i add the updated version jar in eclipse for guava... and getting the
> same exception ...
>
> I have one doubt i m giving that "!path G:\FitnesseSPACE\GivenWhenThen\bin"
> in fitnesse so is that it consider as local or it ll consider as a eclipse
> implimentation ... ?
>
Reply all
Reply to author
Forward
0 new messages