Note that there are some explanatory texts on larger screens.

plurals
  1. POorg.openntf.domino api Stackoverflow error
    primarykey
    data
    text
    <p>I'm working with the <code>org.openntf.domino</code> API in a personal XPage project and I'm running into an issue which I don't seem to get resolved myself. I have the following code:</p> <pre><code>public class SeasonService implements Serializable { private Vector&lt;?&gt; seasons = new Vector(); public Vector&lt;Season&gt; getSeasons(){ System.out.println("Retrieve all season entries"); Database db = DominoUtil.getCurrentDatabase(); View vw = db.getView(".AllDocuments"); ViewEntryCollection coll = vw.getAllEntriesByKey("Season"); Iterator&lt;ViewEntry&gt; it = coll.iterator(); Vector&lt;Season&gt; l = new Vector(); while(it.hasNext()){ ViewEntry entry = it.next(); l.add(fromEntry(entry)); } return l; } private static final Season fromEntry(ViewEntry entry){ ViewEntryEx vex = new ViewEntryEx(entry); System.out.println("Retrieve season from entry"); //try { Season s = new Season(); s.setDescription("Test"); s.setKey("0000"); //s.setDescription((String) vex.getColumnValue("Description")); //s.setKey((String) vex.getColumnValue("Key")); return s; //} catch (ColumnNameNotFoundException e) { // TODO Auto-generated catch block // e.printStackTrace(); //} //return null; } } </code></pre> <p>The domino Util class looks like this: </p> <pre><code>public static final Database getCurrentDatabase(){ Session s = Factory.fromLotus(ExtLibUtil.getCurrentSession(), org.openntf.domino.Session.class, null); return s.getCurrentDatabase(); } </code></pre> <p>For some reason as soon as I try to initiate the View object the code returns with an Stackoverflow error. Anyone has a clue on what would be the cause? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload