Shubham Sah

NdAssertionException: Assertion failed

Discussion created by Shubham Sah on Mar 20, 2012
Latest reply on Mar 29, 2012 by harsha Kolla

 

I am using Blaze 7.0 with a Java OM. Here is the scenaio..

 

 

Parent Abstract Class: AccountData

SubClass: ConsumerAccountData

 

I am trying to initizalize the object so that I can use it in my testing. Here is my code.

 

 

{accountData =  a ConsumerAccountData initially { 
  currentScore = 999.
}.

 

 

 

It work for the first time. When I run it the second time, I get the following error

 

 

java.lang.NullPointerException
 at com.blazesoft.engines.rules.NdEvaluationException.WjHXHlA(:177)
 at com.blazesoft.engines.rules.NdEvaluationException.WjHXHmB(:216)
 at com.blazesoft.engines.rules.NdEvaluationException.WjHHdQP(:108)
 at com.blazesoft.engines.rules.NdEvaluationException.<init>(:131)
 at com.blazesoft.engines.rules.NdEvaluationException.WjHHdQQ(:296)
 at com.blazesoft.engines.rules.NdEvaluationException.WjHHdQR(:311)
 at com.blazesoft.engines.rules.NdEvaluationContext.evaluationException(:795)
 at com.blazesoft.engines.rules.NdEvaluationContext.WjHFaNM(:822)
 at com.blazesoft.engines.rules.NdObject.WjHBKMM(:5128)
 at com.blazesoft.engines.rules.NdObject.WjHBKUU(:5265)
 at com.blazesoft.engines.rules.NdObject.WjHBKXX(:5321)
 at com.blazesoft.engines.rules.NdEvaluationContext.WjHHQEV(:300)
 at com.blazesoft.engines.rules.NdEvaluationContext.WjHLPgB(:330)
 at com.blazesoft.engines.rules.NdEvaluationContext.free(:365)
 at com.blazesoft.engines.rules.NdScriptContext.WjHJsdG(:2829)
 at com.blazesoft.engines.rules.NdScriptContext.WjHCLrW(:2784)
 at com.blazesoft.engines.rules.NdScriptContext.reset(:2987)
 at com.blazesoft.engines.rules.NdScriptContext.initInternal(:2703)
 at com.blazesoft.engines.rules.NdScriptContext.initialize(:2676)
 at com.blazesoft.engines.rules.NdRuleAgent.initialize(:5866)
 at com.blazesoft.proxy.rules.local.NdRuleAgentDevProxyLocalBase.initialize(:281)
 at com.blazesoft.devtools.rules.NdDevSessionManager$WjHDqbE.run(:1786)
 at java.lang.Thread.run(Unknown Source)

 

 

Thereafter I get the following error..

 

com.blazesoft.util.NdAssertionException: Assertion failed.
 at com.blazesoft.util.NdBaseObject.advAssert(:188)
 at com.blazesoft.engines.rules.NdObject.WjHBKzO(:2054)
 at com.blazesoft.engines.rules.NdObject.WjHBKXX(:5327)
 at com.blazesoft.engines.rules.NdEvaluationContext.WjHHQEV(:300)
 at com.blazesoft.engines.rules.NdEvaluationContext.WjHLPgB(:330)
 at com.blazesoft.engines.rules.NdEvaluationContext.free(:365)
 at com.blazesoft.engines.rules.NdScriptContext.WjHJsdG(:2829)
 at com.blazesoft.engines.rules.NdScriptContext.WjHCLrW(:2784)
 at com.blazesoft.engines.rules.NdScriptContext.reset(:2987)
 at com.blazesoft.engines.rules.NdScriptContext.initInternal(:2703)
 at com.blazesoft.engines.rules.NdScriptContext.initialize(:2676)
 at com.blazesoft.engines.rules.NdRuleAgent.initialize(:5866)
 at com.blazesoft.proxy.rules.local.NdRuleAgentDevProxyLocalBase.initialize(:281)
 at com.blazesoft.devtools.rules.NdDevSessionManager$WjHDqbE.run(:1786)
 at java.lang.Thread.run(Unknown Source)

 

 

 

This cycle repeats.. If I re-compile and run, it runs for the first time and then again throws errors.

 

Kindly advise.

 

Shubham

 

Outcomes