[ http://jira.codehaus.org/browse/XFIRE-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106276 ]
Jan Dittberner commented on XFIRE-616: -------------------------------------- I have the same issue here when running a Unit test from within Eclipse 3.3 with Maven2 plugin. Running the same test with the same pom.xml and configuration from command line with Maven2's surefire plugin works. It seems that the Eclipse plugin some different dependent jar file but I don't know which one. I use XFire-1.2.6 and the JDOM dependency is 1.0 in both Eclipse and surefire. The stacktrace in Eclipse's junit launcher is: java.lang.VerifyError: (class: org/codehaus/xfire/aegis/type/basic/ObjectType, method: writeSchema signature: (Lorg/jdom/Element;)V) Incompatible argument to function at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:408) at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:311) at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:131) at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:137) at org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:118) at org.codehaus.xfire.jaxb2.JaxbTypeRegistry.<init>(JaxbTypeRegistry.java:15) at de.mms_dresden.mip.hsp.base.services.FaqAccessClient.create0(FaqAccessClient.java:58) at de.mms_dresden.mip.hsp.base.services.FaqAccessClient.<init>(FaqAccessClient.java:26) at de.mms_dresden.mip.hsp.base.FaqAccessTest.setUp(FaqAccessTest.java:54) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) 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) > java.lang.VerifyError: Incompatible argument to function > -------------------------------------------------------- > > Key: XFIRE-616 > URL: http://jira.codehaus.org/browse/XFIRE-616 > Project: XFire > Issue Type: Bug > Affects Versions: 1.1.2 > Environment: Windows XP, Development work on IntelliJ5.1.2, 2GB RAM, > 120 Gb HDD, 1.6 GHz Intel Dual Core Processor > Reporter: Qamar > Assignee: Tomasz Sztelak > Priority: Critical > Attachments: XFire.zip > > > I read one thread on this issue but the guy had a problem with the jdom > version he was using. I am using jdom version 1.0 which is hopefully what > xfire requires. The xfire version I am using is 1.1.2. The exception is > thrown in the line which attempts to create a service instance for an > interface file ... The problematic line is > Service service = serviceFactory.create(MoST.class); > The remaining files are attached for duplicating the problem. Only require > the xfire jars alongwith jdom1.0.jar. Typically should not require any other > binary. > The exception thrown is shown below: > Exception in thread "main" java.lang.VerifyError: (class: > org/codehaus/xfire/aegis/type/basic/ObjectType, method: writeSchema > signature: (Lorg/jdom/Element;)V) Incompatible argument to function > at > org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:331) > at > org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:128) > at > org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:116) > at > org.codehaus.xfire.aegis.AegisBindingProvider.<init>(AegisBindingProvider.java:46) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.getBindingProvider(ObjectServiceFactory.java:151) > at > org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getInParameterName(DefaultServiceConfiguration.java:160) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.getInParameterName(ObjectServiceFactory.java:943) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:701) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:645) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:350) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:284) > at > org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:265) > at man.ac.uk.most.ServiceStarter.start(ServiceStarter.java:22) > at man.ac.uk.most.ServiceStarter.main(ServiceStarter.java:42) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) > I have tried placing the xfire jars before and after jdom1.0.jar but nothing > helps. Will appreciate an early response. > Many thanks > Qamar -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email