Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error #9

Open
fatemehm opened this issue May 3, 2018 · 25 comments
Open

compiling error #9

fatemehm opened this issue May 3, 2018 · 25 comments

Comments

@fatemehm
Copy link

fatemehm commented May 3, 2018

Hey, I am trying to compile and run CloudSimSDN on my machine but I've faced this error:
java:128: error: incompatible types: Collection cannot be converted to Collection<? extends SDNHost>
hg.hosts = new ArrayList((Collection<? extends SDNHost>)topology.getConnectedNodesLow(e));
^
1 error
unfortunately, I couldn't figure out the error. I should run this as soon as possible.

@sandinojardim
Copy link

Hi, @fatemehm

Did you solve this problem?

@fatemehm
Copy link
Author

fatemehm commented Jul 3, 2018

Hi @sandinojardim
Unfortunately, I couldn't run and compile the new version :( if you could figure out the problem, please let me know

@sandinojardim
Copy link

There is a pull request with a bug fix suggestion:

hg.hosts = new ArrayList<SDNHost>((Collection<? extends SDNHost>) (Collection<? extends Node>)topology.getConnectedNodesLow(e));

I replaced that line by the above suggestion and worked for me.

@davidperezabreu
Copy link

davidperezabreu commented Jul 6, 2018

Hi there!

@sandinojardim is right! The problem is related with the casting! That kind of casting using the wildcard operator could be a little tricky. You also can use something like this:

hg.hosts = new ArrayList<SDNHost>((Collection<? extends SDNHost>)(Collection<?>)topology.getConnectedNodesLow(e));

Cheers,

@fatemehm
Copy link
Author

fatemehm commented Jul 6, 2018

@sandinojardim thanks you very much, let me check this :) I hope it works for me too.

@fatemehm
Copy link
Author

fatemehm commented Jul 6, 2018

@davidperezabreu Thanks, actually I'm new in CloudsimSDN and java programming. I need to extend this framework in order to support NFV ( Network function virtualization) and SFCs ( service function chaining) but I don't know exactly which of the packages I have to extend.

@anyanteh
Copy link

hello i'm trying to setup the cloudsimsdn v.2 but i appears this method "getCloudletFailedList()" is not available in the package org.cloudbus.cloudsim.sdn

@anyanteh
Copy link

can i have help with to fix this problem please

@anyanteh
Copy link

is there another version of the cloudsim 3.0.3 jar file please that implements "getCloudletFailedList()"??

@fatemehm
Copy link
Author

Hi @anyanteh
I've faced the same problem. could you figure out the problem? you can find cloudsim4.0 in this link : https://github.com/Cloudslab/cloudsim/releases/tag/cloudsim-4.0

@fatemehm
Copy link
Author

@anyanteh
It works with "cloudsim-4.0.jar" . You have to put this Jar file in the Jar folder.

@anyanteh
Copy link

thanks for your feedback,just tried it but its still doesn't work.Is there any particular thing u did aside setting up cloudsim v.4 cloudsim sdn v.2 and adding the maven dependencies, please??

@fatemehm
Copy link
Author

@anyanteh try to compile all of the folders one by one. actually, I could not run the example, because of some problem in the vmallocation folder, I altered "getFreeMips().add(host.getTotalMips());" (line 65 in the VmAllocationPolicyCombinedMostFullFirst.java) to "getFreeMips().add((long)host.getTotalMips());" .
Then try to run with this ( in Linux) : java -cp jars/*:. org/cloudbus/cloudsim/sdn/example/SimpleExample LFF dataset-energy/energy-physical.json dataset-energy/energy-virtual.json dataset-energy/energy-workload.csv > results.out

@anyanteh
Copy link

@ fatemehm, thank u so much for your help.

You were right. I reproduced the compile error with 3.0.3.
When I brought in 4.0, the compile issue went away.
This is bad ... to deliver a code repository containing an incorrect version number in the pom.xml file. I just did not want to believe it.

@anyanteh
Copy link

@fatemehm
regarding the example, i think the project (CLoudsimSDN v.2.0) was updated on 14th of February and a these files might be available for use.
you might want to give that shot
Cheers

@fatemehm
Copy link
Author

fatemehm commented Apr 6, 2019

@anyanteh
Hi, could you run the StartExperimentSFCEdge and StartExperimentSFC?

@anyanteh
Copy link

anyanteh commented Apr 8, 2019

hey, I remember it run when i first set it up.but its seems not to be run at the moment. Let me look it up and get back to you. Cheers

@hetianzhang
Copy link
Contributor

Hi @fatemehm and @anyanteh,

I recently have time to look at the code and fixed the bugs appeared in the example of StartExperimentSFCEdge and StartExperimentSFC, which is caused by the bugs in CloudSim 4.0.
It is because the createDataCenter called in SDNDataCenter for creating the inter-cloud networking physical topology is failed as there are no physical hosts defined with available Pes.

Please download the CloudSim4.0 again to use the newest one.
Cheers.

@anyanteh
Copy link

@hetianzhang
thanks for the update, tried it last night with both the cloudsim 4.0 and the CloudsimSDN 2.0 for had no luck.followed all the steps you put in the updated readme file as well.Do let me know if there's another way of doing it.
cheers

@hetianzhang
Copy link
Contributor

@anyanteh
I followed the tutorial and everything works well. Just download the cloudsim-4.0.zip and source code from the release https://github.com/Cloudslab/cloudsimsdn/releases/tag/v2.0.1-beta and put the cloudsim-4.0.jar in the project directory and run "mvn clean install".

@anyanteh
Copy link

@hetianzhang
having a look right away

@anyanteh
Copy link

@hetianzhang
can you please help with some explanation to these questions please

  1. the workloads and how the derived; how they used in the simulations
  2. interpretation of the simulations results and the breakdown in the summary console
  3. SDN Datacenter, SDNHost, and their configuration in the setup
  4. Overbooking the Host resources configurations and a few other issues

@anyanteh
Copy link

has anyone tried to use ANN on cloudsimSDN-NFV?? your advice will be gladly appreciated .. Thank you

@CanVel00
Copy link

I also wanna use this , if you have please help me

@CanVel00
Copy link

@anyanteh I followed the tutorial and everything works well. Just download the cloudsim-4.0.zip and source code from the release https://github.com/Cloudslab/cloudsimsdn/releases/tag/v2.0.1-beta and put the cloudsim-4.0.jar in the project directory and run "mvn clean install".

I am trying to install the cloudsimsdn but it is troubleshooting ,please guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants