My Oracle Support Banner

OPSS : Issue When Upgrading WCS From 12.2.1.2 To 12.2.1.4 And Managed Server Won't Start , policy: error parsing file:/<WL_HOME>/server/lib/weblogic.policy (Doc ID 2647540.1)

Last updated on MARCH 11, 2020

Applies to:

Oracle Platform Security for Java - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.4.0 version, Java Platform Security

When attempting to start the wc spaces server after upgrade the WC 12.2.1.3 to 12.2.1.4  the following error occurs.

Adminserver and WC Managedsevre on same box .

Adminserver started fine and seeing following in the WC amanagedsevre and goes too failed state

Note: Both the Admin and Managedserver  using the  same file to start servers , /<WL_HOME>/server/lib/weblogic.policy

 

[JavaPolicyProvider]: System Property [net.sf.ehcache.enableShutdownHook => truetrue]
[JavaPolicyProvider]: System Property [weblogic.oif.serialFilterMode => combinecombine]
[JavaPolicyProvider]: System Property [net.sf.ehcache.enableShutdownHook => truetrue]

[JavaPolicyProvider]: System Property [file.encoding =>file.encoding UTF8UTF-8]

 


policy: error parsing file:/<WL_HOME>/server/lib/weblogic.policy
policy: java.lang.NullPointerException
java.lang.NullPointerException
at oracle.security.jps.internal.policystore.compat.PolicyParser.parseExtDirs(PolicyParser.java:657)
at oracle.security.jps.internal.policystore.compat.PolicyParser.parseGrantEntry(PolicyParser.java:573)
at oracle.security.jps.internal.policystore.compat.PolicyParser.read(PolicyParser.java:198)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:589)
at oracle.security.jps.internal.policystore.compat.PolicyFile.access$600(PolicyFile.java:266)
at oracle.security.jps.internal.policystore.compat.PolicyFile$2.run(PolicyFile.java:509)
at oracle.security.jps.internal.policystore.compat.PolicyFile$2.run(PolicyFile.java:483)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:483)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:470)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:435)
at oracle.security.jps.internal.policystore.compat.PolicyFile.<init>(PolicyFile.java:306)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:304)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:284)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1729)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1714)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:147)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.wls.JpsWlsStartup.start(JpsWlsStartup.java:143)
at oracle.security.jps.JpsStartup.startWithRetry(JpsStartup.java:267)
at oracle.security.jps.JpsStartup.start(JpsStartup.java:232)
at oracle.security.jps.wls.JpsDefaultService.start(JpsDefaultService.java:103)
at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1287)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:333)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:681)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:655)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
policy: reading file:/usr/java/jdk1.8.0_241-amd64/jre/lib/security/java.policy
policy: error parsing file:/usr/java/jdk1.8.0_241-amd64/jre/lib/security/java.policy
policy: java.lang.NullPointerException
java.lang.NullPointerException
at oracle.security.jps.internal.policystore.compat.PolicyParser.parseExtDirs(PolicyParser.java:657)
at oracle.security.jps.internal.policystore.compat.PolicyParser.parseGrantEntry(PolicyParser.java:573)
at oracle.security.jps.internal.policystore.compat.PolicyParser.read(PolicyParser.java:198)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:589)
at oracle.security.jps.internal.policystore.compat.PolicyFile.access$600(PolicyFile.java:266)
at oracle.security.jps.internal.policystore.compat.PolicyFile$2.run(PolicyFile.java:550)
at oracle.security.jps.internal.policystore.compat.PolicyFile$2.run(PolicyFile.java:483)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:483)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:470)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:435)
at oracle.security.jps.internal.policystore.compat.PolicyFile.<init>(PolicyFile.java:306)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:304)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:284)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1729)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1714)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:147)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.wls.JpsWlsStartup.start(JpsWlsStartup.java:143)
at oracle.security.jps.JpsStartup.startWithRetry(JpsStartup.java:267)
at oracle.security.jps.JpsStartup.start(JpsStartup.java:232)
at oracle.security.jps.wls.JpsDefaultService.start(JpsDefaultService.java:103)
at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1287)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:333)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:681)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:655)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
policy: reading file:/home/oracle/.java.policy
policy: error parsing file:/home/oracle/.java.policy
policy: java.io.FileNotFoundException: /home/oracle/.java.policy (No such file or directory)
java.io.FileNotFoundException: /home/oracle/.java.policy (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at oracle.security.jps.internal.policystore.compat.PolicyFile.getInputStream(PolicyFile.java:804)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:586)
at oracle.security.jps.internal.policystore.compat.PolicyFile.access$600(PolicyFile.java:266)
at oracle.security.jps.internal.policystore.compat.PolicyFile$2.run(PolicyFile.java:550)
at oracle.security.jps.internal.policystore.compat.PolicyFile$2.run(PolicyFile.java:483)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:483)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:470)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:435)
at oracle.security.jps.internal.policystore.compat.PolicyFile.<init>(PolicyFile.java:306)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:304)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:284)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1729)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1714)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:147)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.wls.JpsWlsStartup.start(JpsWlsStartup.java:143)
at oracle.security.jps.JpsStartup.startWithRetry(JpsStartup.java:267)
at oracle.security.jps.JpsStartup.start(JpsStartup.java:232)
at oracle.security.jps.wls.JpsDefaultService.start(JpsDefaultService.java:103)
at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1287)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:333)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:681)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:655)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
<Mar 8, 2020 8:11:42,789 PM GMT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

There are 1 nested errors:

oracle.security.jps.JpsException: java.lang.NullPointerException
at oracle.security.jps.wls.JpsWlsStartup.start(JpsWlsStartup.java:168)
at oracle.security.jps.JpsStartup.startWithRetry(JpsStartup.java:267)
at oracle.security.jps.JpsStartup.start(JpsStartup.java:232)
at oracle.security.jps.wls.JpsDefaultService.start(JpsDefaultService.java:103)
at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1287)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:333)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:681)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:655)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
Caused by: java.lang.NullPointerException
at oracle.security.jps.internal.policystore.compat.PolicyParser.parseExtDirs(PolicyParser.java:657)
at oracle.security.jps.internal.policystore.compat.PolicyFile$3.run(PolicyFile.java:676)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initStaticPolicy(PolicyFile.java:622)
at oracle.security.jps.internal.policystore.compat.PolicyFile.initPolicyFile(PolicyFile.java:475)
at oracle.security.jps.internal.policystore.compat.PolicyFile.init(PolicyFile.java:435)
at oracle.security.jps.internal.policystore.compat.PolicyFile.<init>(PolicyFile.java:306)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:304)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:284)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1729)
at oracle.security.jps.internal.common.util.JpsCommonUtil.initPolicyProvider(JpsCommonUtil.java:1714)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:147)
at oracle.security.jps.wls.JpsWlsStartup$1.run(JpsWlsStartup.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.wls.JpsWlsStartup.start(JpsWlsStartup.java:143)
... 26 more

>
<Mar 8, 2020 8:11:42,900 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
<Mar 8, 2020 8:11:42,900 PM GMT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
<Mar 8, 2020 8:11:42,907 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
<Mar 8, 2020 8:11:42,914 PM GMT> <Info> <WebLogicServer> <BEA-000236> <Stopping execute threads.>
<Mar 8, 2020 8:11:42,915 PM GMT> <Info> <WebLogicServer> <BEA-000238> <Shutdown has completed.>

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.