axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juanda Zeng (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-393) "invalid QName prefix" exception when generating WSDL
Date Mon, 16 Jan 2006 08:25:22 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-393?page=comments#action_12362824 ] 

Juanda Zeng commented on AXIS2-393:
-----------------------------------

My apologies. Item 1 under the "SUGGESTED RESOLUTION(S)" section above should be:
1. Set the default values for the 2 variables (line 56 and 57 of Java2WOM): 
        private String targentNamespece = null;
        private String targetNamespecheprefix = SchemaGenerator.SCHEMA_NAMESPACE_PRFIX;

Thanks.

> "invalid QName prefix" exception when generating WSDL
> -----------------------------------------------------
>
>          Key: AXIS2-393
>          URL: http://issues.apache.org/jira/browse/AXIS2-393
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: wsdl
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss
>     Reporter: Juanda Zeng

>
> In org.apache.axis2.wsdl.java2wsdl.Java2WOM rev. 366099, the "targentNamespece" and "targetNamespecheprefix"
variables are not initialized with any value. When Java2WSDL instantiates Java2WOM, it also
makes assumption that these 2 parameters are null.
> SUGGESTED RESOLUTION(S):
> --------------------------------------------------
> 1. Set the default values for the 2 variables (line 56 and 57 of Java2WOM):
>         private String targentNamespece = SchemaGenerator.SCHEMA_TARGET_NAMESPACE;
>         private String targetNamespecheprefix = SchemaGenerator.SCHEMA_NAMESPACE_PRFIX;
> 2. Add methods to allow Java2WSDL to accept "targetNamespace" and "targetNamespacePrefix"
from users.
> Stack trace is as follows:
> ------------------------------------
> [JAM] Warning: You are running under a pre-1.5 JDK.  JSR175-style source annotations
will not be available
> java.lang.IllegalArgumentException: invalid QName prefix
> 	at javax.xml.namespace.QName.<init>(QName.java:81)
> 	at org.apache.axis2.wsdl.java2wsdl.Java2WOM.generateWOM(Java2WOM.java:99)
> 	at org.apache.axis2.wsdl.java2wsdl.Java2WSDL.generateWSDL(Java2WSDL.java:43)
> 	at test.Axis2Test.generateWsdl(Axis2Test.java:56)
> 	at test.Axis2Test.main(Axis2Test.java:170)

-- 
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


Mime
View raw message