axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud MERGEY (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2601) ClassCast Exception
Date Thu, 21 Dec 2006 12:40:28 GMT
    [ http://issues.apache.org/jira/browse/AXIS-2601?page=comments#action_12460245 ] 
            
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:
getImports

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

    Get the list of imports for the specified namespaceURI.

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

getImports

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: http://issues.apache.org/jira/browse/AXIS-2601
>             Project: Apache Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>            Reporter: Arnaud MERGEY
>            Priority: Critical
>
> when I call org.apache.axis.wsdl.gen.Parser.run with url, I have a 
> Caused by: java.lang.ClassCastException java.util.ArrayList
> 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:724)
> 	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
> 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
> 	at org.apache.axis.wsdl.gen.Parser.run(Parser.java:399)
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message