weblogic部署存在中文乱码导致部署失败

Posted mvpbang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了weblogic部署存在中文乱码导致部署失败相关的知识,希望对你有一定的参考价值。

问题描述:

  weblogic控制台显示错误,是受管节点console日志

<2018-5-25 下午10时19分16秒 CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this che
ck, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> <2018-5-25 下午10时19分16秒 CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable thi
s change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> <2018-5-25 下午10时19分17秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 24.79-b02 from Oracle Co
rporation> <2018-5-25 下午10时19分18秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0.180417 PSU Patch for BUG27395085 THU FEB 21 18:34:42 IST 2018
WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 > 
<2018-5-25 下午10时19分20秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<2018-5-25 下午10时19分20秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
<2018-5-25 下午10时19分20秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file /xxxx_domain/tygzpt-domain/servers/tygzpt-domain/logs/tygzpt-domain.log
 is opened. All server side log events will be written to this file.> <2018-5-25 下午10时19分24秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<2018-5-25 下午10时19分26秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<2018-5-25 下午10时19分26秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
java.io.IOException: [DeploymentService:290066]Error occurred while downloading files from admin server for deployment request "0". Underlying error is: "null"
    at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:86)
    at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandlerManager.java:165)
    at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:39)
    at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
    at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:97)
    at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:704)
    at weblogic.deploy.internal.targetserver.BasicDeployment.stageFilesForStatic(BasicDeployment.java:747)
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:104)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
    at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
<2018-5-25 下午10时19分30秒 CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application dist due to error weblogic.management.DeploymentException: Exc
eption occured while downloading files.weblogic.management.DeploymentException: Exception occured while downloading files
    at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:43)
    at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
    at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:97)
    at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:704)
    at weblogic.deploy.internal.targetserver.BasicDeployment.stageFilesForStatic(BasicDeployment.java:747)
    Truncated. see log file for complete stacktrace
Caused By: java.io.IOException: [DeploymentService:290066]Error occurred while downloading files from admin server for deployment request "0". Underlying error is: "nu
ll"    at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:86)
    at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandlerManager.java:165)
    at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:39)
    at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
    at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:97)

 weblogic管理节点的logs/admin.log日志

<1529876775297> <BEA-002634> <The server "tygzpt-domain" disconnected from this server.> 
####<Jun 25, 2018 5:46:31 AM CST> <Warning> <DeploymentService> <rhel> <AdminServer> <[ACTIVE] ExecuteThread: 0 for queue: weblogic.kernel.Default (self-tuning)> <<WLS Kernel>> <> <> <1529876791517> <BEA-290065> <Deployment service servlet encountered an Exception while handling the deployment datatransfer message for request id "0" from server "tygzpt-domain". Exception is: "java.io.FileNotFoundException: /home/xxxx_domain/war/tygzpt/dist/daie/scripts/miniui/?????.txt (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at weblogic.utils.jars.JarFileUtils.addFilesToJar(JarFileUtils.java:120)
    at weblogic.utils.jars.JarFileUtils.addFilesToJar(JarFileUtils.java:116)

  根据admin下的日志分析可以得出,是乱码文件的问题!根据路径查到乱码文件删除或者在源码修正编码语言尽量用英文

问题解决:

  根据提示的错误,找到乱码文件在源码中修正或者删除(根据自己情况判断)

  从这件事,明白console的日志只是表面现象,更深层的问题需要看logs下的日志!学而优则仕

以上是关于weblogic部署存在中文乱码导致部署失败的主要内容,如果未能解决你的问题,请参考以下文章

Java本地运行中文正常,部署到Weblogic中文乱码

项目部署到weblogic后页面乱码问题

将程序部署到weblogic出现乱码问题

Weblogic乱码解决过程

weblogic 更新部署失败,提示如下:

将war部署到weblogic版本(weblogic 12.2.1.3)时,Spring Integration应用程序部署失败