jakarta-bsf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William E Taylor <wetay...@us.ibm.com>
Subject BSF 2.3 & Rhino 1.5R3
Date Wed, 27 Jul 2005 16:55:17 GMT

I'm having some trouble using BSF to execute Javascript code.  I'm guessing
that it has something to do with the fact that I'm upgrading from old
versions (not sure which ones) of BSF and Rhino.  I'm able to execute the
Javascript directly in Rhino, but I can't get it working with BSF.  It
seems to be failing in BSF and not even getting into Rhino code.  I've
attached the source of a sample Java class that I've been working with to
debug the problem.  I've also included the output I'm seeing below.  Any
suggestions would be a huge help.  Thanks!

$ java BSFTest testfoo
BSF Javascript call failed:
JavaScript Error: Internal Error: java.lang.NullPointerException:
        at java.util.Hashtable.get(Unknown Source)
        at org.apache.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:224)
        at org.apache.bsf.BSFManager$6.run(BSFManager.java:482)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.bsf.BSFManager.exec(BSFManager.java:480)
        at BSFTest.main(BSFTest.java:21)
This is a test!
testing: testfoo

(See attached file: BSFTest.java)

                             (Embedded image moved to file: pic14207.jpg)  
 Will Taylor                                                               
 Advisory IT Specialist                                                    
 IBM Corporation                                                           

View raw message