Mailing List Archive

For input string: ":0"
Hi,

Using Forrest (trunk), I've been getting a 'BROKEN: For input string:
":0"' error message when Forrest tried to generate pdfs of my pages.
My site probably has 50 pages and none of them generate. On another
machine with a older Forrest, everything still works fine. Any ideas?

Thanks.
Re: For input string: ":0" [ In reply to ]
On Mon, Apr 19, 2010 at 11:20 PM, Richard Suematsu
<richie@mantacomputer.com> wrote:
> Hi,
>
> Using Forrest (trunk), I've been getting a 'BROKEN: For input string:
> ":0"' error message when Forrest tried to generate pdfs of my pages.
> My site probably has 50 pages and none of them generate.  On another
> machine with a older Forrest, everything still works fine.  Any ideas?

Hi Richard,
I honestly have no clue what's going on but maybe telling us a bit
more about your environment might help us help you. JDK version,
dispatcher or not, etc. Logs surrounding the error? Does it work in
dynamic mode?
Thanks,
--tim
Re: For input string: ":0" [ In reply to ]
On Tue, Apr 20, 2010 at 2:46 AM, Tim Williams <williamstw@gmail.com> wrote:
> On Mon, Apr 19, 2010 at 11:20 PM, Richard Suematsu
> <richie@mantacomputer.com> wrote:
>> Hi,
>>
>> Using Forrest (trunk), I've been getting a 'BROKEN: For input string:
>> ":0"' error message when Forrest tried to generate pdfs of my pages.
>> My site probably has 50 pages and none of them generate.  On another
>> machine with a older Forrest, everything still works fine.  Any ideas?
>
> Hi Richard,
> I honestly have no clue what's going on but maybe telling us a bit
> more about your environment might help us help you.  JDK version,
> dispatcher or not, etc.  Logs surrounding the error?  Does it work in
> dynamic mode?
> Thanks,
> --tim
>

Hi Tim,

Thank you for the help. A little more info:

JDK 1.6.0_19 on a Windows 7 64-bit with 64-bit Java.
I don't think I'm using dispatcher. I don't know what it is. It
doesn't work in dynamic mode either. I brought over a copy of my
"apache-forrest-0.8" from another machine that works and it works on
this machine also. So it's just the version I check out of
subversion.

As a test, I created a new project (forrest seed), and I have them
same problem. Here's is a run of the compile:


Apache Forrest. Run 'forrest -projecthelp' to list options


Buildfile: c:\Users\richards\apps\Forrest\main\forrest.build.xml

check-java-version:
This is apache-forrest-0.9-dev
Using Java 1.6 from c:\Program Files\Java\jdk1.6.0_19\jre
Using Apache Ant version 1.7.1 compiled on September 26 2008 from
c:\Users\richards\apps\Forrest\tools\ant

fetch-plugins-descriptors:
Fetching plugins descriptor: http://forrest.apache.org/plugins/plugins.xml
Getting: http://forrest.apache.org/plugins/plugins.xml
To: C:\Users\richards\programs\xxx\build\tmp\plugins-1.xml
local file date : Wed Apr 14 17:43:57 HST 2010
Not modified - so not downloaded
Fetching plugins descriptor:
http://forrest.apache.org/plugins/whiteboard-plugins.xml
Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
To: C:\Users\richards\programs\xxx\build\tmp\plugins-2.xml
local file date : Wed Apr 14 18:05:02 HST 2010
Not modified - so not downloaded
Plugin list loaded from http://forrest.apache.org/plugins/plugins.xml.
Plugin list loaded from
http://forrest.apache.org/plugins/whiteboard-plugins.xml.

init-plugins:
Copying 1 file to C:\Users\richards\programs\xxx\build\tmp
Copying 1 file to C:\Users\richards\programs\xxx\build\tmp
Copying 1 file to C:\Users\richards\programs\xxx\build\tmp
Copying 1 file to C:\Users\richards\programs\xxx\build\tmp
Copying 1 file to C:\Users\richards\programs\xxx\build\tmp

