axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud MERGEY (JIRA)" <>
Subject [jira] Commented: (AXIS-2601) ClassCast Exception
Date Thu, 21 Dec 2006 12:40:28 GMT
    [ ] 
Arnaud MERGEY commented on AXIS-2601:

I have tested, if I replace Vecot by List in line 724 of SymbolTable class, I haven't anymore
the Class Cast Exception and it works.
This problem occurs because I don't use wsdl4j but another jwsdl implementation. 
According to JWSDL API, I think you should replace Vector by List:

public java.util.List getImports(java.lang.String namespaceURI)

    Get the list of imports for the specified namespaceURI.

        namespaceURI - the namespaceURI associated with the desired imports.
        a list of the corresponding imports, or null if there weren't any matching imports


public java.util.Map getImports()

    Get a map of lists containing all the imports defined here. The map's keys are the namespaceURIs,
and the map's values are lists. There is one list for each namespaceURI for which imports
have been defined.

> ClassCast Exception
> -------------------
>                 Key: AXIS-2601
>                 URL:
>             Project: Apache Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>            Reporter: Arnaud MERGEY
>            Priority: Critical
> when I call with url, I have a 
> Caused by: java.lang.ClassCastException java.util.ArrayList
> 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
> 	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
> 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
> 	at
> checking the source code I can see this Vector v = (Vector) imports.get(importKeys[i]);
> so I think imports.get return an ArrayList instead of Vector, I think you should replace
Vector by List
> I can't attach my wsdl because there are lots of import.
> thanks for help

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message