Hello,

i'm trying to set up a webservice with axis2 for a class which uses
hibernate for persistence; I tried to run some prototype services
without any hibernate connection, just in a "hello world" fashion like
the examples on the axis2 website - it worked perfectly. 

With the same stub code generation and servlet/service compiling
mechanism i switched now from the hello-world service class to the final
one who uses hibernate to get results. Instead of a successfull answer,
the only response i get is an error 400:

2007-07-06 09:16:45,976 ERROR
org.apache.axis2.transport.http.AxisServlet -
java.lang.NullPointerException
2007-07-06 09:16:45,978 INFO  org.apache.axis2.transport.http.HTTPSender
- Unable to sendViaPost to
url[http://192.168.120.202:8080/AppGeneratorService/services/AppGeneratorService]
org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
        at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
        at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:328)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:397)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:366)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:205)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
[...]

I tries this now for several hours; generated stub looks good, i can
view the wsdl file.
The service is embedded in an servlet; but this is not the cause, i
tested the whole thing as an separate aar service deployment, too - with
the same results.

Dones someone else ever got problems with hibernate?

Thanks for your response,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to