axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juanda Zeng (JIRA)" <>
Subject [jira] Created: (AXIS2-393) "invalid QName prefix" exception when generating WSDL
Date Mon, 16 Jan 2006 04:20:20 GMT
"invalid QName prefix" exception when generating WSDL

         Key: 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.

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>(
	at org.apache.axis2.wsdl.java2wsdl.Java2WOM.generateWOM(
	at org.apache.axis2.wsdl.java2wsdl.Java2WSDL.generateWSDL(
	at test.Axis2Test.generateWsdl(
	at test.Axis2Test.main(

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:

View raw message