Axis1.4 returns an array and an exception occurs.-Java/Java EE Final Solution

Source: Internet
Author: User

406 debug [main] org. Apache. axis. i18n. projectresourcebundle-
Org. Apache. axis. i18n. Resource: handlegetobject (exception00)
406
Debug [main] org. Apache. axis. encoding. Ser. baseserializerfactory-
Exception:
Java. Lang. nosuchmethodexception:
Org. Apache. axis. encoding. Ser. arrayserializerfactory. Create (Java. Lang. Class,
Javax. xml. namespace. QNAME)
At java. Lang. Class. getmethod (unknown
Source)
At
Org. Apache. axis. encoding. Ser. baseserializerfactory. createfactory (baseserializerfactory. Java: 254)
At
Org. Apache. axis. Deployment. WSDD. wsddservice. deploytypemapping (wsddservice. Java: 542)
At
Org. Apache. axis. Deployment. WSDD. wsddservice. inittmr (wsddservice. Java: 253)
At
Org. Apache. axis. Deployment. WSDD. wsddservice. <init> (wsddservice. Java: 233)
At
Org. Apache. axis. Deployment. WSDD. wsdddeployment. <init> (wsdddeployment. Java: 192)
At
Org. Apache. axis. Deployment. WSDD. wsdddocument. setdocument (wsdddocument. Java: 139)
At
Org. Apache. axis. Deployment. WSDD. wsdddocument. <init> (wsdddocument. Java: 65)
At
Org. Apache. axis. configuration. fileprovider. configureengine (fileprovider. Java: 179)
At org. Apache. axis. axisengine. INIT (axisengine. Java: 172)
At
Org. Apache. axis. axisengine. <init> (ax engine. Java: 156)
At
Org. Apache. axis. server. axisserver. <init> (axisserver. Java: 88)

At
Org. Apache. axis. server. defaultaxisserverfactory. createserver (defaultaxisserverfactory. Java: 109)
At
Org. Apache. axis. server. defaultaxisserverfactory. getserver (defaultaxisserverfactory. Java: 73)
At org. Apache. axis. server. axisserver. getserver (axisserver. Java: 73)

At
Org. Apache. axis. Transport. http. axisservletbase. getengine (axisservletbase. Java: 185)
At
Org. Apache. axis. Transport. http. axisservletbase. getoption (axisservletbase. Java: 396)
At
Org. Apache. axis. Transport. http. axisservletbase. INIT (axisservletbase. Java: 112)
At javax. servlet. genericservlet. INIT (genericservlet. Java: 212)
At
Org. Apache. Catalina. Core. standardwrapper. loadservlet (standardwrapper. Java: 1173)
At
Org. Apache. Catalina. Core. standardwrapper. Load (standardwrapper. Java: 993)
At
Org. Apache. Catalina. Core. standardcontext. loadonstartup (standardcontext. Java: 4350)
At
Org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4659)
At
Org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 791)
At
Org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 771)
At
Org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 546)
At
Org. Apache. Catalina. startup. hostconfig. deploydescriptor (hostconfig. Java: 637)
At
Org. Apache. Catalina. startup. hostconfig. deploydescriptors (hostconfig. Java: 563)
At
Org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 498)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1277)
At
Org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 321)
At
Org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 119)
At
Org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1053)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 785)
At
Org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At
Org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 445)
At
Org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 519)
At
Org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 581)
At
Sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)

 

 

I found the problem for one day, and later I found that it was because the <NS1: arraymapping
Innertype = "XSD: string" languagespecifictype = "Java: Java. Lang. String []"
QNAME = "ns10: arrayof_xsd_string" xmlns: ns10 = "http: // xxxxxx"
Xmlns: XSD = "http://www.w3.org/2001/XMLSchema"
Encodingstyle = ""/> this problem is followed by a careful study of the log configuration method, and many resources have been found online, and no one has completely solved it.
Finally, I am serious
I checked the configuration of log4j. Finally, I changed the configuration file of log4j and changed the Log Level of axis1.4.

 

Log4j. rootcategory = debug, console, logfile

Log4j.logger.org. Apache. axis = info
Log4j.logger.org. Apache = fatal
Log4j.logger.org. Apache. commons = debug
Log4j.logger.org. Apache. Struts = warn
Log4j.logger.com. bluedot = debug
Log4j.logger.org. hibernate = debug
Log4j.logger.org. Quartz = Error
Log4j.logger.org. springframework = Error

#
Set the enterprise logger category to fatal and its only appender
Console.
Log4j.logger.org. Apache. axis. Enterprise = fatal, console
# Log4j.logger.org. Apache. axis. Transport. http. httpsender = info,
Console

# Console is set to be a consoleappender using
Patternlayout.
Log4j. appender. Console = org. Apache. log4j. leleappender
Log4j. appender. Console. Threshold = debug
Log4j. appender. Console. layout = org. Apache. log4j. patternlayout
# Og4j. appender. Console. layout. conversionpattern =-
% M % N
Log4j. appender. Console. layout. conversionpattern = %-4r %-5 p [% T]
% 37C % 3x-% m % N

# Logfile is set to be a file appender using
Patternlayout.
Log4j. appender. logfile = org. Apache. log4j. fileappender
Log4j. appender. logfile. File = axis. Log
Log4j. appender. logfile. append = true
Log4j. appender. logfile. Threshold = info
Log4j. appender. logfile. layout = org. Apache. log4j. patternlayout
Log4j. appender. logfile. layout. conversionpattern = %-4r
[% T] %-5 p % C % x-% m % N

 

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.