Error

40 views
Skip to first unread message

mens jamie

unread,
Oct 5, 2009, 7:46:40 AM10/5/09
to jEmbedded Discussion Group
Hi:
When I run jms test sample with
"ActiveMQServiceClientAnnotationIntegrationTest" class within service-
exmaples,it is failed to compile,the error is below:
==========================================================
java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy
at sun.reflect.annotation.AnnotationParser.parseClassArray
(AnnotationParser.java:634)
at sun.reflect.annotation.AnnotationParser.parseArray
(AnnotationParser.java:441)
at sun.reflect.annotation.AnnotationParser.parseMemberValue
(AnnotationParser.java:270)
at sun.reflect.annotation.AnnotationParser.parseAnnotation
(AnnotationParser.java:206)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2
(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnotations
(AnnotationParser.java:52)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:2998)
at java.lang.Class.getAnnotation(Class.java:2958)
at org.junit.internal.requests.ClassRequest.getRunnerClass
(ClassRequest.java:45)
at org.junit.internal.requests.ClassRequest.getRunner
(ClassRequest.java:28)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>
(JUnit4TestReference.java:28)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>
(JUnit4TestClassReference.java:24)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest
(JUnit4TestLoader.java:40)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests
(JUnit4TestLoader.java:30)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)


Jamie

adolfo

unread,
Oct 5, 2009, 8:27:42 AM10/5/09
to jEmbedded Discussion Group
Hi jamie,

I need more information in order to solve this... from which
environment are tryining to run this test? from eclipse maybe? I've
just tried to execute:

mvn -o clean install in the services-examples directory and it worked
fine.


I suppose you executed mvn clean install from the jembedded directory
right? you need to install the newer versions of the services and of
jIntegration test.

Also if you had the previous version of jembedded installed in your
repository, delete it: M2_REPO/org/jsemantic*^

and execute mvn clean install again.

Take care

Adolfo
Message has been deleted

mens jamie

unread,
Oct 5, 2009, 9:45:09 AM10/5/09
to jembedded-dis...@googlegroups.com

Yes,I run it form eclipse,and my current version is newer which installed yesterday,and now,the error is still going,the attachment is the
detail information image.

Jamie

b.jpg

adolfo

unread,
Oct 5, 2009, 10:08:02 AM10/5/09
to jEmbedded Discussion Group
Hi,

Right ,so if you have the newer version I suppose that the mvn clean
install worked? If it did you should have all the needed jars in the
respository and what is more that test must had been executed.

So I guess you are missing some jars in the classpath (in eclipse),
because that kind of exception is that it can't find either
ActiveMQService.impl or JmsClientImp.class. Try importing the services
as projects into eclipse or import the jars (activemq-broker-sevice
and jms-client).

Take care
> b.jpg
> 358 KVerDescargar

mens jamie

unread,
Oct 5, 2009, 10:43:01 AM10/5/09
to jembedded-dis...@googlegroups.com
Hi;
   First,it is a  runtime exception and I can compile ti successfully,second, I have imported jms-broker  project and jms-client project on the build path,so I do think it is cased by classpath problem.
 
Jamie

jokoul webster

unread,
Oct 5, 2009, 10:51:50 AM10/5/09
to jembedded-dis...@googlegroups.com
Hi all:
    I have tried just now and I have the same runtime exception,well, I run it from myeclipse too.
    If I remove "JmsClientImpl.class" in @Includes and it throw the exception "java.lang.NoClassDefFoundError: org/jsemantic/services/amqservice/client/JmsClient (wrong name: org/jsemantic/services/amqservice/client/JMSClient)".
    BTW,Adolfo,there are many jsmclient in workspace,would you please make them clear?
 
JK.Webster

adolfo

unread,
Oct 5, 2009, 11:36:57 AM10/5/09
to jEmbedded Discussion Group
Hi,

It works for me from eclipse as well, I will try later it in a clean
enviroment. Try deleting the unused JMSClient in the jms-broker-
service just in case.

I know it's runtime error, but is it only from eclipse? or you get it
also when you run the tests from the console with maven?

try: mvn -o test, from the services-examples directory.

By the way what java version and operative system are you using?

Take care

Adolfo
Reply all
Reply to author
Forward
0 new messages