--------------------------------------------------------------
Installing plugin: org.apache.forrest.plugin.output.pdf
--------------------------------------------------------------


check-plugin:
org.apache.forrest.plugin.output.pdf is available in the build dir.
Trying to update it...

fetch-plugin:
Trying to find the description of org.apache.forrest.plugin.output.pdf
in the different descriptor files
Using the descriptor file
C:\Users\richards\programs\xxx\build\tmp\plugins-1.xml...
Processing C:\Users\richards\programs\xxx\build\tmp\plugins-1.xml to
C:\Users\richards\programs\xxx\build\tmp\pluginlist2fetchbuild.xml
Loading stylesheet c:\Users\richards\apps\Forrest\main\var\pluginlist2fetch.xsl

get-local:
Trying to locally get org.apache.forrest.plugin.output.pdf
Looking in local c:\Users\richards\apps\Forrest/plugins
Found !

local-deploy:
Locally deploying org.apache.forrest.plugin.output.pdf
Plugin org.apache.forrest.plugin.output.pdf deployed ! Ready to configure
Fetch-plugin Ok, installing !

configure-output-plugin:
Mounting output plugin: org.apache.forrest.plugin.output.pdf
Processing C:\Users\richards\programs\xxx\build\tmp\output.xmap to
C:\Users\richards\programs\xxx\build\tmp\output.xmap.new
Loading stylesheet
c:\Users\richards\apps\Forrest\main\var\pluginMountSnippet.xsl
Moving 1 file to C:\Users\richards\programs\xxx\build\tmp

configure-plugin-locationmap:
Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf
Processing C:\Users\richards\programs\xxx\build\tmp\locationmap.xml to
C:\Users\richards\programs\xxx\build\tmp\locationmap.xml.new
Loading stylesheet
c:\Users\richards\apps\Forrest\main\var\pluginLmMountSnippet.xsl
Moving 1 file to C:\Users\richards\programs\xxx\build\tmp

validation-props:
Using these catalog descriptors:
c:\Users\richards\apps\Forrest\main\webapp\resources\schema\catalog.xcat;c:\Users\richards\apps\Forrest\build\plugins\catalog.xcat;C:\Users\richards\programs\xxx\src\documentation\resources\schema\catalog.xcat

validate-xdocs:
35 file(s) have been successfully validated.
...validated xdocs

validate-skinconf:
1 file(s) have been successfully validated.
...validated skinconf

validate-sitemap:
...validated project sitemap

validate-skinchoice:
...validated existence of skin 'pelt'

validate-stylesheets:
...validated stylesheets

site:

Copying the various non-generated resources to site.
Warnings will be issued if the optional project resources are not found.
This is often the case, because they are optional and so may not be available.
Copying project resources and images to site ...
Copying 2 files to C:\Users\richards\programs\xxx\build\site
Copying main skin images to site ...
Copying 18 files to C:\Users\richards\programs\xxx\build\site\skin\images
Copying 14 files to C:\Users\richards\programs\xxx\build\site\skin\images
Copying project skin images to site ...
Copying main skin css and js files to site ...
Copying 11 files to C:\Users\richards\programs\xxx\build\site\skin
Copying 4 files to C:\Users\richards\programs\xxx\build\site\skin
Copying project skin css and js files to site ...

Finished copying the non-generated resources.
Now Cocoon will generate the rest.


Static site will be generated at:
C:\Users\richards\programs\xxx\build\site

Cocoon will report the status of each document:
- in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).

------------------------------------------------------------------------
cocoon 2.1.12-dev
Copyright (c) 1999-2007 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------
^ samples-b/
^ samples-c/
^ samples-c/subdir/
^ samples-c/showonlywhenselected/
^ pluginDocs/plugins_0_90/
* [1/38] [38/44] 1.738s 14.8Kb linkmap.html
* [2/39] [2/33] 0.292s 8.5Kb samples-b/faq.html
* [3/38] [0/0] 0.192s 3.2Kb skin/basic.css
* [4/38] [1/33] 0.35s 9.5Kb samples-b/xml-entities.html
* [5/38] [1/33] 0.176s 8.1Kb samples-b/exslt.html
* [6/37] [0/0] 0.196s 10.8Kb
* [7/37] [1/24] 0.138s 6.8Kb samples-c/demo-i18n.html
* [9/40] [5/40] 0.382s 27.4Kb samples-b/sample.html
^ samples-b/ext:forrest
* [11/38] [0/9] 0.151s 19.3Kb samples-b/sample.xml
X [0]
samples-c/demo-i18n.pdf BROKEN: For input string: ":0"
* [14/39] [4/20] 0.395s 61.3Kb pluginDocs/plugins_0_90/index.html
* [17/49] [13/13] 0.102s 13.4Kb skin/screen.css
* [18/48] [0/0] 0.397s 319b skin/images/rc-b-r-15-1body-2menu-3menu.png
* [19/47] [0/0] 0.012s 199b
skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png
* [20/47] [1/33] 0.109s 9.3Kb samples-b/no-dtd.html
* [21/49] [3/35] 0.1s 7.7Kb samples-b/svg.html
* [22/50] [2/34] 0.626s 13.9Kb samples-b/xinclude.html
* [23/50] [1/33] 0.223s 17.2Kb samples-b/howto-howto.html
* [24/50] [1/28] 0.15s 9.1Kb samples-c/index.html
* [25/49] [0/0] 0.025s 1.3Kb skin/print.css
* [26/49] [1/25] 0.217s 7.1Kb samples-c/showonlywhenselected/page2.html
* [28/48] [1/25] 0.17s 7.1Kb samples-c/showonlywhenselected/page1.html
X [0]
samples-c/showonlywhenselected/page1.pdf BROKEN: For input string:
":0"
* [32/45] [1/36] 0.606s 12.5Kb samples-b/locationmap/index.html
* [33/44] [0/0] 0.065s 348b skin/images/rc-b-l-15-1body-2menu-3menu.png
* [34/43] [0/0] 0.012s 209b
skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png
* [35/43] [1/20] 0.235s 5.7Kb samples-a/index.html
* [36/42] [0/0] 0.37s 7.4Kb images/group.png
* [37/41] [0/0] 0.02s 214b
skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png
* [38/40] [0/1] 0.066s 7.1Kb samples-b/xinclude.xml
X [0]
samples-b/howto-howto.pdf BROKEN: For input string: ":0"
^ pluginDocs/plugins_0_90/
^ samples-b/
* [40/52] [14/52] 0.129s 31.5Kb samples-b/linking.html
* [44/48] [0/0] 0.015s 214b
skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png
X [0] samples-b/no-dtd.pdf BROKEN:
For input string: ":0"
* [46/46] [0/0] 0.03s 4.1Kb skin/profile.css
* [48/46] [2/34] 0.159s 11.3Kb samples-b/embedded_html.html
X [0] samples-b/faq.pdf BROKEN:
For input string: ":0"
X [0]
samples-b/embedded_html.pdf BROKEN: For input string: ":0"
X [0] samples-b/svg.pdf BROKEN:
For input string: ":0"
* [52/42] [0/0] 0.157s 1.9Kb /images/ellipse-2.png
X [0]
pluginDocs/plugins_0_90/index.pdf BROKEN: For input string: ":0"
^ samples-b/site:index
* [56/38] [0/2] 0.062s 3.6Kb samples-b/embedded_html.xml
* [60/34] [0/0] 0.011s 199b
skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png
X [0]
samples-b/locationmap/index.pdf BROKEN: For input string: ":0"
* [64/31] [1/37] 0.102s 10.8Kb samples-b/index.html
X [0] samples-b/index.pdf BROKEN:
For input string: ":0"
* [66/30] [1/34] 0.134s 9.2Kb samples-b/static.html
X [0] samples-b/static.pdf BROKEN:
For input string: ":0"
X [0]
samples-c/showonlywhenselected/page2.pdf BROKEN: For input string:
":0"
^ pluginDocs/plugins_0_90/
* [69/28] [1/43] 0.101s 10.8Kb index.html
X [0] samples-a/index.pdf BROKEN:
For input string: ":0"
* [72/27] [2/34] 0.235s 8.7Kb samples-b/customSchema.html
* [73/27] [1/34] 0.066s 6.9Kb samples-b/custom.html
X [0]
samples-b/customSchema.pdf BROKEN: For input string: ":0"
* [76/25] [1/24] 0.083s 13.6Kb samples-c/i18n.html
X [0] samples-c/i18n.pdf BROKEN:
For input string: ":0"
X [0]
samples-b/xinclude.pdf BROKEN: For input string: ":0"
* [79/23] [1/27] 0.079s 7.3Kb samples-c/subdir/index.html
X [0]
samples-c/subdir/index.pdf BROKEN: For input string: ":0"
X [0] samples-b/exslt.pdf BROKEN:
For input string: ":0"
X [0]
samples-b/linking.pdf BROKEN: For input string: ":0"
* [84/18] [0/0] 0.113s 1.9Kb samples-b/ellipse.png
* [88/14] [0/0] 0.131s 8.8Kb images/project.png
* [89/13] [0/0] 0.013s 215b
skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png
* [90/13] [1/34] 0.188s 8.4Kb samples-b/usemap.html
X [0] samples-b/usemap.pdf BROKEN:
For input string: ":0"
* [92/11] [0/0] 0.017s 200b
skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png
* [93/10] [0/0] 0.069s 2.8Kb samples-b/cocoon-pyramid.png
X [0] samples-b/custom.pdf BROKEN:
For input string: ":0"
X [0] index.pdf BROKEN: For input
string: ":0"
X [0] samples-b/sample.pdf BROKEN:
For input string: ":0"
X [0] samples-c/index.pdf BROKEN:
For input string: ":0"
X [0] linkmap.pdf BROKEN: For
input string: ":0"
* [101/3] [1/34] 0.055s 8.4Kb samples-b/ascii-art.html
X [0]
samples-b/ascii-art.pdf BROKEN: For input string: ":0"
X [0]
samples-b/xml-entities.pdf BROKEN: For input string: ":0"
* [104/0] [0/0] 0.013s 390b skin/images/rc-t-r-15-1body-2menu-3menu.png
Total time: 0 minutes 12 seconds, Site size: 453,616 Site pages: 50

