Skip to main content

alphaWorks  >  Forums  >  ConcurrentTesting - Advanced Testing for Multi-Threaded Applications  >  developerWorks

Due to WAS 6.1,there is an exception thrown while instrumenting    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 3 - Pages: 1 - Last Post: Aug 26, 2009 4:54 AM Last Post By: Suignard_Steria Threads: [ Previous | Next ]
Suignard_Steria

Posts: 2
Registered: Aug 10, 2009 09:59:58 AM
Due to WAS 6.1,there is an exception thrown while instrumenting
Posted: Aug 10, 2009 10:08:49 AM
Click to report abuse...   Click to reply to this thread Reply
I use eclipse.
Without "Websphere Application Server v6.1" library in "titi" project, "ParalInc" test is OK.
With "Websphere Application Server v6.1" library in "titi" project, "ParalInc" test is KO.
Is a "Websphere Application Server v6.1" library bug or a Contest bug ?

Stack is :


>>> ConTest: Instrumenting classes beginning with: titi/ParalInc
>>> ConTest: instrumenting all locations in specified classes
>>> ConTest: Not writing method coverage tasks
>>> ConTest: Not writing basic blocks coverage tasks
>>> ConTest: Not writing synchornization coverage tasks
>>> ConTest: done initializing
!!! error thrown while instrumenting titi/ParalInc
java.lang.NoSuchMethodError: com/ibm/toad/cfparse/instruction/MutableCodeSegment.getLineNumber(I)I
at com.ibm.contest.instrumentation.MethodInstrumentor$MethodWrapOptions.<init>(MethodInstrumentor.java:137)
at com.ibm.contest.instrumentation.MethodInstrumentor.createInstrumentedInstructionVector(MethodInstrumentor.java:351)
at com.ibm.contest.instrumentation.MethodInstrumentor.instrument(MethodInstrumentor.java:306)
at com.ibm.contest.instrumentation.OneClassInstrumentor.instrument(OneClassInstrumentor.java:108)
at com.ibm.contest.instrumentation.ClassStreamInstrumentor.instrumentInto(ClassStreamInstrumentor.java:134)
at com.ibm.contest.instrumentation.classload_inst.Premain$1.transform(Premain.java:66)
at sun.instrument.TransformerManager.transform(TransformerManager.java:141)


Thanks,
Yarden

Posts: 38
Registered: Sep 20, 2005 06:05:47 AM
Re: Due to WAS 6.1,there is an exception thrown while instrumenting
Posted: Aug 18, 2009 06:00:25 AM   in response to: Suignard_Steria in response to: Suignard_Steria's post
Click to report abuse...   Click to reply to this thread Reply
Mikael,

Can you send me (in email) the WAS 6.1 library, or let me know where I can download it from?

Best regards,
Yarden Nir-Buchbinder
ConTest devlopment
IBM Haifa Research Lab
Tel. 972-4-8296010
Yarden

Posts: 38
Registered: Sep 20, 2005 06:05:47 AM
Re: Due to WAS 6.1,there is an exception thrown while instrumenting
Posted: Aug 18, 2009 08:03:47 AM   in response to: Suignard_Steria in response to: Suignard_Steria's post
Click to report abuse...   Click to reply to this thread Reply
Mikael,

Please ignore my previous comment - I think I know what the problem is. ConTest uses, as instrumentation infrastructure, the "cfparse" tool. The classes of cfparse are inside ConTest.jar. Probably the WAS library also contains cfparse, but an older version, which misses this method. And probably the JVM takes the WAS version of cfparse instead of the ConTest version.

Unfortunately, it's less obvious to me how to solve this. If you added WAS to the build dependencies of the project, and you can instead add them to the run classpath, maybe it will do. If you can make a version of the WAS library without cfparse (com/ibm/toad/cfparse/*), it should work. If both ways don't work or can't be applied, please write to me in email, and we'll try to work it out together.

Best regards,
Yarden Nir-Buchbinder
yarden@il.ibm.com
ConTest development
IBM Haifa Research Lab
Tel. 972-4-8296010
Suignard_Steria

Posts: 2
Registered: Aug 10, 2009 09:59:58 AM
Re: Due to WAS 6.1,there is an exception thrown while instrumenting
Posted: Aug 26, 2009 04:54:36 AM   in response to: Yarden in response to: Yarden's post
Click to report abuse...   Click to reply to this thread Reply
Yes, The WAS library contains cfparse. (in com.ibm.ws.runtime_6.1.0.jar, there is com.ibm.toad.cfparse package)
WAS library is added to the build dependencies of the project.

Unfortunately, to test my application, I used another way. ("burst" strategy in a load test with SOAP UI)
I would like to test your solutions but I can not do this work as soon as possible.
I don't know when but I think I will do.

Thank you.

Point your RSS reader here for a feed of the latest messages in all forums