Webservice error summary and Solution

Source: Internet
Author: User

Webservice can only be accessed locally

Add the following configuration under <system. web>:

<Webservices>
<Protocols>
<Add name = "https tutorial oap"/>
<Add name = "httppost"/>
<Add name = "httpget"/>
<Add name = "documentation"/>
</Protocols>
</Webservices>

 

Jrockit81sp6_142_10 causes the following error to be reported when the webservice parameter of axis is passed in:

Java. lang. nullpointerexception error. This is the error message returned by calling xmlspy.
<? Xml version = "1.0" encoding = "UTF-8"?>
<Soapenv: envelope xmlns: soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsd = "http://www.w3.org/2001/xmlschema" xmlns: xsi = "http://www.w3.org/2001/xmlschema-instance">
<Soapenv: body>
<Soapenv: fault>
<Faultcode> soapenv: server. userexception </faultcode>
<Faultstring> java. lang. nullpointerexception </faultstring>
<Detail>
<Ns1: hostname xmlns: ns1 = "http://xml.apache.org/axis/"> temp-e23cd45c2d </ns1: hostname>
</Detail>
</Soapenv: fault>
</Soapenv: body>
</Soapenv: envelope>

At this time, it is not called to the program at all. Once the parameter is passed in, an error will be reported. After checking that it is a problem with the jdk of weblogic, it is OK to use the jdk of sun. You need to modify startweblogic. cmd.

Set java_vendor = sun
Set java_home = d: beajdk142_11

Error weblogic version: 8. 1

The webservice does not exist or the network may be disconnected.

[Soapexception: faultcode = ns1: server. noservice; msg = the axis engine cocould not find a target service to invoke! Targetservice is simplewebservicetest

An internal error occurs in the service provider of webservice. For example, if the parameter passed by the webservice caller is null and the provider does not check the parameter

Axisfault
Faultcode: {http://schemas.xmlsoap.org/soap/envelope/}server.userexception
Faultsubcode:
Faultstring: java. lang. nullpointerexception
Faultactor:
Faultnode:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.