wood burning stoves*
The moose likes BEA/Weblogic and the fly likes Spring ws application  deployed on oracle weblogic 11gR1 10.3.2 is causing NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Spring ws application  deployed on oracle weblogic 11gR1 10.3.2 is causing NullPointerException" Watch "Spring ws application  deployed on oracle weblogic 11gR1 10.3.2 is causing NullPointerException" New topic
Author

Spring ws application deployed on oracle weblogic 11gR1 10.3.2 is causing NullPointerException

Sreedevi Jagadisha
Greenhorn

Joined: Feb 03, 2010
Posts: 7
I have an enterprise application which is basically a spring web service.
I have used "org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition" for dynamic wsdl generation.
I use the following spring libraries spring ,

spring-jpa.jar
spring-oxm-1.5.8.jar
spring-oxm-tiger-1.5.8.jar
spring-web-2.5.jar
spring-webmvc.jar
spring-ws-1.5.8-all.jar
spring-ws-core-1.5.8.jar
spring-ws-core-tiger-1.5.8.jar
spring-ws-security-1.5.8.jar
spring-ws-support-1.5.8.jar
spring-xml-1.5.8.jar
spring.jar
stax-api-1.0.1.jar

The issue is, application is deployed in weblogic 10.3.2 on a linux box.
Application is deployed fine, it is working fine. Request and response all are working as expected. But when I want to see wsdl, I am getting NullPointerException.

Application is deployed in the url: http://localhost:7001/springws-example

The exception I am getting is at the url: http://localhost:7001/springws-example/springws.wsdl
where springws.wsdl would be the wsdl name, with which it could be accessed.

This exception is occuring only on linux boxes. I have tested in two linux boxes, it behaves the same way.
In windows everything is working fine. Wsdl is loaded on browser and soap end point address is updated with correct hostname, port and context root.

The exception I am getting is as follows,

Exception
java.lang.NullPointerException
at oracle.xml.parser.v2.XMLDocument.getDocumentURI(XMLDocument.java:2114)
at org.springframework.ws.transport.http.LastModifiedHelper.getLastModified(LastModifiedHelper.java:50)
at org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter.getLastModified(WsdlDefinitionHandlerAdapter.java:113)
at org.springframework.ws.transport.http.MessageDispatcherServlet.getLastModified(MessageDispatcherServlet.java:245)

Has anyone come across this issue?
Even if not, people having knowledge on linux and weblogic.. please help.

Thanks in advance.

-cheers
Sreedevi.
Sreedevi Jagadisha
Greenhorn

Joined: Feb 03, 2010
Posts: 7
Hi Friends,

You solve great problems.... But why there are no posts at least one for this problem?
Am I not clear in explaining the issue. Please suggest.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring ws application deployed on oracle weblogic 11gR1 10.3.2 is causing NullPointerException