This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Linkage Error and UnsupportedClassVersion Exception

 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!