jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • XFire
  • XFIRE-899

Xifre giving an ClassCastException during wsdl generation for nested java 5.0 generic types objects

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: 1.2.4
  • Fix Version/s: None
  • Component/s: Aegis Module
  • Labels:
    None
  • Environment:
    Windows XP, Weglogic 9.2, Eclipse 3.2.0, MyEclipse 5.0

Description

I am using XFIRE 1.2.4

I get this error for classes that have nested Objects that are 5.0 Generic. Example.

MyObject<G extends MyObject>{
List<G> x;//will contain a list of more MyObject's
}

java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
at org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType(DefaultTypeCreator.java:48)
at org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollectionType(Java5TypeCreator.java:159)
at org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XMLTypeCreator.java:181)
at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(AbstractTypeCreator.java:90)
at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTypeCreator.java:367)
Truncated. see log file for complete stacktrace

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
william added a comment - 28/Feb/07 10:27 AM

If I do not generate a wsdl and just make calls the various methods of the webservice, I only get this error when the method returns nested objects. It will work fine if there is only a depth of one but if for example I have:

MyObject has a list of MyObjects it will fail.

Show
william added a comment - 28/Feb/07 10:27 AM If I do not generate a wsdl and just make calls the various methods of the webservice, I only get this error when the method returns nested objects. It will work fine if there is only a depth of one but if for example I have: MyObject has a list of MyObjects it will fail.

People

  • Assignee:
    Dan Diephouse
    Reporter:
    william
Vote (0)
Watch (1)

Dates

  • Created:
    28/Feb/07 10:21 AM
    Updated:
    28/Feb/07 10:27 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.