Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

ClassNotFoundException for InstanceSLA class is seen intermittently while ProcessingUnitMonitor is being used

We are receiving the following exception mentioned in stacktrace. We are providing the valid SLA.xml in the WAR based PU deployed in to Gigaspace.

[GS-admin-scheduled-executor-thread] internal.admin.DefaultAdmin WARN - Failed to execute: org.openspaces.admin.internal.admin.DefaultAdmin$ScheduledProcessingUnitMonitor$1@d1b22922 - org.openspaces.admin.AdminException: Failed to get sla org.openspaces.admin.AdminException: Failed to get sla at org.openspaces.admin.internal.pu.DefaultProcessingUnit.<init>(DefaultProcessingUnit.java:223) at org.openspaces.admin.internal.admin.DefaultAdmin$ScheduledProcessingUnitMonitor.updateState(DefaultAdmin.java:1886) at org.openspaces.admin.internal.admin.DefaultAdmin$ScheduledProcessingUnitMonitor.access$1100(DefaultAdmin.java:1712) at org.openspaces.admin.internal.admin.DefaultAdmin$ScheduledProcessingUnitMonitor$1.run(DefaultAdmin.java:1812) at org.openspaces.admin.internal.admin.DefaultAdmin$LoggerRunnable.run(DefaultAdmin.java:2138) at org.openspaces.admin.internal.admin.DefaultAdmin.scheduleNonBlockingStateChange(DefaultAdmin.java:804) at org.openspaces.admin.internal.admin.DefaultAdmin$ScheduledProcessingUnitMonitor.run(DefaultAdmin.java:1809) at org.openspaces.admin.internal.admin.DefaultAdmin$LoggerRunnable.run(DefaultAdmin.java:2138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:319) @

Caused by: java.lang.ClassNotFoundException: org.openspaces.pu.sla.InstanceSLA (no security manager: RMI class loader disabled) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:408) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:198) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:648) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:275)

SLA File

<beans beans="" http:="" schema="" spring-beans-4.1.xsd"="" www.springframework.org="" xmlns="http://www.springframework.org/schema/beans" xmlns:os-sla="http://www.openspaces.org/schema/sla" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans &lt;a href=">http://www.springframework.org/schema... http://www.openspaces.org/schema/sla http://www.openspaces.org/schema/10.2...></beans>

<os-sla:sla max-instances-per-machine="1" max-instances-per-vm="1"> <os-sla:requirements> <os-sla:cpu high=".9"/> <os-sla:memory high=".8"/> </os-sla:requirements> <os-sla:instance-slas> <os-sla:instance-sla instance-id="1"> <os-sla:requirements> <os-sla:host ip="mgmtIP"/> </os-sla:requirements> </os-sla:instance-sla> </os-sla:instance-slas> </os-sla:sla>

</beans>

asked 2018-04-06 02:09:52 -0500

Teja gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Hi, Are you using sane gs version in both server and client? Can you please specify the version of both.

Regards Ester

answered 2018-04-08 06:09:06 -0500

Ester gravatar image
edit flag offensive delete link more

Comments

Yes , we are using the same version the client and server reside in the same machine as well and are of the same version GigaSpaces XAP Premium 10.2.0 GA (build 13822)

Thanks Teja

Teja gravatar imageTeja ( 2018-04-11 06:35:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-04-06 02:09:52 -0500

Seen: 88 times

Last updated: Apr 08