Org. apache. axis2.AxisFault: Transporterror: 403 Error: Forb

Source: Internet
Author: User
A function of a production system that has been launched for a long time suddenly becomes abnormal. After analyzing the logs, developers can decide to restart the system. When the system is restarted, the following Error occurs in the background: org. apache. axis2.AxisFault: Transporterror: 403 Error: Forbidden. As tomcat is deployed with multiple applications, the system cannot be restarted temporarily.

A function of a production system that has been launched for a long time suddenly becomes abnormal. After analyzing the logs, developers can decide to restart the system. When the system is restarted, the following error occurs in the background: org. apache. axis2.AxisFault: Transport Error: 403 error: Forbidden. As tomcat is deployed on multiple applications, tomcat cannot be restarted temporarily.

A function of a production system that has been launched for a long time suddenly becomes abnormal. After analyzing the logs, developers can decide to restart the system.
When the system is restarted, the following error occurs in the background: org. apache. axis2.AxisFault: Transport Error: 403 error: Forbidden.
As a result, tomcat cannot be restarted successfully. Because multiple applications are deployed under tomcat, the solution to the problem cannot be found temporarily.
You can only disable this function so that other systems can work normally.


The system environment is as follows:
Jdk version:
Java version "1.6.0 _ 14"
Java (TM) SE Runtime Environment (build 1.6.0 _ 14-b08)
Java HotSpot (TM) Server VM (build 14.0-f8, mixed mode)

Tomcat version:
Server version: Apache Tomcat/6.0.20
Server built: May 14 2009 01:13:50
Server number: 6.0.20.0
OS Name: Linux
OS Version: 2.6.32-200.13.1.el5uek
Architecture: i386
JVM Version: 1.6.0 _ 14-b08
JVM Vendor: Sun Microsystems Inc.

Operating System:
Linux 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux


Error details:
Org. apache. axis2.AxisFault: Transport error: 403 Error: Forbidden
At org. apache. axis2.transport. http. HTTPSender. handleResponse (HTTPSender. java: 310)
At org. apache. axis2.transport. http. HTTPSender. sendViaPost (HTTPSender. java: 200)
At org. apache. axis2.transport. http. HTTPSender. send (HTTPSender. java: 76)
At org. apache. axis2.transport. http. CommonsHTTPTransportSender. writeMessageWithCommons (CommonsHTTPTransportSender. java: 400)
At org. apache. axis2.transport. http. CommonsHTTPTransportSender. invoke (CommonsHTTPTransportSender. java: 225)
At org. apache. axis2.engine. AxisEngine. send (AxisEngine. java: 435)
At org. apache. axis2.description. OutInAxisOperationClient. send (OutInAxisOperation. java: 402)
At org.apache.axis2.description.OutInAxisOperationClient.exe cuteImpl (OutInAxisOperation. java: 229)
At org.apache.axis2.client.OperationClient.exe cute (OperationClient. java: 165)
At org. apache. axis2.client. ServiceClient. sendReceive (ServiceClient. java: 540)
At org. apache. axis2.client. ServiceClient. sendReceive (ServiceClient. java: 521)
At org. apache. axis2.rpc. client. RPCServiceClient. invokeBlocking (RPCServiceClient. java: 102)
At com. *. invokeWebService (MuZhiUtil. java: 36)
At com. *. loginSMS (MuZhiUtil. java: 64)
At com. *. sendSourceNoSMS (MuZhiUtil. java: 108)
At com. *. etaNoticeSMS (MuZhiDao. java: 452)
At com. *. execute (ETANoticeSMSJob. java: 14)
At org. quartz. core. JobRunShell. run (JobRunShell. java: 202)
At org. quartz. simpl. SimpleThreadPool $ WorkerThread. run (SimpleThreadPool. java: 525)
Java. lang. NullPointerException
At com. *. loginSMS (MuZhiUtil. java: 65)
At com. *. sendSourceNoSMS (MuZhiUtil. java: 108)
At com. *. etaNoticeSMS (MuZhiDao. java: 452)
At com. *. execute (ETANoticeSMSJob. java: 14)
At org. quartz. core. JobRunShell. run (JobRunShell. java: 202)
At org. quartz. simpl. SimpleThreadPool $ WorkerThread. run (SimpleThreadPool. java: 525)

Describe the solution and general process:
First, the program has not been changed, the operating system and database are normal, and the tomcat configuration has not changed.
The normal function suddenly encountered a problem, which can be basically ruled out as a program problem. The problem is located in the running environment of the system.
The operating system, database, and tomcat configurations are basically not modified by me, and the program upgrade will certainly
Notify me. What is the possible cause? Only the "Environment" for running the program has changed. What is possible?

Perform the following operations on windows:
1. Copy the problematic program from production to the windows test environment and connect the test database. Everything works normally.
It proves that it is not a program problem.
2. Point the program to the production database. Everything is normal.
It proves that it is not a problem with the production database.

Repeat the preceding operations on linux:
1. Copy the problematic program from the production environment to the Linux testing environment and connect the test database. Everything works normally.
It proves that it is neither a program problem nor an operating system problem.

2. Point the program to the production database. Everything is normal.
It proves that it is not a problem with the production database.

What is the possibility of eliminating issues related to programs, operating systems, databases, and runtime environments?

Middleware, network?

3. Copy the production environment tomcat and application to the test environment. An error occurred while restarting the application.
The running results of the same program on different tomcat servers are inconsistent, which seems to be a problem with tomcat.
Comparison between the testing and production of tomcat/conf/catalina. properties found that production is different from the testing of tomcat/conf/catalina. properties.

A proxy is set in catalina. properties of tomcat production. The test environment does not exist.
After removing the production tomcat agent, it starts normally.
It seems that the problem is found. It is a proxy problem.
Tomcat/conf/catalina. properties
Http. proxyHost = 192.168.0.208
Http. proxyPort = 8080

In the past, the network administrator modified the proxy and imposed some restrictions on the proxy. Therefore, the above error suddenly occurs in the normal application.

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.