Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 74746 invoked from network); 17 Sep 2007 00:52:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 00:52:54 -0000 Received: (qmail 4157 invoked by uid 500); 17 Sep 2007 00:52:46 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 4133 invoked by uid 500); 17 Sep 2007 00:52:46 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 4122 invoked by uid 99); 17 Sep 2007 00:52:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 17:52:46 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 00:52:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3BED57141F2 for ; Sun, 16 Sep 2007 17:52:33 -0700 (PDT) Message-ID: <14153791.1189990353236.JavaMail.jira@brutus> Date: Sun, 16 Sep 2007 17:52:33 -0700 (PDT) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-179) Output trunked when using the method write(Database, OutputStream) of DatabaseIO In-Reply-To: <24303624.1183375324606.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DDLUTILS-179?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Dudziak updated DDLUTILS-179: ------------------------------------ Fix Version/s: 1.1 > Output trunked when using the method write(Database, OutputStream) of Dat= abaseIO > -------------------------------------------------------------------------= ------- > > Key: DDLUTILS-179 > URL: https://issues.apache.org/jira/browse/DDLUTILS-179 > Project: DdlUtils > Issue Type: Bug > Affects Versions: 1.0 RC2 > Environment: PostgreSQL 8.2 on Ubuntu 7.04, Sun Java 6. > Reporter: Adri=C3=A1n Romero=20 > Assignee: Thomas Dudziak > Priority: Minor > Fix For: 1.1 > > > The output is trunked when executing Output trunked when using the method= write(Database, OutputStream), the last lines of the XML database model ar= e lost. > This problem can be easily avoided using the method write(Database, Write= r) instead write(Database, OutputStream).=20 > The java code executed is: > BasicDataSource ds =3D new BasicDataSource(); > ds.setDriverClassName("org.postgresql.Driver"); > ds.setUrl("jdbc:postgresql://localhost:5432/ddlutilstest"); > ds.setUsername("tad"); > ds.setPassword("tad"); =20 > =20 > try { =20 > Platform platform =3D PlatformFactory.createNewPlatformInstan= ce(ds); > Database db =3D platform.readModelFromDatabase("model"); = =20 > =20 > OutputStream out =3D new FileOutputStream(new File("/home/adr= ian/openbravo-ddlutils-tests-2.xml")); > new DatabaseIO().write(db, out); > out.flush(); > out.close(); > =20 > } catch (Exception e) { > e.printStackTrace(); > } --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.