build-impl.xml: 930: The following error occurred while executing this line:

0

I'm doing a college project, and every class I put to inherit from the Modelo class, I get those errors.

  

/home/tavz-correia/NetBeansProjects/exercicio01/AccessoriesForVehicles/nbproject/build-impl.xml:930: The following error occurred while executing this line:

     

/home/tavz-correia/NetBeansProjects/exercicio01/AccessoriesForVehicles/nbproject/build-impl.xml:270: Compile failed; see the compiler error output for details.

Class Modelo.java :

package acessoriosveiculos;

import java.io.FileReader;
import java.util.List;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;

/**
 *
 * @author tavz-correia
 */
public class Modelo {

         private List<String> modelos;

    public Modelo() throws Exception{

        List<String> lista = ler("/home/tavz-correia/NetBeansProjects/exercicio01/AcessoriosVeiculos/src/acessoriosveiculos/ObjetosSerializados/Modelos.ser");
        this.setModelos(lista);
    }

    public List<String> getModelos() {
        return modelos;
    }

    public void setModelos(List<String> modelo) {
        this.modelos = modelo;
    }

    @SuppressWarnings("unchecked")
    public List<String> ler(String caminho) throws Exception {

        JSONParser parser = new JSONParser();
        FileReader arquivo = new FileReader("/home/tavz-correia/NetBeansProjects/exercicio01/AcessoriosVeiculos/src/acessoriosveiculos/ObjetosSerializados/Modelos.json");
        JSONObject jsonObject = (JSONObject) parser.parse(arquivo);
        List<String> lista = (List<String>) jsonObject.get("modelos");

        return lista;
    }
}

Could anyone help me?

    
asked by anonymous 08.01.2017 / 06:22

1 answer

1

[This is where I began to write as a comment, but I saw that it might serve as an answer.]

I have seen Netbeans give strange bugs when it corrupts its cache. Netbeans maintains a cache of files so it can track and undo changes, and index content of files more easily. However, from time to time there is something mysteriously going on in the cache and then leaving the Netbeans crazy. Sometimes he ends up getting back to normal on his own, in as mysterious a way as he did, but he does not go back to normal at times.

On my machine, this cache is located in hidden subfolders of system C:\Users\<nome-do-usuário>\AppData\Roaming\NetBeans.1\var and C:\Users\<nome-do-usuário>\AppData\Local\NetBeans\Cache.1\ . Sometimes, I have to close Netbeans, clean / delete those folders, open Netbeans again, and reconfigure it so that it returns to normal.

In your case, since you're using Linux, the cache will probably be somewhere within /home/etc , I think.

    
08.01.2017 / 06:40