Bug 40744 - NullPointerException in table w border-separation(?). Orig file and log included.
Summary: NullPointerException in table w border-separation(?). Orig file and log inclu...
Status: CLOSED DUPLICATE of bug 39712
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.92
Hardware: PC Windows 2000
: P4 minor
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-12 09:10 UTC by Boris
Modified: 2012-04-01 13:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris 2006-10-12 09:10:24 UTC
See "Point 1" in file. See log after file, pls.
Looks like border-separation="0.04167in" generates an error.

Thanks!
Boris.

--------------Orig file----------
-------------CUT---------------
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="coverPage" page-height="6cm"
page-width="12cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="1cm"
margin-right="0.5cm">
			<fo:region-body margin-top="1cm" />
		</fo:simple-page-master>
		<fo:simple-page-master master-name="leftPage" 
				page-height="6cm"
				page-width="12cm" 
				margin-left="0.5cm" 
				margin-right="1cm" 
				margin-top="0.5cm" 
				margin-bottom="0.5cm">
			<fo:region-body margin-top="1.1cm" margin-bottom="1.1cm" />
			<fo:region-before extent="1cm"/>
			<fo:region-after extent="1cm"/>
		</fo:simple-page-master>
		<fo:simple-page-master master-name="rightPage" page-height="6cm"
page-width="12cm" margin-left="1cm" margin-right="0.5cm" margin-top="0.5cm"
margin-bottom="0.5cm">
			<fo:region-body margin-top="1.1cm" margin-bottom="1.1cm" />
			<fo:region-before extent="1cm"/>
			<fo:region-after extent="1cm"/>
		</fo:simple-page-master>
	    <fo:page-sequence-master   master-name="content">
		        <fo:repeatable-page-master-alternatives >
								<fo:conditional-page-master-reference master-reference="leftPage"
odd-or-even="even"/>
								<fo:conditional-page-master-reference master-reference="rightPage"
odd-or-even="odd"/>
			    </fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
	    <fo:page-sequence-master master-name="cover"  >
						<fo:single-page-master-reference master-reference="coverPage"/>
		</fo:page-sequence-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="content" initial-page-number="99">
		<fo:static-content flow-name="xsl-region-before">
      	    <fo:block font-family="Times" font-size="10pt" 	 text-align="center">
					     Spanish Review Handbook &#1055;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1047;&#1072;&#1075;&#1086;&#1083;&#1086;&#1074;&#1082;&#1072;
			</fo:block>
		</fo:static-content>			
		<fo:static-content flow-name="xsl-region-after">
				<fo:block font-family="Helvetica" font-size="10pt" text-align="center" >
					Page <fo:page-number />
				</fo:block>
				</fo:static-content>
					<fo:flow flow-name="xsl-region-body">
						<fo:block 
									border ="thick dashed green"
						>Test Cover Page! Hello world!  12345667 </fo:block>
						<fo:block>
									Test text
						</fo:block>																		
						<fo:block border="thick dashed yellow">
						Point 1 Attributes generate exception																		
						<fo:table 
								border-top-style="solid" 
								border-top-color="#ECE9D8" 
								border-top-width="0.01042in" 
								border-bottom-style="solid" 
								border-bottom-color="#ACA899" 
								border-bottom-width="0.01042in" 
								border-left-style="solid" 
								border-left-color="#ECE9D8" 
								border-left-width="0.01042in" 
								border-right-style="solid" 
								border-right-color="#ACA899" 
								border-right-width="0.01042in" 
								border-collapse="separate" 
								border-separation="0.04167in" 
								color="black" display-align="center"						
								>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell>
										<fo:block
											>Line1</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell border="thick dashed blue" width="1cm">
										<fo:block>11</fo:block>
									</fo:table-cell>
									<fo:table-cell border="thick dotted red"  width="1cm">
										<fo:block>12</fo:block>
									</fo:table-cell>
									<fo:table-cell border="thick dashed black" width="1cm">
										<fo:block>13</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
						After Table
						</fo:block>																		
						<fo:block></fo:block>
					</fo:flow>
	</fo:page-sequence>
</fo:root>
------------CUT---------------
--------Log file---------------
----------CUT-------------
--- Standard Error ---
12/10/2006 18:34:28 org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:167)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:114)
	at org.apache.fop.cli.Main.startFOP(Main.java:159)
	at org.apache.fop.cli.Main.main(Main.java:190)

---------

java.lang.NullPointerException
	at
org.apache.fop.fo.properties.CompoundPropertyMaker.convertProperty(CompoundPropertyMaker.java:172)
	at
org.apache.fop.fo.properties.LengthPairProperty$Maker.convertProperty(LengthPairProperty.java:61)
	at org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:441)
	at
org.apache.fop.fo.properties.CompoundPropertyMaker.make(CompoundPropertyMaker.java:212)
	at org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java:348)
	at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:304)
	at org.apache.fop.fo.FObj.processNode(FObj.java:118)
	at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:308)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:184)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:164)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:114)
	at org.apache.fop.cli.Main.startFOP(Main.java:159)
	at org.apache.fop.cli.Main.main(Main.java:190)

--- Standard Output ---
-------------cut----------
Comment 1 Andreas L. Delmelle 2006-10-12 09:47:42 UTC
Hi,

Are you willing and at liberty to try the latest Trunk version? I seem to remember having fixed this bug, 
shortly after the 0.92 release...

If not, I think replacing 'border-separation="0.04167in"' with 'border-separation="0.04167in 
0.04167in"' should do the trick for you (iow: specify the length both in inline- and block-progression 
direction)

Can you confirm if this solves your problem?

Thx,

Andreas
Comment 2 Andreas L. Delmelle 2006-10-12 09:59:45 UTC
Found it. It is the exact same bug.

*** This bug has been marked as a duplicate of 39712 ***
Comment 3 Glenn Adams 2012-04-01 13:53:08 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs