We're updating the issue view to help you get more done. 

Deployment of pu fail after fixing previous pu jar and allocating on same GSC

Description

reproduction steps:
1. gs-webui.sh
2. gs-agent.sh gsa.gsc 1
3. mvn clean package project dirtydeploy with xap-openspaces as compile dependency
3. in webui, deploy -> processing unit -> upload file.. the pu file is 27MB
4. in webui, undeploy broken pu
5. fixing dirtydeploy project by making xap-openpaces have <scope>provided</scope>
6. mvn clean package project dirtydeploy
7. in webui, deploy -> processing unit -> upload file.. verified the pu is now only 2Kb
8. error to deploy.

See Ester’s comment July 17, 2019, 1:08 AM

If the GSC is restarted before the new deployment we will get the original problem again despite the fact that lib was removed from the jar.

 

gsc log:
2019-07-16 13:16:26,996 GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate dirtydeploy-0.0.1-SNAPSHOT [1]; Caused by: org.jini.rio.core.JSBInstantiationException: java.lang.LinkageError: loader constraint violation: loader (instance of org/jini/rio/boot/ServiceClassLoader) previously initiated loading for a different type with name "com/gigaspaces/metrics/MetricRegistrator"

In the second time we fail on:
2019-07-16 13:18:09,962 dirtydeploy-0.0.1-SNAPSHOT [1] WARNING [org.openspaces.pu.container.servicegrid.PUServiceBeanImpl] - Failed to start processing unit [dirtydeploy-0.0.1-SNAPSHOT]; Caused by: java.lang.IllegalArgumentException: A metric named process_cpu_time-total already exists
2019-07-16 13:18:09,980 GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate dirtydeploy-0.0.1-SNAPSHOT [1]; Caused by: org.jini.rio.core.JSBInstantiationException: java.lang.ClassNotFoundException: org.springframework.core.NestedExceptionUtils

Attached project and logs

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

12515

Fix versions

None

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Premium

Platform

All