[rules-users] PMML - Exception excuting consequence for rule xxx in yyy: java.lang.NullPointerException : using KnowledgeAgent

smilk sunghee.bae at meritz.co.kr
Wed Jul 17 20:42:59 EDT 2013


rule " Create tree RPart_Model"
when
    ModelMarker( "RPart_Model" ; enabled == true )
then
	System.out.println("Create tree RPart_Model");

    TreeNode node;
    java.util.Map count;
    java.util.Map confs;

    
        count = new java.util.HashMap();
             count.put( "N", 68206.0 );  count.put( "Y", 4969.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.932094294499488 );  confs.put( "Y",
0.0679057055005125 ); 

        node = new TreeNode( "RPart_Model",
                             "1",
                             "null",
                             java.util.Arrays.asList(  "2" , "3"  ),
                             "N",
                             73175,
                             count,
                             confs,
                             "2"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 3051.0 );  count.put( "Y", 4547.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.401553040273756 );  confs.put( "Y",
0.598446959726244 ); 

        node = new TreeNode( "RPart_Model",
                             "3",
                             "1",
                             java.util.Arrays.asList(  "6" , "7"  ),
                             "Y",
                             7598,
                             count,
                             confs,
                             "6"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 29.0 );  count.put( "Y", 3441.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.00835734870317003 );  confs.put( "Y",
0.99164265129683 ); 

        node = new TreeNode( "RPart_Model",
                             "7",
                             "3",
                             java.util.Arrays.asList(  ),
                             "Y",
                             3470,
                             count,
                             confs,
                             "null"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 3022.0 );  count.put( "Y", 1106.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.732073643410853 );  confs.put( "Y",
0.267926356589147 ); 

        node = new TreeNode( "RPart_Model",
                             "6",
                             "3",
                             java.util.Arrays.asList(  "12" , "13"  ),
                             "N",
                             4128,
                             count,
                             confs,
                             "12"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 1380.0 );  count.put( "Y", 793.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.635066728025771 );  confs.put( "Y",
0.364933271974229 ); 

        node = new TreeNode( "RPart_Model",
                             "13",
                             "6",
                             java.util.Arrays.asList(  "26" , "27"  ),
                             "N",
                             2173,
                             count,
                             confs,
                             "26"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 22.0 );  count.put( "Y", 76.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.224489795918367 );  confs.put( "Y",
0.775510204081633 ); 

        node = new TreeNode( "RPart_Model",
                             "27",
                             "13",
                             java.util.Arrays.asList(  ),
                             "Y",
                             98,
                             count,
                             confs,
                             "null"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 1358.0 );  count.put( "Y", 717.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.654457831325301 );  confs.put( "Y",
0.345542168674699 ); 

        node = new TreeNode( "RPart_Model",
                             "26",
                             "13",
                             java.util.Arrays.asList(  "52" , "53"  ),
                             "N",
                             2075,
                             count,
                             confs,
                             "52"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 940.0 );  count.put( "Y", 605.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.608414239482201 );  confs.put( "Y",
0.391585760517799 ); 

        node = new TreeNode( "RPart_Model",
                             "53",
                             "26",
                             java.util.Arrays.asList(  "106" , "107"  ),
                             "N",
                             1545,
                             count,
                             confs,
                             "106"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 231.0 );  count.put( "Y", 256.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.474332648870637 );  confs.put( "Y",
0.525667351129363 ); 

        node = new TreeNode( "RPart_Model",
                             "107",
                             "53",
                             java.util.Arrays.asList(  "214" , "215"  ),
                             "Y",
                             487,
                             count,
                             confs,
                             "214"
                             );
        insertLogical( node );
    
        count = new java.util.HashMap();
             count.put( "N", 138.0 );  count.put( "Y", 190.0 ); 
        confs = new java.util.HashMap();
             confs.put( "N", 0.420731707317073 );  confs.put( "Y",
0.579268292682927 ); 

        node = new TreeNode( "RPart_Model",
                             "215",
                             "107",
                             java.util.Arrays.asList(  ),
                             "Y",
                             328,
                             count,
                             confs,
                             "null"
                             );
        insertLogical( node );



--
View this message in context: http://drools.46999.n3.nabble.com/PMML-Exception-excuting-consequence-for-rule-xxx-in-yyy-java-lang-NullPointerException-using-Knowledt-tp4024963p4025000.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list