[GUMP] Build Failure - xml-fop

2002-06-16 Thread Sam Ruby


This email is autogenerated from the output from:
http://jakarta.apache.org/builds/gump/2002-06-16/xml-fop.html


Buildfile: build.xml

init-avail:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 1.0dev [1999-2002] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 30 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/allprops.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/Constants.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/genconst.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/fo_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/propmap.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/enumgen.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/charlist.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/CodePointMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/code-point-mapping.xsl
[style] Transforming into 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/font-file.xsl
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Courier.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Courier.java
[style] home/rubys/jakarta/xml-fop/build/src/codegen/font-file.xsl:0:0: Fatal 
Error! java.lang.RuntimeException: Programmer assertion is incorrect! - Namespace 
context can not be null! Cause: java.lang.RuntimeException: Programmer assertion is 
incorrect! - Namespace context can not be null!
[style] Failed to process /home/rubys/jakarta/xml-fop/src/codegen/Courier.xml

BUILD FAILED
/home/rubys/jakarta/xml-fop/build.xml:431: Fatal error during transformation

Total time: 27 seconds

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: FopServlet

2002-06-16 Thread J.Pietschmann

Nirupama Yalavarti wrote:
 I could do that..THE file is being saved in
 jtomcat/bin
 Is there any way to change that location? may be to
 jtomcat/webapps/deployment directory ?

Thousands of possibilities.
Hardcode
  FileOutputStream fos=new FileOutputStream(../webapps/whatever/test12.pdf);
or investigate what you can do with
HttpServletRequest.getPathTranslated()

Now this is gettin way off of topic...

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: SVG base URL exception

2002-06-16 Thread J.Pietschmann

David Neumann wrote:
 FOP is complaining about Could not set base URL for svg and refusing 
 to draw a line. How does one set this URL?  The version of FOP I'm using 
 .20.1
 
 Specifically, this XSL:FO...
 
 fo:block
fo:instream-foreign-object
   svg xmlns=http://www.w3.org/2000/svg; width=6in height=0.1in
   gline stroke-width=0.05in stroke=#00 x1=0.4in 
 y1=1.2in y2=1.2in x2=6in/line/g
   /svg
/fo:instream-foreign-object
 /fo:block
 
 
 ...gives me this stack trace...
 
 [ERROR]: Logger not set
 [INFO]: building formatting object tree
 [INFO]: [1]
 [INFO]: [2]
 [ERROR]: 
 [ERROR]: 
 [ERROR]: Could not set base URL for svg
 java.net.MalformedURLException: java.lang.NullPointerException

Odd, I was not able to find the error location in the 0.20.1
source. Are you sure you are using 0.20.1? Anyway, it is
recommended to upgrade to 0.20.3 or .4 (soon to appear), because
this fixes a few important bugs.
Apart from this, you could try to set the baseDir property
   http://marc.theaimsgroup.com/?l=fop-devm=101777546120252w=2

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




cvs commit: xml-fop/src/org/apache/fop/fo PropertySets.java

2002-06-16 Thread pbwest

pbwest  2002/06/16 09:48:35

  Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
PropertySets.java
  Log:
  Added expandAndCopySHand
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.3   +74 -6 xml-fop/src/org/apache/fop/fo/Attic/PropertySets.java
  
  Index: PropertySets.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/PropertySets.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- PropertySets.java 15 Jun 2002 04:20:39 -  1.1.2.2
  +++ PropertySets.java 16 Jun 2002 16:48:35 -  1.1.2.3
  @@ -10,10 +10,16 @@
   
   package org.apache.fop.fo;
   
  +import java.lang.CloneNotSupportedException;
  +
   import java.util.Set;
   import java.util.HashSet;
  +import java.util.HashMap;
   import java.util.Collections;
   
  +import org.apache.fop.fo.expr.PropertyException;
  +import org.apache.fop.fo.expr.PropertyValue;
  +import org.apache.fop.fo.expr.PropertyValueList;
   import org.apache.fop.fo.PropNames;
   import org.apache.fop.datastructs.ROIntArray;
   import org.apache.fop.datatypes.Ints;
  @@ -576,8 +582,7 @@
* Shorthand properties.  Where properties interact, they are listed
* in increasing precision.
*/
  -public static final ROIntArray shorthands =
  -new ROIntArray(new int[] {
  +private static final int[] shorthands = {
   PropNames.BACKGROUND
   ,PropNames.BACKGROUND_POSITION
   ,PropNames.BORDER
  @@ -602,7 +607,26 @@
   ,PropNames.VERTICAL_ALIGN
   ,PropNames.WHITE_SPACE
   ,PropNames.XML_LANG
  -});
  +};
  +
  +/**
  + * Map property index to shorthand array index
  + */
  +private static final HashMap shorthandMap;
  +static {
  +shorthandMap = new HashMap(shorthands.length);
  +for (int i = 0; i  shorthands.length; i++) {
  +shorthandMap.put
  +((Object)(Ints.consts.get(shorthands[i])), 
  + (Object)(Ints.consts.get(i)));
  +}
  +}
  +
  +/**
  + * RO Shorthand properties.
  + */
  +public static final ROIntArray roShorthands =
  +new ROIntArray(shorthands);
   
   /**
* Array of iROIntArray/i bin same order as ishorthands//b
  @@ -610,7 +634,7 @@
* pbTODO:/b Full paranoia mode requires that this array
* be expressed in a new data type iROIntROArray/i.
*/
  -public static final ROIntArray[] shorthandExpansions = {
  +private static final ROIntArray[] shorthandExpansions = {
   backgroundExpansion
   ,backgroundPositionExpansion
   ,borderExpansion
  @@ -636,6 +660,50 @@
   ,whiteSpaceExpansion
   ,xmlLangExpansion
   };
  +
  +/**
  + * Expand the shorthand property associated with the
  + * ttPropertyValue/tt argument by copying the given value for each
  + * property in the expansion.  The emproperty/em field of each
  + * ttPropertyValue/tt will be set to one of the proeprties in the
  + * shorthand expansion.
  + * @param value a ttpropertyValue/tt whose emproperty/em field
  + *  is assumed to be set to a shorthand property.
  + * @return ttPropertyValueList/tt containing a list of
  + *  ttPropertyValue/tts, one for each property in the expansion of
  + *  the shorthand property.
  + * @exception PropertyException
  + */
  +public static PropertyValueList expandAndCopySHand(PropertyValue value)
  +throws PropertyException
  +{
  +int property;
  +// Is the property of the argument a shorthand?
  +Integer sHIndex = (Integer)shorthandMap.get
  +(Ints.consts.get(value.getProperty()));
  +if (sHIndex == null)
  +throw new PropertyException
  +( + value.getProperty() +  not a shorthand property);
  +property = sHIndex.intValue();
  +String sHPropertyName = PropNames.getPropertyName(property);
  +ROIntArray expansion = shorthandExpansions[property];
  +PropertyValueList list = new PropertyValueList(property);
  +for (int i = 0; i  expansion.length; i++) {
  +int expandedProp = expansion.get(i);
  +PropertyValue expandedPropValue;
  +
  +try {
  +expandedPropValue = (PropertyValue)(value.clone());
  +} catch (CloneNotSupportedException e) {
  +throw new PropertyException
  +(sHPropertyName + :  + e.getMessage());
  +}
  +
  +expandedPropValue.setProperty(expandedProp);
  +list.add(expandedPropValue);
  +}
  +return list;
  +}
   
   private PropertySets