You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[EDIT :] This issue got resolved once I reverted to the tagged example -8.0.0 version . Thanks
I recently started using Cloudsimplus for my Masters Thesis project. I am learning the basics with the examples already provided .
When i try to run the 'LoggingExample.java' ,from cloudsimplus-examples, i end up in an error like this
Exception in thread "main" java.lang.UnsupportedOperationException at java.base/java.util.ImmutableCollections.uoe(ImmutableCollections.java:142) at java.base/java.util.ImmutableCollections$AbstractImmutableList.sort(ImmutableCollections.java:261) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.sortByCpuUtilization(VmAllocationPolicyMigrationAbstract.java:483) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.getNewVmPlacementFromUnderloadedHost(VmAllocationPolicyMigrationAbstract.java:459) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.updateMigrationMapFromUnderloadedHosts(VmAllocationPolicyMigrationAbstract.java:214) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.getOptimizedAllocationMap(VmAllocationPolicyMigrationAbstract.java:132) at org.cloudsimplus.datacenters.DatacenterSimple.checkIfVmMigrationsAreNeeded(DatacenterSimple.java:816) at org.cloudsimplus.datacenters.DatacenterSimple.updateCloudletProcessing(DatacenterSimple.java:793) at org.cloudsimplus.datacenters.DatacenterSimple.processVmEvents(DatacenterSimple.java:337) at org.cloudsimplus.datacenters.DatacenterSimple.processEvent(DatacenterSimple.java:243) at org.cloudsimplus.core.CloudSimEntity.run(CloudSimEntity.java:321) at org.cloudsimplus.core.CloudSim.executeRunnableEntities(CloudSim.java:493) at org.cloudsimplus.core.CloudSim.runClockTickAndProcessFutureEvents(CloudSim.java:416) at org.cloudsimplus.core.CloudSim.processEvents(CloudSim.java:242) at org.cloudsimplus.core.CloudSim.start(CloudSim.java:213) at org.cloudsimplus.core.CloudSimPlus.start(CloudSimPlus.java:38) at org.cloudsimplus.examples.LoggingExample.<init>(LoggingExample.java:121) at org.cloudsimplus.examples.LoggingExample.main(LoggingExample.java:93)
As a Java newbie ,I understand this occurs when trying to sort the immutable list . Since no one mentioned in discussion here yet , want to know if this is related to some setting on my end any fix already available for this .
The java version in my win11 pc is : java version "17" 2021-09-14 LTS Java(TM) SE Runtime Environment (build 17+35-LTS-2724) Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
Any pointers on this would be very helpful
Also when opening the cloudsimplus in eclispse , I get a big list of error . I am unable to find any settings that will clear them , Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi ,
[EDIT :] This issue got resolved once I reverted to the tagged example -8.0.0 version . Thanks
I recently started using Cloudsimplus for my Masters Thesis project. I am learning the basics with the examples already provided .
When i try to run the 'LoggingExample.java' ,from cloudsimplus-examples, i end up in an error like this
Exception in thread "main" java.lang.UnsupportedOperationException at java.base/java.util.ImmutableCollections.uoe(ImmutableCollections.java:142) at java.base/java.util.ImmutableCollections$AbstractImmutableList.sort(ImmutableCollections.java:261) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.sortByCpuUtilization(VmAllocationPolicyMigrationAbstract.java:483) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.getNewVmPlacementFromUnderloadedHost(VmAllocationPolicyMigrationAbstract.java:459) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.updateMigrationMapFromUnderloadedHosts(VmAllocationPolicyMigrationAbstract.java:214) at org.cloudsimplus.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract.getOptimizedAllocationMap(VmAllocationPolicyMigrationAbstract.java:132) at org.cloudsimplus.datacenters.DatacenterSimple.checkIfVmMigrationsAreNeeded(DatacenterSimple.java:816) at org.cloudsimplus.datacenters.DatacenterSimple.updateCloudletProcessing(DatacenterSimple.java:793) at org.cloudsimplus.datacenters.DatacenterSimple.processVmEvents(DatacenterSimple.java:337) at org.cloudsimplus.datacenters.DatacenterSimple.processEvent(DatacenterSimple.java:243) at org.cloudsimplus.core.CloudSimEntity.run(CloudSimEntity.java:321) at org.cloudsimplus.core.CloudSim.executeRunnableEntities(CloudSim.java:493) at org.cloudsimplus.core.CloudSim.runClockTickAndProcessFutureEvents(CloudSim.java:416) at org.cloudsimplus.core.CloudSim.processEvents(CloudSim.java:242) at org.cloudsimplus.core.CloudSim.start(CloudSim.java:213) at org.cloudsimplus.core.CloudSimPlus.start(CloudSimPlus.java:38) at org.cloudsimplus.examples.LoggingExample.<init>(LoggingExample.java:121) at org.cloudsimplus.examples.LoggingExample.main(LoggingExample.java:93)
As a Java newbie ,I understand this occurs when trying to sort the immutable list . Since no one mentioned in discussion here yet , want to know if this is related to some setting on my end any fix already available for this .
The java version in my win11 pc is :
java version "17" 2021-09-14 LTS Java(TM) SE Runtime Environment (build 17+35-LTS-2724) Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
Any pointers on this would be very helpful
Also when opening the cloudsimplus in eclispse , I get a big list of error . I am unable to find any settings that will clear them , Thanks
Beta Was this translation helpful? Give feedback.
All reactions