yes babeldoc_conversion.jar is in lib directory. Also have a look at my CLASSPATH. I have removed echo off command in babeldoc.bat in order to check CLASSPATH configuration. I'm wondering whether the problem is caused by a too much long CLASSPATH variable.
Here's the CLASSPATH variable printed when babeldoc starts.
Klaus,
Check if you have any whitespaces in query.properties at the end of line:
PipelineStage.FlatToXML=com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage
I really don't now what else could be the problem. This class exists in babeldoc-conversion.jar (check by unpacking it) and jar is on your classpath.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
C:\higgsbros>babeldoc scanner
Scanner higgsbros config = higgsbros
<2003-05-21 13:22:30,902> INFO [main] : Starting thread: higgsbros...
<2003-05-21 13:22:30,912> INFO [main] : Thread higgsbros scanning
<2003-05-21 13:22:50,019> INFO [higgsbros] : Scanner higgsbros found 1 message
s
<2003-05-21 13:22:50,109> INFO [higgsbros] : Processing 1 of total 1 messages
<2003-05-21 13:22:50,280> INFO [higgsbros] : Allocate ticket 1053519770260 for
message order-data.csv
<2003-05-21 13:22:50,440> INFO [higgsbros] : PipelineStage name: convert
<2003-05-21 13:22:50,730> ERROR [higgsbros] :
java.net.MalformedURLException
at java.net.URL.<init>(URL.java:613)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.
java:740)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntity
Manager.java:685)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocum
entScannerImpl.java:252)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:503)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1148)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at com.babeldoc.conversion.digester.DigesterConversionUnmarshaller.<init
>(Unknown Source)
at com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage.process
(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown Sourc
e)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at com.babeldoc.scanner.ScannerThread.run(Unknown Source)
<2003-05-21 13:22:50,881> ERROR [higgsbros] : PipelineStage name: convert Error
: com.babeldoc.core.pipeline.PipelineException: [FlatToXmlPipelineStage] Process
<2003-05-21 13:22:50,881> ERROR [higgsbros] : Error processing document
java.lang.NullPointerException
at com.babeldoc.conversion.digester.DigesterConversionUnmarshaller.getRo
otElement(Unknown Source)
at com.babeldoc.conversion.ConversionClient.<init>(Unknown Source)
at com.babeldoc.conversion.ConversionClient.doConversion(Unknown Source)
at com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage.process
(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown Sourc
e)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at com.babeldoc.scanner.ScannerThread.run(Unknown Source)
rethrown as
com.babeldoc.core.pipeline.PipelineException: [FlatToXmlPipelineStage] Process
at com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage.process
(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown Sourc
e)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at com.babeldoc.scanner.ScannerThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.babeldoc.conversion.digester.DigesterConversionUnmarshaller.getRo
otElement(Unknown Source)
at com.babeldoc.conversion.ConversionClient.<init>(Unknown Source)
at com.babeldoc.conversion.ConversionClient.doConversion(Unknown Source)
... 6 more
----------------------------------------------------------------------------------------
I think the problem could be in my config.properties in pipeline subdirectory, in that order-convert.xml is not found :
Ops, sorry the file I have just provided is not config.properties but order-outbound.properties which is in simple subdirectory under pipeline subfolder.
thanks
klaus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Klaus wrote:
Bruce,
also have a look at my env variables, which are :
-----------------------------------------------------------------------
C:\>set B
BABELDOC_HOME=C:\babeldoc\build
BABELDOC_USER=c:\higgsbros
C:\>
-----------------------------------------------------------------------
Klaus, could you check if babeldoc-conversion.jar is in %BABELDOC_HOME%\lib?
Dejan
Hi Dejan,
yes babeldoc_conversion.jar is in lib directory. Also have a look at my CLASSPATH. I have removed echo off command in babeldoc.bat in order to check CLASSPATH configuration. I'm wondering whether the problem is caused by a too much long CLASSPATH variable.
Here's the CLASSPATH variable printed when babeldoc starts.
-------------------------------------------------------------------------------------------------------------
C:\higgsbros>set CLASSPATH="C:\java\j2sdk1.4.1_02\lib\tools.jar";C:\babeldoc\bui
ld\lib\xmlsec.jar;C:\babeldoc\build\lib\xml-apis.jar;C:\babeldoc\build\lib\xerce
s.jar;C:\babeldoc\build\lib\xalan.jar;C:\babeldoc\build\lib\velocity.jar;C:\babe
ldoc\build\lib\servlet.jar;C:\babeldoc\build\lib\saaj-ri.jar;C:\babeldoc\build\l
ib\saaj-api.jar;C:\babeldoc\build\lib\ostermiller-utils.jar;C:\babeldoc\build\li
b\mm.mysql-2.0.14-bin.jar;C:\babeldoc\build\lib\mail.jar;C:\babeldoc\build\lib\l
og4j.jar;C:\babeldoc\build\lib\JTidy.jar;C:\babeldoc\build\lib\js.jar;C:\babeldo
c\build\lib\jaxm-runtime.jar;C:\babeldoc\build\lib\jaxm-api.jar;C:\babeldoc\buil
d\lib\fop.jar;C:\babeldoc\build\lib\dom4j.jar;C:\babeldoc\build\lib\commons-pool
.jar;C:\babeldoc\build\lib\commons-net-1.0.0-dev.jar;C:\babeldoc\build\lib\commo
ns-logging.jar;C:\babeldoc\build\lib\commons-lang.jar;C:\babeldoc\build\lib\comm
ons-digester.jar;C:\babeldoc\build\lib\commons-dbcp.jar;C:\babeldoc\build\lib\co
mmons-collections.jar;C:\babeldoc\build\lib\commons-cli.jar;C:\babeldoc\build\li
b\commons-beanutils.jar;C:\babeldoc\build\lib\classes12.jar;C:\babeldoc\build\li
b\bsf.jar;C:\babeldoc\build\lib\batik.jar;C:\babeldoc\build\lib\babeldoc_web.jar
;C:\babeldoc\build\lib\babeldoc_sql.jar;C:\babeldoc\build\lib\babeldoc_soap.jar;
C:\babeldoc\build\lib\babeldoc_gui.jar;C:\babeldoc\build\lib\babeldoc_crypto.jar
;C:\babeldoc\build\lib\babeldoc_core.jar;C:\babeldoc\build\lib\babeldoc_conversi
on.jar;C:\babeldoc\build\lib\babeldoc_babelfish.jar;C:\babeldoc\build\lib\babeld
oc-scanner.jar;C:\babeldoc\build\lib\avalon-framework.jar;C:\babeldoc\build\lib\ activation.jar;;C:\babeldoc\build\build\babeldoc.jar;
C:\higgsbros>set BABELDOC_MODULECACHE=C:\babeldoc\build\modulecache.properties
C:\higgsbros>"C:\java\j2sdk1.4.1_02\bin\java.exe" -Xbootclasspath/p:C:\babeldoc\ build\lib\xerces.jar;C:\babeldoc\build\lib\xalan.jar;C:\babeldoc\build\lib\xml-a
pis.jar -DbabelConfigPath=;C:\babeldoc\build;. "-Dbabeldoc.home=C:\babeldoc\buil
d" "-Dbabeldoc.modulecache=C:\babeldoc\build\modulecache.properties" com.babeldo
c.core.Main scanner
Scanner higgsbros config = higgsbros
<2003-05-21 12:06:14,471> INFO [main] : Starting thread: higgsbros...
<2003-05-21 12:06:14,561> INFO [main] : Thread higgsbros scanning
------------------------------------------------------------------------------------------------
Thanks
KLaus
Klaus,
Check if you have any whitespaces in query.properties at the end of line:
PipelineStage.FlatToXML=com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage
I really don't now what else could be the problem. This class exists in babeldoc-conversion.jar (check by unpacking it) and jar is on your classpath.
Dejan,
your're right , the problem was a whitespace in query.properties !
Now I'm getting this error :
-----------------------------------------------------------------------------------------------------------
C:\higgsbros>babeldoc scanner
Scanner higgsbros config = higgsbros
<2003-05-21 13:22:30,902> INFO [main] : Starting thread: higgsbros...
<2003-05-21 13:22:30,912> INFO [main] : Thread higgsbros scanning
<2003-05-21 13:22:50,019> INFO [higgsbros] : Scanner higgsbros found 1 message
s
<2003-05-21 13:22:50,109> INFO [higgsbros] : Processing 1 of total 1 messages
<2003-05-21 13:22:50,280> INFO [higgsbros] : Allocate ticket 1053519770260 for
message order-data.csv
<2003-05-21 13:22:50,440> INFO [higgsbros] : PipelineStage name: convert
<2003-05-21 13:22:50,730> ERROR [higgsbros] :
java.net.MalformedURLException
at java.net.URL.<init>(URL.java:613)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.
java:740)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntity
Manager.java:685)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocum
entScannerImpl.java:252)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:503)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1148)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at com.babeldoc.conversion.digester.DigesterConversionUnmarshaller.<init
>(Unknown Source)
at com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage.process
(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown Sourc
e)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at com.babeldoc.scanner.ScannerThread.run(Unknown Source)
<2003-05-21 13:22:50,881> ERROR [higgsbros] : PipelineStage name: convert Error
: com.babeldoc.core.pipeline.PipelineException: [FlatToXmlPipelineStage] Process
<2003-05-21 13:22:50,881> ERROR [higgsbros] : Error processing document
java.lang.NullPointerException
at com.babeldoc.conversion.digester.DigesterConversionUnmarshaller.getRo
otElement(Unknown Source)
at com.babeldoc.conversion.ConversionClient.<init>(Unknown Source)
at com.babeldoc.conversion.ConversionClient.doConversion(Unknown Source)
at com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage.process
(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown Sourc
e)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at com.babeldoc.scanner.ScannerThread.run(Unknown Source)
rethrown as
com.babeldoc.core.pipeline.PipelineException: [FlatToXmlPipelineStage] Process
at com.babeldoc.conversion.pipeline.stage.FlatToXmlPipelineStage.process
(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStage.processStage(Unknown Source)
at com.babeldoc.core.pipeline.PipelineStageFactory.process(Unknown Sourc
e)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at com.babeldoc.scanner.ScannerThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.babeldoc.conversion.digester.DigesterConversionUnmarshaller.getRo
otElement(Unknown Source)
at com.babeldoc.conversion.ConversionClient.<init>(Unknown Source)
at com.babeldoc.conversion.ConversionClient.doConversion(Unknown Source)
... 6 more
----------------------------------------------------------------------------------------
I think the problem could be in my config.properties in pipeline subdirectory, in that order-convert.xml is not found :
entryStage=convert
convert.stageType=FlatToXml
convert.nextStage=transform
convert.flatToXmlFile=order-convert.xml
transform.stageType=XslTransform
transform.nextStage=emailer
transform.transformationFile=test/higgsbros/transform.xsl
emailer.stageType=SmtpWriter
emailer.nextStage=null
emailer.smtpHost=someHost
emailer.smtpFrom=somename@somedomain.it
emailer.smtpTo=somename@somedomain.it
emailer.smtpSubject=order
emailer.smtpMessage={document.toString()}
Could yo tell where order-convert.xml need to be copied in order to be found with the following configuration :
convert.flatToXmlFile=order-convert.xml
Actually it is in c:\higgsbros\test\higgsbros subfolder.
Thanks,
Klaus
Ops, sorry the file I have just provided is not config.properties but order-outbound.properties which is in simple subdirectory under pipeline subfolder.
thanks
klaus
Just solved this problem , putting the correct configuration :
--------------------------------------------------------------------------------------------------
entryStage=convert
convert.stageType=FlatToXml
convert.nextStage=transform
convert.flatToXmlFile=C:\\higgsbros\\test\\higgsbros\\order-convert.xml
transform.stageType=XslTransform
transform.nextStage=emailer
transform.transformationFile=C:\\higgsbros\\test\\higgsbros\\transform.xsl
emailer.stageType=SmtpWriter
emailer.nextStage=null
emailer.smtpHost=dotto
emailer.smtpFrom=klaus_koenig@bcent.it
emailer.smtpTo=klaus_koenig@bcent.it
emailer.smtpSubject=order
emailer.smtpMessage={document.toString()}
-------------------------------------------------------------------------------------------------
Now I'm going on with the test.
I'll let you know whether I'll manage to get it work.
Klaus
You don't need to use absoulte file names. Files can be relative to configuration folder (BABELDOC_USER folder) - C:\Higgsbros in your example.