KeoBox,  <br><br>Can i look at the jython file you are executing? the ClassFormatException is not with the size of the dictionary.  Jython is failing on an import.  <br><br>thanks,<br clear="all">--------------------------------------------------------------<br>
Allan Davis<br>Member of NetBeans Dream Team<br><a href="http://wiki.netbeans.org/NetBeansDreamTeam">http://wiki.netbeans.org/NetBeansDreamTeam</a><br>Lead Developer, nbPython<br><a href="http://wiki.netbeans.org/Python">http://wiki.netbeans.org/Python</a><br>
<a href="http://codesnakes.blogspot.com">http://codesnakes.blogspot.com</a> (my blog)<br>Co-Chair, CajunJUG<br><a href="http://www.cajunjug.org">http://www.cajunjug.org</a><br>
<br><br><div class="gmail_quote">On Mon, May 17, 2010 at 10:09 AM, keobox <span dir="ltr"><<a href="mailto:keobox@gmail.com">keobox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
I apologize if this is not the right group for posting question<br>
related to jython.<br>
Please give me the right directions if this is the case.<br>
<br>
The question is:<br>
Is there a limit on the number of entries a dictionary can have i<br>
jython?<br>
<br>
I wrote a little app where my data is stored in a huge dictionary<br>
(11746 entries) generated with a python script.<br>
When I try to import the dictionary, jython complains with the<br>
following message:<br>
<br>
Microsoft Windows XP [Version 5.1.2600]<br>
(C) Copyright 1985-2001 Microsoft Corp.<br>
<br>
C:\Documents and Settings\ceplacan\My Documents\Documents\Source\source<br>
\Python\j<br>
moco-test>jython<br>
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)<br>
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.5.0_13<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import jmoco_event_data<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
java.lang.ClassFormatError: Invalid this class index 3241 in constant<br>
pool in cl<br>
ass file _1076<br>
        at java.lang.ClassLoader.defineClass1(Native Method)<br>
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)<br>
        at org.python.core.BytecodeLoader<br>
$Loader.loadClassFromBytes(BytecodeLoad<br>
er.java:119)<br>
        at<br>
org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)<br>
        at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:<br>
67)<br>
        at org.python.core.imp.createFromSource(imp.java:288)<br>
        at org.python.core.imp.loadFromSource(imp.java:514)<br>
        at org.python.core.imp.find_module(imp.java:411)<br>
        at org.python.core.imp.import_next(imp.java:635)<br>
        at org.python.core.imp.import_name(imp.java:746)<br>
        at org.python.core.imp.importName(imp.java:806)<br>
        at org.python.core.ImportFunction.__call__(__builtin__.java:<br>
1232)<br>
        at org.python.core.PyObject.__call__(PyObject.java:367)<br>
        at org.python.core.__builtin__.__import__(__builtin__.java:<br>
1202)<br>
        at org.python.core.__builtin__.__import__(__builtin__.java:<br>
1185)<br>
        at org.python.core.imp.importOne(imp.java:817)<br>
        at org.python.pycode._pyx1.f$0(<stdin>:1)<br>
        at org.python.pycode._pyx1.call_function(<stdin>)<br>
        at org.python.core.PyTableCode.call(PyTableCode.java:165)<br>
        at org.python.core.PyCode.call(PyCode.java:18)<br>
        at org.python.core.Py.runCode(Py.java:1204)<br>
        at org.python.core.Py.exec(Py.java:1248)<br>
        at<br>
org.python.util.PythonInterpreter.exec(PythonInterpreter.java:181)<br>
        at<br>
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter<br>
.java:89)<br>
        at<br>
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret<br>
er.java:70)<br>
        at<br>
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret<br>
er.java:46)<br>
        at<br>
org.python.util.InteractiveConsole.push(InteractiveConsole.java:110)<br>
        at<br>
org.python.util.InteractiveConsole.interact(InteractiveConsole.java:9<br>
0)<br>
        at org.python.util.jython.run(jython.java:316)<br>
        at org.python.util.jython.main(jython.java:129)<br>
<br>
java.lang.ClassFormatError: java.lang.ClassFormatError: Invalid this<br>
class index<br>
 3241 in constant pool in class file _1076<br>
<br>
What can I do to avoid this?<br>
<br>
Regards,<br>
Cesare<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>