Caused by: java.lang.VerifyError: Bad type on operand stack

3

I have an error running the play framework, I get the following error:

The error is the class:

/**
 * Método que extrae todas las palabras clave de los nodos que conforman el diagrama
 * @return HashMap Estructura con los listados de palabras clava de cada nodo
 */
private HashMap<Integer,List<KeyWord>> getNodeKeyWords(){

    HashMap<Integer,List<KeyWord>> nodeKeys = new HashMap<Integer,List<KeyWord>>() ;
    List<KeyWord> keys = new ArrayList<KeyWord>() ;

    for( Regla r : reglas ){

        if( r.estado == 0 ) continue ;
        r.fillNodes() ;
        keys = new ArrayList<KeyWord>() ;
        if( r.nodosi.keyWords != null ) for( KeyWord k : r.nodosi.keyWords ) keys.add( k ) ;
        nodeKeys.put( r.nodosi.idnodo ,  keys ) ;
        keys = new ArrayList<KeyWord>() ;
        if( r.nodoentonces.keyWords != null ) for( KeyWord k : r.nodoentonces.keyWords ) keys.add( k ) ;
        nodeKeys.put( r.nodoentonces.idnodo ,  keys ) ;
    }
    return nodeKeys ;
}
    
asked by Nyro22 18.10.2016 в 23:28
source

1 answer

1

I see you are giving very little information. Could the error be in the fillNodes() method?

I suspect that maybe the problem is in the nodes since it does not do any checking, and I do not know if it is necessary because we know very little about your classes.

I recommend that you broaden your problem and above all that you make your code more readable, no matter how many times it takes up three lines of code, what really matters is that it can be read and understood as easily as possible.

I would have preferred to put it as a comment to your question but my reputation has not yet arrived; (

    
answered by 22.10.2016 в 11:12