it's unlikely we can do much about that, jython is hardly used at all
and is not a well-maintained platform; it regularly has subtle
interpreter bugs and such. pg8000 is in better shape these days but
tracking down something like this would require careful pdb debugging
and tracing. That it's an intermittent bug makes it that much more
difficult to track.
On Mon Jun 16 11:22:11 2014, tony.locke wrote:
Hi, I'm using SQLAlchemy 0.8.6 on Jython 2.5.3 with the
postgresql+pg8000 dialect, and I find I'm getting the following
intermittent error when retrieving an attribute of a persistent
object. The attribute is itself a persistent object. Any help would be
most appreciated. Thanks, Tony.
null org.python.core.PyException nullTraceback (most recent call last):
*
* File string, line 55, in module
*
* File string, line 55, in module
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\attributes.py,
line 316, in __get__
*
* return self.impl.get(instance_state(instance), dict_)
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\attributes.py,
line 613, in get
*
* value = self.callable_(state, passive)
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\strategies.py,
line 524, in _load_for_state
*
* return self._emit_lazyload(session, state, ident_key, passive)
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\strategies.py,
line 563, in _emit_lazyload
*
* return loading.load_on_ident(q, ident_key)
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\loading.py,
line 226, in load_on_ident
*
* return q.one()
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\loading.py,
line 226, in load_on_ident
*
* return q.one()
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\query.py,
line 2323, in one
*
* ret = list(self)
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\loading.py,
line 72, in instances
*
* rows = [process[0](row, None) for row in fetch]
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\loading.py,
line 356, in _instance
*
* tuple([row[column] for column in pk_cols])
*
* File D:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\engine\result.py,
line 91, in __getitem__
*
* return self._row[index]
*
* IndexError: index out of range: 0
*
*
*
* at org.python.core.Py.IndexError(Py.java:250)
*
* at
org.python.core.SequenceIndexDelegate.checkIdxAndGetItem(SequenceIndexDelegate.java:63)
*
* at org.python.core.PySequence.seq___getitem__(PySequence.java:305)
*
* at org.python.core.PySequence.__getitem__(PySequence.java:301)
*
* at sqlalchemy.engine.result$py.__getitem__$9(D:\Program
Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\engine\result.py:91)
*
* at sqlalchemy.engine.result$py.call_function(D:\Program
Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\engine\result.py)
*
* at org.python.core.PyTableCode.call(PyTableCode.java:165)
*
* at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
*
* at org.python.core.PyFunction.__call__(PyFunction.java:327)
*
* at org.python.core.PyMethod.__call__(PyMethod.java:124)
*
* at org.python.core.PyMethod.__call__(PyMethod.java:115)
*
* at
org.python.core.PyObjectDerived.__getitem__(PyObjectDerived.java:900)
*
* at sqlalchemy.orm.loading$py._instance$9(D:\Program Files\Apache
Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\loading.py:497)
*
* at sqlalchemy.orm.loading$py.call_function(D:\Program
Files\Apache Software Foundation\Tomcat
7.0\webapps\chellow\WEB-INF\lib-python\sqlalchemy\orm\loading.py)
*
* at org.python.core.PyTableCode.call(PyTableCode.java:165)
*
* at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
*
* at org.python.core.PyFunction.__call__(PyFunction.java:327)
*
* at sqlalchemy.orm.loading$py.instances$1(D:\Program Files\Apache
Software Foundation\Tomcat