|
From: Qin D. <qd...@cs...> - 2003-09-26 19:11:45
|
Bruce:
I tried your test-pineline.properties. Still it won't run.
I checked my BABELDOC_HOME which points to c:\babeldoc-bin-1.1.9-dev
My BABELDOC_USER points to c:\babeltest\config
Directory layout:
C:\babeltest
\config
\pipeline\config.properties
\scanner\config.properties
\test\test-pipeline.properties
\inventory\processed
Thank you for your help.
Qin
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
"McDonald,
Bruce" To: Qin Ding/ASD/CSC@CSC
<Bruce.McDonald cc: Babeldoc Developer List
@bankofamerica.c <bab...@li...>, David Glick
om> <dg...@co...>
Subject: RE: [Babeldoc-devel] Re: [Babeldoc-user]
09/26/03 01:05 Questions. Please Help
PM
Preliminary report back:
I have recreated your envirnoment.
Assumptions:
++++++++++++
Current directory: c:\work\qin
BABELDOC_USER=c:\work\qin\config
Problems:
+++++++++
The javascript for the initialize stage looks broken (It looks more like
Java).
Here is my pipeline which works (for me):
entryStage=initialize
initialize.stageType=Scripting
initialize.nextStage=null
initialize.failOnError=true
initialize.language=javascript
initialize.script=\
java.lang.System.out.println(document.get("file_name"));\
Running this pipeline:
++++++++++++++++++++++
0. Ensure that the babeldoc command is in your path and that BABELDOC_HOME
is set correctly.
1. Create a dummy file called: dummy.txt
2. Here is what my run tells me:
C:\work\qin>babeldoc process -p test-pipeline -f dummy.txt
Adding: C:\Program Files\NCR\TeraJDBC\classes\teradata.jar
Adding: C:\Program Files\NCR\TeraJDBC\classes\gui.jar
Adding: C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar
<2003-09-26 14:01:24,934> INFO [main] : PipelineStage name: initialize
dummy.txt
C:\work\qin>
It works fine.
Now - I will set up a scanner to test that... I will report back within
the hour.
regards,
Bruce.
-----Original Message-----
From: Qin Ding [mailto:qd...@cs...]
Sent: Friday, September 26, 2003 1:50 PM
To: McDonald, Bruce
Cc: Babeldoc Developer List; David Glick
Subject: RE: [Babeldoc-devel] Re: [Babeldoc-user] Questions. Please Help
Bruce: Thank you for your help.
I use scanner.
Here is the config/pipeline/config.properties file:
test-pipeline.type=simple
test-pipeline.configFile=test/test-pipeline
Here is the config/scanner/config.properties file:
dirscan.type=directory
dirscan.period=10000
dirscan.inDirectory=c:/babeltest/test/inventory
dirscan.doneDirectory=c:/babeltest/test/inventory/processed
dirscan.pipeline=test-pipeline
Here is the test/test-pipeline.properties file:
entryStage=initialize
initialize.stageType=Scripting
initialize.nextStage=null
initialize.failOnError=true
initialize.language=javascript
initialize.script=\
java.io.File file = new java.io.File(document.get("file_name"));\
TestManager.validate(file);
Qin
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
"McDonald,
Bruce" To: Qin
Ding/ASD/CSC@CSC
<Bruce.McDonald cc: Babeldoc Developer
List
@bankofamerica.c
<bab...@li...>, David Glick
om> <dg...@co...>
Subject: RE:
[Babeldoc-devel] Re: [Babeldoc-user]
09/26/03 12:26 Questions. Please Help
PM
Qin,
Please show me the following:
1. How do you invoke babeldoc (the command line)
2. Please show me the contents of the config/pipeline/config.properties
file
regards,
Bruce.
-----Original Message-----
From: Qin Ding [mailto:qd...@cs...]
Sent: Friday, September 26, 2003 1:10 PM
To: McDonald, Bruce
Cc: Babeldoc Developer List; David Glick
Subject: RE: [Babeldoc-devel] Re: [Babeldoc-user] Questions. Please Help
Bruce:
This is the test-pipeline.properties:
entryStage=initialize
initialize.stageType=Scripting
initialize.nextStage=null
initialize.failOnError=true
initialize.language=javascript
initialize.script=\
java.io.File file = new java.io.File(document.get("file_name"));\
TestManager.validate(file);
Here is the error:
<2003-09-26 11:05:11,960> INFO [Thread-1] : Processing document...
<2003-09-26 11:05:11,960> ERROR [Thread-1] : [AsynchronousFeeder$1.run]
com.babeldoc.core.pipeline.PipelineException: PipelineStage: entryStage not
foun
d
at
com.babeldoc.core.pipeline.PipelineStageFactory.getEntryStageName(Unk
nown Source)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown
Source)
at
com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown Sou
rce)
at
com.babeldoc.core.pipeline.feeder.SynchronousFeeder.process(Unknown S
ource)
at
com.babeldoc.core.pipeline.feeder.AsynchronousFeeder.actuallyProcess(
Unknown Source)
at
com.babeldoc.core.pipeline.feeder.AsynchronousFeeder$1.run(Unknown So
urce)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:536)
Qin
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
"McDonald,
Bruce" To: Qin Ding
<qd...@cs...>, David Glick
<Bruce.McDonald <dg...@co...>
@bankofamerica.c cc: Babeldoc Developer
List
om>
<bab...@li...>
Subject: RE:
[Babeldoc-devel] Re: [Babeldoc-user]
09/26/03 11:39 Questions. Please Help
AM
Huh?!??!
I dont understand the issue here.
Somewhere in your pipeline definition file, place the line:
entryStage=<<some pipeline stage name>>
Where the entryStage is pointing to the first pipeline stage in your
pipeline.
regards,
Bruce.
-----Original Message-----
From: Qin Ding [mailto:qd...@cs...]
Sent: Friday, September 26, 2003 12:14 PM
To: David Glick
Cc: Babeldoc Developer List
Subject: [Babeldoc-devel] Re: [Babeldoc-user] Questions. Please Help
David:
I don't have the Unix-to-Windows converter program; but I retyped the file
into wordpad and saved as text document. However, it is no possitive
effect. It still gives the same error, that is, entryStage not found. I
then copied the first line from src
example/scripting/pipeline/scannerxml.properties. Again, no use. The same
error occured no matter what I did. Seems like the application could not
recognize the "entryStage". By the way, I am using version bin-1.1.9-dev.
Any idea?
Qin
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Babeldoc-devel mailing list
Bab...@li...
https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|