|
From: Qin D. <qd...@cs...> - 2003-09-30 15:08:42
|
David and Bruce:
Sorry, I was sick in the past a few days. Now I am well and back. Just a
moment ago, I retested the command line like this:
C:\babeldoc-bin-1.1.9-dev\bin>babeldoc process -p test-pipeline -f c:
\babeltest\
test\dummy.txt >. I got our old error again. So, the manual command line
and scanner run both received the same error: entryStage not found.
<2003-09-30 10:01:05,747> ERROR [main] : [PipelineFeeder.process]
com.babeldoc.core.pipeline.PipelineException: PipelineStage: entryStage not
found
at
com.babeldoc.core.pipeline.PipelineStageFactory.getEntryStageName(Unknown
Source)
at com.babeldoc.core.pipeline.PipelineFactory.process(Unknown Source)
at com.babeldoc.core.pipeline.PipelineFactoryFactory.process(Unknown
Source)
at
com.babeldoc.core.pipeline.feeder.SynchronousFeeder.process(Unknown Source)
at com.babeldoc.core.pipeline.feeder.FeederFactory.process(Unknown
Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.process(Unknown
Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.execute(Unknown
Source)
at com.babeldoc.core.BabeldocCommand.executeCommand(Unknown Source)
at com.babeldoc.core.BabeldocCommand.<init>(Unknown Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.<init>(Unknown
Source)
at com.babeldoc.core.pipeline.command.PipelineFeeder.main(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.babeldoc.core.Main.handleCommand(Unknown Source)
at com.babeldoc.core.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.babeldoc.init.Main.runBabeldocMain(Unknown Source)
at com.babeldoc.init.Main.main(Unknown Source)
Bruce: my directory structure is the same as yours because I am using
yours. So, let me download the babeldoc binary again. I'll then report
back to you. Thanks. 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.
----------------------------------------------------------------------------------------
David Glick
<dglick To: "Qin Ding" <qd...@cs...>
@cox.net> cc: Babeldoc Developer List
<bab...@li...>
09/26/03 06:19 Subject: Re: [Babeldoc-devel] Re: [Babeldoc-user]
PM Questions. Please Help
Hi Qin,
The '-f dummy.txt' portion is to tell Babeldoc where to find the test file.
Did you cd to the directory before you ran the command? If not, you'll
need
to change the -f parameter to point to the dummy.txt file.
David
On Friday 26 September 2003 3:36 pm, Qin Ding wrote:
> David: To execute from command line, I got this error:
>
> <2003-09-26 17:35:07,411> ERROR [main] : [PipelineFeeder.execute]
Pipeline
> Error
> com.babeldoc.core.pipeline.PipelineException: Could not access the file:
> dummy.txt
> at
com.babeldoc.core.pipeline.command.PipelineFeeder.process(Unknown
> Source)
> at
com.babeldoc.core.pipeline.command.PipelineFeeder.execute(Unknown
> Source)
> at com.babeldoc.core.BabeldocCommand.executeCommand(Unknown Source)
> at com.babeldoc.core.BabeldocCommand.<init>(Unknown Source)
> at com.babeldoc.core.pipeline.command.PipelineFeeder.<init>(Unknown
> Source)
> at com.babeldoc.core.pipeline.command.PipelineFeeder.main(Unknown
> Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> at com.babeldoc.core.Main.handleCommand(Unknown Source)
> at com.babeldoc.core.Main.main(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
> at com.babeldoc.init.Main.runBabeldocMain(Unknown Source)
> at com.babeldoc.init.Main.main(Unknown Source)
>
>
>
---------------------------------------------------------------------------
>-------------
>
> 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.
>
---------------------------------------------------------------------------
>-------------
>
>
>
>
>
> David Glick
> <dglick To: "Qin Ding"
> <qd...@cs...> @cox.net> cc: Babeldoc Developer List
> <bab...@li...> 09/26/03 05:18 Subject:
> Re: [Babeldoc-devel] Re: [Babeldoc-user] PM
> Questions. Please Help
>
>
>
>
>
>
> Hi Qin,
>
> Please try testing submitting the file directly from the command line as
> follows:
>
> babeldoc process -p test-pipeline -f dummy.txt
>
> and see what error you get.
>
>
> David
>
> On Friday 26 September 2003 12:28 pm, Qin Ding wrote:
> > Bruce:
> >
> > I unzipped your qin-test.zip. And then I changed the BABELDOC_USER to
> > point to C:\qin\config. Not change anything else. Re-start babeldoc
in
> > command line: babeldoc scanner which started successfully:
> >
> > C:\babeldoc-bin-1.1.9-dev\bin>babeldoc scanner
> > <2003-09-26 14:16:29,374> INFO [main] : Initializing workers:
> > <2003-09-26 14:16:29,444> INFO [main] : dirscan (directory)
>
> configured...
>
> > <2003-09-26 14:16:29,444> INFO [main] : Starting workers...
> > <2003-09-26 14:16:29,444> INFO [main] : dirscan started...
> >
> > Then I drop the dummy.txt file into the inventory folder. Alas, I still
>
> got
>
> > the entryStage not found error!!!!
> > Is there anything that you did but I omitted?
> >
> >
> > <2003-09-26 14:16:58,937> INFO [Thread-1] : Processing document...
> > <2003-09-26 14:16:59,107> 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)
>
>
---------------------------------------------------------------------------
>
> >-------------
> >
> > 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...> <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:28
Questions.
> > Please Help PM
> >
> >
> >
> >
> >
> >
> > Scanner works fine.
> >
> > I have included a zip of my recreation of your environment.
> >
> > Please investigate and report back to the list.
> >
> > 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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > << Attachment Removed : qin-test.zip >>
--
David Glick
Transmit Consulting, Inc
619-475-4052
dg...@tr...
|