I try this simple code wich works in rapidminer5 and java 6, and also works with rapidminer studio ans java7. The problem is with java 8, it dispalys an error that the asked repository dosen't exist!!
public void LoadDataProcess(String Data, ArrayList <Data> DataArray, ArrayList<String> Labels, ArrayList<String> AttributIndex)throws MalformedRepositoryLocationException{
try {
// loads the process from the repository
RepositoryLocation loc = new RepositoryLocation("//Repository/MyData/"+ Data);
IOObjectEntry entry = (IOObjectEntry) loc.locateEntry();
IOObject myIOObject= entry.retrieveData(null);
IOContainer ioInput = new IOContainer(new IOObject[] {myIOObject});
ExampleSet resultSet = ioInput.get(ExampleSet.class);
//Recuperatr attributs
}
The error is:
com.rapidminer.repository.RepositoryException: Requested repository Repository does not exist.
at com.rapidminer.repository.RepositoryManager.getRepository(RepositoryManager.java:192)
at com.rapidminer.repository.RepositoryLocation.getRepository(RepositoryLocation.java:161)
at com.rapidminer.repository.RepositoryLocation.locateEntry(RepositoryLocation.java:187)
What is the proble with java 8, I must work with java 8 and rapidminer, any help please ?!!
Thank you.
Aucun commentaire:
Enregistrer un commentaire