axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17439] - WSDD causes deserialisation error ... not able to distribute the service!
Date Thu, 27 Feb 2003 11:55:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17439>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17439

WSDD causes deserialisation error ... not able to distribute the service!





------- Additional Comments From roertig@dplanet.ch  2003-02-27 11:55 -------
I tried it out on LINUX (SuSe 7.x) and it produces the same error.
This morning I tried out to 
generate a WSDL from a JAVA code and I got a similar error. I add the Java code here (because
it is not 
much):
/*
 *  The Remote Object
 */
package roland.ejb;
//--------------------------------------------> Imports:
import 
java.rmi.RemoteException;
import javax.ejb.EJBException;
import 
javax.ejb.EJBObject;

import roland.ota.pnr.*;
import 
roland.ota.pnr.holders.OTA_AirbookHeaderHolder;
//<-----------------------------------------------------

/**
 *  Remote-Interface: The 
OTA_AirbookingService is the remote business object
 *  which exposes following methods to the 
client:
 *
 *@author     Roland Oertig
 *@created    February 27, 2003
 */
public interface 
OTA_AirbookingService extends EJBObject {

	/**
	 *  Description of the Method
	 *
	 
*@param  bkg_Header           the Header element of theSOAP message containg
	 *      keys.Sesoin-ID,etc
	 
*@param  body                 an object of the Air_Reservation classs which
	 *      holds the OTA_AirbookngRQ 
class
	 *@return                      an object of the Air_ResResponse class which
	 *      holds the OTA_BookingRS 
class
	 *@exception  RemoteException  Description of the Exception
	 */
	public 
Air_ResResponse book_OTA_PNR( OTA_AirbookHeaderHolder bkg_Header,
	                                     Air_Reservation 
body )
	throws RemoteException;
}

and the error produced:
C:\Webservices>java 
org.apache.axis.wsdl.Java2WSDL -o roland/ejb/OTA_AirbookingService.wsdl -l 
"http://localhost:8070/axis/service
s/OTA_AirbookingService" -n 
"services:OTA_AirbookingService" roland.ejb.OTA_AirbookingService
AxisFault
 
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 
faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 
faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace: 
java.lang.NullPointerException
        at 
org.apache.axis.wsdl.fromJava.Types.isSimpleType(Types.java:884)
        at 
org.apache.axis.wsdl.fromJava.Types.isAcceptableAsAttribute(Types.java:899)
        at 
org.apache.axis.encoding.ser.SimpleSerializer.writeSchema(SimpleSerializer.java:306)
 
       at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.createElementWithAnonymousType(Types.java:1201)
 
       at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:430)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:321)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1289)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1112)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:868)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:838)
        at 
org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:383)
        at 
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:262)
        at 
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
        at 
org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:504)
        at 
org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:542)


java.lang.NullPointerException
java.lang.NullPointerException
 
       at org.apache.axis.wsdl.fromJava.Types.isSimpleType(Types.java:884)
        at 
org.apache.axis.wsdl.fromJava.Types.isAcceptableAsAttribute(Types.java:899)
        at 
org.apache.axis.encoding.ser.SimpleSerializer.writeSchema(SimpleSerializer.java:306)
 
       at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:691)
        at 
org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:670)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:433)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.createElementWithAnonymousType(Types.java:1201)
 
       at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:430)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:388)
        
at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1283)
        at 
org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:321)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1289)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1112)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:868)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:838)
        at 
org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:383)
        at 
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:262)
        at 
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
        at 
org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:504)
        at 
org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:542)

C:\Webservices>java -
classpath %CLASSPATH;. org.apache.axis.wsdl.Java2WSDL -o 
roland/ejb/OTA_AirbookingService.wsdl -l 
"http://loc
alhost:8070/axis/services/OTA_AirbookingService" -n 
"services:OTA_AirbookingService" roland.ejb.OTA_AirbookingService
log4j:ERROR No 
appenders could be found for category 
(org.apache.axis.utils.bytecode.ExtractorFactory).
log4j:ERROR Please initialize the 
log4j system properly.
java.lang.NoClassDefFoundError: javax/xml/namespace/QName
        at 
java.lang.Class.getMethod0(Native Method)
        at java.lang.Class.getMethod(Unknown 
Source)
        at 
org.apache.axis.encoding.ser.BaseSerializerFactory.getSpecialized(BaseSerializerFactory.java:187)
 
       at 
org.apache.axis.encoding.ser.BaseSerializerFactory.getSerializerAs(BaseSerializerFactory.java:131)
 
       at 
org.apache.axis.encoding.ser.BeanSerializerFactory.getSerializerAs(BeanSerializerFactory.java:90)
 
       at org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:370)
        at 
org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:333)
        
at 
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:314)
        
at org.apache.axis.wsdl.fromJava.Types.writeType(Types.java:429)
        at 
org.apache.axis.wsdl.fromJava.Types.writeTypeAsElement(Types.java:179)
        at 
org.apache.axis.wsdl.fromJava.Types.writePartType(Types.java:168)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:878)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:757)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:591)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:571)
        at 
org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:322)
        at 
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:228)
        at 
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:282)
        at 
org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:358)

Mime
View raw message