Copying broken links file to site root.

Copying 1 file to C:\Users\richards\programs\xxx\build\site
BUILD FAILED
c:\Users\richards\apps\Forrest\main\targets\site.xml:223: Error building site.

There appears to be a problem with your site build.

Read the output above:
* Cocoon will report the status of each document:
- in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
* Even if only one link is broken, you will still get "failed".
* Your site would still be generated, but some pages would be broken.
- See C:\Users\richards\programs\xxx\build\site/broken-links.xml

Total time: 17 seconds
Re: For input string: ":0" [ In reply to ]
On Thu, Apr 29, 2010 at 11:46 PM, Richard Suematsu
<richie@mantacomputer.com> wrote:
> On Tue, Apr 20, 2010 at 2:46 AM, Tim Williams <williamstw@gmail.com> wrote:
>> On Mon, Apr 19, 2010 at 11:20 PM, Richard Suematsu
>> <richie@mantacomputer.com> wrote:
>>> Hi,
>>>
>>> Using Forrest (trunk), I've been getting a 'BROKEN: For input string:
>>> ":0"' error message when Forrest tried to generate pdfs of my pages.
>>> My site probably has 50 pages and none of them generate.  On another
>>> machine with a older Forrest, everything still works fine.  Any ideas?
>>
>> Hi Richard,
>> I honestly have no clue what's going on but maybe telling us a bit
>> more about your environment might help us help you.  JDK version,
>> dispatcher or not, etc.  Logs surrounding the error?  Does it work in
>> dynamic mode?
>> Thanks,
>> --tim
>>
>
> Hi Tim,
>
> Thank you for the help.  A little more info:
>
> JDK 1.6.0_19 on a Windows 7 64-bit with 64-bit Java.
> I don't think I'm using dispatcher.  I don't know what it is.  It
> doesn't work in dynamic mode either.  I brought over a copy of my
> "apache-forrest-0.8" from another machine that works and it works on
> this machine also.  So it's just the version I check out of
> subversion.
>
> As a test, I created a new project (forrest seed), and I have them
> same problem.  Here's is a run of the compile:

