weblogic 12.2.1部署问题

时间:2018-06-25 20:42:32

标签: nullpointerexception weblogic12c

我在尝试在WL 12.2.1服务器中部署耳文件时得到了NPE。在Weblogic 12.1.3中可以毫无问题地部署耳朵。这是错误日志。 试图解决这一问题几天都没有成功。 NPE为什么来自WebLogic软件包?

  

错误::“ Deployer BEA-149265执行失败   任务“ 1”的ID为“ 17802533653132”的部署请求   [分区名称:DOMAIN]。

     

错误是:“ weblogic.utils.ErrorCollectionException:        [java] WLST-WLS-1529953358794:        [java] WLST-WLS-1529953358794:有2个嵌套错误:        [java] WLST-WLS-1529953358794:        [java] WLST-WLS-1529953358794:weblogic.application.ModuleException:java.lang.NullPointerException        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleStateDriver $ 1.next(ModuleStateDriver.java:192)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleStateDriver $ 1.next(ModuleStateDriver.java:187)        [java] WLST-WLS-1529953358794:位于weblogic.application.utils.StateMachineDriver $ ParallelChange.run(StateMachineDriver.java:83)        [java] WLST-WLS-1529953358794:位于weblogic.work.ContextWrap.run(ContextWrap.java:46)        [java] WLST-WLS-1529953358794:网址为weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)        [java] WLST-WLS-1529953358794:位于weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)        [java] WLST-WLS-1529953358794:位于weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)        [java] WLST-WLS-1529953358794:位于weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)        [java] WLST-WLS-1529953358794:位于weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)        [java] WLST-WLS-1529953358794:网址为weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)        [java] WLST-WLS-1529953358794:位于weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)        [java] WLST-WLS-1529953358794:位于weblogic.work.ExecuteThread.run(ExecuteThread.java:346)“

     

”由以下原因引起:java.lang.NullPointerException        [java] WLST-WLS-1529953358794:位于java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)        [java] WLST-WLS-1529953358794:位于java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)        [java] WLST-WLS-1529953358794:网址为weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.createSpringInstrumentorEngineIfNecessary(SpringClassPreprocessor.java:67)        [java] WLST-WLS-1529953358794:网址为weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor。(SpringClassPreprocessor.java:26)        [java] WLST-WLS-1529953358794:网址为weblogic.spring.monitoring.instrumentation.SpringInstrumentationUtils.addSpringInstrumentor(SpringInstrumentationUtils.java:87)        [java] WLST-WLS-1529953358794:位于weblogic.servlet.internal.WebAppInternalModuleExtension $ SpringInstrumentationExtension.doInstrumentation(WebAppInternalModuleExtension.java:113)        [java] WLST-WLS-1529953358794:位于weblogic.servlet.internal.WebAppInternalModuleExtension $ SpringInstrumentationExtension.access $ 400(WebAppInternalModuleExtension.java:102)        [java] WLST-WLS-1529953358794:位于weblogic.servlet.internal.WebAppInternalModuleExtension.prePrepare(WebAppInternalModuleExtension.java:57)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.ExtensibleModuleWrapper $ PrepareStateChange.next(ExtensibleModuleWrapper.java:293)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.ExtensibleModuleWrapper $ PrepareStateChange.next(ExtensibleModuleWrapper.java:285)        [java] WLST-WLS-1529953358794:位于weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)        [java] WLST-WLS-1529953358794:...还有13个        [java] WLST-WLS-1529953358794:        [java] WLST-WLS-1529953358794:和        [java] WLST-WLS-1529953358794:        [java] WLST-WLS-1529953358794:weblogic.application.ModuleException:java.lang.NullPointerException        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleStateDriver $ 1.next(ModuleStateDriver.java:192)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleStateDriver $ 1.next(ModuleStateDriver.java:187)        [java] WLST-WLS-1529953358794:位于weblogic.application.utils.StateMachineDriver $ ParallelChange.run(StateMachineDriver.java:83)        [java] WLST-WLS-1529953358794:位于weblogic.application.utils.StateMachineDriver.nextStateInParallel(StateMachineDriver.java:144)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.ModuleStateDriver.parallelPrepare(ModuleStateDriver.java:46)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:75)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:55)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.BaseDeployment $ 1.next(BaseDeployment.java:727)        [java] WLST-WLS-1529953358794:位于weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:66)        [java] WLST-WLS-1529953358794:位于weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:229)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:103)        [java] WLST-WLS-1529953358794:网址为weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:241)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:794)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1340)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:267)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:177)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:186)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access $ 000(DeploymentReceiverCallbackDeliverer.java:14)        [java] WLST-WLS-1529953358794:位于weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer $ 1.run(DeploymentReceiverCallbackDeliverer.java:47)        [java] WLST-WLS-1529953358794:网址为weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)        [java] WLST-WLS-1529953358794:位于weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)        [java] WLST-WLS-1529953358794:位于weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)        [java] WLST-WLS-1529953358794:位于weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)        [java] WLST-WLS-1529953358794:位于weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)        [java] WLST-WLS-1529953358794:网址为weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)        [java] WLST-WLS-1529953358794:位于weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)        [java] WLST-WLS-1529953358794:位于weblogic.work.ExecuteThread.run(ExecuteThread.java:346)“

2 个答案:

答案 0 :(得分:1)

最后找到了解决方案,这是jar antlr-2.7.6.jar打包的问题,​​该jar与耳朵文件与默认的类加载器冲突。 解决方案:-更改了weblogic.xml,以添加要从应用程序而不是从默认类加载器加载的antlr程序包。

答案 1 :(得分:0)

另一种解决方案:添加

set JAVA_OPTIONS=%JAVA_OPTIONS% -DANTLR_USE_DIRECT_CLASS_LOADING=true

…在setDomainEnv.cmd的工作对我也