javaswingoutline-view

java.lang.AssertionError while running swing outline view using Java web start


I have implemented the Outline view for my JTable Tree view mentioned here and here. The implementation is successfully running in eclipse workspace but when I ran the application using Java Web Start. I faced the following issue.

 java.lang.AssertionError: Do resetting of permutation only in AWT queue!
    at org.netbeans.swing.etable.ETable.resetPermutation(ETable.java:1380)
    at org.netbeans.swing.etable.ETable.tableChanged(ETable.java:1268)
    at org.netbeans.swing.outline.Outline.tableChanged(Outline.java:943)
    at javax.swing.JTable.setModel(JTable.java:3698)
    at org.netbeans.swing.etable.ETable.setModel(ETable.java:861)
    at org.netbeans.swing.outline.Outline.setModel(Outline.java:636)
    at javax.swing.JTable.<init>(JTable.java:644)
    at javax.swing.JTable.<init>(JTable.java:572)
    at org.netbeans.swing.etable.ETable.<init>(ETable.java:287)
    at org.netbeans.swing.outline.Outline.<init>(Outline.java:226)

Could you please advice me what could be the reason behind it.


Solution

  • The issue has been resolved by disabling the assertion from the java web start. Modification in JNLP files are

    added java-vm-args="-da" in the jnlp file as

    <java  href="http://java.sun.com/products/autodl/j2se" version="1.7+"  java-vm-args="-da" initial-heap-size="128m" max-heap-size="512m" />
    

    Thanks @vishal_aim for the hints