Forums Register Login

Linkage Error and UnsupportedClassVersion Exception

+Pie Number of slices to send: Send
Hi,

Im consuming webservices in my application and while unmarshalling im using the jibx compiled Response class
however i have got the exception in the following line in my class when it got executed

JibxResponseDTO myObj = (JibxResponseDTO)JiBXMarshaller.unmarshalFromXML(myResponseXML , JibxResponseDTO.class);

myResponseXML => contains the response xml after hitting the webservice
JibxResponseDTO=> it respresents the object type , the response data will get converted
and it is a jibx compiled class file

This xmlresponse to object conversion is done by using jiBx(jibx-bind.jar,jibx-run.jar)

I have got the following exception:

java.lang.LinkageError: LinkageError while defining class: com.JibxResponseDTO
Could not be defined due to: com.JibxResponseDTO(Unsupported major.minor version 50.0)
This is often caused by having a class defined at multiple
locations within the classloader hierarchy. Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.

Please let me know if any one could help me regarding this

Thanks
+Pie Number of slices to send: Send
This would be due to difference between the Java version used to compile the class file, and the runtime JRE version. Probably, class is compiled against JDK1.6, but runtime JRE is 1.5 or lower.
You have to be odd to be #1 - Seuss. An odd little ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1502 times.
Similar Threads
JIBX - ant script for jar.
Streaming Xml and well formedness
unable marshal XML representation to string in memory - please help
java.io.IOException: Too many open files
How to format a number using country's currency
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:16:22.