I actually generated the web service from a WSDL - actually, I wrote the
interface in .NET, generated the WSDL, then used JBuilder to generate my
classes from the WSDL (a more unconventional way of going about it). I have
now managed to stop the error... nothing happens now.
If I call the service using my client I now get:
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultString: (500)Internal Server Error
faultActor: null
faultDetail:
null: return code: 500
<html><head><title>Apache Tomcat/4.0.3 -
Error report</title><STYLE><!--H1{font-family :
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family
: sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color :
white;background-color : #0086b2;} HR{color : #0086b2;}
--></STYLE>
</head><body><h1>Apache Tomcat/4.0.3 -
HTTP Status 500 - Internal Server Error</h1><HR
size="1"
noshade><p><b>type</b> Exception
report</p><p><b>message</b>
<u>Internal Server
Error</u></p><p><b>descripti
on</b> <u>The server encountered an internal error
(Internal Server Error) that prevented it from fulfilling this
request.</u></p><p><b>except
ion</b> <pre>org.apache.axis.InternalException:
org.apache.axis.ConfigurationException:
org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException:
org.apache.axis.encoding.ser.BeanSerializerFactory
java.lang.ClassCastException:
org.apache.axis.encoding.ser.BeanSerializerFactory
...
As I'm using a service provider, I don't have a lot of access to the
configuration - we've been tweeking the server together. Sorry I can't be
of more help - though I've only managed to stop that error; I've exchanged
it for another!
Any help is greatly appreciated.
Cheers,
Steve
-----Original Message-----
From: Sam Khan [mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 20:02
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: NullPointerException when calling ?WSDL
Hi Steve,
I'm having a similiar problem and so far havent had any luck with solutions
from the user group ( my error is listed below ). The web service itself
runs successfully, the problem occurs when trying to generate WSDL using
'?wsdl' in the URL. I'm pretty sure that it is a configuration problem - I
just dont know what it is that I need to change in the configuration.
There is a way for the wsdl to be returned if you have already created it
( apparently the 'correct' way to create services is to write the WSDL
first - check out the URL for more info ). However, I've tried it, but that
also doesnt work! I agree, this thing is an object lession in frustration!
Thanks,
Sam
http://www.fawcette.com/javapro/2003_02/online/WSDL_kjones_02_27_03/default_
pf.asp
/------------------------ ERROR -------------------------/
Fault - The AXIS engine could not find a target service to invoke!
targetService is null
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultString: The AXIS engine could not find a target service to invoke!
targetService is null
faultActor: null
faultDetail:
stackTrace: AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultString: The AXIS engine could not find a target service to invoke!
targetService is null
faultActor: null
faultDetail:
The AXIS engine could not find a target service to invoke! targetService is
null
at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:277)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
/--------------------------SNIP ---------------------------------/
-----Original Message-----
From: Steve Wood - Informavores [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 3:14 AM
To: [EMAIL PROTECTED]
Subject: NullPointerException when calling ?WSDL
Hi,
I'm having trouble with AXIS when generating the WSDL document:
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is:
java.lang.NullPointerException
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
I've tested the code on my machine and everything works fine so I'm tending
to think it's a configuration problem. Has anyone got any ideas what might
be causing this to happen?
If I call the service without the ?WSDL, I get the:
FireflyDesignSubmissionSoap
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...
Any help is greatly appreciated as I'm beginning to lose the will to live
with this one.
Cheers,
Steve