I just did this test on my mac with now problems, I wonder if it's a
windows thing? Unfortunately, I don't have a machine to test it with.
Hopefully, someone else on this list will have a windows machine to
confirm. Have you checked your logs/do they give any more hint? (e.g.
build/webapp/WEB-INF/logs)

Thanks,
--tim
Re: For input string: ":0" [ In reply to ]
I have some ideas.

Looking at the logs as Tim mentioned.

Did you try a clean re-build of forrest?
cd main; build clean; build

Also in your project: 'forrest clean'
just in case.

The "PDF output" plugin was updated recently.
Depending on how old your 0.9-dev trunk SVN was,
that might need local deploy.
IIRC, the cleaning mentioned above makes sure.

By the way, as we are discussing the development
version of Forrest, it is better on the "dev" list.

Anyway, hope that helps.

-David
Re: For input string: ":0" [ In reply to ]
On Fri, Apr 30, 2010 at 1:32 PM, David Crossley <crossley@apache.org> wrote:
> I have some ideas.
>
> Looking at the logs as Tim mentioned.
>
> Did you try a clean re-build of forrest?
> cd main; build clean; build
>
> Also in your project: 'forrest clean'
> just in case.
>
> The "PDF output" plugin was updated recently.
> Depending on how old your 0.9-dev trunk SVN was,
> that might need local deploy.
> IIRC, the cleaning mentioned above makes sure.
>
> By the way, as we are discussing the development
> version of Forrest, it is better on the "dev" list.
>
> Anyway, hope that helps.
>
> -David
>

Ok, I must be doing something wrong because I tried this on my mac at
home and I get the same error. Let me just verify one thing -- I
should be checking out forrest from here:

svn co http://svn.apache.org/repos/asf/forrest/trunk forrest

I turned on debugging on the log and nothing obvious came out like an
exception. I did get a userconfig is null error in the middle of a
bunch of stuff. Is this a clue?

...
DEBUG - Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerRawCCITTFax
DEBUG - Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerGraphics2D
DEBUG - Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerRenderedImage
DEBUG - Dynamically adding PDFImageHandler:
org.apache.fop.render.pdf.PDFImageHandlerXML
DEBUG - userconfig is null
DEBUG - Registering: any,normal,400 under F5
DEBUG - Registering: any,italic,400 under F6
DEBUG - Registering: any,oblique,400 under F6
DEBUG - Registering: any,normal,700 under F7
DEBUG - Registering: any,italic,700 under F8
...
Re: For input string: ":0" [ In reply to ]
We can only discuss *released* versions on this "user" mail list.
Development versions on the "dev" mail please.

Also the PDF plugin is a development version.

Richard, i moved this discussion over. Please follow there.
Subject: issues with PDF plugin (Was: For input string: ":0")
http://marc.info/?l=forrest-dev&m=127302239319841

-David