+ JAVA_HOME=/usr/lib/jvm/java-11-openjdk/ + KEYSTORE=/opt/app/osaaf/local/org.onap.policy.p12 + TRUSTSTORE=/opt/app/policy/pap/etc/ssl/policy-truststore + KEYSTORE_PASSWD=Pol1cy_0nap + TRUSTSTORE_PASSWD=Pol1cy_0nap + '[' 1 -ge 1 ']' + CONFIG_FILE=/opt/app/policy/pap/etc/mounted/config.json + '[' -z /opt/app/policy/pap/etc/mounted/config.json ']' Policy pap config file: /opt/app/policy/pap/etc/mounted/config.json overriding logback.xml + echo 'Policy pap config file: /opt/app/policy/pap/etc/mounted/config.json' + [[ -f /opt/app/policy/pap/etc/mounted/policy-truststore ]] + [[ -f /opt/app/policy/pap/etc/mounted/policy-keystore ]] + [[ -f /opt/app/policy/pap/etc/mounted/logback.xml ]] + echo 'overriding logback.xml' + cp -f /opt/app/policy/pap/etc/mounted/logback.xml /opt/app/policy/pap/etc/ + /usr/lib/jvm/java-11-openjdk//bin/java -cp '/opt/app/policy/pap/etc:/opt/app/policy/pap/lib/*' -Dlogback.configurationFile=/opt/app/policy/pap/etc/logback.xml -Djavax.net.ssl.keyStore=/opt/app/osaaf/local/org.onap.policy.p12 -Djavax.net.ssl.keyStorePassword=Pol1cy_0nap -Djavax.net.ssl.trustStore=/opt/app/policy/pap/etc/ssl/policy-truststore -Djavax.net.ssl.trustStorePassword=Pol1cy_0nap org.onap.policy.pap.main.startstop.Main -c /opt/app/policy/pap/etc/mounted/config.json 03:16:07.625 [main] INFO o.o.policy.pap.main.startstop.Main - Starting policy pap service with arguments - [-c, /opt/app/policy/pap/etc/mounted/config.json] [EL Info]: 2021-04-20 03:16:09.452--ServerSession(1552400354)--EclipseLink, version: Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158 [EL Info]: connection: 2021-04-20 03:16:09.831--ServerSession(1552400354)--/file:/opt/app/policy/pap/lib/pap-main-2.3.3.jar_PolicyMariaDb_url=jdbc:mariadb://policy-mariadb:3306/policyadmin_user=policy_user login successful [EL Warning]: 2021-04-20 03:16:10.182--ServerSession(1552400354)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: (conn=1499) Can't create table `policyadmin`.`#sql-1_5db` (errno: 121 "Duplicate key on write or update") Error Code: 1005 Call: ALTER TABLE ToscaTopologyTemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES ToscaPolicies (name, version) Query: DataModifyQuery(sql="ALTER TABLE ToscaTopologyTemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES ToscaPolicies (name, version)") [EL Warning]: 2021-04-20 03:16:10.214--ServerSession(1552400354)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: (conn=1499) Can't create table `policyadmin`.`#sql-1_5db` (errno: 121 "Duplicate key on write or update") Error Code: 1005 Call: ALTER TABLE ToscaServiceTemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES ToscaDataTypes (name, version) Query: DataModifyQuery(sql="ALTER TABLE ToscaServiceTemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES ToscaDataTypes (name, version)") [EL Info]: connection: 2021-04-20 03:16:10.466--ServerSession(1552400354)--/file:/opt/app/policy/pap/lib/pap-main-2.3.3.jar_PolicyMariaDb_url=jdbc:mariadb://policy-mariadb:3306/policyadmin_user=policy_user logout successful 03:16:11.922 [main] INFO o.o.p.c.e.e.c.b.i.SingleThreadedDmaapTopicSource - SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=e592d99a-90b6-42df-8362-faad04ace890, consumerInstance=onap-policy-pap-5584f45d77-fhs86, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=true, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED 03:16:12.143 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting 03:16:12.143 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PAP parameters 03:16:12.144 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting DAO Factory 03:16:12.145 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting DAO Factory registration 03:16:12.145 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting Pdp Heartbeat Listener 03:16:12.145 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting Request ID Dispatcher 03:16:12.145 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting Message Dispatcher 03:16:12.220 [main] INFO o.o.p.c.e.e.c.bus.internal.TopicBase - SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=e592d99a-90b6-42df-8362-faad04ace890, consumerInstance=onap-policy-pap-5584f45d77-fhs86, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=true, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: registering org.onap.policy.common.endpoints.listeners.MessageTypeDispatcher@52a70627 03:16:12.220 [main] INFO o.o.p.c.e.e.c.b.i.SingleThreadedBusTopicSource - SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=e592d99a-90b6-42df-8362-faad04ace890, consumerInstance=onap-policy-pap-5584f45d77-fhs86, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=true, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: starting 03:16:12.222 [main] INFO o.o.p.c.e.e.c.b.i.SingleThreadedDmaapTopicSource - SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=e592d99a-90b6-42df-8362-faad04ace890, consumerInstance=onap-policy-pap-5584f45d77-fhs86, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=true, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: INITTED 03:16:12.230 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting topics 03:16:12.230 [main] INFO o.o.p.c.e.e.c.b.i.SingleThreadedBusTopicSource - SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=e592d99a-90b6-42df-8362-faad04ace890, consumerInstance=onap-policy-pap-5584f45d77-fhs86, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=true, locked=false, uebThread=Thread[DMAAP-source-POLICY-PDP-PAP,5,main], topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=true, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: starting 03:16:12.233 [DMAAP-source-POLICY-PDP-PAP] INFO c.a.n.c.c.impl.CambriaConsumerImpl - UEB GET /events/POLICY-PDP-PAP/e592d99a-90b6-42df-8362-faad04ace890/onap-policy-pap-5584f45d77-fhs86?timeout=15000 03:16:12.240 [DMAAP-source-POLICY-PDP-PAP] INFO c.att.nsa.apiClient.http.HttpClient - GET https://message-router:3905/events/POLICY-PDP-PAP/e592d99a-90b6-42df-8362-faad04ace890/onap-policy-pap-5584f45d77-fhs86?timeout=15000 (anonymous) ... 03:16:12.230 [main] INFO o.o.p.c.e.e.c.b.i.InlineBusTopicSink - InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=ff586b6c-a7ce-4bc6-9a36-e1472529a4c2, alive=false, publisher=null]]: starting 03:16:12.318 [main] INFO o.o.p.c.e.e.c.b.i.InlineDmaapTopicSink - InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=ff586b6c-a7ce-4bc6-9a36-e1472529a4c2, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created 03:16:12.319 [main] INFO o.o.p.c.e.e.c.b.i.InlineBusTopicSink - InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=34b2b29c-5c3e-402c-8859-d536b2f95bc5, alive=false, publisher=null]]: starting 03:16:12.321 [main] INFO o.o.p.c.e.e.c.b.i.InlineDmaapTopicSink - InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=34b2b29c-5c3e-402c-8859-d536b2f95bc5, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created 03:16:12.322 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PAP statistics 03:16:12.324 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP publisher 03:16:12.330 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting Policy Notification publisher [EL Info]: 2021-04-20 03:16:12.544--ServerSession(1605834811)--EclipseLink, version: Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158 [EL Info]: connection: 2021-04-20 03:16:12.766--ServerSession(1605834811)--/file:/opt/app/policy/pap/lib/pap-main-2.3.3.jar_PolicyMariaDb_url=jdbc:mariadb://policy-mariadb:3306/policyadmin_user=policy_user login successful [EL Warning]: 2021-04-20 03:16:13.319--ServerSession(1605834811)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: (conn=1502) Can't create table `policyadmin`.`#sql-1_5de` (errno: 121 "Duplicate key on write or update") Error Code: 1005 Call: ALTER TABLE ToscaTopologyTemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES ToscaPolicies (name, version) Query: DataModifyQuery(sql="ALTER TABLE ToscaTopologyTemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES ToscaPolicies (name, version)") [EL Warning]: 2021-04-20 03:16:13.349--ServerSession(1605834811)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: (conn=1502) Can't create table `policyadmin`.`#sql-1_5de` (errno: 121 "Duplicate key on write or update") Error Code: 1005 Call: ALTER TABLE ToscaServiceTemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES ToscaDataTypes (name, version) Query: DataModifyQuery(sql="ALTER TABLE ToscaServiceTemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES ToscaDataTypes (name, version)") [EL Info]: connection: 2021-04-20 03:16:15.358--ServerSession(1605834811)--/file:/opt/app/policy/pap/lib/pap-main-2.3.3.jar_PolicyMariaDb_url=jdbc:mariadb://policy-mariadb:3306/policyadmin_user=policy_user logout successful 03:16:15.358 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting Policy Notifier 03:16:15.358 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP heart beat timers 03:16:15.360 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP update timers 03:16:15.360 [Thread-7] INFO o.o.p.pap.main.comm.TimerManager - timer manager heart beat started 03:16:15.360 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP state-change timers 03:16:15.419 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP modification lock 03:16:15.418 [Thread-8] INFO o.o.p.pap.main.comm.TimerManager - timer manager update started 03:16:15.419 [Thread-9] INFO o.o.p.pap.main.comm.TimerManager - timer manager state-change started 03:16:15.419 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP modification requests 03:16:15.427 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PDP heart beat tracker [EL Info]: 2021-04-20 03:16:15.549--ServerSession(903218049)--EclipseLink, version: Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158 [EL Info]: connection: 2021-04-20 03:16:15.636--ServerSession(903218049)--/file:/opt/app/policy/pap/lib/pap-main-2.3.3.jar_PolicyMariaDb_url=jdbc:mariadb://policy-mariadb:3306/policyadmin_user=policy_user login successful [EL Warning]: 2021-04-20 03:16:15.918--ServerSession(903218049)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: (conn=1505) Can't create table `policyadmin`.`#sql-1_5e1` (errno: 121 "Duplicate key on write or update") Error Code: 1005 Call: ALTER TABLE ToscaTopologyTemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES ToscaPolicies (name, version) Query: DataModifyQuery(sql="ALTER TABLE ToscaTopologyTemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES ToscaPolicies (name, version)") [EL Warning]: 2021-04-20 03:16:15.946--ServerSession(903218049)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.5.v20191016-ea124dd158): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: (conn=1505) Can't create table `policyadmin`.`#sql-1_5e1` (errno: 121 "Duplicate key on write or update") Error Code: 1005 Call: ALTER TABLE ToscaServiceTemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES ToscaDataTypes (name, version) Query: DataModifyQuery(sql="ALTER TABLE ToscaServiceTemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES ToscaDataTypes (name, version)") 03:16:15.982 [main] INFO o.o.p.pap.main.comm.TimerManager - heart beat timer registered Timer [name=onap-policy-apex-pdp-0, expireMs=1618888935982] 03:16:15.990 [main] INFO o.o.p.pap.main.comm.TimerManager - heart beat timer registered Timer [name=onap-policy-drools-pdp-0, expireMs=1618888935990] 03:16:16.020 [main] INFO o.o.p.pap.main.comm.TimerManager - heart beat timer registered Timer [name=onap-policy-xacml-pdp-6d548cb88d-z54pg, expireMs=1618888936020] 03:16:16.020 [Thread-7] INFO o.o.p.pap.main.comm.TimerManager - heart beat timer waiting 359962ms Timer [name=onap-policy-apex-pdp-0, expireMs=1618888935982] [EL Info]: connection: 2021-04-20 03:16:16.021--ServerSession(903218049)--/file:/opt/app/policy/pap/lib/pap-main-2.3.3.jar_PolicyMariaDb_url=jdbc:mariadb://policy-mariadb:3306/policyadmin_user=policy_user logout successful 03:16:16.022 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting PAP client executor 03:16:16.241 [main] INFO o.o.p.c.u.services.ServiceManager - Policy PAP starting REST server 03:16:16.421 [main] INFO org.eclipse.jetty.util.log - Logging initialized @10201ms to org.eclipse.jetty.util.log.Slf4jLog