You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jason Crickmer <ja...@jedi.net> on 2001/07/10 12:34:43 UTC

trouble with selects, large objects, and multiple-row results

I am having some trouble with a call like "doSelect(new Criteria);".
I get a SQLException with the following stack (this is just a snippet
of the top of the trace):

java.sql.SQLException: FastPath call returned ERROR:  lo_tell: invalid
large object descriptor (0)

        at com.workingdogs.village.DataSet.fetchRecords(DataSet.java:549)
        at com.workingdogs.village.DataSet.fetchRecords(DataSet.java:467)
        at com.workingdogs.village.DataSet.fetchRecords(DataSet.java:452)
        at org.apache.turbine.om.peer.BasePeer.getSelectResults(BasePeer.java:1376)
        at org.apache.turbine.om.peer.BasePeer.executeQuery(BasePeer.java:1289)
        at org.apache.turbine.om.peer.BasePeer.executeQuery(BasePeer.java:1251)
        at org.apache.turbine.om.peer.BasePeer.executeQuery(BasePeer.java:1202)
        at org.apache.turbine.om.peer.BasePeer.doSelect(BasePeer.java:1131)
        at net.jedi.lw.om.BaseEventPeer.doSelectVillageRecords(BaseEventPeer.java:230)
        at net.jedi.lw.om.BaseEventPeer.doSelect(BaseEventPeer.java:201)


I looked for a solution on the web and found some guy mentioning that
the database connection should NOT be on autocommit
(Connection.setAutoCommit(false)).  I guess lo_tell isn't safe with
autocommit (seems weird, but that is what this guy said).

Also, when the table that is being selected on doesn't have any large
objects in it (the fields are null), I don't get this problem.

Any ideas?

Thanks,
Jason


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How to print the Turbine manuals

Posted by Gabriel Moreno <ga...@cs.cmu.edu>.
This is not a nice solution, but with it I could finally print the docs. 
I modified jakarta-site2/xdocs/stylesheets/site.vsl and built the
documentation again.
I've attached the patch.

Gabriel

Asteris Masouras wrote:
> 
> A similar thread popped up in the velocity-user mailing list, and I was
> wondering whether
> there's a quick'n'dirty way to apply a common solution (Anakia based?) to
> transforming all of TDK's
> documentation into printer friendly format without reinventing the wheel for
> each and every subset
> (this mostly has to do with addressing issues such as long line splitting
> etc.)
> Just a thought..
> 
> -=-
> Asteris Masouras (oneiros@aix.meng.auth.gr|+30 31 996050)     LHTEE IT
> Developer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

Re: How to print the Turbine manuals

Posted by Jon Stevens <jo...@latchkey.com>.
on 7/10/01 6:42 AM, "Asteris Masouras" <on...@aix.meng.auth.gr> wrote:

> A similar thread popped up in the velocity-user mailing list, and I was
> wondering whether
> there's a quick'n'dirty way to apply a common solution (Anakia based?) to
> transforming all of TDK's
> documentation into printer friendly format without reinventing the wheel for
> each and every subset
> (this mostly has to do with addressing issues such as long line splitting
> etc.)
> Just a thought..

Not sure why this isn't obvious.

Use the same solution that was proposed on the velocity-user mailing list.

Create your own stylesheet to format things however you want and then render
the docs with that stylesheet.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


How to print the Turbine manuals

Posted by Asteris Masouras <on...@aix.meng.auth.gr>.
A similar thread popped up in the velocity-user mailing list, and I was
wondering whether
there's a quick'n'dirty way to apply a common solution (Anakia based?) to
transforming all of TDK's
documentation into printer friendly format without reinventing the wheel for
each and every subset
(this mostly has to do with addressing issues such as long line splitting
etc.)
Just a thought..

-=-
Asteris Masouras (oneiros@aix.meng.auth.gr|+30 31 996050)     LHTEE IT
Developer


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org