abharana jayadev

Assertion failed error while using JAVA BOM

Discussion created by abharana jayadev on Sep 10, 2009
Latest reply on Sep 15, 2009 by rajitha godthi

Hi,

 

  I am getting the following error while using the Java BOM in blaze.

 

com.blazesoft.util.NdAssertionException: Assertion failed.

 

I am using the following java program NewCustomer.java

 

import java.io.Serializable;

public class NewCustomer implements Serializable{
 
 public NewCustomer(){
 }

 private String CustomerName;
 private int CustomerExperienceNumber;
 private int Discount;
 
 public String getCustomerName() {
  return CustomerName;
 }
 public void setCustomerName(String customerName) {
  CustomerName = customerName;
 }
 public int getCustomerExperienceNumber() {
  return CustomerExperienceNumber;
 }
 public void setCustomerExperienceNumber(int customerExperienceNumber) {
  CustomerExperienceNumber = customerExperienceNumber;
 }
 public int getDiscount() {
  return Discount;
 }
 public void setDiscount(int discount) {
  Discount = discount;
 }
 
 
}

 

The same rule is working fine when i use a Advisor object with CustomerName, CustomerExperienceNumber, Discount as variables.

 

Can someone please help me resolve this issue?

 

the error is as shown below.

 

Exception logged on Thu Sep 10 11:06:37 IST 2009:
com.blazesoft.util.NdAssertionException: Assertion failed.
 at com.blazesoft.util.NdBaseObject.advAssert(:187)
 at com.blazesoft.devtools.rules.NdDevResourceLookupTable.WjItwGY(:72)
 at com.blazesoft.devtools.rules.NdDevResource.WjIMaBQ(:808)
 at com.blazesoft.devtools.rules.NdDevResource.insertResourceAt(:875)
 at com.blazesoft.devtools.rules.NdDevResource.addResource(:884)
 at com.blazesoft.devtools.rules.NdDevExternalBomResource$WjJJPFU.WjIrHdT(:121)
 at com.blazesoft.template.repository.objects.bom.NdPromBomSupport$WjIBuDI.WjIrGRQ(:586)
 at com.blazesoft.devtools.rules.WjIbsuQ.WjJXSoF(:262)
 at com.blazesoft.devtools.rules.WjIbsuQ.access$000(:38)
 at com.blazesoft.devtools.rules.WjIbsuQ$1.invoke(:150)
 at com.blazesoft.repository.security.java.NdJava2InvocationContext.WjIzXwM(:77)
 at com.blazesoft.devtools.rules.WjIbsuQ.WjJsbNF(:147)
 at com.blazesoft.devtools.rules.WjIbsuQ.WjItqMO(:135)
 at com.blazesoft.devtools.rules.WjIbsuQ.WjIbsnJ(:130)
 at com.blazesoft.devtools.rules.WjIbwpR$WjIbnHO.executeCommand(:207)
 at com.blazesoft.devtools.rules.WjIbBDB$3.run(:653)
 at com.blazesoft.objects.dotnet.WjHBfLT.WjHBeWL(:24)
 at com.blazesoft.devtools.rules.WjIbBDB.WjILZBD(:651)
 at com.blazesoft.devtools.rules.WjIbBDB.executeCommand(:639)
 at com.blazesoft.devtools.commands.WjHEaHZ.WjIuEuW(:188)
 at com.blazesoft.devtools.commands.WjHEaHZ.execute(:208)
 at com.blazesoft.devtools.commands.WjHEkRN.execute(:268)
 at com.blazesoft.devtools.commands.WjHCcwV.execute(:131)
 at com.blazesoft.devtools.commands.WjHDLsV.actionPerformed(:81)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
 at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
 at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
 at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
 at java.awt.Component.processMouseEvent(Component.java:5488)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
 at java.awt.Component.processEvent(Component.java:5253)
 at java.awt.Container.processEvent(Container.java:1966)
 at java.awt.Component.dispatchEventImpl(Component.java:3955)
 at java.awt.Container.dispatchEventImpl(Container.java:2024)
 at java.awt.Component.dispatchEvent(Component.java:3803)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
 at java.awt.Container.dispatchEventImpl(Container.java:2010)
 at java.awt.Component.dispatchEvent(Component.java:3803)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

 

Thanks & Regards

Abharana

Outcomes