You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Avik Sengupta <av...@apache.org> on 2003/04/02 05:08:45 UTC

Re: POI Platform reports

>(once you get it built)

Any tricks? I tried but couldnt get it to build in OS X

Quoting "Andrew C. Oliver" <ac...@apache.org>:

> http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaPOIPlatforms
> 
> Started this wiki page to track platform specific issues and reports.  I'm
> happy to report POI runs beautifully on MAC OS X > 
> 




Re: How to build?

Posted by Glen Stampoultzis <gs...@iinet.net.au>.
Fixed.

At 08:17 PM 28/04/2003, you wrote:
>Hello,
>
>I tried to checkout new branches and build it,and it works well
>except here.Please fix it...
>
>Index: build.xml
>===================================================================
>RCS file: /home/cvspublic/jakarta-poi/build.xml,v
>retrieving revision 1.36
>diff -r1.36 build.xml
>46c46
><     <property name="main.jar1.dir" 
>value="${main.lib}/commongs-logging-1.0.1.jar"/>
>---
> >     <property name="main.jar1.dir" 
> value="${main.lib}/commons-logging-1.0.1.jar"/>
>
>
>And test failed at scratchpad.I don't know why...
>
><testsuite errors="4" failures="0" 
>name="org.apache.poi.hdf.model.TestHDFDocument" tests="4" time="0.812">
>(omit)
>   <testcase name="testEmpty" time="0.611">
>     <error message="Unable to read entire block; 6 bytes read; expected 
> 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read 
> entire block; 6 bytes read; expected 512 bytes
>         at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown 
> Source)
>         at 
> org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
>         at 
> org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
>         at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown 
> Source)
>         at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
>         at org.apache.poi.hdf.model.TestHDFDocument.testEmpty(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
></error>
>   </testcase>
>   <testcase name="testSimple" time="0.01">
>     <error message="Unable to read entire block; 7 bytes read; expected 
> 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read 
> entire block; 7 bytes read; expected 512 bytes
>         at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown 
> Source)
>         at 
> org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
>         at 
> org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
>         at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown 
> Source)
>         at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
>         at org.apache.poi.hdf.model.TestHDFDocument.testSimple(Unknown 
> Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
></error>
>   </testcase>
>   <testcase name="testSimpleList" time="0.01">
>     <error message="Unable to read entire block; 11 bytes read; expected 
> 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read 
> entire block; 11 bytes read; expected 512 bytes
>         at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown 
> Source)
>         at 
> org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
>         at 
> org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
>         at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown 
> Source)
>         at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
>         at 
> org.apache.poi.hdf.model.TestHDFDocument.testSimpleList(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
></error>
>   </testcase>
>   <testcase name="testSimpleTable" time="0.0">
>     <error message="Unable to read entire block; 11 bytes read; expected 
> 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read 
> entire block; 11 bytes read; expected 512 bytes
>         at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown 
> Source)
>         at 
> org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
>         at 
> org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
>         at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown 
> Source)
>         at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
>         at 
> org.apache.poi.hdf.model.TestHDFDocument.testSimpleTable(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
></error>
>   </testcase>
>
>
>BTW,stacktraces are reported with "Unknown Source".
>I feel it is better that you use classes complied with debug
>option = on to test.
>
>On Mon, 28 Apr 2003 13:14:27 +1000
>Glen Stampoultzis <gs...@iinet.net.au> wrote:
>
> >
> > Glad it worked out.
> >
> > At 12:55 AM 28/04/2003, you wrote:
> > >As a side note, Forrest is required to make 'ant dist'
> > >
> > >http://www.rge.com/pub/infosystems/apache/xml/forrest/binaries/
> > >
> > >Eric
> > >
> > >On Sun, 2003-04-27 at 02:11, Glen Stampoultzis wrote:
> > > > The build just changed recently.
> > > >
> > > > What you need is ant 1.5.3 then install the following jars into
> > > ANT_HOME/lib:
> > > >
> > > >      junit           http://www.ibiblio.org/maven/junit/jars/
> > > >      xerces          http://www.ibiblio.org/maven/xerces/jars/
> > > >      jdepend         http://www.ibiblio.org/maven/jdepend/jars/
> > > >
> > > > Then just run:
> > > >
> > > > ant compile      ... to compile
> > > > ant test            ... to test
> > > > ant dist             ... to build a distribution
> > > >
> > > > One first run it will attempt to retrieve some jars required by 
> POI.  If
> > > > you're behind a proxy it may cause some issues but you can retrieve 
> them
> > > > manually if necessary.
> > > >
> > > > Let me know of any problems you have as this is all still very new.
> > > >
> > > > Regards,
> > > >
> > > > Glen Stampoultzis
> > > >
> > > >
> > > > At 10:38 AM 27/04/2003, you wrote:
> > > >
> > > > >I give up.. how do you build the latest CVS pulls?
> > > > >
> > > > >--
> > > > >Eric Ladner <el...@goldinc.com>
> > > >
> > > >
> > > > Glen Stampoultzis
> > > > gstamp@iinet.net.au
> > > > http://members.iinet.net.au/~gstamp/glen/
> > >--
> > >Eric Ladner <el...@goldinc.com>
> >
> >
> > Glen Stampoultzis
> > gstamp@iinet.net.au
> > http://members.iinet.net.au/~gstamp/glen/
>
>--------------------------------
>
>Toshiaki Kamoshida
>kamoshida.toshiaki@future.co.jp
>
>--------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/

Re: How to build?

Posted by Toshiaki Kamoshida <ka...@future.co.jp>.
Hello,

I tried to checkout new branches and build it,and it works well
except here.Please fix it...

Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-poi/build.xml,v
retrieving revision 1.36
diff -r1.36 build.xml
46c46
<     <property name="main.jar1.dir" value="${main.lib}/commongs-logging-1.0.1.jar"/>
---
>     <property name="main.jar1.dir" value="${main.lib}/commons-logging-1.0.1.jar"/>


And test failed at scratchpad.I don't know why...

<testsuite errors="4" failures="0" name="org.apache.poi.hdf.model.TestHDFDocument" tests="4" time="0.812">
(omit)
  <testcase name="testEmpty" time="0.611">
    <error message="Unable to read entire block; 6 bytes read; expected 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read entire block; 6 bytes read; expected 512 bytes
	at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.TestHDFDocument.testEmpty(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
</error>
  </testcase>
  <testcase name="testSimple" time="0.01">
    <error message="Unable to read entire block; 7 bytes read; expected 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read entire block; 7 bytes read; expected 512 bytes
	at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.TestHDFDocument.testSimple(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
</error>
  </testcase>
  <testcase name="testSimpleList" time="0.01">
    <error message="Unable to read entire block; 11 bytes read; expected 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read entire block; 11 bytes read; expected 512 bytes
	at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.TestHDFDocument.testSimpleList(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
</error>
  </testcase>
  <testcase name="testSimpleTable" time="0.0">
    <error message="Unable to read entire block; 11 bytes read; expected 512 bytes" type="java.io.IOException">java.io.IOException: Unable to read entire block; 11 bytes read; expected 512 bytes
	at org.apache.poi.poifs.storage.RawDataBlock.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.storage.RawDataBlockList.&lt;init&gt;(Unknown Source)
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFObjectFactory.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.HDFDocument.&lt;init&gt;(Unknown Source)
	at org.apache.poi.hdf.model.TestHDFDocument.testSimpleTable(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
</error>
  </testcase>


BTW,stacktraces are reported with "Unknown Source".
I feel it is better that you use classes complied with debug
option = on to test.

On Mon, 28 Apr 2003 13:14:27 +1000
Glen Stampoultzis <gs...@iinet.net.au> wrote:

> 
> Glad it worked out.
> 
> At 12:55 AM 28/04/2003, you wrote:
> >As a side note, Forrest is required to make 'ant dist'
> >
> >http://www.rge.com/pub/infosystems/apache/xml/forrest/binaries/
> >
> >Eric
> >
> >On Sun, 2003-04-27 at 02:11, Glen Stampoultzis wrote:
> > > The build just changed recently.
> > >
> > > What you need is ant 1.5.3 then install the following jars into 
> > ANT_HOME/lib:
> > >
> > >      junit           http://www.ibiblio.org/maven/junit/jars/
> > >      xerces          http://www.ibiblio.org/maven/xerces/jars/
> > >      jdepend         http://www.ibiblio.org/maven/jdepend/jars/
> > >
> > > Then just run:
> > >
> > > ant compile      ... to compile
> > > ant test            ... to test
> > > ant dist             ... to build a distribution
> > >
> > > One first run it will attempt to retrieve some jars required by POI.  If
> > > you're behind a proxy it may cause some issues but you can retrieve them
> > > manually if necessary.
> > >
> > > Let me know of any problems you have as this is all still very new.
> > >
> > > Regards,
> > >
> > > Glen Stampoultzis
> > >
> > >
> > > At 10:38 AM 27/04/2003, you wrote:
> > >
> > > >I give up.. how do you build the latest CVS pulls?
> > > >
> > > >--
> > > >Eric Ladner <el...@goldinc.com>
> > >
> > >
> > > Glen Stampoultzis
> > > gstamp@iinet.net.au
> > > http://members.iinet.net.au/~gstamp/glen/
> >--
> >Eric Ladner <el...@goldinc.com>
> 
> 
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/

--------------------------------

Toshiaki Kamoshida
kamoshida.toshiaki@future.co.jp

--------------------------------


Re: How to build?

Posted by Glen Stampoultzis <gs...@iinet.net.au>.
Glad it worked out.

At 12:55 AM 28/04/2003, you wrote:
>As a side note, Forrest is required to make 'ant dist'
>
>http://www.rge.com/pub/infosystems/apache/xml/forrest/binaries/
>
>Eric
>
>On Sun, 2003-04-27 at 02:11, Glen Stampoultzis wrote:
> > The build just changed recently.
> >
> > What you need is ant 1.5.3 then install the following jars into 
> ANT_HOME/lib:
> >
> >      junit           http://www.ibiblio.org/maven/junit/jars/
> >      xerces          http://www.ibiblio.org/maven/xerces/jars/
> >      jdepend         http://www.ibiblio.org/maven/jdepend/jars/
> >
> > Then just run:
> >
> > ant compile      ... to compile
> > ant test            ... to test
> > ant dist             ... to build a distribution
> >
> > One first run it will attempt to retrieve some jars required by POI.  If
> > you're behind a proxy it may cause some issues but you can retrieve them
> > manually if necessary.
> >
> > Let me know of any problems you have as this is all still very new.
> >
> > Regards,
> >
> > Glen Stampoultzis
> >
> >
> > At 10:38 AM 27/04/2003, you wrote:
> >
> > >I give up.. how do you build the latest CVS pulls?
> > >
> > >--
> > >Eric Ladner <el...@goldinc.com>
> >
> >
> > Glen Stampoultzis
> > gstamp@iinet.net.au
> > http://members.iinet.net.au/~gstamp/glen/
>--
>Eric Ladner <el...@goldinc.com>


Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/

Re: How to build?

Posted by Eric Ladner <el...@goldinc.com>.
As a side note, Forrest is required to make 'ant dist'

http://www.rge.com/pub/infosystems/apache/xml/forrest/binaries/

Eric

On Sun, 2003-04-27 at 02:11, Glen Stampoultzis wrote:
> The build just changed recently.
> 
> What you need is ant 1.5.3 then install the following jars into ANT_HOME/lib:
> 
>      junit           http://www.ibiblio.org/maven/junit/jars/
>      xerces          http://www.ibiblio.org/maven/xerces/jars/
>      jdepend         http://www.ibiblio.org/maven/jdepend/jars/
> 
> Then just run:
> 
> ant compile      ... to compile
> ant test            ... to test
> ant dist             ... to build a distribution
> 
> One first run it will attempt to retrieve some jars required by POI.  If 
> you're behind a proxy it may cause some issues but you can retrieve them 
> manually if necessary.
> 
> Let me know of any problems you have as this is all still very new.
> 
> Regards,
> 
> Glen Stampoultzis
> 
> 
> At 10:38 AM 27/04/2003, you wrote:
> 
> >I give up.. how do you build the latest CVS pulls?
> >
> >--
> >Eric Ladner <el...@goldinc.com>
> 
> 
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
-- 
Eric Ladner <el...@goldinc.com>

Re: How to build?

Posted by Eric Ladner <el...@goldinc.com>.
Ok.. I see.  Ant was decoupled from the Poi distro.  

What you outlined below worked like a charm.

Thanks,

Eric

On Sun, 2003-04-27 at 02:11, Glen Stampoultzis wrote:
> The build just changed recently.
> 
> What you need is ant 1.5.3 then install the following jars into ANT_HOME/lib:
> 
>      junit           http://www.ibiblio.org/maven/junit/jars/
>      xerces          http://www.ibiblio.org/maven/xerces/jars/
>      jdepend         http://www.ibiblio.org/maven/jdepend/jars/
> 
> Then just run:
> 
> ant compile      ... to compile
> ant test            ... to test
> ant dist             ... to build a distribution
> 
> One first run it will attempt to retrieve some jars required by POI.  If 
> you're behind a proxy it may cause some issues but you can retrieve them 
> manually if necessary.
> 
> Let me know of any problems you have as this is all still very new.
> 
> Regards,
> 
> Glen Stampoultzis
> 
> 
> At 10:38 AM 27/04/2003, you wrote:
> 
> >I give up.. how do you build the latest CVS pulls?
> >
> >--
> >Eric Ladner <el...@goldinc.com>
> 
> 
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
-- 
Eric Ladner <el...@goldinc.com>

Re: How to build?

Posted by Glen Stampoultzis <gs...@iinet.net.au>.
The build just changed recently.

What you need is ant 1.5.3 then install the following jars into ANT_HOME/lib:

     junit           http://www.ibiblio.org/maven/junit/jars/
     xerces          http://www.ibiblio.org/maven/xerces/jars/
     jdepend         http://www.ibiblio.org/maven/jdepend/jars/

Then just run:

ant compile      ... to compile
ant test            ... to test
ant dist             ... to build a distribution

One first run it will attempt to retrieve some jars required by POI.  If 
you're behind a proxy it may cause some issues but you can retrieve them 
manually if necessary.

Let me know of any problems you have as this is all still very new.

Regards,

Glen Stampoultzis


At 10:38 AM 27/04/2003, you wrote:

>I give up.. how do you build the latest CVS pulls?
>
>--
>Eric Ladner <el...@goldinc.com>


Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/

Re: POI Platform reports

Posted by Glen Stampoultzis <gs...@iinet.net.au>.
At 12:43 AM 24/04/2003, you wrote:
>I haven't gotten the new build to work.  I'll have to jerk around with it
>some more.

This is strange.  I tested an out of the box install of Ant 1.5.3 with 
it.  After copying the required libraries to the ant lib directory all was 
well.  The jars for the application itself are downloaded automatically on 
first run.

BTW, for the new build I don't explicitly mess with tools.jar.  I just use 
the <compile> task in ant.  Hopefully OS/X will be happy with that.

Regards,

Glen

How to build?

Posted by Eric Ladner <el...@goldinc.com>.
I give up.. how do you build the latest CVS pulls?

-- 
Eric Ladner <el...@goldinc.com>

Re: POI Platform reports

Posted by "Andrew C. Oliver" <ac...@apache.org>.
With the old build I had to delete the check for tools.jar from the
tools/antipede/xbuild.xml or whatever (search for tools.jar in all xml files
and you'll find it easily).  (I forgot I did this I'll see what I did and
note it).

I haven't gotten the new build to work.  I'll have to jerk around with it
some more.

On 4/23/03 1:08 PM, "Avik Sengupta" <av...@apache.org> wrote:

>> (once you get it built)
> 
> Any tricks? I tried but couldnt get it to build in OS X
> 
> Quoting "Andrew C. Oliver" <ac...@apache.org>:
> 
>> http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaPOIPlatforms
>> 
>> Started this wiki page to track platform specific issues and reports.  I'm
>> happy to report POI runs beautifully on MAC OS X >
>> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-dev-help@jakarta.apache.org
>