This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes NullPointerException when calling webservice in Weblogic 9.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "NullPointerException when calling webservice in Weblogic 9.2" Watch "NullPointerException when calling webservice in Weblogic 9.2" New topic
Author

NullPointerException when calling webservice in Weblogic 9.2

christian huber
Greenhorn

Joined: Apr 09, 2010
Posts: 2
I am trying to call a webservice. The client was generated with weblogic's ant task clientgen. But when I use the client, following exception happens:


The problem happens in a library from the weblogic server (xbean.jar). In the method XmlBeans.typeSystemForClassLoader(ClassLoader, String) a NPE happens,
because the first parameter is null. This is all I found out so far.

Does anybody know what could be the problem?
christian huber
Greenhorn

Joined: Apr 09, 2010
Posts: 2
I found the solution. It was a classpath problem. I needed the following jars on my classpath:

* weblogic.jar
* weblogic-container-binding.jar
* xbean.jar
* stax-api-1.0.1.jar
* webservices.jar
* ant.jar

Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3019
    
  35

"chris test", please check your private messages regarding an important administrative matter.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException when calling webservice in Weblogic 9.2
 
Similar Threads
NoClassDefFoundError exception in InitialContext()
Junit Test Case for axis WebService
No operation name specified - How to Look For Where the Problem is?
HttpUnit - org.mozilla.javascript.EcmaError: TypeError: Cannot find function createElement
move item from one list to another