Presumably you didn't see hundreds of exceptions, but one very long
message, containing 2 stack traces. You've shown the first part of the
first one, but the first part of the second one might be useful in
this case, too.
Since the messages are in the parser, this means that the file was
found and opened. There are a few possibilities as to what's wrong,
but I can't narrow it down based just on what you've told us. One
interesting possibillity is that you've prepared your .clp file using
a word processor and saved it in some binary format, which is
gibberish to Jess. Make sure the file is in text only format. Another
is that despite your efforts, you haven't managed to create a file
containing proper syntax. In either case, the top of the second stack
trace might contain more specific information.
Another thing: in general, you don't want to put script files in the
jess/ package directory and batch them from there. Doing these leaves
you open to the vagaries of classloaders and CLASSPATH
management. Just put your scripts wherever you 'd normally save such
files; in the top-level JessXX directory, for instance, or in a
subdirectory you create for this purpose.
I think Rajaram Subramanian wrote:
> Hi,
> I am very much a beginner in JESS and today i wrote my first .clp file. I
> placed it in the same directory as scriptlib.clp. I initialise a Rete
> engine in my main program and then batch my vibe.clp file...
>
> rete_.executeCommand("(batch jess/vibe.clp)");
>
> I seem to generate around 100's of exceptions beginning with :
>
> Jess reported an error in routine Tokenizer.nextToken while executing
> (batch jess/vibe.clp).
> Message: I/O Exception.
> Program text: ( batch jess/vibe.clp ) at line 0.
>
> at jess.Tokenizer.nextToken(Tokenizer.java:170)
>
> at jess.JessTokenStream.prepareSexp(JessTokenStream.java:58)
>
> at jess.JessTokenStream.nextToken(JessTokenStream.java:85)
>
> I thought maybe something was wrong with my syntax in the .clp file, so i
> just pasted whatever was in scriptlib.clp on to my file while deleting the
> rest. No improvement at all :-).
>
> Could you please help me with this,
>
> Regards,
> Raj.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------