You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Andrea Smyth <an...@iona.com> on 2007/01/25 15:04:51 UTC
Validator tests failing with ClassFormat
After cleaning at the top level and wiping out my local repository I see
several of the tools/validator tests failing with a ClassFormatError
(example stacktrace below).
I tried reverting the change to the WSDL11Validator applied to fix a
problem with the ibm jdk, but that made no difference.
Has anyone seen these errors before or have an idea what other change
could have introduced them?
Thanks,
Andrea.
[surefire] Running org.apache.cxf.tools.validator.WSDLValidationTest
[surefire] Tests run: 8, Failures: 0, Errors: 6, Time elapsed: 2.443 sec
[surefire]
[surefire]
testValidateUniqueBody(org.apache.cxf.tools.validator.WSDLValidationTest)
Time elapsed: 0.931 sec <<< ERROR!
java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org.apache.cxf.tools.util.WSDLExtensionRegister.registerXMLHttpAddress(WSDLExtensionRegister.java:95)
at
org.apache.cxf.tools.util.WSDLExtensionRegister.registerExtensions(WSDLExtensionRegister.java:74)
at
org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaValidator.java:229)
at
org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaValidator.java:131)
at
org.apache.cxf.tools.validator.internal.SchemaValidator.isValid(SchemaValidator.java:111)
at
org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validator.java:81)
at
org.apache.cxf.tools.validator.WSDLValidator.execute(WSDLValidator.java:66)
at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
at
org.apache.cxf.tools.validator.WSDLValidator.main(WSDLValidator.java:92)
at
org.apache.cxf.tools.validator.WSDLValidationTest.testValidateUniqueBody(WSDLValidationTest.java:37)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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 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
org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
at
org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
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
org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785)
Re: Validator tests failing with ClassFormat
Posted by Daniel Kulp <da...@iona.com>.
Andrea,
I do see this error if I switch back and forth between JDK 1.5 and 1.6. One
of the tests seems to be calling javac to compile something, but then not
cleaning up properly which is causing an issue.
That said, if you are just using 1.5, a "mvn clean" then a fresh build should
clean it all out.
Dan
On Thursday 25 January 2007 09:04, Andrea Smyth wrote:
> After cleaning at the top level and wiping out my local repository I see
> several of the tools/validator tests failing with a ClassFormatError
> (example stacktrace below).
> I tried reverting the change to the WSDL11Validator applied to fix a
> problem with the ibm jdk, but that made no difference.
> Has anyone seen these errors before or have an idea what other change
> could have introduced them?
>
> Thanks,
> Andrea.
>
>
> [surefire] Running org.apache.cxf.tools.validator.WSDLValidationTest
> [surefire] Tests run: 8, Failures: 0, Errors: 6, Time elapsed: 2.443 sec
> [surefire]
> [surefire]
> testValidateUniqueBody(org.apache.cxf.tools.validator.WSDLValidationTest)
> Time elapsed: 0.931 sec <<< ERROR!
> java.lang.ClassFormatError: Truncated class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at
> org.apache.cxf.tools.util.WSDLExtensionRegister.registerXMLHttpAddress(WSDL
>ExtensionRegister.java:95) at
> org.apache.cxf.tools.util.WSDLExtensionRegister.registerExtensions(WSDLExte
>nsionRegister.java:74) at
> org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaVali
>dator.java:229) at
> org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaVali
>dator.java:131) at
> org.apache.cxf.tools.validator.internal.SchemaValidator.isValid(SchemaValid
>ator.java:111) at
> org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Valid
>ator.java:81) at
> org.apache.cxf.tools.validator.WSDLValidator.execute(WSDLValidator.java:66)
> at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
> at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
> at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
> at
> org.apache.cxf.tools.validator.WSDLValidator.main(WSDLValidator.java:92)
> at
> org.apache.cxf.tools.validator.WSDLValidationTest.testValidateUniqueBody(WS
>DLValidationTest.java:37) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.ja
>va:242) at
> org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:21
>6) at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785)
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
daniel.kulp@iona.com
Re: Validator tests failing with ClassFormat
Posted by Andrea Smyth <an...@iona.com>.
I should add that I am working on Windows, using JDK 1.5.0_09.
> After cleaning at the top level and wiping out my local repository I
> see several of the tools/validator tests failing with a
> ClassFormatError (example stacktrace below).
> I tried reverting the change to the WSDL11Validator applied to fix a
> problem with the ibm jdk, but that made no difference.
> Has anyone seen these errors before or have an idea what other change
> could have introduced them?
>
> Thanks,
> Andrea.
>
>
> [surefire] Running org.apache.cxf.tools.validator.WSDLValidationTest
> [surefire] Tests run: 8, Failures: 0, Errors: 6, Time elapsed: 2.443 sec
> [surefire]
> [surefire]
> testValidateUniqueBody(org.apache.cxf.tools.validator.WSDLValidationTest)
> Time elapsed: 0.931 sec <<< ERROR!
> java.lang.ClassFormatError: Truncated class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at
> org.apache.cxf.tools.util.WSDLExtensionRegister.registerXMLHttpAddress(WSDLExtensionRegister.java:95)
>
> at
> org.apache.cxf.tools.util.WSDLExtensionRegister.registerExtensions(WSDLExtensionRegister.java:74)
>
> at
> org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaValidator.java:229)
>
> at
> org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaValidator.java:131)
>
> at
> org.apache.cxf.tools.validator.internal.SchemaValidator.isValid(SchemaValidator.java:111)
>
> at
> org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validator.java:81)
>
> at
> org.apache.cxf.tools.validator.WSDLValidator.execute(WSDLValidator.java:66)
>
> at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
>
> at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
>
> at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
>
> at
> org.apache.cxf.tools.validator.WSDLValidator.main(WSDLValidator.java:92)
> at
> org.apache.cxf.tools.validator.WSDLValidationTest.testValidateUniqueBody(WSDLValidationTest.java:37)
>
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> 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 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
> org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
>
> at
> org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
>
> at
> org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
> 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
> org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785)